I have a twilio E2E implemented on Android.
In incoming call, when I answer the call, automatically the "CancelCallInvite" is raised.
Oddly, AcceptCallInvite is also being raised.
It results in inconsistent behavior.
Any reason why the "CancellCallInvite" is being raised.
Follow are the detailed logs
`
2022-12-11 20:53:19.058 31878-3800/com.testD/Twilio: [Core](468292013232): <0xb400006e3a27cc90> RtcMonitor
2022-12-11 20:53:19.058 31878-3800/com.testD/Twilio: [Core](468292013232): API Call getFrom
2022-12-11 20:53:19.058 31878-3800/com.testD/Twilio: [Core](468292013232): listen
2022-12-11 20:53:19.058 31878-3800/com.testD/Twilio: [Core](468292013232): API Call getFrom
2022-12-11 20:53:19.058 31878-3800/com.testD/Twilio: [Core](468292013232): API Call getTo
2022-12-11 20:53:19.058 31878-3800/com.testD/Twilio: [Core](468292013232): API Call getCallSid
2022-12-11 20:53:19.058 31878-3800/com.testD/Twilio: [Core](468292013232): API Call getFrom
2022-12-11 20:53:19.058 31878-3800/com.testD/Twilio: [Core](468292013232): API Call getTo
2022-12-11 20:53:19.058 31878-3800/com.testD/Twilio: [Core](468292013232): API Call getCallSid
2022-12-11 20:53:19.058 31878-3800/com.testD/Twilio: [Core](468292013232): ListenerImpl
2022-12-11 20:53:19.058 31878-3800/com.testD/Twilio: [Core](468292013232): Started listen no-op timer for 600000 ms
2022-12-11 20:53:19.058 31878-4434/com.testD/Twilio: [Core](MediaFactoryImpl::signaling 0x0xb400006e1a331ce0): twilio::voice::AsyncDnsResolver::AsyncDnsResolver(std::weak_ptr<DnsResolverObserver>)
2022-12-11 20:53:19.058 31878-4434/com.testD/Twilio: [Core](MediaFactoryImpl::signaling 0x0xb400006e1a331ce0): AsyncDnsResolver resolving hostname = chunderm.gll.twilio.com
2022-12-11 20:53:19.096 31878-4434/com.testD/Twilio: [Core](MediaFactoryImpl::signaling 0x0xb400006e1a331ce0): AsyncDnsResolver Resolved ip_addr = 54.85.119.44, error = 0
2022-12-11 20:53:19.096 31878-4434/com.testD/Twilio: [Core](MediaFactoryImpl::signaling 0x0xb400006e1a331ce0): virtual void twilio::voice::SipClient::onResolveResult(twilio::voice::AsyncDnsResolver *, std::string, int)
2022-12-11 20:53:19.096 31878-4434/com.testD/Twilio: [Core](MediaFactoryImpl::signaling 0x0xb400006e1a331ce0): onResolveResult for listen, hostname = sip:chunderm.gll.twilio.com:443;transport=tls, ip_addr = 54.85.119.44
2022-12-11 20:53:19.096 31878-4434/com.testD/Twilio: [Core](MediaFactoryImpl::signaling 0x0xb400006e1a331ce0): New SipCall ..., this=0xb400006eba4337c0, handle = 1
2022-12-11 20:53:19.096 31878-4434/com.testI/Twilio: [Core](MediaFactoryImpl::signaling 0x0xb400006e1a331ce0): Setting outbound proxy to: sip:54.85.119.44:443;transport=tls
2022-12-11 20:53:19.098 31878-4434/com.testD/Twilio: [Core](MediaFactoryImpl::signaling 0x0xb400006e1a331ce0): AsyncDnsResolver Resolved ip_addr = 54.85.119.44, error = 0
2022-12-11 20:53:19.098 31878-4434/com.testD/Twilio: [Core](MediaFactoryImpl::signaling 0x0xb400006e1a331ce0): virtual void twilio::voice::SipClient::onResolveResult(twilio::voice::AsyncDnsResolver *, std::string, int)
2022-12-11 20:53:19.098 31878-4434/com.testD/Twilio: [Core](MediaFactoryImpl::signaling 0x0xb400006e1a331ce0): onResolveResult for listen, hostname = sip:chunderm.gll.twilio.com:443;transport=tls, ip_addr = 54.85.119.44
2022-12-11 20:53:19.098 31878-4434/com.testD/Twilio: [Core](MediaFactoryImpl::signaling 0x0xb400006e1a331ce0): New SipCall ..., this=0xb400006eba431e00, handle = 1
2022-12-11 20:53:19.098 31878-4434/com.testI/Twilio: [Core](MediaFactoryImpl::signaling 0x0xb400006e1a331ce0): Setting outbound proxy to: sip:54.85.119.44:443;transport=tls
2022-12-11 20:53:19.111 31878-3800/com.testD/TwilioPhone: Call invite received
2022-12-11 20:53:19.468 31878-4451/com.testD/Twilio: [Core](467897662640): mapToSipCall handle id is 1
2022-12-11 20:53:19.468 31878-4451/com.testD/Twilio: [Core](467897662640): casting handle id 1 to SipCall
2022-12-11 20:53:19.469 31878-4451/com.testD/Twilio: [Core](467897662640): onNewSession:
SIP/2.0 180 Ringing
Via: SIP/2.0/TLS 192.168.1.x;received=68.173.232.203;branch=z9hG4bK-524287-1---bc41af82e73d6452;rport=49438
Record-Route: <sip:172.25.7.x:10193;r2=on;transport=udp;ftag=f8d41af1;lr>
Record-Route: <sip:54.85.119.44:443;r2=on;transport=tls;ftag=f8d41af1;lr>
Contact: <sip:172.25.0.x:10193>
To: <sip:chunderm.gll.twilio.com:443;transport=tls>;tag=56581121_c3356d0b_5ffcb926-f5ea-4bd6-822a-5974252ed51d
From: <sip:VoiceSDK#chunderm.gll.twilio.com>;tag=f8d41af1
Call-ID: ZFfQioWu6JjChxSZFTJHjQ..
CSeq: 1 INVITE
Server: Twilio
X-Twilio-CallSid: CA00b436b4fdaad9c38063c20aa3e393bc
X-Twilio-EdgeHost: chunderm1.us1.twilio.com
X-Twilio-EdgeRegion: us1
X-Twilio-Zone: US_EAST_VIRGINIA
Content-Length: 0
2022-12-11 20:53:19.469 31878-4451/com.testD/Twilio: [Core](467897662640): onNewCall
2022-12-11 20:53:19.469 31878-4451/com.testD/Twilio: [Core](467897662640): mapToSipCall handle id is 1
2022-12-11 20:53:19.469 31878-4451/com.testD/Twilio: [Core](467897662640): casting handle id 1 to SipCall
2022-12-11 20:53:19.470 31878-4451/com.testD/Twilio: [Core](467897662640): onProvisional:
SIP/2.0 180 Ringing
Via: SIP/2.0/TLS 192.168.1.x;received=68.173.232.203;branch=z9hG4bK-524287-1---bc41af82e73d6452;rport=49438
Record-Route: <sip:172.25.7.x:10193;r2=on;transport=udp;ftag=f8d41af1;lr>
Record-Route: <sip:54.85.119.44:443;r2=on;transport=tls;ftag=f8d41af1;lr>
Contact: <sip:172.25.0.x:10193>
To: <sip:chunderm.gll.twilio.com:443;transport=tls>;tag=56581121_c3356d0b_5ffcb926-f5ea-4bd6-822a-5974252ed51d
From: <sip:VoiceSDK#chunderm.gll.twilio.com>;tag=f8d41af1
Call-ID: ZFfQioWu6JjChxSZFTJHjQ..
CSeq: 1 INVITE
Server: Twilio
X-Twilio-CallSid: CA00b436b4fdaad9c38063c20aa3e393bc
X-Twilio-EdgeHost: chunderm1.us1.twilio.com
X-Twilio-EdgeRegion: us1
X-Twilio-Zone: US_EAST_VIRGINIA
Content-Length: 0
2022-12-11 20:53:19.470 31878-4451/com.testD/Twilio: [Core](467897662640): onRinging
2022-12-11 20:53:19.475 31878-4471/com.testD/Twilio: [Core](467830553776): mapToSipCall handle id is 1
2022-12-11 20:53:19.475 31878-4471/com.testD/Twilio: [Core](467830553776): casting handle id 1 to SipCall
2022-12-11 20:53:19.476 31878-4471/com.testD/Twilio: [Core](467830553776): onNewSession:
SIP/2.0 180 Ringing
Via: SIP/2.0/TLS 192.168.1.x;received=68.173.232.203;branch=z9hG4bK-524287-1---2ec2a58009fb4c70;rport=49440
Record-Route: <sip:172.25.7.x:10193;r2=on;transport=udp;ftag=12c44225;lr>
Record-Route: <sip:54.85.119.44:443;r2=on;transport=tls;ftag=12c44225;lr>
Contact: <sip:172.25.73.x:10193>
To: <sip:chunderm.gll.twilio.com:443;transport=tls>;tag=56818825_c3356d0b_a7c1c6cb-4c5e-4f6d-b883-14a1e3ba4cfc
From: <sip:VoiceSDK#chunderm.gll.twilio.com>;tag=12c44225
Call-ID: wh4hhqMs9e5U2hQE_qDbOg..
CSeq: 1 INVITE
Server: Twilio
X-Twilio-CallSid: CA00b436b4fdaad9c38063c20aa3e393bc
X-Twilio-EdgeHost: chunderm1.us1.twilio.com
X-Twilio-EdgeRegion: us1
X-Twilio-Zone: US_EAST_VIRGINIA
Content-Length: 0
2022-12-11 20:53:19.476 31878-4471/com.testD/Twilio: [Core](467830553776): onNewCall
2022-12-11 20:53:19.476 31878-4471/com.testD/Twilio: [Core](467830553776): mapToSipCall handle id is 1
2022-12-11 20:53:19.476 31878-4471/com.testD/Twilio: [Core](467830553776): casting handle id 1 to SipCall
2022-12-11 20:53:19.476 31878-4471/com.testD/Twilio: [Core](467830553776): onProvisional:
SIP/2.0 180 Ringing
Via: SIP/2.0/TLS 192.168.1.x;received=68.173.232.203;branch=z9hG4bK-524287-1---2ec2a58009fb4c70;rport=49440
Record-Route: <sip:172.25.7.x:10193;r2=on;transport=udp;ftag=12c44225;lr>
Record-Route: <sip:54.85.119.44:443;r2=on;transport=tls;ftag=12c44225;lr>
Contact: <sip:172.25.73.x:10193>
To: <sip:chunderm.gll.twilio.com:443;transport=tls>;tag=56818825_c3356d0b_a7c1c6cb-4c5e-4f6d-b883-14a1e3ba4cfc
From: <sip:VoiceSDK#chunderm.gll.twilio.com>;tag=12c44225
Call-ID: wh4hhqMs9e5U2hQE_qDbOg..
CSeq: 1 INVITE
Server: Twilio
X-Twilio-CallSid: CA00b436b4fdaad9c38063c20aa3e393bc
X-Twilio-EdgeHost: chunderm1.us1.twilio.com
X-Twilio-EdgeRegion: us1
X-Twilio-Zone: US_EAST_VIRGINIA
Content-Length: 0
2022-12-11 20:53:19.476 31878-4471/com.testD/Twilio: [Core](467830553776): onRinging
2022-12-11 20:53:23.219 31878-3800/com.testI/TwilioPhone: Accepting call invite
2022-12-11 20:53:23.220 31878-3800/com.testD/Twilio: [Core](468292013232): API Call createAudioSource
2022-12-11 20:53:23.220 31878-3800/com.testD/Twilio: [Core](468292013232): API Call createAudioTrack
2022-12-11 20:53:23.220 31878-3800/com.testI/Twilio: [Core](468292013232): Adding audio track ...
2022-12-11 20:53:23.221 31878-3800/com.testD/Twilio: [Core](468292013232): API Call getName
2022-12-11 20:53:23.221 31878-3800/com.testD/Twilio: [Core](468292013232): API Call getTrackId
2022-12-11 20:53:23.221 31878-3800/com.testD/Twilio: [Core](468292013232): API Call isEnabled
2022-12-11 20:53:23.226 31878-3800/com.testD/Twilio: [Core](468292013232): API Call accept
2022-12-11 20:53:23.226 31878-3800/com.testD/Twilio: [Core](468292013232): API Call getNetworkingThread
2022-12-11 20:53:23.226 31878-3800/com.testD/Twilio: [Core](468292013232): NetworkManager
2022-12-11 20:53:23.226 31878-3800/com.testD/Twilio: [Core](468292013232): accept
2022-12-11 20:53:23.226 31878-4434/com.testD/Twilio: [Core](MediaFactoryImpl::signaling 0x0xb400006e1a331ce0): SipClient::disconnect
2022-12-11 20:53:23.226 31878-4471/com.testD/Twilio: [Core](467830553776): virtual void twilio::voice::SipCall::DisconnectCommand::executeCommand()
2022-12-11 20:53:23.227 31878-3800/com.testD/Twilio: [Core](468292013232): API Call RTCIceServers
2022-12-11 20:53:23.227 31878-3800/com.testD/Twilio: [Core](468292013232): API Call RTCIceServer
2022-12-11 20:53:23.227 31878-3800/com.testI/Twilio: [Core](468292013232): Creating peer connection ...
2022-12-11 20:53:23.234 31878-3800/com.testD/Twilio: [Core](468292013232): API Call getWebRtcTrack
2022-12-11 20:53:23.238 31878-3800/com.testI/Twilio: [Core](468292013232): Added a Track, created a sender with Id: e2c0bfF503f9Fb72E11CDAf55A94b2d9
2022-12-11 20:53:23.238 31878-3800/com.testD/Twilio: [Core](468292013232): Create initial local offer
2022-12-11 20:53:23.240 31878-4434/com.testD/Twilio: [Core](MediaFactoryImpl::signaling 0x0xb400006e1a331ce0): onCreateSessionLocalDescription
2022-12-11 20:53:23.242 31878-3800/com.testD/Twilio: [Core](468292013232): ~CallInviteImpl
2022-12-11 20:53:23.242 31878-3800/com.testD/Twilio: [Core](468292013232): ~CallerInfoImpl
2022-12-11 20:53:23.249 31878-4434/com.testD/Twilio: [Core](MediaFactoryImpl::signaling 0x0xb400006e1a331ce0): <0xb400006eaa6a99a0> OnSignalingChange
2022-12-11 20:53:23.249 31878-4434/com.testD/Twilio: [Core](MediaFactoryImpl::signaling 0x0xb400006e1a331ce0): Signaling state: have-local-offer
2022-12-11 20:53:23.263 31878-4434/com.testD/Twilio: [Core](MediaFactoryImpl::signaling 0x0xb400006e1a331ce0): onSetSessionLocalDescription
2022-12-11 20:53:23.271 31878-4443/com.testD/Twilio: [Core](MediaFactoryImpl::networking 0x0xb400006e1a331ce0): GetNetworks
2022-12-11 20:53:23.274 31878-4434/com.testD/Twilio: [Core](MediaFactoryImpl::signaling 0x0xb400006e1a331ce0): Local SDP - v=0
o=- 7871616082435632596 2 IN IP4 127.0.0.x
s=-
t=0 0
a=group:BUNDLE 0
a=msid-semantic: WMS 3A9387E53DEb895b6eBEFe67B8f910EF
m=audio 9 UDP/TLS/RTP/SAVPF 111 103 104 9 0 8 106 105 13 110 112 113 126
c=IN IP4 0.0.0.0
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:/MWB
a=ice-pwd:GzQPXzcc2KcYUxLGp3yHB2Q+
a=ice-options:trickle
a=fingerprint:sha-256 A1:87:75:69:B8:A7:A4:3C:49:84:2A:5C:34:96:6D:70:92:45:1D:07:8E:BD:6A:10:83:B0:85:96:BB:06:95:D4
a=setup:actpass
a=mid:0
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=extmap:3 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=extmap:4 urn:ietf:params:rtp-hdrext:sdes:mid
a=extmap:5 urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id
a=extmap:6 urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id
a=sendrecv
a=msid:3A9387E53DEb895b6eBEFe67B8f910EF e2c0bfF503f9Fb72E11CDAf55A94b2d9
a=rtcp-m
2022-12-11 20:53:23.275 31878-4434/com.testD/Twilio: [Core](MediaFactoryImpl::signaling 0x0xb400006e1a331ce0): twilio::voice::AsyncDnsResolver::AsyncDnsResolver(std::weak_ptr<DnsResolverObserver>)
2022-12-11 20:53:23.275 31878-4434/com.testD/Twilio: [Core](MediaFactoryImpl::signaling 0x0xb400006e1a331ce0): AsyncDnsResolver resolving hostname = chunderm.gll.twilio.com
2022-12-11 20:53:23.277 31878-4443/com.testD/Twilio: [Core](MediaFactoryImpl::networking 0x0xb400006e1a331ce0): GetNetworks
2022-12-11 20:53:23.279 31878-4434/com.testD/Twilio: [Core](MediaFactoryImpl::signaling 0x0xb400006e1a331ce0): Gathered ICE candidate: candidate:3163030317 1 udp 2122262783 2603:7000:8d00:d61e:4c09:e2ff:fe05:2085 37727 typ host generation 0 ufrag /MWB network-id 7 network-cost 10, id: WXrRYt+e
2022-12-11 20:53:23.280 31878-4434/com.testD/Twilio: [Core](MediaFactoryImpl::signaling 0x0xb400006e1a331ce0): Gathered ICE candidate: candidate:619629460 1 udp 2122194687 192.168.1.x 44619 typ host generation 0 ufrag /MWB network-id 6 network-cost 10, id: J1RFU1DC
2022-12-11 20:53:23.281 31878-4471/com.testD/Twilio: [Core](467830553776): mapToSipCall handle id is 1
2022-12-11 20:53:23.281 31878-4471/com.testD/Twilio: [Core](467830553776): casting handle id 1 to SipCall
2022-12-11 20:53:23.281 31878-4471/com.testD/Twilio: [Core](467830553776): onTerminated: reason 5, this=0xb400006eba431e00
2022-12-11 20:53:23.281 31878-4471/com.testD/Twilio: [Core](467830553776): onTerminated
2022-12-11 20:53:23.281 31878-4471/com.testD/Twilio: [Core](467830553776): ~SipCall(): 0xb400006eba431e00
2022-12-11 20:53:23.282 31878-4434/com.testD/Twilio: [Core](MediaFactoryImpl::signaling 0x0xb400006e1a331ce0): Gathered ICE candidate: candidate:962153057 1 udp 2122131711 2607:fc20:fe24:c726:2c8f:9a5d:ae58:7a4a 37614 typ host generation 0 ufrag /MWB network-id 3 network-cost 900, id: Sdwf0pTn
2022-12-11 20:53:23.283 31878-4434/com.testD/Twilio: [Core](MediaFactoryImpl::signaling 0x0xb400006e1a331ce0): raiseCancelCallInvite
2022-12-11 20:53:23.284 31878-4434/com.testD/Twilio: [Core](MediaFactoryImpl::signaling 0x0xb400006e1a331ce0): Gathered ICE candidate: candidate:3193558674 1 udp 2122066175 2607:fb90:fea0:14db:4c6e:9451:fa89:304e 48469 typ host generation 0 ufrag /MWB network-id 4 network-cost 900, id: wNUkdUbJ
2022-12-11 20:53:23.285 31878-4434/com.testD/Twilio: [Core](MediaFactoryImpl::signaling 0x0xb400006e1a331ce0): Gathered ICE candidate: candidate:2833031007 1 udp 2121998079 192.0.0.4 46706 typ host generation 0 ufrag /MWB network-id 5 network-cost 900, id: UeqXkB4I
2022-12-11 20:53:23.297 31878-4434/com.testD/Twilio: [Core](MediaFactoryImpl::signaling 0x0xb400006e1a331ce0): AsyncDnsResolver Resolved ip_addr = 54.85.119.44, error = 0
2022-12-11 20:53:23.297 31878-4434/com.testD/Twilio: [Core](MediaFactoryImpl::signaling 0x0xb400006e1a331ce0): virtual void twilio::voice::SipClient::onResolveResult(twilio::voice::AsyncDnsResolver *, std::string, int)
2022-12-11 20:53:23.297 31878-4434/com.testD/Twilio: [Core](MediaFactoryImpl::signaling 0x0xb400006e1a331ce0): onResolveResult for connect, hostname = sip:chunderm.gll.twilio.com:443;transport=tls, ip_addr = 54.85.119.44
2022-12-11 20:53:23.297 31878-4434/com.testD/Twilio: [Core](MediaFactoryImpl::signaling 0x0xb400006e1a331ce0): New SipCall ..., this=0xb400006eba4a6f50, handle = 4
2022-12-11 20:53:23.297 31878-4434/com.testI/Twilio: [Core](MediaFactoryImpl::signaling 0x0xb400006e1a331ce0): Setting outbound proxy to: sip:54.85.119.44:443;transport=tls
2022-12-11 20:53:23.350 31878-4434/com.testD/Twilio: [Core](MediaFactoryImpl::signaling 0x0xb400006e1a331ce0): Gathered ICE candidate: candidate:2779172128 1 udp 1685987071 68.173.232.203 44619 typ srflx raddr 192.168.1.x rport 44619 generation 0 ufrag /MWB network-id 6 network-cost 10, id: cMKTV+Cu
2022-12-11 20:53:23.405 31878-4451/com.testD/Twilio: [Core](467897662640): mapToSipCall handle id is 1
2022-12-11 20:53:23.405 31878-4451/com.testD/Twilio: [Core](467897662640): casting handle id 1 to SipCall
2022-12-11 20:53:23.405 31878-4451/com.testD/Twilio: [Core](467897662640): virtual void twilio::voice::SipCall::onFailure(resip::ClientInviteSessionHandle, const resip::SipMessage &)
2022-12-11 20:53:23.406 31878-4451/com.testD/Twilio: [Core](467897662640): Received incoming SIP message from infra:
SIP/2.0 410 Gone
Via: SIP/2.0/TLS 192.168.1.x;received=68.173.232.203;branch=z9hG4bK-524287-1---bc41af82e73d6452;rport=49438
Contact: <sip:172.25.0.x:10193>
To: <sip:chunderm.gll.twilio.com:443;transport=tls>;tag=56581121_c3356d0b_5ffcb926-f5ea-4bd6-822a-5974252ed51d
From: <sip:VoiceSDK#chunderm.gll.twilio.com>;tag=f8d41af1
Call-ID: ZFfQioWu6JjChxSZFTJHjQ..
CSeq: 1 INVITE
Server: Twilio
X-Twilio-CallSid: CA00b436b4fdaad9c38063c20aa3e393bc
X-Twilio-EdgeHost: chunderm1.us1.twilio.com
X-Twilio-EdgeRegion: us1
X-Twilio-Zone: US_EAST_VIRGINIA
Content-Length: 0
2022-12-11 20:53:23.406 31878-4451/com.testD/Twilio: [Core](467897662640): onFailure
2022-12-11 20:53:23.406 31878-4451/com.testD/Twilio: [Core](467897662640): mapToSipCall handle id is 1
2022-12-11 20:53:23.406 31878-4451/com.testD/Twilio: [Core](467897662640): casting handle id 1 to SipCall
2022-12-11 20:53:23.406 31878-4451/com.testD/Twilio: [Core](467897662640): onTerminated: reason 0, this=0xb400006eba4337c0
2022-12-11 20:53:23.407 31878-4451/com.testD/Twilio: [Core](467897662640): Received incoming SIP message from infra:
SIP/2.0 410 Gone
Via: SIP/2.0/TLS 192.168.1.x;received=68.173.232.203;branch=z9hG4bK-524287-1---bc41af82e73d6452;rport=49438
Contact: <sip:172.25.0.x:10193>
To: <sip:chunderm.gll.twilio.com:443;transport=tls>;tag=56581121_c3356d0b_5ffcb926-f5ea-4bd6-822a-5974252ed51d
From: <sip:VoiceSDK#chunderm.gll.twilio.com>;tag=f8d41af1
Call-ID: ZFfQioWu6JjChxSZFTJHjQ..
CSeq: 1 INVITE
Server: Twilio
X-Twilio-CallSid: CA00b436b4fdaad9c38063c20aa3e393bc
X-Twilio-EdgeHost: chunderm1.us1.twilio.com
X-Twilio-EdgeRegion: us1
X-Twilio-Zone: US_EAST_VIRGINIA
Content-Length: 0
2022-12-11 20:53:23.407 31878-4451/com.testD/Twilio: [Core](467897662640): onTerminated
2022-12-11 20:53:23.407 31878-4434/com.testD/Twilio: [Core](MediaFactoryImpl::signaling 0x0xb400006e1a331ce0): raiseCancelCallInvite
`
On answering the call, I would have expected to not to the cancelCallInvite event
I have an iOS 13.3 application running on the XCode iOS simulator. It communicates with a simple python tcpserver on a Raspberry PI running on a local network. The iOS code is based on //https://dev.to/bsorrentino/develop-a-textfield-validator-for-swiftui-7d3 which uses URLSession. I am getting a timeout in the iOS code after about 10 seconds. I've checked the network packets with tcpdump on the mac. The proper packets appear to be sent and received. The url used is http://10.0.0.119:60708 as the PI server does not handle https at this point. The python server receives a JWT, prepends the thread name and echos it back. The python snippet is as follows:
class ThreadedTCPRequestHandler(socketserver.BaseRequestHandler):
def handle(self):
while True:
data = self.request.recv(4096).decode('utf-8')
if len(data) == 0:
break
cur_thread = threading.current_thread()
response = "{}: {}".format(cur_thread.name, data)
print(response)
self.request.sendall(response.encode('utf-8'))
The error is:
2020-02-22 12:11:35.324596-0500 PIHome[64511:66647174] Task <2C1CE343-FB68-40CB-97C5-5E7967933838>.<2> finished with error [-1001] Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." UserInfo={NSUnderlyingError=0x600001046ca0 {Error Domain=kCFErrorDomainCFNetwork Code=-1001 "(null)" UserInfo={_kCFStreamErrorCodeKey=-2102, _kCFStreamErrorDomainKey=4}}, NSErrorFailingURLStringKey=http://10.0.0.119:60708/temperature, NSErrorFailingURLKey=http://10.0.0.119:60708/temperature, _kCFStreamErrorDomainKey=4, _kCFStreamErrorCodeKey=-2102, NSLocalizedDescription=The request timed out.}
The tcpdump is as follows:
12:11:25.305647 IP 10.0.0.89.52915 > hastings.60708: Flags [S], seq 2969915581, win 65535, options [mss 1460,nop,wscale 6,nop,nop,TS val 2152442902 ecr 0,sackOK,eol], length 0
0x0000: b827 eb94 a718 8c85 9048 25eb 0800 4500 .'.......H%...E.
0x0010: 0040 0000 4000 4006 25e9 0a00 0059 0a00 .#..#.#.%....Y..
0x0020: 0077 ceb3 ed24 b105 50bd 0000 0000 b002 .w...$..P.......
0x0030: ffff 382f 0000 0204 05b4 0103 0306 0101 ..8/............
0x0040: 080a 804b ac16 0000 0000 0402 0000 ...K..........
12:11:25.312528 IP hastings.60708 > 10.0.0.89.52915: Flags [S.], seq 3390573497, ack 2969915582, win 28960, options [mss 1460,sackOK,TS val 3187848125 ecr 2152442902,nop,wscale 7], length 0
0x0000: 8c85 9048 25eb b827 ebc1 f24d 0800 4500 ...H%..'...M..E.
0x0010: 003c 0000 4000 4006 25ed 0a00 0077 0a00 .<..#.#.%....w..
0x0020: 0059 ed24 ceb3 ca18 0bb9 b105 50be a012 .Y.$........P...
0x0030: 7120 906f 0000 0204 05b4 0402 080a be02 q..o............
0x0040: b3bd 804b ac16 0103 0307 ...K......
12:11:25.312574 IP 10.0.0.89.52915 > hastings.60708: Flags [.], ack 1, win 2058, options [nop,nop,TS val 2152442909 ecr 3187848125], length 0
0x0000: b827 eb94 a718 8c85 9048 25eb 0800 4500 .'.......H%...E.
0x0010: 0034 0000 4000 4006 25f5 0a00 0059 0a00 .4..#.#.%....Y..
0x0020: 0077 ceb3 ed24 b105 50be ca18 0bba 8010 .w...$..P.......
0x0030: 080a 284b 0000 0101 080a 804b ac1d be02 ..(K.......K....
0x0040: b3bd ..
12:11:25.314030 IP 10.0.0.89.52915 > hastings.60708: Flags [P.], seq 1:269, ack 1, win 2058, options [nop,nop,TS val 2152442910 ecr 3187848125], length 268
0x0000: b827 eb94 a718 8c85 9048 25eb 0800 4500 .'.......H%...E.
0x0010: 0140 0000 4000 4006 24e9 0a00 0059 0a00 .#..#.#.$....Y..
0x0020: 0077 ceb3 ed24 b105 50be ca18 0bba 8018 .w...$..P.......
0x0030: 080a 597f 0000 0101 080a 804b ac1e be02 ..Y........K....
0x0040: b3bd 504f 5354 202f 7465 6d70 6572 6174 ..POST./temperat
0x0050: 7572 6520 4854 5450 2f31 2e31 0d0a 486f ure.HTTP/1.1..Ho
0x0060: 7374 3a20 3130 2e30 2e30 2e31 3139 3a36 st:.10.0.0.119:6
0x0070: 3037 3038 0d0a 436f 6e74 656e 742d 5479 0708..Content-Ty
0x0080: 7065 3a20 6170 706c 6963 6174 696f 6e2f pe:.application/
0x0090: 6a73 6f6e 0d0a 436f 6e6e 6563 7469 6f6e json..Connection
0x00a0: 3a20 6b65 6570 2d61 6c69 7665 0d0a 4163 :.keep-alive..Ac
0x00b0: 6365 7074 3a20 6170 706c 6963 6174 696f cept:.applicatio
0x00c0: 6e2f 6a73 6f6e 0d0a 5573 6572 2d41 6765 n/json..User-Age
0x00d0: 6e74 3a20 5049 486f 6d65 2f31 2043 464e nt:.PIHome/1.CFN
0x00e0: 6574 776f 726b 2f31 3132 312e 322e 3120 etwork/1121.2.1.
0x00f0: 4461 7277 696e 2f31 392e 332e 300d 0a43 Darwin/19.3.0..C
0x0100: 6f6e 7465 6e74 2d4c 656e 6774 683a 2032 ontent-Length:.2
0x0110: 3139 0d0a 4163 6365 7074 2d4c 616e 6775 19..Accept-Langu
0x0120: 6167 653a 2065 6e2d 7573 0d0a 4163 6365 age:.en-us..Acce
0x0130: 7074 2d45 6e63 6f64 696e 673a 2067 7a69 pt-Encoding:.gzi
0x0140: 702c 2064 6566 6c61 7465 0d0a 0d0a p,.deflate....
12:11:25.314317 IP 10.0.0.89.52915 > hastings.60708: Flags [P.], seq 269:488, ack 1, win 2058, options [nop,nop,TS val 2152442910 ecr 3187848125], length 219
0x0000: b827 eb94 a718 8c85 9048 25eb 0800 4500 .'.......H%...E.
0x0010: 010f 0000 4000 4006 251a 0a00 0059 0a00 ....#.#.%....Y..
0x0020: 0077 ceb3 ed24 b105 51ca ca18 0bba 8018 .w...$..Q.......
0x0030: 080a e989 0000 0101 080a 804b ac1e be02 ...........K....
0x0040: b3bd 224c 6f67 696e 2073 7563 6365 7373 .."Login.success
0x0050: 6675 6c3a 6579 4a30 6558 4169 4f69 4a71 ful:eyJ0eXAiOiJq
0x0060: 6433 5169 4c43 4a68 6247 6369 4f69 4a49 d3QiLCJhbGciOiJI
0x0070: 557a 4931 4e69 4a39 2e65 794a 7a64 5749 UzI1NiJ9.eyJzdWI
0x0080: 694f 694a 5153 5568 7662 5755 6762 4739 iOiJQSUhvbWUgbG9
0x0090: 6e61 5734 694c 434a 3163 3256 7949 6a6f naW4iLCJ1c2VyIjo
0x00a0: 6963 476c 6f62 3231 6c4c 6e52 6862 6d52 icGlob21lLnRhbmR
0x00b0: 6f51 4752 6862 4756 354c 6e64 7a49 6977 oQGRhbGV5LndzIiw
0x00c0: 6961 5746 3049 6a6f 784e 5467 794d 7a6b iaWF0IjoxNTgyMzk
0x00d0: 784e 4467 314c 434a 6e63 6d39 3163 484d xNDg1LCJncm91cHM
0x00e0: 694f 6c73 6964 4746 755a 4767 6958 5830 iOlsidGFuZGgiXX0
0x00f0: 2e53 6770 6875 4d6a 6347 6f37 6648 6a6a .SgphuMjcGo7fHjj
0x0100: 7878 4736 5569 7770 6c67 754d 645a 6268 xxG6UiwplguMdZbh
0x0110: 6374 2d35 7a44 6344 6e64 4c59 22 ct-5zDcDndLY"
12:11:25.318063 IP hastings.60708 > 10.0.0.89.52915: Flags [.], ack 269, win 235, options [nop,nop,TS val 3187848130 ecr 2152442910], length 0
0x0000: 8c85 9048 25eb b827 ebc1 f24d 0800 4500 ...H%..'...M..E.
0x0010: 0034 4928 4000 4006 dccc 0a00 0077 0a00 .4I(#.#......w..
0x0020: 0059 ed24 ceb3 ca18 0bba b105 51ca 8010 .Y.$........Q...
0x0030: 00eb 2e58 0000 0101 080a be02 b3c2 804b ...X...........K
0x0040: ac1e ..
12:11:25.318064 IP hastings.60708 > 10.0.0.89.52915: Flags [P.], seq 1:280, ack 269, win 235, options [nop,nop,TS val 3187848131 ecr 2152442910], length 279
0x0000: 8c85 9048 25eb b827 ebc1 f24d 0800 4500 ...H%..'...M..E.
0x0010: 014b 4929 4000 4006 dbb4 0a00 0077 0a00 .KI)#.#......w..
0x0020: 0059 ed24 ceb3 ca18 0bba b105 51ca 8018 .Y.$........Q...
0x0030: 00eb cccc 0000 0101 080a be02 b3c3 804b ...............K
0x0040: ac1e 5468 7265 6164 2d31 343a 2050 4f53 ..Thread-14:.POS
0x0050: 5420 2f74 656d 7065 7261 7475 7265 2048 T./temperature.H
0x0060: 5454 502f 312e 310d 0a48 6f73 743a 2031 TTP/1.1..Host:.1
0x0070: 302e 302e 302e 3131 393a 3630 3730 380d 0.0.0.119:60708.
0x0080: 0a43 6f6e 7465 6e74 2d54 7970 653a 2061 .Content-Type:.a
0x0090: 7070 6c69 6361 7469 6f6e 2f6a 736f 6e0d pplication/json.
0x00a0: 0a43 6f6e 6e65 6374 696f 6e3a 206b 6565 .Connection:.kee
0x00b0: 702d 616c 6976 650d 0a41 6363 6570 743a p-alive..Accept:
0x00c0: 2061 7070 6c69 6361 7469 6f6e 2f6a 736f .application/jso
0x00d0: 6e0d 0a55 7365 722d 4167 656e 743a 2050 n..User-Agent:.P
0x00e0: 4948 6f6d 652f 3120 4346 4e65 7477 6f72 IHome/1.CFNetwor
0x00f0: 6b2f 3131 3231 2e32 2e31 2044 6172 7769 k/1121.2.1.Darwi
0x0100: 6e2f 3139 2e33 2e30 0d0a 436f 6e74 656e n/19.3.0..Conten
0x0110: 742d 4c65 6e67 7468 3a20 3231 390d 0a41 t-Length:.219..A
0x0120: 6363 6570 742d 4c61 6e67 7561 6765 3a20 ccept-Language:.
0x0130: 656e 2d75 730d 0a41 6363 6570 742d 456e en-us..Accept-En
0x0140: 636f 6469 6e67 3a20 677a 6970 2c20 6465 coding:.gzip,.de
0x0150: 666c 6174 650d 0a0d 0a flate....
12:11:25.318096 IP 10.0.0.89.52915 > hastings.60708: Flags [.], ack 280, win 2054, options [nop,nop,TS val 2152442914 ecr 3187848131], length 0
0x0000: b827 eb94 a718 8c85 9048 25eb 0800 4500 .'.......H%...E.
0x0010: 0034 0000 4000 4006 25f5 0a00 0059 0a00 .4..#.#.%....Y..
0x0020: 0077 ceb3 ed24 b105 52a5 ca18 0cd1 8010 .w...$..R.......
0x0030: 0806 2546 0000 0101 080a 804b ac22 be02 ..%F.......K."..
0x0040: b3c3 ..
12:11:25.321081 IP hastings.60708 > 10.0.0.89.52915: Flags [P.], seq 280:510, ack 488, win 243, options [nop,nop,TS val 3187848134 ecr 2152442910], length 230
0x0000: 8c85 9048 25eb b827 ebc1 f24d 0800 4500 ...H%..'...M..E.
0x0010: 011a 492a 4000 4006 dbe4 0a00 0077 0a00 ..I*#.#......w..
0x0020: 0059 ed24 ceb3 ca18 0cd1 b105 52a5 8018 .Y.$........R...
0x0030: 00f3 b091 0000 0101 080a be02 b3c6 804b ...............K
0x0040: ac1e 5468 7265 6164 2d31 343a 2022 4c6f ..Thread-14:."Lo
0x0050: 6769 6e20 7375 6363 6573 7366 756c 3a65 gin.successful:e
0x0060: 794a 3065 5841 694f 694a 7164 3351 694c yJ0eXAiOiJqd3QiL
0x0070: 434a 6862 4763 694f 694a 4955 7a49 314e CJhbGciOiJIUzI1N
0x0080: 694a 392e 6579 4a7a 6457 4969 4f69 4a51 iJ9.eyJzdWIiOiJQ
0x0090: 5355 6876 6257 5567 6247 396e 6157 3469 SUhvbWUgbG9naW4i
0x00a0: 4c43 4a31 6332 5679 496a 6f69 6347 6c6f LCJ1c2VyIjoicGlo
0x00b0: 6232 316c 4c6e 5268 626d 526f 5147 5268 b21lLnRhbmRoQGRh
0x00c0: 6247 5635 4c6e 647a 4969 7769 6157 4630 bGV5LndzIiwiaWF0
0x00d0: 496a 6f78 4e54 6779 4d7a 6b78 4e44 6731 IjoxNTgyMzkxNDg1
0x00e0: 4c43 4a6e 636d 3931 6348 4d69 4f6c 7369 LCJncm91cHMiOlsi
0x00f0: 6447 4675 5a47 6769 5858 302e 5367 7068 dGFuZGgiXX0.Sgph
0x0100: 754d 6a63 476f 3766 486a 6a78 7847 3655 uMjcGo7fHjjxxG6U
0x0110: 6977 706c 6775 4d64 5a62 6863 742d 357a iwplguMdZbhct-5z
0x0120: 4463 446e 644c 5922 DcDndLY"
12:11:25.321101 IP 10.0.0.89.52915 > hastings.60708: Flags [.], ack 510, win 2050, options [nop,nop,TS val 2152442917 ecr 3187848134], length 0
0x0000: b827 eb94 a718 8c85 9048 25eb 0800 4500 .'.......H%...E.
0x0010: 0034 0000 4000 4006 25f5 0a00 0059 0a00 .4..#.#.%....Y..
0x0020: 0077 ceb3 ed24 b105 52a5 ca18 0db7 8010 .w...$..R.......
0x0030: 0802 245e 0000 0101 080a 804b ac25 be02 ..$^.......K.%..
0x0040: b3c6 ..
12:11:35.324471 IP 10.0.0.89.52915 > hastings.60708: Flags [F.], seq 488, ack 510, win 2050, options [nop,nop,TS val 2152452893 ecr 3187848134], length 0
0x0000: b827 eb94 a718 8c85 9048 25eb 0800 4500 .'.......H%...E.
0x0010: 0034 0000 4000 4006 25f5 0a00 0059 0a00 .4..#.#.%....Y..
0x0020: 0077 ceb3 ed24 b105 52a5 ca18 0db7 8011 .w...$..R.......
0x0030: 0802 fd64 0000 0101 080a 804b d31d be02 ...d.......K....
0x0040: b3c6 ..
12:11:35.331969 IP hastings.60708 > 10.0.0.89.52915: Flags [F.], seq 510, ack 489, win 243, options [nop,nop,TS val 3187858144 ecr 2152452893], length 0
0x0000: 8c85 9048 25eb b827 ebc1 f24d 0800 4500 ...H%..'...M..E.
0x0010: 0034 492b 4000 4006 dcc9 0a00 0077 0a00 .4I+#.#......w..
0x0020: 0059 ed24 ceb3 ca18 0db7 b105 52a6 8011 .Y.$........R...
0x0030: 00f3 dd58 0000 0101 080a be02 dae0 804b ...X...........K
0x0040: d31d ..
12:11:35.332037 IP 10.0.0.89.52915 > hastings.60708: Flags [.], ack 511, win 2050, options [nop,nop,TS val 2152452899 ecr 3187858144], length 0
0x0000: b827 eb94 a718 8c85 9048 25eb 0800 4500 .'.......H%...E.
0x0010: 0034 0000 4000 4006 25f5 0a00 0059 0a00 .4..#.#.%....Y..
0x0020: 0077 ceb3 ed24 b105 52a6 ca18 0db8 8010 .w...$..R.......
0x0030: 0802 d643 0000 0101 080a 804b d323 be02 ...C.......K.#..
0x0040: dae0 ..
Is this simply a problem with https or is it something deeper?
This might be due to ATS, try to set the following keys in your application Info.plist
NSAppTransportSecurity : Dictionary {
NSAllowsArbitraryLoads : Boolean -> YES
NSAllowsArbitraryLoadsForMedia : Boolean -> YES
NSAllowsArbitraryLoadsInWebContent : Boolean -> YES
NSAllowsLocalNetworking : Boolean -> YES
Find more details on official Preventing Insecure Network Connections
I am working on a Ruby on Rails application which uses the WinRM library to access a remote Windows server. The transport supplied is :negotiate which will negotiate the authentication with the remote server.
The issue is the WinRM library expects a 401 HTTP status code so that it can send more data for authentication. However, a 200 HTTP status code is returned and the negotiate fails.
The backtrace is :
NoMethodError: undefined method `split' for nil:NilClass
from /home/cobalt/.rvm/gems/ruby-2.2.2/gems/winrm-1.7.3/lib/winrm/http/transport.rb:226:in `init_auth'
from /home/cobalt/.rvm/gems/ruby-2.2.2/gems/winrm-1.7.3/lib/winrm/http/transport.rb:166:in `send_request'
from /home/cobalt/.rvm/gems/ruby-2.2.2/gems/winrm-1.7.3/lib/winrm/winrm_service.rb:489:in `send_message'
from /home/cobalt/.rvm/gems/ruby-2.2.2/gems/winrm-1.7.3/lib/winrm/winrm_service.rb:390:in `run_wql'
from /home/cobalt/.rvm/gems/ruby-2.2.2/gems/winrm-1.7.3/lib/winrm/command_executor.rb:186:in `os_version'
from /home/cobalt/.rvm/gems/ruby-2.2.2/gems/winrm-1.7.3/lib/winrm/command_executor.rb:145:in `code_page'
from /home/cobalt/.rvm/gems/ruby-2.2.2/gems/winrm-1.7.3/lib/winrm/command_executor.rb:72:in `block in open'
from /home/cobalt/.rvm/gems/ruby-2.2.2/gems/winrm-1.7.3/lib/winrm/command_executor.rb:218:in `retryable'
from /home/cobalt/.rvm/gems/ruby-2.2.2/gems/winrm-1.7.3/lib/winrm/command_executor.rb:71:in `open'
from (irb):20
from /home/cobalt/.rvm/gems/ruby-2.2.2/gems/railties-4.2.1/lib/rails/commands/console.rb:110:in `start'
from /home/cobalt/.rvm/gems/ruby-2.2.2/gems/railties-4.2.1/lib/rails/commands/console.rb:9:in `start'
from /home/cobalt/.rvm/gems/ruby-2.2.2/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:68:in `console'
from /home/cobalt/.rvm/gems/ruby-2.2.2/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
from /home/cobalt/.rvm/gems/ruby-2.2.2/gems/railties-4.2.1/lib/rails/commands.rb:17:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'2.2.2 :021 >
The TCP Dump shows the below package exchanges
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes
12:04:08.372376 IP d8b5d56cba65.53166 > pokcpeusap02.corp.absc.local.wsman: Flags [S], seq 2899844066, win 29200, options [mss 1460,sackOK,TS val 1316187676 ecr 0,nop,wscale 7], length 0
0x0000: 4500 003c 75fe 4000 4006 d486 0400 0005 E..<u.#.#.......
0x0010: 0acd e165 cfae 1761 acd8 1be2 0000 0000 ...e...a........
0x0020: a002 7210 f065 0000 0204 05b4 0402 080a ..r..e..........
0x0030: 4e73 6e1c 0000 0000 0103 0307 Nsn.........
12:04:08.421019 IP pokcpeusap02.corp.absc.local.wsman > d8b5d56cba65.53166: Flags [S.], seq 3702856093, ack 2899844067, win 8192, options [mss 1351,nop,wscale 8,sackOK,TS val 79780711 ecr 1316187676],
length 0
0x0000: 4500 003c 7f04 4000 7d06 8e80 0acd e165 E..<..#.}......e
0x0010: 0400 0005 1761 cfae dcb5 199d acd8 1be3 .....a..........
0x0020: a012 2000 754e 0000 0204 0547 0103 0308 ....uN.....G....
0x0030: 0402 080a 04c1 5b67 4e73 6e1c ......[gNsn.
12:04:08.421047 IP d8b5d56cba65.53166 > pokcpeusap02.corp.absc.local.wsman: Flags [.], ack 1, win 229, options [nop,nop,TS val 1316187725 ecr 79780711], length 0
0x0000: 4500 0034 75ff 4000 4006 d48d 0400 0005 E..4u.#.#.......
0x0010: 0acd e165 cfae 1761 acd8 1be3 dcb5 199e ...e...a........
0x0020: 8010 00e5 f05d 0000 0101 080a 4e73 6e4d .....]......NsnM
0x0030: 04c1 5b67 ..[g
12:04:08.421368 IP d8b5d56cba65.53166 > pokcpeusap02.corp.absc.local.wsman: Flags [P.], seq 1:340, ack 1, win 229, options [nop,nop,TS val 1316187725 ecr 79780711], length 339
0x0000: 4500 0187 7600 4000 4006 d339 0400 0005 E...v.#.#..9....
0x0010: 0acd e165 cfae 1761 acd8 1be3 dcb5 199e ...e...a........
0x0020: 8018 00e5 f1b0 0000 0101 080a 4e73 6e4d ............NsnM
0x0030: 04c1 5b67 504f 5354 202f 7773 6d61 6e20 ..[gPOST./wsman.
0x0040: 4854 5450 2f31 2e31 0d0a 4175 7468 6f72 HTTP/1.1..Author
0x0050: 697a 6174 696f 6e3a 204e 6567 6f74 6961 ization:.Negotia
0x0060: 7465 2054 6c52 4d54 564e 5455 4141 4241 te.TlRMTVNTUAABA
0x0070: 4141 414e 3449 4934 4151 4142 4141 6741 AAAN4II4AQABAAgA
0x0080: 4141 4141 4141 4141 4351 4141 4142 4462 AAAAAAAACQAAABDb
0x0090: 334a 775a 4468 694e 5751 314e 6d4e 6959 3JwZDhiNWQ1NmNiY
0x00a0: 5459 310d 0a43 6f6e 7465 6e74 2d54 7970 TY1..Content-Typ
0x00b0: 653a 2061 7070 6c69 6361 7469 6f6e 2f73 e:.application/s
0x00c0: 6f61 702b 786d 6c3b 6368 6172 7365 743d oap+xml;charset=
0x00d0: 5554 462d 380d 0a55 7365 722d 4167 656e UTF-8..User-Agen
0x00e0: 743a 2052 7562 7920 5769 6e52 4d20 436c t:.Ruby.WinRM.Cl
0x00f0: 6965 6e74 2028 322e 372e 312c 2072 7562 ient.(2.7.1,.rub
0x0100: 7920 322e 322e 3220 2832 3031 352d 3034 y.2.2.2.(2015-04
0x0110: 2d31 3329 290d 0a41 6363 6570 743a 202a -13))..Accept:.*
0x0120: 2f2a 0d0a 4461 7465 3a20 5475 652c 2030 /*..Date:.Tue,.0
0x0130: 3720 4d61 7220 3230 3137 2031 323a 3034 7.Mar.2017.12:04
0x0140: 3a30 3820 474d 540d 0a43 6f6e 7465 6e74 :08.GMT..Content
0x0150: 2d4c 656e 6774 683a 2030 0d0a 486f 7374 -Length:.0..Host
0x0160: 3a20 706f 6b63 7065 7573 6170 3032 2e63 :.pokcpeusap02.c
0x0170: 6f72 702e 6162 7363 2e6c 6f63 616c 3a35 orp.absc.local:5
0x0180: 3938 350d 0a0d 0a 985....
12:04:08.516497 IP pokcpeusap02.corp.absc.local.wsman > d8b5d56cba65.53166: Flags [P.], seq 1:39, ack 340, win 256, options [nop,nop,TS val 79780721 ecr 1316187725], length 38
0x0000: 4500 005a 7f05 4000 7d06 8e61 0acd e165 E..Z..#.}..a...e
0x0010: 0400 0005 1761 cfae dcb5 199e acd8 1d36 .....a.........6
0x0020: 8018 0100 11f4 0000 0101 080a 04c1 5b71 ..............[q
0x0030: 4e73 6e4d 4854 5450 2f31 2e31 2032 3030 NsnMHTTP/1.1.200
0x0040: 204f 4b0d 0a43 6f6e 7465 6e74 2d4c 656e .OK..Content-Len
0x0050: 6774 683a 2030 0d0a 0d0a gth:.0....
12:04:08.516541 IP d8b5d56cba65.53166 > pokcpeusap02.corp.absc.local.wsman: Flags [.], ack 39, win 229, options [nop,nop,TS val 1316187821 ecr 79780721], length 0
0x0000: 4500 0034 7601 4000 4006 d48b 0400 0005 E..4v.#.#.......
0x0010: 0acd e165 cfae 1761 acd8 1d36 dcb5 19c4 ...e...a...6....
0x0020: 8010 00e5 f05d 0000 0101 080a 4e73 6ead .....]......Nsn.
0x0030: 04c1 5b71 ..[q
What would be the issue? Why I don't get a 401 HTTP status code?
I havae managed to found the root cause of the issue. It turns out there is another service instead of WinRM srevice is listening to port 5985. Hence when a request is sent to that port, that service responded with a respone requiring Basic Authentication and the status code 200. The issue is fixed after starting WinRM service and make it listen at port 5985.
The detailed analysis can be found at Ruby WinRM undefined method `split' for nil:NilClass. It's really a good lesson to learn. Sometimes the issue is very simple and stupid, but to find out the issue would take much effort.
I want to make app that let user to make calls over ip (VOIP).
I was following this tutorial http://www.xianwenchen.com/blog/2014/06/09/how-to-make-an-ios-voip-app-with-pjsip-part-1/
but now I want to register to global server like ekiga or linphone.org .
now this is my code written in C
#include "Pjsua.h"
#include <pjsua-lib/pjsua.h>
#define THIS_FILE "Pjsua.c"
static pjsua_acc_id acc_id;
const size_t MAX_SIP_ID_LENGTH = 50;
const size_t MAX_SIP_REG_URI_LENGTH = 50;
static void on_incoming_call(pjsua_acc_id acc_id, pjsua_call_id call_id, pjsip_rx_data *rdata);
static void on_call_state(pjsua_call_id call_id, pjsip_event *e);
static void on_call_media_state(pjsua_call_id call_id);
static void error_exit(const char *title, pj_status_t status);
int startPjsip(char *sipUser, char* sipDomain)
{
pj_status_t status;
// Create pjsua first
status = pjsua_create();
if (status != PJ_SUCCESS) error_exit("Error in pjsua_create()", status);
// Init pjsua
{
// Init the config structure
pjsua_config cfg;
pjsua_config_default (&cfg);
cfg.cb.on_incoming_call = &on_incoming_call;
cfg.cb.on_call_media_state = &on_call_media_state;
cfg.cb.on_call_state = &on_call_state;
// Init the logging config structure
pjsua_logging_config log_cfg;
pjsua_logging_config_default(&log_cfg);
log_cfg.console_level = 5;
log_cfg.level = 5;
// Init the pjsua
status = pjsua_init(&cfg, &log_cfg, NULL);
if (status != PJ_SUCCESS) error_exit("Error in pjsua_init()", status);
}
// Add UDP transport.
{
// Init transport config structure
pjsua_transport_config cfg;
pjsua_transport_config_default(&cfg);
cfg.port = 5080;
// Add TCP transport.
status = pjsua_transport_create(PJSIP_TRANSPORT_UDP, &cfg, NULL);
if (status != PJ_SUCCESS) error_exit("Error creating transport udp", status);
}
// Add TCP transport.
{
// Init transport config structure
pjsua_transport_config cfg;
pjsua_transport_config_default(&cfg);
cfg.port = 5080;
// Add TCP transport.
status = pjsua_transport_create(PJSIP_TRANSPORT_TCP, &cfg, NULL);
if (status != PJ_SUCCESS) error_exit("Error creating transport tcp", status);
}
// Initialization is done, now start pjsua
status = pjsua_start();
if (status != PJ_SUCCESS) error_exit("Error starting pjsua", status);
// Register the account on local sip server
{
pjsua_acc_config cfg;
pjsua_acc_config_default(&cfg);
cfg.id = pj_str((char *)"sip:exampleuser#sip.linphone.org");
cfg.reg_uri = pj_str((char *)"sip:sip.linphone.org");
cfg.proxy[0] = pj_str((char *)"sip:sip.linphone.org");
cfg.cred_count = 1;
cfg.cred_info[0].scheme = pj_str((char *)"digest");
cfg.cred_info[0].realm = pj_str((char *)"*");
cfg.cred_info[0].username = pj_str((char *)"exampleuser");
cfg.cred_info[0].data_type = 0;
cfg.cred_info[0].data = pj_str((char *)"examplepasswor");
status = pjsua_acc_add(&cfg, PJ_TRUE, &acc_id);
if (status != PJ_SUCCESS) error_exit("Error adding account", status);
}
return 0;
}
/* Callback called by the library upon receiving incoming call */
static void on_incoming_call(pjsua_acc_id acc_id, pjsua_call_id call_id,
pjsip_rx_data *rdata)
{
pjsua_call_info ci;
PJ_UNUSED_ARG(acc_id);
PJ_UNUSED_ARG(rdata);
pjsua_call_get_info(call_id, &ci);
PJ_LOG(3,(THIS_FILE, "Incoming call from %.*s!!",
(int)ci.remote_info.slen,
ci.remote_info.ptr));
/* Automatically answer incoming calls with 200/OK */
pjsua_call_answer(call_id, 200, NULL, NULL);
}
/* Callback called by the library when call's state has changed */
static void on_call_state(pjsua_call_id call_id, pjsip_event *e)
{
pjsua_call_info ci;
PJ_UNUSED_ARG(e);
pjsua_call_get_info(call_id, &ci);
PJ_LOG(3,(THIS_FILE, "Call %d state=%.*s", call_id,
(int)ci.state_text.slen,
ci.state_text.ptr));
}
/* Callback called by the library when call's media state has changed */
static void on_call_media_state(pjsua_call_id call_id)
{
pjsua_call_info ci;
pjsua_call_get_info(call_id, &ci);
if (ci.media_status == PJSUA_CALL_MEDIA_ACTIVE) {
// When media is active, connect call to sound device.
pjsua_conf_connect(ci.conf_slot, 0);
pjsua_conf_connect(0, ci.conf_slot);
}
}
/* Display error and exit application */
static void error_exit(const char *title, pj_status_t status)
{
pjsua_perror(THIS_FILE, title, status);
pjsua_destroy();
exit(1);
}
void makeCall(char* destUri)
{
pj_status_t status;
pj_str_t uri = pj_str(destUri);
status = pjsua_call_make_call(acc_id, &uri, 0, NULL, NULL, NULL);
if (status != PJ_SUCCESS) error_exit("Error making call", status);
}
void endCall()
{
pjsua_call_hangup_all();
}
display request time out error .
12:41:02.521 os_core_unix.c !pjlib 2.3 for POSIX initialized
12:41:02.524 sip_endpoint.c .Creating endpoint instance...
12:41:02.528 pjlib .select() I/O Queue created (0x7db49148)
12:41:02.528 sip_endpoint.c .Module "mod-msg-print" registered
12:41:02.528 sip_transport. .Transport manager created.
12:41:02.528 pjsua_core.c .PJSUA state changed: NULL --> CREATED
12:41:02.531 sip_endpoint.c .Module "mod-pjsua-log" registered
12:41:02.531 sip_endpoint.c .Module "mod-tsx-layer" registered
12:41:02.532 sip_endpoint.c .Module "mod-stateful-util" registered
12:41:02.532 sip_endpoint.c .Module "mod-ua" registered
12:41:02.533 sip_endpoint.c .Module "mod-100rel" registered
12:41:02.533 sip_endpoint.c .Module "mod-pjsua" registered
12:41:02.533 sip_endpoint.c .Module "mod-invite" registered
12:41:02.584 coreaudio_dev. .. dev_id 0: iPhone IO device (in=1, out=1) 8000Hz
12:41:02.584 coreaudio_dev. ..core audio initialized
12:41:02.584 pjlib ..select() I/O Queue created (0x7cb38a14)
12:41:02.595 sip_endpoint.c .Module "mod-evsub" registered
12:41:02.595 sip_endpoint.c .Module "mod-presence" registered
12:41:02.595 sip_endpoint.c .Module "mod-mwi" registered
12:41:02.609 sip_endpoint.c .Module "mod-refer" registered
12:41:02.609 sip_endpoint.c .Module "mod-pjsua-pres" registered
12:41:02.609 sip_endpoint.c .Module "mod-pjsua-im" registered
12:41:02.609 sip_endpoint.c .Module "mod-pjsua-options" registered
12:41:02.609 pjsua_core.c .1 SIP worker threads created
12:41:02.609 pjsua_core.c .pjsua version 2.3 for Darwin-15.2/x86_64 initialized
12:41:02.609 pjsua_core.c .PJSUA state changed: CREATED --> INIT
12:41:02.610 pjsua_core.c SIP UDP socket reachable at 192.168.1.4:5080
12:41:02.610 udp0x7e33de00 SIP UDP transport started, published address is 192.168.1.4:5080
12:41:02.610 pjsua_core.c PJSUA state changed: INIT --> STARTING
12:41:02.610 sip_endpoint.c .Module "mod-unsolicited-mwi" registered
12:41:02.610 pjsua_core.c .PJSUA state changed: STARTING --> RUNNING
12:41:02.610 pjsua_acc.c Adding account: id=sip:eslamhanafy#sip.linphone.org
12:41:02.610 pjsua_acc.c .Account sip:eslamhanafy#sip.linphone.org added with id 0
12:41:02.662 pjsua_acc.c .Acc 0: setting registration..
12:41:03.011 pjsua_core.c ...TX 513 bytes Request msg REGISTER/cseq=61350 (tdta0x7db55800) to UDP 91.121.209.194:5060:
REGISTER sip:sip.linphone.org SIP/2.0
Via: SIP/2.0/UDP 192.168.1.4:5080;rport;branch=z9hG4bKPjEqa4bpBzv-vnExngLtmsuk5iwICWQ6nq
Max-Forwards: 70
From: <sip:eslamhanafy#sip.linphone.org>;tag=6tsmpbE3RQMQYGV3V4umeMM.U78z5CLt
To: <sip:eslamhanafy#sip.linphone.org>
Call-ID: OMZHw0Zs5Yz7Yjn8qZGr3Oiy2ELIHUh2
CSeq: 61350 REGISTER
Contact: <sip:eslamhanafy#192.168.1.4:5080;ob>
Expires: 300
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Content-Length: 0
--end msg--
12:41:03.012 pjsua_acc.c ..Acc 0: Registration sent
12:41:03.012 pjsua_call.c Making call with acc #0 to sip:485501406065403210#sip.linphone.org
12:41:03.013 pjsua_aud.c .Set sound device: capture=-1, playback=-2
12:41:03.014 pjsua_aud.c ..Opening sound device PCM#16000/1/20ms
12:41:03.014 coreaudio_dev. ...Using VoiceProcessingIO audio unit
12:41:03.082 coreaudio_dev. ...core audio stream started
12:41:03.082 pjsua_media.c .Call 0: initializing media..
12:41:03.083 pjsua_media.c ..RTP socket reachable at 192.168.1.4:4000
12:41:03.083 pjsua_media.c ..RTCP socket reachable at 192.168.1.4:4001
12:41:03.083 pjsua_media.c ..Media index 0 selected for audio call 0
12:41:03.084 pjsua_core.c ....TX 1079 bytes Request msg INVITE/cseq=5147 (tdta0x7db57000) to UDP 91.121.209.194:5060:
INVITE sip:485501406065403210#sip.linphone.org SIP/2.0
Via: SIP/2.0/UDP 192.168.1.4:5080;rport;branch=z9hG4bKPjwaxGhboJCF8WhuS7G6UQqXVwps0Qo3na
Max-Forwards: 70
From: sip:eslamhanafy#sip.linphone.org;tag=yRJayafQCC9ApjtJuF8-NtAmY8PquMXt
To: sip:485501406065403210#sip.linphone.org
Contact: <sip:eslamhanafy#192.168.1.4:5080;ob>
Call-ID: FScQI.ot3zfH6qdPis4.zQUw4g.yzDun
CSeq: 5147 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
Content-Type: application/sdp
Content-Length: 446
v=0
o=- 3662793663 3662793663 IN IP4 192.168.1.4
s=pjmedia
b=AS:84
t=0 0
a=X-nat:0
m=audio 4000 RTP/AVP 98 97 99 104 3 0 8 96
c=IN IP4 192.168.1.4
b=TIAS:64000
a=rtcp:4001 IN IP4 192.168.1.4
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:96 telephone-event/8000
a=fmtp:96 0-16
--end msg--
done
done
12:41:03.100 os_core_unix.c !Info: possibly re-registering existing thread
12:41:03.512 pjsua_core.c !.TX 513 bytes Request msg REGISTER/cseq=61350 (tdta0x7db55800) to UDP 91.121.209.194:5060:
REGISTER sip:sip.linphone.org SIP/2.0
Via: SIP/2.0/UDP 192.168.1.4:5080;rport;branch=z9hG4bKPjEqa4bpBzv-vnExngLtmsuk5iwICWQ6nq
Max-Forwards: 70
From: <sip:eslamhanafy#sip.linphone.org>;tag=6tsmpbE3RQMQYGV3V4umeMM.U78z5CLt
To: <sip:eslamhanafy#sip.linphone.org>
Call-ID: OMZHw0Zs5Yz7Yjn8qZGr3Oiy2ELIHUh2
CSeq: 61350 REGISTER
Contact: <sip:eslamhanafy#192.168.1.4:5080;ob>
Expires: 300
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Content-Length: 0
--end msg--
12:41:03.585 pjsua_core.c .TX 1079 bytes Request msg INVITE/cseq=5147 (tdta0x7db57000) to UDP 91.121.209.194:5060:
INVITE sip:485501406065403210#sip.linphone.org SIP/2.0
Via: SIP/2.0/UDP 192.168.1.4:5080;rport;branch=z9hG4bKPjwaxGhboJCF8WhuS7G6UQqXVwps0Qo3na
Max-Forwards: 70
From: sip:eslamhanafy#sip.linphone.org;tag=yRJayafQCC9ApjtJuF8-NtAmY8PquMXt
To: sip:485501406065403210#sip.linphone.org
Contact: <sip:eslamhanafy#192.168.1.4:5080;ob>
Call-ID: FScQI.ot3zfH6qdPis4.zQUw4g.yzDun
CSeq: 5147 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
Content-Type: application/sdp
Content-Length: 446
v=0
o=- 3662793663 3662793663 IN IP4 192.168.1.4
s=pjmedia
b=AS:84
t=0 0
a=X-nat:0
m=audio 4000 RTP/AVP 98 97 99 104 3 0 8 96
c=IN IP4 192.168.1.4
b=TIAS:64000
a=rtcp:4001 IN IP4 192.168.1.4
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:96 telephone-event/8000
a=fmtp:96 0-16
--end msg--
12:41:04.513 pjsua_core.c .TX 513 bytes Request msg REGISTER/cseq=61350 (tdta0x7db55800) to UDP 91.121.209.194:5060:
REGISTER sip:sip.linphone.org SIP/2.0
Via: SIP/2.0/UDP 192.168.1.4:5080;rport;branch=z9hG4bKPjEqa4bpBzv-vnExngLtmsuk5iwICWQ6nq
Max-Forwards: 70
From: <sip:eslamhanafy#sip.linphone.org>;tag=6tsmpbE3RQMQYGV3V4umeMM.U78z5CLt
To: <sip:eslamhanafy#sip.linphone.org>
Call-ID: OMZHw0Zs5Yz7Yjn8qZGr3Oiy2ELIHUh2
CSeq: 61350 REGISTER
Contact: <sip:eslamhanafy#192.168.1.4:5080;ob>
Expires: 300
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Content-Length: 0
--end msg--
12:41:04.585 pjsua_core.c .TX 1079 bytes Request msg INVITE/cseq=5147 (tdta0x7db57000) to UDP 91.121.209.194:5060:
INVITE sip:485501406065403210#sip.linphone.org SIP/2.0
Via: SIP/2.0/UDP 192.168.1.4:5080;rport;branch=z9hG4bKPjwaxGhboJCF8WhuS7G6UQqXVwps0Qo3na
Max-Forwards: 70
From: sip:eslamhanafy#sip.linphone.org;tag=yRJayafQCC9ApjtJuF8-NtAmY8PquMXt
To: sip:485501406065403210#sip.linphone.org
Contact: <sip:eslamhanafy#192.168.1.4:5080;ob>
Call-ID: FScQI.ot3zfH6qdPis4.zQUw4g.yzDun
CSeq: 5147 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
Content-Type: application/sdp
Content-Length: 446
v=0
o=- 3662793663 3662793663 IN IP4 192.168.1.4
s=pjmedia
b=AS:84
t=0 0
a=X-nat:0
m=audio 4000 RTP/AVP 98 97 99 104 3 0 8 96
c=IN IP4 192.168.1.4
b=TIAS:64000
a=rtcp:4001 IN IP4 192.168.1.4
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:96 telephone-event/8000
a=fmtp:96 0-16
--end msg--
12:41:06.515 pjsua_core.c .TX 513 bytes Request msg REGISTER/cseq=61350 (tdta0x7db55800) to UDP 91.121.209.194:5060:
REGISTER sip:sip.linphone.org SIP/2.0
Via: SIP/2.0/UDP 192.168.1.4:5080;rport;branch=z9hG4bKPjEqa4bpBzv-vnExngLtmsuk5iwICWQ6nq
Max-Forwards: 70
From: <sip:eslamhanafy#sip.linphone.org>;tag=6tsmpbE3RQMQYGV3V4umeMM.U78z5CLt
To: <sip:eslamhanafy#sip.linphone.org>
Call-ID: OMZHw0Zs5Yz7Yjn8qZGr3Oiy2ELIHUh2
CSeq: 61350 REGISTER
Contact: <sip:eslamhanafy#192.168.1.4:5080;ob>
Expires: 300
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Content-Length: 0
--end msg--
12:41:10.515 pjsua_core.c .TX 513 bytes Request msg REGISTER/cseq=61350 (tdta0x7db55800) to UDP 91.121.209.194:5060:
REGISTER sip:sip.linphone.org SIP/2.0
Via: SIP/2.0/UDP 192.168.1.4:5080;rport;branch=z9hG4bKPjEqa4bpBzv-vnExngLtmsuk5iwICWQ6nq
Max-Forwards: 70
From: <sip:eslamhanafy#sip.linphone.org>;tag=6tsmpbE3RQMQYGV3V4umeMM.U78z5CLt
To: <sip:eslamhanafy#sip.linphone.org>
Call-ID: OMZHw0Zs5Yz7Yjn8qZGr3Oiy2ELIHUh2
CSeq: 61350 REGISTER
Contact: <sip:eslamhanafy#192.168.1.4:5080;ob>
Expires: 300
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Content-Length: 0
--end msg--
12:41:10.585 pjsua_core.c .TX 1079 bytes Request msg INVITE/cseq=5147 (tdta0x7db57000) to UDP 91.121.209.194:5060:
INVITE sip:485501406065403210#sip.linphone.org SIP/2.0
Via: SIP/2.0/UDP 192.168.1.4:5080;rport;branch=z9hG4bKPjwaxGhboJCF8WhuS7G6UQqXVwps0Qo3na
Max-Forwards: 70
From: sip:eslamhanafy#sip.linphone.org;tag=yRJayafQCC9ApjtJuF8-NtAmY8PquMXt
To: sip:485501406065403210#sip.linphone.org
Contact: <sip:eslamhanafy#192.168.1.4:5080;ob>
Call-ID: FScQI.ot3zfH6qdPis4.zQUw4g.yzDun
CSeq: 5147 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
Content-Type: application/sdp
Content-Length: 446
v=0
o=- 3662793663 3662793663 IN IP4 192.168.1.4
s=pjmedia
b=AS:84
t=0 0
a=X-nat:0
m=audio 4000 RTP/AVP 98 97 99 104 3 0 8 96
c=IN IP4 192.168.1.4
b=TIAS:64000
a=rtcp:4001 IN IP4 192.168.1.4
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:96 telephone-event/8000
a=fmtp:96 0-16
--end msg--
12:41:14.515 pjsua_core.c .TX 513 bytes Request msg REGISTER/cseq=61350 (tdta0x7db55800) to UDP 91.121.209.194:5060:
REGISTER sip:sip.linphone.org SIP/2.0
Via: SIP/2.0/UDP 192.168.1.4:5080;rport;branch=z9hG4bKPjEqa4bpBzv-vnExngLtmsuk5iwICWQ6nq
Max-Forwards: 70
From: <sip:eslamhanafy#sip.linphone.org>;tag=6tsmpbE3RQMQYGV3V4umeMM.U78z5CLt
To: <sip:eslamhanafy#sip.linphone.org>
Call-ID: OMZHw0Zs5Yz7Yjn8qZGr3Oiy2ELIHUh2
CSeq: 61350 REGISTER
Contact: <sip:eslamhanafy#192.168.1.4:5080;ob>
Expires: 300
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Content-Length: 0
--end msg--
12:41:18.518 pjsua_core.c .TX 513 bytes Request msg REGISTER/cseq=61350 (tdta0x7db55800) to UDP 91.121.209.194:5060:
REGISTER sip:sip.linphone.org SIP/2.0
Via: SIP/2.0/UDP 192.168.1.4:5080;rport;branch=z9hG4bKPjEqa4bpBzv-vnExngLtmsuk5iwICWQ6nq
Max-Forwards: 70
From: <sip:eslamhanafy#sip.linphone.org>;tag=6tsmpbE3RQMQYGV3V4umeMM.U78z5CLt
To: <sip:eslamhanafy#sip.linphone.org>
Call-ID: OMZHw0Zs5Yz7Yjn8qZGr3Oiy2ELIHUh2
CSeq: 61350 REGISTER
Contact: <sip:eslamhanafy#192.168.1.4:5080;ob>
Expires: 300
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Content-Length: 0
--end msg--
12:41:18.588 pjsua_core.c .TX 1079 bytes Request msg INVITE/cseq=5147 (tdta0x7db57000) to UDP 91.121.209.194:5060:
INVITE sip:485501406065403210#sip.linphone.org SIP/2.0
Via: SIP/2.0/UDP 192.168.1.4:5080;rport;branch=z9hG4bKPjwaxGhboJCF8WhuS7G6UQqXVwps0Qo3na
Max-Forwards: 70
From: sip:eslamhanafy#sip.linphone.org;tag=yRJayafQCC9ApjtJuF8-NtAmY8PquMXt
To: sip:485501406065403210#sip.linphone.org
Contact: <sip:eslamhanafy#192.168.1.4:5080;ob>
Call-ID: FScQI.ot3zfH6qdPis4.zQUw4g.yzDun
CSeq: 5147 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
Content-Type: application/sdp
Content-Length: 446
v=0
o=- 3662793663 3662793663 IN IP4 192.168.1.4
s=pjmedia
b=AS:84
t=0 0
a=X-nat:0
m=audio 4000 RTP/AVP 98 97 99 104 3 0 8 96
c=IN IP4 192.168.1.4
b=TIAS:64000
a=rtcp:4001 IN IP4 192.168.1.4
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:96 telephone-event/8000
a=fmtp:96 0-16
--end msg--
12:41:22.520 pjsua_core.c .TX 513 bytes Request msg REGISTER/cseq=61350 (tdta0x7db55800) to UDP 91.121.209.194:5060:
REGISTER sip:sip.linphone.org SIP/2.0
Via: SIP/2.0/UDP 192.168.1.4:5080;rport;branch=z9hG4bKPjEqa4bpBzv-vnExngLtmsuk5iwICWQ6nq
Max-Forwards: 70
From: <sip:eslamhanafy#sip.linphone.org>;tag=6tsmpbE3RQMQYGV3V4umeMM.U78z5CLt
To: <sip:eslamhanafy#sip.linphone.org>
Call-ID: OMZHw0Zs5Yz7Yjn8qZGr3Oiy2ELIHUh2
CSeq: 61350 REGISTER
Contact: <sip:eslamhanafy#192.168.1.4:5080;ob>
Expires: 300
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Content-Length: 0
--end msg--
12:41:26.520 pjsua_core.c .TX 513 bytes Request msg REGISTER/cseq=61350 (tdta0x7db55800) to UDP 91.121.209.194:5060:
REGISTER sip:sip.linphone.org SIP/2.0
Via: SIP/2.0/UDP 192.168.1.4:5080;rport;branch=z9hG4bKPjEqa4bpBzv-vnExngLtmsuk5iwICWQ6nq
Max-Forwards: 70
From: <sip:eslamhanafy#sip.linphone.org>;tag=6tsmpbE3RQMQYGV3V4umeMM.U78z5CLt
To: <sip:eslamhanafy#sip.linphone.org>
Call-ID: OMZHw0Zs5Yz7Yjn8qZGr3Oiy2ELIHUh2
CSeq: 61350 REGISTER
Contact: <sip:eslamhanafy#192.168.1.4:5080;ob>
Expires: 300
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Content-Length: 0
--end msg--
12:41:30.524 pjsua_core.c .TX 513 bytes Request msg REGISTER/cseq=61350 (tdta0x7db55800) to UDP 91.121.209.194:5060:
REGISTER sip:sip.linphone.org SIP/2.0
Via: SIP/2.0/UDP 192.168.1.4:5080;rport;branch=z9hG4bKPjEqa4bpBzv-vnExngLtmsuk5iwICWQ6nq
Max-Forwards: 70
From: <sip:eslamhanafy#sip.linphone.org>;tag=6tsmpbE3RQMQYGV3V4umeMM.U78z5CLt
To: <sip:eslamhanafy#sip.linphone.org>
Call-ID: OMZHw0Zs5Yz7Yjn8qZGr3Oiy2ELIHUh2
CSeq: 61350 REGISTER
Contact: <sip:eslamhanafy#192.168.1.4:5080;ob>
Expires: 300
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Content-Length: 0
--end msg--
12:41:34.525 pjsua_core.c .TX 513 bytes Request msg REGISTER/cseq=61350 (tdta0x7db55800) to UDP 91.121.209.194:5060:
REGISTER sip:sip.linphone.org SIP/2.0
Via: SIP/2.0/UDP 192.168.1.4:5080;rport;branch=z9hG4bKPjEqa4bpBzv-vnExngLtmsuk5iwICWQ6nq
Max-Forwards: 70
From: <sip:eslamhanafy#sip.linphone.org>;tag=6tsmpbE3RQMQYGV3V4umeMM.U78z5CLt
To: <sip:eslamhanafy#sip.linphone.org>
Call-ID: OMZHw0Zs5Yz7Yjn8qZGr3Oiy2ELIHUh2
CSeq: 61350 REGISTER
Contact: <sip:eslamhanafy#192.168.1.4:5080;ob>
Expires: 300
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Content-Length: 0
--end msg--
12:41:34.588 pjsua_core.c .TX 1079 bytes Request msg INVITE/cseq=5147 (tdta0x7db57000) to UDP 91.121.209.194:5060:
INVITE sip:485501406065403210#sip.linphone.org SIP/2.0
Via: SIP/2.0/UDP 192.168.1.4:5080;rport;branch=z9hG4bKPjwaxGhboJCF8WhuS7G6UQqXVwps0Qo3na
Max-Forwards: 70
From: sip:eslamhanafy#sip.linphone.org;tag=yRJayafQCC9ApjtJuF8-NtAmY8PquMXt
To: sip:485501406065403210#sip.linphone.org
Contact: <sip:eslamhanafy#192.168.1.4:5080;ob>
Call-ID: FScQI.ot3zfH6qdPis4.zQUw4g.yzDun
CSeq: 5147 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
Content-Type: application/sdp
Content-Length: 446
v=0
o=- 3662793663 3662793663 IN IP4 192.168.1.4
s=pjmedia
b=AS:84
t=0 0
a=X-nat:0
m=audio 4000 RTP/AVP 98 97 99 104 3 0 8 96
c=IN IP4 192.168.1.4
b=TIAS:64000
a=rtcp:4001 IN IP4 192.168.1.4
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:96 telephone-event/8000
a=fmtp:96 0-16
--end msg--
12:41:35.015 pjsua_acc.c ...SIP registration failed, status=408 (Request Timeout)
12:41:35.015 pjsua_acc.c ...Scheduling re-registration retry for acc 0 in 6 seconds..
12:41:35.086 pjsua_media.c ....Call 0: deinitializing media..
12:41:36.087 pjsua_aud.c Closing sound device after idle for 1 second(s)
12:41:36.088 pjsua_aud.c .Closing iPhone IO device sound playback device and iPhone IO device sound capture device
12:41:36.097 coreaudio_dev. .core audio stream stopped
12:41:41.818 pjsua_acc.c Acc 0: setting registration..
12:41:41.820 pjsua_core.c ..TX 513 bytes Request msg REGISTER/cseq=57441 (tdta0x7e343400) to UDP 91.121.209.194:5060:
REGISTER sip:sip.linphone.org SIP/2.0
Via: SIP/2.0/UDP 192.168.1.4:5080;rport;branch=z9hG4bKPjwqokNHR5QxIsPICaadyURijMJCPYMq0s
Max-Forwards: 70
From: <sip:eslamhanafy#sip.linphone.org>;tag=j5fAFvbb3pMEy4jUSE8Mvx4OdSl0LR.I
To: <sip:eslamhanafy#sip.linphone.org>
Call-ID: J4IpT-HlM8wWISM6NHokczyuNpJBZ5i.
CSeq: 57441 REGISTER
Contact: <sip:eslamhanafy#192.168.1.4:5080;ob>
Expires: 300
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Content-Length: 0
please any help.
Checking your log I find that you already have an process running on your phone that is already bind at the target UDP port.
15:47:04.750 Pjsua.c : Error creating transport UDP: Address already in use [status=120048]
This line shows that your App cannot allocate the network resource.
Solution 1: Try to reboot your iOS and/or kill all apps related with SIP;
Solution 2: If possible change the UDP port cfg.port = 5080;