Sip 2 SIP

Place for developers to chat about the code
Post Reply
engst03
Posts: 2
Joined: Wed Sep 28, 2016 2:12 pm

Sip 2 SIP

Post by engst03 » Wed Sep 28, 2016 2:26 pm

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

User avatar
Aaron
Site Admin
Posts: 4552
Joined: Thu Jul 12, 2007 12:13 am

Re: Sip 2 SIP

Post by Aaron » Thu Sep 29, 2016 6:07 am

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.

engst03
Posts: 2
Joined: Wed Sep 28, 2016 2:12 pm

Re: Sip 2 SIP

Post by engst03 » Thu Sep 29, 2016 6:19 am

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

User avatar
Aaron
Site Admin
Posts: 4552
Joined: Thu Jul 12, 2007 12:13 am

Re: Sip 2 SIP

Post by Aaron » Thu Sep 29, 2016 6:38 am

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest