[Freeswitch-users] SIP-Client / IOS / PJSIP / Error when CANCEL
Thorsten Göllner
tg-maillistings at level5.de
Thu Sep 7 13:43:14 UTC 2017
Hi Peter,
thanks so far. But why is the Contact: header changed (by pjsip?) when
switching from TCP/UDP to UDP-only? I am not sure for now but I don't
think, that our developer changed the Contact: header explicitly.
Best regards,
Thorsten
Am 07.09.2017 um 13:40 schrieb Peter Steinbach:
> Hello Thorsten
>
> this is often caused by changed Contact: header in your SIP dialog. In
> your case the 2 Invites have:
> Contact: <sip:102 at 77.119.248.251>
> Contact: <sip:102 at 192.168.178.110:5060;ob>
>
> So this will not work.
>
> Best regards from Germany
> Peter
>
>
> On 09/07/17 13:19, Thorsten Göllner wrote:
>> Hi,
>>
>> currently we are developing a SIP-Client for iOS (using PJSIP/PJSUA with
>> the current version). We use Freeswitch 1.6.18 (64 bit) on a bare metal
>> server. Windows-Clients (such as Blink or Zoiper) work fine. And our
>> iOS-App works fine also. BUT when we initialze an outgoing call, wait
>> for ringing on the other hand and hangup up when it's ringing, we face
>> an error. Freeswitch gives us "481 Call/Transaction Does Not Exist".
>>
>> I attached the corresponding SIP-Trace and you can see the error at the
>> last block.
>>
>> The interesting thing: If we activate PJSIP with TCP and(!) UDP we face
>> the error. BUT when we use only UDP it works fine.
>>
>> Is it a bug within PJSIP? Or anyone see an hint wihtin the SIP-Trace?
>>
>> Thanks in advance!
>>
>> recv 1247 bytes from udp/[77.119.248.251]:5060 at 11:36:21.330337:
>> ------------------------------------------------------------------------
>> INVITE sip:+436641540180 at telequest-occ.0049.org SIP/2.0
>> Via: SIP/2.0/UDP
>> 77.119.248.251:5060;branch=z9hG4bK4b69df210aa918eb70770f8f50681c51
>> Via: SIP/2.0/UDP
>> 192.168.178.110:5060;rport;branch=z9hG4bKPjBP3AvciR4ifGE8V3KBSuxInUNOQN8VLh
>> From:
>> <sip:102 at telequest-occ.0049.org>;tag=DDna03R3v1t0hJut1phv2uhb4OxBMYnu
>> To: <sip:+436641540180 at telequest-occ.0049.org>
>> Call-ID: VQlDTx2IUOlzd5QZuZHdLoqbyOGtmO1Z
>> CSeq: 17632 INVITE
>> Contact: <sip:102 at 77.119.248.251>
>> max-forwards: 69
>> supported: replaces
>> supported: 100rel
>> supported: timer
>> supported: norefersub
>> session-expires: 1800
>> min-se: 90
>> user-agent: AdCall
>> Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE,
>> NOTIFY, REFER, MESSAGE, OPTIONS
>> Content-Type: application/sdp
>> Content-Length: 480
>>
>> v=0
>> o=- 3713765781 3713765781 IN IP4 77.119.248.251
>> s=pjmedia
>> b=AS:84
>> t=0 0
>> a=X-nat:0
>> m=audio 7070 RTP/AVP 98 97 99 104 3 0 8 9 96
>> c=IN IP4 77.119.248.251
>> b=TIAS:64000
>> a=rtcp:4001 IN IP4 192.168.178.110
>> a=sendrecv
>> a=rtpmap:98 speex/16000
>> a=rtpmap:97 speex/8000
>> a=rtpmap:99 speex/32000
>> a=rtpmap:104 iLBC/8000
>> a=fmtp:104 mode=30
>> a=rtpmap:3 GSM/8000
>> a=rtpmap:0 PCMU/8000
>> a=rtpmap:8 PCMA/8000
>> a=rtpmap:9 G722/8000
>> a=rtpmap:96 telephone-event/8000
>> a=fmtp:96 0-16
>> ------------------------------------------------------------------------
>> send 432 bytes to udp/[77.119.248.251]:5060 at 11:36:21.330679:
>> ------------------------------------------------------------------------
>> SIP/2.0 100 Trying
>> Via: SIP/2.0/UDP
>> 77.119.248.251:5060;branch=z9hG4bK4b69df210aa918eb70770f8f50681c51
>> Via: SIP/2.0/UDP
>> 192.168.178.110:5060;rport;branch=z9hG4bKPjBP3AvciR4ifGE8V3KBSuxInUNOQN8VLh
>> From:
>> <sip:102 at telequest-occ.0049.org>;tag=DDna03R3v1t0hJut1phv2uhb4OxBMYnu
>> To: <sip:+436641540180 at telequest-occ.0049.org>
>> Call-ID: VQlDTx2IUOlzd5QZuZHdLoqbyOGtmO1Z
>> CSeq: 17632 INVITE
>> User-Agent: FreeSWITCH
>> Content-Length: 0
>>
>> ------------------------------------------------------------------------
>> send 945 bytes to udp/[77.119.248.251]:5060 at 11:36:21.331652:
>> ------------------------------------------------------------------------
>> SIP/2.0 407 Proxy Authentication Required
>> Via: SIP/2.0/UDP
>> 77.119.248.251:5060;branch=z9hG4bK4b69df210aa918eb70770f8f50681c51
>> Via: SIP/2.0/UDP
>> 192.168.178.110:5060;rport;branch=z9hG4bKPjBP3AvciR4ifGE8V3KBSuxInUNOQN8VLh
>> From:
>> <sip:102 at telequest-occ.0049.org>;tag=DDna03R3v1t0hJut1phv2uhb4OxBMYnu
>> To: <sip:+436641540180 at telequest-occ.0049.org>;tag=0FgQ57apej24p
>> Call-ID: VQlDTx2IUOlzd5QZuZHdLoqbyOGtmO1Z
>> CSeq: 17632 INVITE
>> User-Agent: FreeSWITCH
>> Accept: application/sdp
>> Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE,
>> REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
>> Supported: timer, path, replaces
>> Allow-Events: talk, hold, conference, presence, as-feature-event,
>> dialog, line-seize, call-info, sla, include-session-description,
>> presence.winfo, message-summary, refer
>> Proxy-Authenticate: Digest realm="telequest-occ.0049.org",
>> nonce="01e39fee-93b0-11e7-9b0b-45e8f1c3918a", algorithm=MD5, qop="auth"
>> Content-Length: 0
>>
>> ------------------------------------------------------------------------
>> recv 475 bytes from udp/[77.119.248.251]:5060 at 11:36:21.409776:
>> ------------------------------------------------------------------------
>> ACK sip:+436641540180 at telequest-occ.0049.org SIP/2.0
>> Via: SIP/2.0/UDP
>> 77.119.248.251:5060;branch=z9hG4bK4b69df210aa918eb70770f8f50681c51
>> Via: SIP/2.0/UDP
>> 192.168.178.110:5060;rport;branch=z9hG4bKPjBP3AvciR4ifGE8V3KBSuxInUNOQN8VLh
>> From:
>> <sip:102 at telequest-occ.0049.org>;tag=DDna03R3v1t0hJut1phv2uhb4OxBMYnu
>> To: <sip:+436641540180 at telequest-occ.0049.org>;tag=0FgQ57apej24p
>> Call-ID: VQlDTx2IUOlzd5QZuZHdLoqbyOGtmO1Z
>> CSeq: 17632 ACK
>> max-forwards: 69
>> Content-Length: 0
>>
>> ------------------------------------------------------------------------
>> recv 1439 bytes from tcp/[77.119.248.251]:60186 at 11:36:21.457742:
>> ------------------------------------------------------------------------
>> INVITE sip:+436641540180 at telequest-occ.0049.org SIP/2.0
>> Via: SIP/2.0/TCP
>> 192.168.178.110:60186;rport;branch=z9hG4bKPj4mpXCeY7uNSlFOUvRXIvfftWSq9PQE-7;alias
>> Max-Forwards: 70
>> From: sip:102 at telequest-occ.0049.org;tag=DDna03R3v1t0hJut1phv2uhb4OxBMYnu
>> To: sip:+436641540180 at telequest-occ.0049.org
>> Contact: <sip:102 at 192.168.178.110:5060;ob>
>> Call-ID: VQlDTx2IUOlzd5QZuZHdLoqbyOGtmO1Z
>> CSeq: 17633 INVITE
>> Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE,
>> NOTIFY, REFER, MESSAGE, OPTIONS
>> Supported: replaces, 100rel, timer, norefersub
>> Session-Expires: 1800
>> Min-SE: 90
>> User-Agent: AdCall
>> Proxy-Authorization: Digest username="102",
>> realm="telequest-occ.0049.org",
>> nonce="01e39fee-93b0-11e7-9b0b-45e8f1c3918a",
>> uri="sip:+436641540180 at telequest-occ.0049.org",
>> response="c7fef167bd3ecc40bdaeaaef9c9b8085", algorithm=MD5,
>> cnonce="raNBupUIEw5CyLL8MQbvYrk5txEd3Zep", qop=auth, nc=00000001
>> Content-Type: application/sdp
>> Content-Length: 482
>>
>> v=0
>> o=- 3713765781 3713765781 IN IP4 192.168.178.110
>> s=pjmedia
>> b=AS:84
>> t=0 0
>> a=X-nat:0
>> m=audio 4000 RTP/AVP 98 97 99 104 3 0 8 9 96
>> c=IN IP4 192.168.178.110
>> b=TIAS:64000
>> a=rtcp:4001 IN IP4 192.168.178.110
>> a=sendrecv
>> a=rtpmap:98 speex/16000
>> a=rtpmap:97 speex/8000
>> a=rtpmap:99 speex/32000
>> a=rtpmap:104 iLBC/8000
>> a=fmtp:104 mode=30
>> a=rtpmap:3 GSM/8000
>> a=rtpmap:0 PCMU/8000
>> a=rtpmap:8 PCMA/8000
>> a=rtpmap:9 G722/8000
>> a=rtpmap:96 telephone-event/8000
>> a=fmtp:96 0-16
>> ------------------------------------------------------------------------
>> send 380 bytes to tcp/[77.119.248.251]:60186 at 11:36:21.457978:
>> ------------------------------------------------------------------------
>> SIP/2.0 100 Trying
>> Via: SIP/2.0/TCP
>> 192.168.178.110:60186;rport=60186;branch=z9hG4bKPj4mpXCeY7uNSlFOUvRXIvfftWSq9PQE-7;alias;received=77.119.248.251
>> From: sip:102 at telequest-occ.0049.org;tag=DDna03R3v1t0hJut1phv2uhb4OxBMYnu
>> To: sip:+436641540180 at telequest-occ.0049.org
>> Call-ID: VQlDTx2IUOlzd5QZuZHdLoqbyOGtmO1Z
>> CSeq: 17633 INVITE
>> User-Agent: FreeSWITCH
>> Content-Length: 0
>>
>> ------------------------------------------------------------------------
>> send 1193 bytes to tcp/[77.119.248.251]:60186 at 11:36:24.966185:
>> ------------------------------------------------------------------------
>> SIP/2.0 183 Session Progress
>> Via: SIP/2.0/TCP
>> 192.168.178.110:60186;rport=60186;branch=z9hG4bKPj4mpXCeY7uNSlFOUvRXIvfftWSq9PQE-7;alias;received=77.119.248.251
>> From: sip:102 at telequest-occ.0049.org;tag=DDna03R3v1t0hJut1phv2uhb4OxBMYnu
>> To: <sip:+436641540180 at telequest-occ.0049.org>;tag=1r9F72USBUrQj
>> Call-ID: VQlDTx2IUOlzd5QZuZHdLoqbyOGtmO1Z
>> CSeq: 17633 INVITE
>> Contact: <sip:+436641540180 at 88.217.132.183:5060;transport=udp>
>> User-Agent: FreeSWITCH
>> Accept: application/sdp
>> Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE,
>> REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
>> Supported: timer, path, replaces
>> Allow-Events: talk, hold, conference, presence, as-feature-event,
>> dialog, line-seize, call-info, sla, include-session-description,
>> presence.winfo, message-summary, refer
>> Content-Type: application/sdp
>> Content-Disposition: session
>> Content-Length: 203
>> Remote-Party-ID: "+436641540180"
>> <sip:+436641540180 at telequest-occ.0049.org>;party=calling;privacy=off;screen=no
>>
>> v=0
>> o=FreeSWITCH 1504753876 1504753877 IN IP4 88.217.132.183
>> s=FreeSWITCH
>> c=IN IP4 88.217.132.183
>> t=0 0
>> m=audio 23108 RTP/AVP 3
>> a=rtpmap:3 GSM/8000
>> a=ptime:20
>> a=rtcp:23109 IN IP4 88.217.132.183
>> ------------------------------------------------------------------------
>> recv 401 bytes from tcp/[77.119.248.251]:60186 at 11:36:28.869708:
>> ------------------------------------------------------------------------
>> CANCEL sip:+436641540180 at telequest-occ.0049.org SIP/2.0
>> Via: SIP/2.0/TCP
>> 192.168.178.110:5060;rport;branch=z9hG4bKPj4mpXCeY7uNSlFOUvRXIvfftWSq9PQE-7;alias
>> Max-Forwards: 70
>> From: sip:102 at telequest-occ.0049.org;tag=DDna03R3v1t0hJut1phv2uhb4OxBMYnu
>> To: sip:+436641540180 at telequest-occ.0049.org
>> Call-ID: VQlDTx2IUOlzd5QZuZHdLoqbyOGtmO1Z
>> CSeq: 17633 CANCEL
>> User-Agent: AdCall
>> Content-Length: 0
>>
>> ------------------------------------------------------------------------
>> send 400 bytes to tcp/[77.119.248.251]:60186 at 11:36:28.869807:
>> ------------------------------------------------------------------------
>> SIP/2.0 481 Call/Transaction Does Not Exist
>> Via: SIP/2.0/TCP
>> 192.168.178.110:5060;rport=60186;branch=z9hG4bKPj4mpXCeY7uNSlFOUvRXIvfftWSq9PQE-7;alias;received=77.119.248.251
>> From: sip:102 at telequest-occ.0049.org;tag=DDna03R3v1t0hJut1phv2uhb4OxBMYnu
>> To: <sip:+436641540180 at telequest-occ.0049.org>;tag=1r9F72USBUrQj
>> Call-ID: VQlDTx2IUOlzd5QZuZHdLoqbyOGtmO1Z
>> CSeq: 17633 CANCEL
>> Content-Length: 0
>>
>> ------------------------------------------------------------------------
>>
>> Best regards,
>> Thorsten
>>
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://confluence.freeswitch.org
>> http://www.cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>
More information about the FreeSWITCH-users
mailing list