question: is it possible to establish a sip p2p connection with jssip but no sip server?

32 views
Skip to first unread message

Alberto Santamaria

unread,
Apr 7, 2022, 6:29:26 AMApr 7
to JsSIP
Hello, 
First of all, thank you so much to all contributors, I´ve been using the jssip library for a couple of years and i have to say it´s an amazing tool. Pretty well done in my opinion, and so useful. 
In this time, i´ve always made use of jssip library in conjuction with an Asterisk server, some issues at the beginning but no big deals. 

What i´m trying to do now is to establish a call between two user agents, using the sip protocol (and the jssip of course), but without the sip server (Asterisk or anyone). I want to establish a peer to peer connection in a local network, without a pbx, making use of jssip. So my first question is: Is this possible? 
According to the very basics of sip protocol, i think this is theoretically allowed, but i don´t get to do it with jssip.
Assuming that this is possible, I think my problem is the user agent configuration. 
I´m using the following configuration:

var socket = {uri:"http://UA_2_ipAddress:10001", via_transport:"tcp"};
var sip_uri = "sip:pepe@myIp";
var configuration = { sockets: [socket], uri: sip_uri};
ua = new JsSIP.UA(configuration);

Could you please shed some light on this issue?
Thank you so much in advance.

Regards, 
Alberto


Reply all
Reply to author
Forward
0 new messages