[OpenSIPS-Users] Call Pickup not working for Outbound to Inbound calls
Bogdan-Andrei Iancu
bogdan at voice-system.ro
Wed Jul 7 10:51:32 CEST 2010
Hi,
The INVITE (to pick the call) has a REPLACE header pointing to an
existing call (callid + tags) - the problem is that this new INVITE is
routed to an Asterisk PBX that has no idea about the call it tried to
REPLACE.
Check if the replaced and replacing calls are on the same Asterisk.
Regards,
Bogdan
osiris123d wrote:
> I successfully have Call Pickup working between internal users but when I
> have a PSTN user call Internal User A and then Internal User B tries to do a
> call pickup I get a "481 call leg does not exist". When the PSTN call comes
> in from my Vitelity SIP provider I see that they support the following
>
> Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
> Supported: replaces.
>
> Is what I am trying to do possible? Here is a sip trace of the issue (it
> starts with Internal User B sending the invite to try and pickup the call
> from the PSTN user to User A)
>
> U 2010/07/05 21:35:23.016955 75.x.x.158:1025 -> 173.x.x.134:5060
> INVITE sip:9xx83x3xx2 at 64.2.142.15 SIP/2.0.
> Via: SIP/2.0/UDP 192.168.0.12:2077;branch=z9hG4bK-2peqfmxxyu5c;rport.
> From: "Blah 2001" <sip:9xx27x2xx1 at irock.com>;tag=oydxjqj42f.
> To: <sip:9xx83x3xx2 at 64.2.142.15>.
> Call-ID: 3c27c0c40a8e-c8exk4s3gwo5.
> CSeq: 1 INVITE.
> Max-Forwards: 70.
> Contact: <sip:9xx27x2xx1 at 192.168.0.12:2077;line=dkpvlkre>;reg-id=1.
> Replaces:
> 4df4f89829fad0997025b2d5532d7bdf at 64.2.142.15;to-tag=as55840b13;from-tag=5667c613.
> X-Serialnumber: 0004132314FF.
> P-Key-Flags: resolution="31x13", keys="4".
> User-Agent: snom360/8.2.29.
> Accept: application/sdp.
> Allow: INVITE, ACK, CANCEL, BYE, REFER, OPTIONS, NOTIFY, SUBSCRIBE, PRACK,
> MESSAGE, INFO, UPDATE.
> Allow-Events: talk, hold, refer, call-info.
> Supported: timer, 100rel, replaces, from-change.
> Session-Expires: 3600;refresher=uas.
> Min-SE: 90.
> Content-Type: application/sdp.
> Content-Length: 391.
> .
> v=0.
> o=root 454576176 454576176 IN IP4 192.168.0.12.
> s=call.
> c=IN IP4 192.168.0.12.
> t=0 0.
> m=audio 50978 RTP/AVP 0 8 9 103 3 18 4 101.
> a=rtpmap:0 pcmu/8000.
> a=rtpmap:8 pcma/8000.
> a=rtpmap:9 g722/8000.
> a=rtpmap:103 g726-32/8000.
> a=rtpmap:3 gsm/8000.
> a=rtpmap:18 g729/8000.
> a=fmtp:18 annexb=no.
> a=rtpmap:4 g723/8000.
> a=rtpmap:101 telephone-event/8000.
> a=fmtp:101 0-16.
> a=ptime:20.
> a=sendrecv.
>
> #
> U 2010/07/05 21:35:23.018808 173.x.x.134:5060 -> 75.x.x.158:1025
> SIP/2.0 407 Proxy Authentication Required.
> Via: SIP/2.0/UDP
> 192.168.0.12:2077;branch=z9hG4bK-2peqfmxxyu5c;rport=1025;received=75.x.x.158.
> From: "Blah 2001" <sip:9xx27x2xx1 at irock.com>;tag=oydxjqj42f.
> To: <sip:9xx83x3xx2 at 64.2.142.15>;tag=fa9ad7a35cf4c9d5a26f33f3220f505e.db11.
> Call-ID: 3c27c0c40a8e-c8exk4s3gwo5.
> CSeq: 1 INVITE.
> Proxy-Authenticate: Digest realm="irock.com",
> nonce="4c32968970613f35e44f447288865f39b1af9c25", qop="auth".
> Server: AE SIP Proxy.
> Content-Length: 0.
> .
>
> #
> U 2010/07/05 21:35:23.092585 75.x.x.158:1025 -> 173.x.x.134:5060
> ACK sip:9xx83x3xx2 at 64.2.142.15 SIP/2.0.
> Via: SIP/2.0/UDP 192.168.0.12:2077;branch=z9hG4bK-2peqfmxxyu5c;rport.
> From: "Blah 2001" <sip:9xx27x2xx1 at irock.com>;tag=oydxjqj42f.
> To: <sip:9xx83x3xx2 at 64.2.142.15>;tag=fa9ad7a35cf4c9d5a26f33f3220f505e.db11.
> Call-ID: 3c27c0c40a8e-c8exk4s3gwo5.
> CSeq: 1 ACK.
> Max-Forwards: 70.
> Contact: <sip:9xx27x2xx1 at 192.168.0.12:2077;line=dkpvlkre>;reg-id=1.
> Content-Length: 0.
> .
>
> #
> U 2010/07/05 21:35:23.109251 75.x.x.158:1025 -> 173.x.x.134:5060
> INVITE sip:9xx83x3xx2 at 64.2.142.15 SIP/2.0.
> Via: SIP/2.0/UDP 192.168.0.12:2077;branch=z9hG4bK-whzk6bav7ueb;rport.
> From: "Blah 2001" <sip:9xx27x2xx1 at irock.com>;tag=oydxjqj42f.
> To: <sip:9xx83x3xx2 at 64.2.142.15>.
> Call-ID: 3c27c0c40a8e-c8exk4s3gwo5.
> CSeq: 2 INVITE.
> Max-Forwards: 70.
> Contact: <sip:9xx27x2xx1 at 192.168.0.12:2077;line=dkpvlkre>;reg-id=1.
> Replaces:
> 4df4f89829fad0997025b2d5532d7bdf at 64.2.142.15;to-tag=as55840b13;from-tag=5667c613.
> X-Serialnumber: 0004132314FF.
> P-Key-Flags: resolution="31x13", keys="4".
> User-Agent: snom360/8.2.29.
> Accept: application/sdp.
> Allow: INVITE, ACK, CANCEL, BYE, REFER, OPTIONS, NOTIFY, SUBSCRIBE, PRACK,
> MESSAGE, INFO, UPDATE.
> Allow-Events: talk, hold, refer, call-info.
> Supported: timer, 100rel, replaces, from-change.
> Session-Expires: 3600;refresher=uas.
> Min-SE: 90.
> Proxy-Authorization: Digest
> username="9xx27x2xx1",realm="irock.com",nonce="4c32968970613f35e44f447288865f39b1af9c25",uri="sip:9xx83x3xx2 at 64.2.142.15",qop=auth,nc=00000001,cnonce="79abe95f",response="1fd49a7fdf2da6c8f8e5728bc69b49fc",algorithm=MD5.
> Content-Type: application/sdp.
> Content-Length: 391.
> .
> v=0.
> o=root 454576176 454576176 IN IP4 192.168.0.12.
> s=call.
> c=IN IP4 192.168.0.12.
> t=0 0.
> m=audio 50978 RTP/AVP 0 8 9 103 3 18 4 101.
> a=rtpmap:0 pcmu/8000.
> a=rtpmap:8 pcma/8000.
> a=rtpmap:9 g722/8000.
> a=rtpmap:103 g726-32/8000.
> a=rtpmap:3 gsm/8000.
> a=rtpmap:18 g729/8000.
> a=fmtp:18 annexb=no.
> a=rtpmap:4 g723/8000.
> a=rtpmap:101 telephone-event/8000.
> a=fmtp:101 0-16.
> #
> U 2010/07/05 21:35:23.129530 173.x.x.134:5060 -> 173.x.x.134:5060
> PUBLISH sip:9xx27x2xx1 at irock.com SIP/2.0.
> Via: SIP/2.0/UDP 173.x.x.134;branch=z9hG4bK3d0b.b751b896.0.
> To: sip:9xx27x2xx1 at irock.com.
> From: <sip:9xx27x2xx1 at irock.com>;tag=144b207508c0e0296792f226e399eaf5-1cb8.
> CSeq: 10 PUBLISH.
> Call-ID: 41d706004e80f741-32346 at 173.x.x.134.
> Content-Length: 485.
> User-Agent: OpenSIPS (1.6.2-notls (x86_64/linux)).
> Max-Forwards: 70.
> Event: dialog.
> Expires: 3601.
> Content-Type: application/dialog-info+xml.
> .
> <?xml version="1.0"?>
> <dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" version="0"
> state="full" entity="sip:9xx27x2xx1 at irock.com"><dialog
> id="3c27c0c40a8e-c8exk4s3gwo5" call-id="3c27c0c40a8e-c8exk4s3gwo5"
> direction="initiator"><state>trying</state><remote><identity>sip:9xx83x3xx2 at 64.2.142.15</identity><target
> uri="sip:9xx83x3xx2 at 64.2.142.15"/></remote><local><identity>sip:9xx27x2xx1 at irock.com</identity><target
> uri="sip:9xx27x2xx1 at irock.com"/></local></dialog></dialog-info>
>
> #
> U 2010/07/05 21:35:23.134007 173.x.x.134:5060 -> 173.x.x.134:5060
> SIP/2.0 200 OK.
> Via: SIP/2.0/UDP 173.x.x.134;branch=z9hG4bK3d0b.b751b896.0.
> To: sip:9xx27x2xx1 at irock.com;tag=a93952c7ce25f579a59b9db9d9acf225-6f03.
> From: <sip:9xx27x2xx1 at irock.com>;tag=144b207508c0e0296792f226e399eaf5-1cb8.
> CSeq: 10 PUBLISH.
> Call-ID: 41d706004e80f741-32346 at 173.x.x.134.
> Expires: 3600.
> SIP-ETag: a.1278333080.32345.74.0.
> Server: AE SIP Proxy.
> Content-Length: 0.
> .
>
> #
> U 2010/07/05 21:35:23.135708 173.x.x.134:5060 -> 75.x.x.158:1025
> NOTIFY sip:9xx27x2xx1 at 75.x.x.158:1025;line=dkpvlkre SIP/2.0.
> Via: SIP/2.0/UDP 173.x.x.134;branch=z9hG4bK9b38.fac2538.0.
> To: <sip:9xx27x2xx1 at irock.com>;tag=vri90l495g.
> From: <sip:9xx27x2xx1 at irock.com>;tag=a93952c7ce25f579a59b9db9d9acf225-09f0.
> CSeq: 87 NOTIFY.
> Call-ID: 3c26702093d4-homlrpngufmc.
> Content-Length: 551.
> User-Agent: OpenSIPS (1.6.2-notls (x86_64/linux)).
> Max-Forwards: 70.
> Event: dialog.
> Contact: <sip:173.x.x.134:5060>.
> Subscription-State: active;expires=3031.
> Content-Type: application/dialog-info+xml.
> .
> <?xml version="1.0"?>
> <dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" version="86"
> state="full" entity="9xx27x2xx1 at irock.com">
> <dialog id="3c27c0c40a8e-c8exk4s3gwo5" call-id="3c27c0c40a8e-c8exk4s3gwo5"
> direction="initiator">
> <state>trying</state>
> <remote>
> <identity>sip:9xx83x3xx2 at 64.2.142.15</identity>
> <target uri="sip:9xx83x3xx2 at 64.2.142.15"/>
> </remote>
> <local>
> <identity>sip:9xx27x2xx1 at irock.com</identity>
> <target uri="sip:9xx27x2xx1 at irock.com"/>
> </local>
> </dialog>
> </dialog-info>
>
> #
> U 2010/07/05 21:35:23.136540 173.x.x.134:5060 -> 75.x.x.158:2078
> NOTIFY sip:9xx27x2xx0 at 75.x.x.158:2078;line=b0k3fvw1 SIP/2.0.
> Via: SIP/2.0/UDP 173.x.x.134;branch=z9hG4bKa797.c6163445.0.
> To: <sip:9xx27x2xx0 at irock.com>;tag=uliuf4ldc3.
> From: <sip:9xx27x2xx1 at irock.com>;tag=a93952c7ce25f579a59b9db9d9acf225-529c.
> CSeq: 84 NOTIFY.
> Call-ID: 3c26701f776b-gq3wlg8vrtmb.
> Content-Length: 551.
> User-Agent: OpenSIPS (1.6.2-notls (x86_64/linux)).
> Max-Forwards: 70.
> Event: dialog.
> Contact: <sip:173.x.x.134:5060>.
> Subscription-State: active;expires=2050.
> Content-Type: application/dialog-info+xml.
> .
> <?xml version="1.0"?>
> <dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" version="83"
> state="full" entity="9xx27x2xx1 at irock.com">
> <dialog id="3c27c0c40a8e-c8exk4s3gwo5" call-id="3c27c0c40a8e-c8exk4s3gwo5"
> direction="initiator">
> <state>trying</state>
> <remote>
> <identity>sip:9xx83x3xx2 at 64.2.142.15</identity>
> <target uri="sip:9xx83x3xx2 at 64.2.142.15"/>
> </remote>
> <local>
> <identity>sip:9xx27x2xx1 at irock.com</identity>
> <target uri="sip:9xx27x2xx1 at irock.com"/>
> </local>
> </dialog>
> </dialog-info>
>
> #
> U 2010/07/05 21:35:23.166721 173.x.x.134:5060 -> 75.x.x.158:2078
> ....
> #
> U 2010/07/05 21:35:23.192674 173.x.x.134:5060 -> 75.x.x.158:1025
> SIP/2.0 100 Giving a try.
> Via: SIP/2.0/UDP
> 192.168.0.12:2077;branch=z9hG4bK-whzk6bav7ueb;rport=1025;received=75.x.x.158.
> From: "Blah 2001" <sip:9xx27x2xx1 at irock.com>;tag=oydxjqj42f.
> To: <sip:9xx83x3xx2 at 64.2.142.15>.
> Call-ID: 3c27c0c40a8e-c8exk4s3gwo5.
> CSeq: 2 INVITE.
> Server: AE SIP Proxy.
> Content-Length: 0.
> .
>
> #
> U 2010/07/05 21:35:23.256504 75.x.x.158:2078 -> 173.x.x.134:5060
> SIP/2.0 200 Ok.
> Via: SIP/2.0/UDP 173.x.x.134;branch=z9hG4bKa797.c6163445.0.
> From: <sip:9xx27x2xx1 at irock.com>;tag=a93952c7ce25f579a59b9db9d9acf225-529c.
> To: <sip:9xx27x2xx0 at irock.com>;tag=uliuf4ldc3.
> Call-ID: 3c26701f776b-gq3wlg8vrtmb.
> CSeq: 84 NOTIFY.
> Content-Length: 0.
> .
>
> #
> U 2010/07/05 21:35:23.260336 75.x.x.158:1025 -> 173.x.x.134:5060
> SIP/2.0 200 Ok.
> Via: SIP/2.0/UDP 173.x.x.134;branch=z9hG4bK9b38.fac2538.0.
> From: <sip:9xx27x2xx1 at irock.com>;tag=a93952c7ce25f579a59b9db9d9acf225-09f0.
> To: <sip:9xx27x2xx1 at irock.com>;tag=vri90l495g.
> Call-ID: 3c26702093d4-homlrpngufmc.
> CSeq: 87 NOTIFY.
> Content-Length: 0.
> .
>
> #
> U 2010/07/05 21:35:23.270298 173.x.x.134:5060 -> 64.2.142.93:5060
> INVITE sip:19xx83x3xx2 at pt1.vitelity.net:5060 SIP/2.0.
> Record-Route:
> <sip:173.x.x.134;lr=on;ftag=oydxjqj42f;nat=yes;did=dc3.d5d7dc11>.
> Via: SIP/2.0/UDP 173.x.x.134;branch=z9hG4bK104b.eef8e637.0.
> Via: SIP/2.0/UDP
> 192.168.0.12:2077;received=75.x.x.158;branch=z9hG4bK-whzk6bav7ueb;rport=1025.
> From: "Blah 2001" <sip:9xx27x2xx1 at irock.com>;tag=oydxjqj42f.
> To: <sip:9xx83x3xx2 at 64.2.142.15>.
> Call-ID: 3c27c0c40a8e-c8exk4s3gwo5.
> CSeq: 2 INVITE.
> Max-Forwards: 69.
> Contact: <sip:9xx27x2xx1 at 75.x.x.158:1025;line=dkpvlkre>;reg-id=1.
> Replaces:
> 4df4f89829fad0997025b2d5532d7bdf at 64.2.142.15;to-tag=as55840b13;from-tag=5667c613.
> X-Serialnumber: 0004132314FF.
> P-Key-Flags: resolution="31x13", keys="4".
> User-Agent: snom360/8.2.29.
> Accept: application/sdp.
> Allow: INVITE, ACK, CANCEL, BYE, REFER, OPTIONS, NOTIFY, SUBSCRIBE, PRACK,
> MESSAGE, INFO, UPDATE.
> Allow-Events: talk, hold, refer, call-info.
> Supported: timer, 100rel, replaces, from-change.
> Session-Expires: 3600;refresher=uas.
> Min-SE: 90.
> Content-Type: application/sdp.
> Content-Length: 391.
> P-hint: route(3)|setflag7,forcerport,fix_contact.
> P-hint: inbound->outbound .
> .
> v=0.
> o=root 454576176 454576176 IN IP4 192.168.0.12.
> s=call.
> c=IN IP4 192.168.0.12.
> t=0 0.
> m=audio 50978 RTP/AVP 0 8 9 103 3 18 4 101.
> a=rtpmap:0 pcmu/8000.
> a=rtpmap:8 pcma/8000.
> a=rtpmap:9 g722/8000.
> a=rtpmap:103 g726-32/8000.
> a=rtpmap:3 gsm/8000.
> a=rtpmap:18 g729/8000.
> a=fmtp:18 annexb=no.
> a=rtpmap:4 g723/8000.
> a=rtpmap:101 telephone-event/8000.
> a=fm
> #
> U 2010/07/05 21:35:23.305694 64.2.142.93:5060 -> 173.x.x.134:5060
> SIP/2.0 100 Giving a try.
> Via: SIP/2.0/UDP 173.x.x.134;branch=z9hG4bK104b.eef8e637.0;rport=5060.
> Via: SIP/2.0/UDP
> 192.168.0.12:2077;received=75.x.x.158;branch=z9hG4bK-whzk6bav7ueb;rport=1025.
> From: "Blah 2001" <sip:9xx27x2xx1 at irock.com>;tag=oydxjqj42f.
> To: <sip:9xx83x3xx2 at 64.2.142.15>.
> Call-ID: 3c27c0c40a8e-c8exk4s3gwo5.
> CSeq: 2 INVITE.
> Content-Length: 0.
> .
>
> #
> U 2010/07/05 21:35:23.306369 64.2.142.93:5060 -> 173.x.x.134:5060
> SIP/2.0 481 Call Leg Does Not Exist (Replaces).
> Via: SIP/2.0/UDP
> 173.x.x.134;rport=5060;received=173.x.x.134;branch=z9hG4bK104b.eef8e637.0.
> Via: SIP/2.0/UDP
> 192.168.0.12:2077;received=75.x.x.158;branch=z9hG4bK-whzk6bav7ueb;rport=1025.
> From: "Blah 2001" <sip:9xx27x2xx1 at irock.com>;tag=oydxjqj42f.
> To: <sip:9xx83x3xx2 at 64.2.142.15>;tag=as27aa6c7c.
> Call-ID: 3c27c0c40a8e-c8exk4s3gwo5.
> CSeq: 2 INVITE.
> User-Agent: Asterisk PBX.
> Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO.
> Supported: replaces.
> Content-Length: 0.
>
--
Bogdan-Andrei Iancu
OpenSIPS Bootcamp
20 - 24 September 2010, Frankfurt, Germany
www.voice-system.ro
More information about the Users
mailing list