Hi,
I'm using JSSIP, and OverSIP as a proxy to route the SIP requests to a SIP server (FreeSWITCH)/registrar. I'm able to register successfully, but when I make a call, I get the following sequence of events : ( I get 180 Ringing, but when JSSIP sends an INVITE after this, I get 488 Not acceptable here from the SIP server, and Incompatible SDP in the UI.)
Please help me identify the reason for this error:
Console log :
=============================
JsSIP | MEDIA SESSION | ICE candidate received: a=candidate:4278134664 1 udp 2113937151 192.168.1.8 38808 typ host generation 0
jssip-0.2.1.js:3912 JsSIP | MEDIA SESSION | ICE candidate received: a=candidate:4278134664 2 udp 2113937151 192.168.1.8 38808 typ host generation 0
jssip-0.2.1.js:3912 JsSIP | MEDIA SESSION | ICE candidate received: a=candidate:4278134664 1 udp 2113937151 192.168.1.8 38808 typ host generation 0
jssip-0.2.1.js:3912 JsSIP | MEDIA SESSION | ICE candidate received: a=candidate:4278134664 2 udp 2113937151 192.168.1.8 38808 typ host generation 0
jssip-0.2.1.js:3912 JsSIP | MEDIA SESSION | ICE candidate received: a=candidate:1470146653 1 udp 1677729535 59.177.57.122 26804 typ srflx generation 0
jssip-0.2.1.js:3912 JsSIP | MEDIA SESSION | ICE candidate received: a=candidate:1470146653 2 udp 1677729535 59.177.57.122 26804 typ srflx generation 0
jssip-0.2.1.js:3912 JsSIP | MEDIA SESSION | ICE candidate received: a=candidate:1470146653 1 udp 1677729535 59.177.57.122 26804 typ srflx generation 0
jssip-0.2.1.js:3912 JsSIP | MEDIA SESSION | ICE candidate received: a=candidate:1470146653 2 udp 1677729535 59.177.57.122 26804 typ srflx generation 0
jssip-0.2.1.js:3912 JsSIP | MEDIA SESSION | ICE candidate received: a=candidate:2960972664 1 tcp 1509957375 192.168.1.8 59829 typ host generation 0
jssip-0.2.1.js:3912 JsSIP | MEDIA SESSION | ICE candidate received: a=candidate:2960972664 2 tcp 1509957375 192.168.1.8 59829 typ host generation 0
jssip-0.2.1.js:3912 JsSIP | MEDIA SESSION | ICE candidate received: a=candidate:2960972664 1 tcp 1509957375 192.168.1.8 59829 typ host generation 0
jssip-0.2.1.js:3912 JsSIP | MEDIA SESSION | ICE candidate received: a=candidate:2960972664 2 tcp 1509957375 192.168.1.8 59829 typ host generation 0
jssip-0.2.1.js:3912 JsSIP | TRANSPORT | Sending WebSocket message:
INVITE sip:3020...@116.214.15.45 SIP/2.0
Route: <sip:192.168.1.8:10080;transport=ws;lr>
Via: SIP/2.0/TCP 29.62.109.242;branch=z9hG4bK1565615
Max-Forwards: 69
To: sip:3020...@116.214.15.45
From: sip:10...@116.214.15.45:5080;tag=rj2nc38qem
Call-ID: joshempnx2kuh7smrt3x
CSeq: 1974 INVITE
Contact: <sip:10...@29.62.109.242;transport=ws;ob>
Allow: INVITE, ACK, CANCEL, BYE, OPTIONS, MESSAGE, SUBSCRIBE
Content-Type: application/sdp
Supported: path, outbound, gruu
User-Agent: JsSIP 0.2.1
Content-Length: 1262
v=0
o=- 1332950551 2 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE audio video
m=audio 26804 RTP/SAVPF 103 104 0 8 106 105 13 126
c=IN IP4 59.177.57.122
a=rtcp:26804 IN IP4 59.177.57.122
a=candidate:4278134664 1 udp 2113937151 192.168.1.8 38808 typ host generation 0
a=candidate:4278134664 2 udp 2113937151 192.168.1.8 38808 typ host generation 0
a=candidate:1470146653 1 udp 1677729535 59.177.57.122 26804 typ srflx generation 0
a=candidate:1470146653 2 udp 1677729535 59.177.57.122 26804 typ srflx generation 0
a=candidate:2960972664 1 tcp 1509957375 192.168.1.8 59829 typ host generation 0
a=candidate:2960972664 2 tcp 1509957375 192.168.1.8 59829 typ host generation 0
a=ice-ufrag:6SNG1DqjmtwHe9ZF
a=ice-pwd:nG9mCfFQbclBBw/JQe0Ggx4+
a=ice-options:google-ice
a=sendrecv
a=mid:audio
a=rtcp-mux
a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:8C79V519HkgsDw7FmliRbqCHcwMnfp3dFOSb4K/r
a=rtpmap:103 ISAC/16000
a=rtpmap:104 ISAC/32000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:106 CN/32000
a=rtpmap:105 CN/16000
a=rtpmap:13 CN/8000
a=rtpmap:126 telephone-event/8000
a=ssrc:1715653878 cname:9aINo11FGvIvNrJa
a=ssrc:1715653878 mslabel:WEEeJjuU3BY3ck2KmIbjsRKDphEVx6X7CMeJ
a=ssrc:1715653878 label:WEEeJjuU3BY3ck2KmIbjsRKDphEVx6X7CMeJ00
jssip-0.2.1.js:541 JsSIP | TRANSPORT | Received WebSocket text message:
SIP/2.0 100 Trying
Via: SIP/2.0/TCP 29.62.109.242;branch=z9hG4bK1565615
From: sip:10...@116.214.15.45:5080;tag=rj2nc38qem
To: sip:3020...@116.214.15.45
Call-ID: joshempnx2kuh7smrt3x
CSeq: 1974 INVITE
Content-Length: 0
Server: OverSIP/1.4.0.dev1
jssip-0.2.1.js:684 JsSIP | TRANSPORT | Received WebSocket text message:
SIP/2.0 180 Ringing
Via: SIP/2.0/TCP 29.62.109.242;branch=z9hG4bK1565615
Record-Route: <sip:192.168.1.8:5060;transport=udp;lr;ovid=69d4d6a0>
Record-Route: <sip:774f8...@192.168.1.8:10080;transport=ws;lr;ovid=69d4d6a0>
From: <sip:10...@116.214.15.45:5080>;tag=rj2nc38qem
To: <sip:3020...@116.214.15.45>;tag=j4X0e04aZjU2K
Call-ID: joshempnx2kuh7smrt3x
CSeq: 1974 INVITE
Contact: <sip:3020...@116.214.15.45:5080;transport=udp>
User-Agent: FreeSWITCH-mod_sofia/1.3.13b+git~20130108T190107Z~30e4c71bbe
Accept: application/sdp
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY
Supported: timer, precondition, path, replaces
Allow-Events: talk, hold, conference, refer
Content-Length: 0
P-Asserted-Identity: "30201009" <sip:3020...@116.214.15.45>
jssip-0.2.1.js:684 JsSIP | TRANSPORT | Received WebSocket text message:
SIP/2.0 488 Not Acceptable Here
Via: SIP/2.0/TCP 29.62.109.242;branch=z9hG4bK1565615
Max-Forwards: 10
From: <sip:10...@116.214.15.45:5080>;tag=rj2nc38qem
To: <sip:3020...@116.214.15.45>;tag=j4X0e04aZjU2K
Call-ID: joshempnx2kuh7smrt3x
CSeq: 1974 INVITE
User-Agent: FreeSWITCH-mod_sofia/1.3.13b+git~20130108T190107Z~30e4c71bbe
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY
Supported: timer, precondition, path, replaces
Allow-Events: talk, hold, conference, refer
Reason: Q.850;cause=88;text="INCOMPATIBLE_DESTINATION"
Content-Length: 0
P-Asserted-Identity: "30201009" <sip:3020...@116.214.15.45>
jssip-0.2.1.js:684 JsSIP | TRANSPORT | Sending WebSocket message:
ACK sip:3020...@116.214.15.45 SIP/2.0
Via: SIP/2.0/TCP 29.62.109.242;branch=z9hG4bK1565615
Route: <sip:192.168.1.8:10080;transport=ws;lr>
To: <sip:3020...@116.214.15.45>;tag=j4X0e04aZjU2K
From: sip:10...@116.214.15.45:5080;tag=rj2nc38qem
Call-ID: joshempnx2kuh7smrt3x
CSeq: 1974 ACK
jssip-0.2.1.js:541 JsSIP | INVITE SESSION | Closing Invite Session joshempnx2kuh7smrt3xrj2nc38qem jssip-0.2.1.js:2860 JsSIP | DIALOG | dialog state: joshempnx2kuh7smrt3xrj2nc38qemj4X0e04aZjU2K deleted jssip-0.2.1.js:2191 ICE state is: closed
===============
The OverSIP log is :
Jan 16 08:16:24 abhinav oversip[21381]: DEBUG: <SIP Request 9429048> forwarding response 200 "OK"
Jan 16 08:16:24 abhinav oversip[21381]: DEBUG: <WsFraming> sending text frame: payload_length=610
Jan 16 08:16:29 abhinav oversip[21381]: DEBUG: <NICT bf2a0c3e7fe35b910be6bef218704eba723eace8> timer K expires, transaction terminated
Jan 16 08:16:29 abhinav oversip[21381]: DEBUG: <NICT da4e17987fe35b910be6bef218704eba723eace8> timer K expires, transaction terminated
Jan 16 08:16:36 abhinav oversip[21381]: DEBUG: <WsFraming> received text frame: FIN=true, RSV1-3=false/false/false, payload_length=1783
Jan 16 08:16:36 abhinav oversip[21381]: DEBUG: <WsSipApp> received WS message: type=text, length=1783
Jan 16 08:16:36 abhinav oversip[21381]: INFO: <SipEvents> [user] INVITE from sip:10...@116.214.15.45:5080 (UA: JsSIP 0.2.1) to sip:3020...@116.214.15.45 via WS 192.168.1.8 : 39516
Jan 16 08:16:36 abhinav oversip[21381]: DEBUG: <SIP Request 1565615> applying outgoing Outbound support
Jan 16 08:16:36 abhinav oversip[21381]: DEBUG: <SIP Request 1565615> RURI destination is not myself
Jan 16 08:16:36 abhinav oversip[21381]: DEBUG: <UserAssertion module> user asserted, adding P-Asserted-Identity for SIP Request 1565615
Jan 16 08:16:36 abhinav oversip[21381]: DEBUG: <SIP Request 1565615> replying 100 "Trying"
Jan 16 08:16:36 abhinav oversip[21381]: DEBUG: <WsFraming> sending text frame: payload_length=255
Jan 16 08:16:36 abhinav oversip[21381]: DEBUG: <Proxy proxy_out 1565615> trying single target: udp:116.214.15.45:5080
Jan 16 08:16:37 abhinav oversip[21381]: DEBUG: <Proxy proxy_out 1565615> received response 180
Jan 16 08:16:37 abhinav oversip[21381]: INFO: <SipEvents> [user] on_provisional_response: 180 'Ringing'
Jan 16 08:16:37 abhinav oversip[21381]: DEBUG: <SIP Request 1565615> forwarding response 180 "Ringing"
Jan 16 08:16:37 abhinav oversip[21381]: DEBUG: <WsFraming> sending text frame: payload_length=801
Jan 16 08:16:39 abhinav oversip[21381]: DEBUG: <ICT f61147a8cd6874a39172e4845cf52a4dd5fd5675> sending ACK for [3456]XX response
Jan 16 08:16:39 abhinav oversip[21381]: DEBUG: <Proxy proxy_out 1565615> received response 488
Jan 16 08:16:39 abhinav oversip[21381]: INFO: <SipEvents> [user] on_failure_response: 488 'Not Acceptable Here'
Jan 16 08:16:39 abhinav oversip[21381]: DEBUG: <SIP Request 1565615> forwarding response 488 "Not Acceptable Here"
Jan 16 08:16:39 abhinav oversip[21381]: DEBUG: <WsFraming> sending text frame: payload_length=655
Jan 16 08:16:39 abhinav oversip[21381]: DEBUG: <WsFraming> received text frame: FIN=true, RSV1-3=false/false/false, payload_length=293
Jan 16 08:16:39 abhinav oversip[21381]: DEBUG: <WsSipApp> received WS message: type=text, length=293
Jan 16 08:16:39 abhinav oversip[21381]: DEBUG: <IST 1565615> ACK received during completed state, now confirmed
Jan 16 08:16:54 abhinav oversip[21381]: DEBUG: <WsFraming> sending keep-alive ping frame
Jan 16 08:16:54 abhinav oversip[21381]: DEBUG: <WsFraming> received pong frame: payload_length=10
====
This 488 seems to be coming from the Server itself, but why? Can you please help me identify the cause?
Thanks,
Abhinav