[OpenSIPS-Users] ACK stuck in loop when replying to OK for a FreeSwitch server

Matt Rabbitt mrabbitt at chief-technologies.com
Wed Apr 23 19:31:10 CEST 2014


I am experiencing an issue where the ACK that is destined for FreeSwitch
(used for voicemail and IVR only) is getting stuck in a loop after it hits
Opensips.  I did a SIP trace and I see that the preceding OK from Opensips
to the UA has a Contact: header of the FreeSwitch server and the following
ACK from the UA to Opensips is ACK <user>@<freeswitch ip> instead of the
Opensips IP.  I assume this is causing my problem but I'm not sure why it's
happening.

I used the guide here
http://www.opensips.org/Documentation/Tutorials-OpenSIPSFreeSwitchIntegrationto
setup voicemail and IVR features to go along with my Opensips
deployment.  The only change I made relative to the guide is that my
FreeSwitch server is on a different server and IP.  In my setup, the UA is
10.168.154.30, Opensips is 10.162.26.23, and FreeSwitch is 10.162.26.22.
 The SIP trace is attached.

Any help is appreciated.  Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20140423/a004c59f/attachment.htm>
-------------- next part --------------
U 2014/04/23 10:45:47.805516 10.168.154.30:5060 -> 10.162.26.23:5060
INVITE sip:*9198 at 10.162.26.23;user=phone SIP/2.0.
Via: SIP/2.0/UDP 10.168.154.30:5060;branch=z9hG4bK6ab20380.
From: "TEST EXT 1235" <sip:1235 at 10.162.26.23>;tag=68bc0c81e0bd00a57cad4544-659b5f36.
To: <sip:*9198 at 10.162.26.23>.
Call-ID: 68bc0c81-e0bd0013-46115a26-29fb4637 at 10.168.154.30.
Max-Forwards: 70.
Date: Fri, 01 Jan 1982 23:58:05 GMT.
CSeq: 102 INVITE.
User-Agent: Cisco-CP9971/9.4.1.
Contact: <sip:1235 at 10.168.154.30:5060;transport=udp>;video.
Proxy-Authorization: Digest username="1235",realm="10.162.26.23",uri="sip:*9198 at 10.162.26.23;user=phone",response="45f9e49963e222952476bb9fa5ad2aff",nonce="5357d2390000001f3848549762909078089786172aa403c6",algorithm=md5.
Expires: 180.
Accept: application/sdp.
Allow: ACK,BYE,CANCEL,INVI
#
U 2014/04/23 10:45:47.806875 10.162.26.23:5060 -> 10.168.154.30:5060
SIP/2.0 100 Giving a try.
Via: SIP/2.0/UDP 10.168.154.30:5060;received=10.168.154.30;rport=5060;branch=z9hG4bK6ab20380.
From: "TEST EXT 1235" <sip:1235 at 10.162.26.23>;tag=68bc0c81e0bd00a57cad4544-659b5f36.
To: <sip:*9198 at 10.162.26.23>.
Call-ID: 68bc0c81-e0bd0013-46115a26-29fb4637 at 10.168.154.30.
CSeq: 102 INVITE.
Server: OpenSIPS (1.8.4-notls (x86_64/linux)).
Content-Length: 0.
.

#
U 2014/04/23 10:45:47.807197 10.162.26.23:5060 -> 10.162.26.22:5090
INVITE sip:9198 at 10.162.26.23;user=phone SIP/2.0.
Record-Route: <sip:10.162.26.23;lr;did=6b8.63d603c3>.
Via: SIP/2.0/UDP 10.162.26.23:5060;branch=z9hG4bK687.d94907a.0.
Via: SIP/2.0/UDP 10.168.154.30:5060;rport=5060;received=10.168.154.30;branch=z9hG4bK6ab20380.
From: "TEST EXT 1235" <sip:1235 at 10.162.26.23>;tag=68bc0c81e0bd00a57cad4544-659b5f36.
To: <sip:*9198 at 10.162.26.23>.
Call-ID: 68bc0c81-e0bd0013-46115a26-29fb4637 at 10.168.154.30.
Max-Forwards: 69.
Date: Fri, 01 Jan 1982 23:58:05 GMT.
CSeq: 102 INVITE.
User-Agent: Cisco-CP9971/9.4.1.
Contact: <sip:1235 at 10.168.154.30:5060;transport=udp>;video.
Expires: 180.
Accept: application/sdp.
Allow: ACK,BYE,CANCEL,INVITE,NOTIFY,OPTIONS,REFER,REGISTER,UPDATE,SUBSCRIBE,INFO.
Supported: replaces,join,sdp-anat,norefersub,resource-priority,extended-refer,X-cisco-callinfo,X-cisco-serviceuri,X-cisco-escapecodes,X-cisco-service-control,X-cisco-srtp-fallback,X-cisco-monrec,X-cisco-config,X-cisco-sis-6.0.2,X-cisco-xsi-8.0.1.
Allow-Events: kpml,dialog.
Content-Length: 649.
Content-Type: application/sdp.
Content-Disposition: session;handling=optional.
.

#
U 2014/04/23 10:45:47.807694 10.162.26.22:5090 -> 10.162.26.23:5060
SIP/2.0 100 Trying.
Via: SIP/2.0/UDP 10.162.26.23:5060;branch=z9hG4bK687.d94907a.0.
Via: SIP/2.0/UDP 10.168.154.30:5060;rport=5060;received=10.168.154.30;branch=z9hG4bK6ab20380.
Record-Route: <sip:10.162.26.23;lr;did=6b8.63d603c3>.
From: "TEST EXT 1235" <sip:1235 at 10.162.26.23>;tag=68bc0c81e0bd00a57cad4544-659b5f36.
To: <sip:*9198 at 10.162.26.23>.
Call-ID: 68bc0c81-e0bd0013-46115a26-29fb4637 at 10.168.154.30.
CSeq: 102 INVITE.
User-Agent: FreeSWITCH-mod_sofia/1.5.12b+git~20140407T192730Z~d6fa81b4b7~64bit.
Content-Length: 0.
.

#
U 2014/04/23 10:45:47.816920 10.162.26.22:5090 -> 10.162.26.23:5060
SIP/2.0 200 OK.
Via: SIP/2.0/UDP 10.162.26.23:5060;branch=z9hG4bK687.d94907a.0.
Via: SIP/2.0/UDP 10.168.154.30:5060;rport=5060;received=10.168.154.30;branch=z9hG4bK6ab20380.
Record-Route: <sip:10.162.26.23;lr;did=6b8.63d603c3>.
From: "TEST EXT 1235" <sip:1235 at 10.162.26.23>;tag=68bc0c81e0bd00a57cad4544-659b5f36.
To: <sip:*9198 at 10.162.26.23>;tag=p0Bc0t7jFvUyH.
Call-ID: 68bc0c81-e0bd0013-46115a26-29fb4637 at 10.168.154.30.
CSeq: 102 INVITE.
Contact: <sip:*9198 at 10.162.26.22:5090;transport=udp>.
User-Agent: FreeSWITCH-mod_sofia/1.5.12b+git~20140407T192730Z~d6fa81b4b7~64bit.
Accept: application/sdp.
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY.
Supported: timer, path, replaces.
Allow-Events: talk, hold, conference, refer.
Session-Expires: 120;refresher=uas.
Min-SE: 120.
Content-Type: application/sdp.
Content-Disposition: session.
Content-Length: 242.
Remote-Party-ID: "9198" <sip:9198 at 10.162.26.23>;party=calling;privacy=off;screen=no.
.

#
U 2014/04/23 10:45:47.817466 10.162.26.23:5060 -> 10.168.154.30:5060
SIP/2.0 200 OK.
Via: SIP/2.0/UDP 10.168.154.30:5060;rport=5060;received=10.168.154.30;branch=z9hG4bK6ab20380.
Record-Route: <sip:10.162.26.23;lr;did=6b8.63d603c3>.
From: "TEST EXT 1235" <sip:1235 at 10.162.26.23>;tag=68bc0c81e0bd00a57cad4544-659b5f36.
To: <sip:*9198 at 10.162.26.23>;tag=p0Bc0t7jFvUyH.
Call-ID: 68bc0c81-e0bd0013-46115a26-29fb4637 at 10.168.154.30.
CSeq: 102 INVITE.
Contact: <sip:*9198 at 10.162.26.22:5090;transport=udp>.
User-Agent: FreeSWITCH-mod_sofia/1.5.12b+git~20140407T192730Z~d6fa81b4b7~64bit.
Accept: application/sdp.
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY.
Supported: timer, path, replaces.
Allow-Events: talk, hold, conference, refer.
Session-Expires: 120;refresher=uas.
Min-SE: 120.
Content-Type: application/sdp.
Content-Disposition: session.
Content-Length: 261.
Remote-Party-ID: "9198" <sip:9198 at 10.162.26.23>;party=calling;privacy=off;screen=no.
.

#
U 2014/04/23 10:45:47.898003 10.168.154.30:5060 -> 10.162.26.23:5060
ACK sip:*9198 at 10.162.26.22:5090;transport=udp;did=6b8.63d603c3 SIP/2.0.
Via: SIP/2.0/UDP 10.168.154.30:5060;branch=z9hG4bK47d10b63.
From: "TEST EXT 1235" <sip:1235 at 10.162.26.23>;tag=68bc0c81e0bd00a57cad4544-659b5f36.
To: <sip:*9198 at 10.162.26.23>;tag=p0Bc0t7jFvUyH.
Call-ID: 68bc0c81-e0bd0013-46115a26-29fb4637 at 10.168.154.30.
Max-Forwards: 70.
Date: Fri, 01 Jan 1982 23:58:05 GMT.
CSeq: 102 ACK.
User-Agent: Cisco-CP9971/9.4.1.
Route: <sip:10.162.26.23:5060;lr;did=6b8.63d603c3>.
Proxy-Authorization: Digest username="1235",realm="10.162.26.23",uri="sip:*9198 at 10.162.26.23;user=phone",response="45f9e49963e222952476bb9fa5ad2aff",nonce="5357d2390000001f3848549762909078089786172aa403c6",algorithm=md5.
Content-Length: 0.
.

#
U 2014/04/23 10:45:47.898374 10.162.26.23:5060 -> 10.162.26.23:5060
ACK sip:10.162.26.23:5060;lr;did=6b8.63d603c3 SIP/2.0.
Via: SIP/2.0/UDP 10.162.26.23:5060;branch=z9hG4bK687.d94907a.2.
Via: SIP/2.0/UDP 10.168.154.30:5060;rport=5060;received=10.168.154.30;branch=z9hG4bK47d10b63.
From: "TEST EXT 1235" <sip:1235 at 10.162.26.23>;tag=68bc0c81e0bd00a57cad4544-659b5f36.
To: <sip:*9198 at 10.162.26.23>;tag=p0Bc0t7jFvUyH.
Call-ID: 68bc0c81-e0bd0013-46115a26-29fb4637 at 10.168.154.30.
Max-Forwards: 69.
Date: Fri, 01 Jan 1982 23:58:05 GMT.
CSeq: 102 ACK.
User-Agent: Cisco-CP9971/9.4.1.
Proxy-Authorization: Digest username="1235",realm="10.162.26.23",uri="sip:*9198 at 10.162.26.23;user=phone",response="45f9e49963e222952476bb9fa5ad2aff",nonce="5357d2390000001f3848549762909078089786172aa403c6",algorithm=md5.
Content-Length: 0.


More information about the Users mailing list