Page 1 of 1

Sip 2 SIP

Posted: Wed Sep 28, 2016 2:26 pm
by engst03
Hi,

I came across your library and trying to get used to it. I manged to make simple UAC and UAS connections.

Now I would like to cross/connect them like it is done in the SIP2XMPP sample

I would like to do the following

1. Call is coming in on UAS
2. I initiate an outbound call on UAC
3. Once UAC is connected with the remote Server I accept the incoming UAS and connect it directly to the UAC connection.

I tried to modify the SIP2XMPP sample but only got strange results.

Can anyone help or assist me here?

Regards

Re: Sip 2 SIP

Posted: Thu Sep 29, 2016 6:07 am
by Aaron
Are you using the XMPP protocol in your scenario? If not then that example code won't be that helpful.

If you post up a code snippet then it will be easier to help you. Also these days you're likely to get a better response from developers by posting an issue directly on the github repository at https://github.com/sipsorcery/sipsorcery.

Re: Sip 2 SIP

Posted: Thu Sep 29, 2016 6:19 am
by engst03
Hello,

thank you very much for your fast answer. I do not need xmpp. In fact I would like to use SIP instead of that. Like it will become a sip 2 sip proxy.

Regards

Re: Sip 2 SIP

Posted: Thu Sep 29, 2016 6:38 am
by Aaron
A Back-to-Back (B2B) SIP Proxy is a pretty complex undertaking. The simplest way would be to do something like create a list with a one-to-one relationship between the SIPServerUserAgent created in response to the incoming INVITE request and the SIPClientUserAgent representing the forwarded call. However that will start to break down if you need to authenticate the forwarded call leg, where do the credentials come from?

In the sipsorcery code base the SIPAppServerCore class is the guts of a Stateful SIP Proxy which acts as a B2BUA for call requests. It might be a useful starting point.