[OpenSIPS-Users] OpenSIPS B2BUA Refer Scenario
Rus Hughes
rus.hughes at netdev.co.uk
Thu Oct 31 16:50:37 CET 2013
Hi,
I'm trying to configure OpenSIPS 1.8.2 to handle the REFER scenario but
when we receive the REFER message, rather than send an INVITE to the
destination in the Refer-To header, the INVITE flows back up the SIP path
to the caller. I've attached the OpenSIPS config, the call flow and the
refer.xml to this mail.
The platform in question has an OpenSIPS instance listening on port 5060
that handles NAT, when this receives a call it then calls a second OpenSIPS
B2B instance (the one I am having trouble with) that listens on port 5080,
the OpenSIPS B2B instance then initiates the b2b_init_request("refer");
causing it to send an INVITE to itself, then it does some load balancing
and makes a call to our UAS which sends out a REFER telling OpenSIPS B2B to
talk to a different UAS. OpenSIPS B2B then replies with a 202 and hangs up
the leg to our UAS.
Everything works up until this point. Rather than send an INVITE out to the
address in the Refer-To header which looks like :
<sip:+44818118181 at 192.168.46.103
;moshxfer=beta_mosh_111111;prefs=1_s6~2_s7~3_h1~4_h2~5_hh~6_s5~7_s8~8_h3~9_..;mode=client;calluid=alphapapa-415f-11e3-9d31-939a1e091c8b;custref=beta;anncset=default;trace=false;suffix=00>
it sends an INVITE out to the Contact URI of the incoming call.
If someone could please tell me what I'm doing wrong I'd appreciate it as
I'm beating my head against the keyboard at the moment :)
Cheers,
Rus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20131031/aed941c0/attachment.htm>
-------------- next part --------------
Conv.| Time | 192.168.46.26 | 192.168.46.104 |
| | | 192.168.46.108 | | 192.168.46.5 |
2 |24.968659| INVITE SDP (g711U telephone-eventRTPType-101 CN) | | |SIP From: "Rus Hughes" <sip:6120 at 192.168.46.26 To:<sip:+442035150515 at 192.168.46.108
| |(5080) ------------------> (5060) | | |
2 |24.968817| 100 Giving a try | | |SIP Status
| |(5080) <------------------ (5060) | | |
2 |24.968856| | INVITE SDP (g711U telephone-eventRTPType-101 CN) | |SIP Request
| | |(5060) ------------------> (5080) | |
2 |24.969538| | 100 Trying| | |SIP Status
| | |(5080) ------------------> (5060) | |
-------------------------------------------------------------------------------------------------
3 |24.969667| | INVITE SDP (g711U telephone-eventRTPType-101 CN) | |SIP From: "Rus Hughes" <sip:6120 at 192.168.46.26 To:sip:+442035150515 at 192.168.46.108:508
| | |(5080) ------------------> (5080) | |
3 |24.969816| | 100 Giving a try | |SIP Status
| | |(5080) ------------------> (5080) | |
3 |24.969862| | INVITE SDP (g711U telephone-eventRTPType-101 CN) | |SIP From: "Rus Hughes" <sip:6120 at 192.168.46.26 To:sip:+442035150515 at 192.168.46.108:508
| | |(5080) ------------------> (5060) | |
3 |24.970276| | 100 Trying| | |SIP Status
| | |(5080) <------------------ (5060) | |
3 |24.993512| | 200 OK SDP (g711U telephone-eventRTPType-101) | |SIP Status
| | |(5080) <------------------ (5060) | |
3 |24.994237| | 200 OK SDP (g711U telephone-eventRTPType-101) | |SIP Status
| | |(5080) ------------------> (5080) | |
-------------------------------------------------------------------------------------------------
2 |24.994700| | 200 OK SDP (g711U telephone-eventRTPType-101) | |SIP Status
| | |(5080) ------------------> (5060) | |
2 |24.994830| 200 OK SDP (g711U telephone-eventRTPType-101) | | |SIP Status
| |(5080) <------------------ (5060) | | |
2 |24.995952| ACK | | | |SIP Request
| |(5080) ------------------> (5060) | | |
2 |24.996099| | ACK | | |SIP Request
| | |(5060) ------------------> (5080) | |
-------------------------------------------------------------------------------------------------
3 |24.996536| | ACK | | |SIP Request
| | |(5080) ------------------> (5080) | |
3 |24.997188| | ACK | | |SIP Request
| | |(5080) ------------------> (5060) | |
3 |29.611923| | REFER | | |SIP Request
| | |(5080) <------------------ (5060) | |
-------------------------------------------------------------------------------------------------
2 |29.612567| | INVITE | | |SIP Request
| | |(5080) ------------------> (5060) | |
-------------------------------------------------------------------------------------------------
3 |29.612616| | 202 Accepted | |SIP Status
| | |(5080) ------------------> (5060) | |
3 |29.612687| | BYE | | |SIP Request
| | |(5080) ------------------> (5080) | |
-------------------------------------------------------------------------------------------------
2 |29.612945| | 100 Giving a try | |SIP Status
| | |(5060) ------------------> (5080) | |
2 |29.612977| | INVITE | | |SIP Request
| | |(5060) --------------------------------------> (5080) |
-------------------------------------------------------------------------------------------------
3 |29.613566| | BYE | | |SIP Request
| | |(5080) ------------------> (5060) | |
3 |29.713696| | 200 OK | | |SIP Status
| | |(5080) <------------------ (5060) | |
3 |29.713986| | 200 OK | | |SIP Status
| | |(5080) ------------------> (5080) | |
-------------------------------------------------------------------------------------------------
2 |30.060498| | INVITE | | |SIP Request
| | |(5060) --------------------------------------> (5080) |
2 |31.162226| | INVITE | | |SIP Request
| | |(5060) --------------------------------------> (5080) |
2 |33.165644| | INVITE | | |SIP Request
| | |(5060) --------------------------------------> (5080) |
2 |34.768119| | 408 Request Timeout | |SIP Status
| | |(5060) ------------------> (5080) | |
2 |34.768358| | ACK | | |SIP Request
| | |(5080) ------------------> (5060) | |
2 |39.227006| BYE | | | |SIP Request
| |(5080) ------------------> (5060) | | |
2 |39.227205| | BYE | | |SIP Request
| | |(5060) ------------------> (5080) | |
2 |39.227572| | 200 OK | | |SIP Status
| | |(5080) ------------------> (5060) | |
2 |39.227662| | 404 Not here | |SIP Status
| | |(5080) ------------------> (5060) | |
2 |39.227757| 200 OK | | | |SIP Status
| |(5080) <------------------ (5060) | | |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: opensips-b2b-nonat.cfg
Type: application/octet-stream
Size: 7237 bytes
Desc: not available
URL: <http://lists.opensips.org/pipermail/users/attachments/20131031/aed941c0/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: refer.xml
Type: text/xml
Size: 1032 bytes
Desc: not available
URL: <http://lists.opensips.org/pipermail/users/attachments/20131031/aed941c0/attachment.bin>
More information about the Users
mailing list