Marco Signorini
2014-Mar-14 11:21 UTC
[asterisk-users] sipML5, Ast12 and WebRTC: not acceptable here
Hi All. I'm running some tests with the latest Asterisk SVN-branch-12-r410493M compiled with fresh github pjsip and srtp 1.4.2 on an i386 centOS machine (2.6.32-358.18.1.el6.i686). As a client I'm using the sipMLP WebRTC javascript softphone running on Chrome 33.0.1750.146 m. I have the softphone correctly registered on the Asterisk machine but as soon as I try to start a new call from the softphone, Asterisk answers with a 488 not acceptable here. I'm probably missing something but I'm not able to find what and where. Is there someone able to point me to the right direction? Below is my configuration. The sofpthone is registered as 1060. Thanks in advance. Marco Signorini. pjsip.conf: [transport-tls] type=transport protocol=tls bind=0.0.0.0 cert_file=/etc/asterisk/sslcert.pem method=tlsv1 [1060] type=endpoint transport=transport-tls context=from-internal use_avpf=yes media_encryption=sdes disallow=all allow=alaw allow=ulaw aors=1060 auth=1060 [1060] type=auth auth_type=userpass password=1060 username=1060 [1060] type=aor max_contacts=10 [204] .... http.conf: enabled=yes bindaddr=10.10.5.49 bindport=8088 CLI> pjsip show endpoints Endpoint: 1060 Not in use 0 of inf InAuth: 1060/1060 Aor: 1060 10 Contact: 1060/sip:1060 at 10.10.5.106:54083;transport=ws;rt Unknown nan Transport: transport-tls tls 0 0 0.0.0.0:5061 Endpoint: 204 Not in use 0 of inf InAuth: 204/204 Aor: 204 1 Contact: 204/sip:204 at 10.10.5.120:5066;transport=udp Unknown nan Transport: transport-udp udp 0 0 0.0.0.0:5060 *CLI> pjsip show transport transport-tls Transport: <TransportId........> <Type> <cos> <tos> <BindAddress....................> ======================================================================================== Transport: transport-tls tls 0 0 0.0.0.0:5061 ParameterName : ParameterValue ===================================================== async_operations : 1 bind : 0.0.0.0:5061 ca_list_file : cert_file : /etc/asterisk/sslcert.pem cipher : cos : 0 domain : external_media_address : external_signaling_address : external_signaling_port : 0 local_net : method : tlsv1 password : priv_key_file : protocol : tls require_client_cert : No tos : CS0 verify_client : No verify_server : No And this is the relevant SIP data exchange (with public IP hidden): *CLI> <--- Received SIP request (2420 bytes) from WS:10.10.5.106:54411 ---> INVITE sip:204 at 10.10.5.49 SIP/2.0 Via: SIP/2.0/WS df7jal23ls0d.invalid;branch=z9hG4bKiBw81ooU7ybSRbRqr8TOqWkMPQRdkMXo;rport From: "John Doe (101)"<sip:1060 at 10.10.5.49>;tag=heMv1HvlT7DeQxPxuqcq To: <sip:204 at 10.10.5.49> Contact: "John Doe (101)"<sip:1060 at df7jal23ls0d.invalid;rtcweb-breaker=yes;click2call=no;transport=ws>;impi=1060;ha1=0b2413e6f3c96a0517b4413a6f6ce7ae;+g.oma.sip-im;+sip.ice;language="en,fr,it" Call-ID: 636a5d79-5fda-f79a-cc4b-9ba18d060edc CSeq: 38718 INVITE Content-Type: application/sdp Content-Length: 1827 Max-Forwards: 70 User-Agent: IM-client/OMA1.0 sipML5 v=0 o=- 365893986064703740 2 IN IP4 127.0.0.1 s=Doubango Telecom - chrome t=0 0 a=group:BUNDLE audio a=msid-semantic: WMS dXVhxyOSxULu3iClZayhTeEBzH2voboiJJ28 m=audio 37874 RTP/SAVPF 111 103 104 0 8 106 105 13 126 c=IN IP4 85.0.XXX.XXX a=rtcp:37874 IN IP4 85.0.XXX.XXX a=candidate:296123718 1 udp 2113937151 10.10.5.106 63858 typ host generation 0 a=candidate:296123718 2 udp 2113937151 10.10.5.106 63858 typ host generation 0 a=candidate:3103388307 1 udp 1845501695 85.0.XXX.XXX 37874 typ srflx raddr 10.10.5.106 rport 63858 generation 0 a=candidate:3103388307 2 udp 1845501695 85.0.XXX.XXX 37874 typ srflx raddr 10.10.5.106 rport 63858 generation 0 a=candidate:1596293558 1 tcp 1509957375 10.10.5.106 0 typ host generation 0 a=candidate:1596293558 2 tcp 1509957375 10.10.5.106 0 typ host generation 0 a=ice-ufrag:l8AWdK4ft+AnAYGl a=ice-pwd:3tLKvT97tf0GQr+e8v8bKncd a=ice-options:google-ice a=fingerprint:sha-256 89:D4:EB:6E:9C:41:36:03:A1:44:CD:A2:08:78:CD:86:FE:EC:30:09:53:0F:77:CE:BA:8E:DE:8C:1B:A1:41:10 a=setup:actpass a=mid:audio a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level a=sendrecv a=rtcp-mux a=crypto:0 AES_CM_128_HMAC_SHA1_32 inline:dYMEPP1zoNS/W70Ln6cnBCtHXDCq6ciLZmHDHdFj a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:Gr23SpFGDiukOKyrrfAauWssQ+3pYjD0jwkK9hOo a=rtpmap:111 opus/48000/2 a=fmtp:111 minptime=10 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=maxptime:60 a=ssrc:2003565451 cname:0Cqf6EiGG5oFoWF5 a=ssrc:2003565451 msid:dXVhxyOSxULu3iClZayhTeEBzH2voboiJJ28 8ae66e18-c0ba-4738-a35c-130a3de87f8f a=ssrc:2003565451 mslabel:dXVhxyOSxULu3iClZayhTeEBzH2voboiJJ28 a=ssrc:2003565451 label:8ae66e18-c0ba-4738-a35c-130a3de87f8f <--- Transmitting SIP response (515 bytes) to WS:10.10.5.106:54411 ---> SIP/2.0 401 Unauthorized Via: SIP/2.0/WS df7jal23ls0d.invalid;rport;received=10.10.5.106;branch=z9hG4bKiBw81ooU7ybSRbRqr8TOqWkMPQRdkMXo Call-ID: 636a5d79-5fda-f79a-cc4b-9ba18d060edc From: "John Doe (101)" <sip:1060 at 10.10.5.49>;tag=heMv1HvlT7DeQxPxuqcq To: <sip:204 at 10.10.5.49>;tag=z9hG4bKiBw81ooU7ybSRbRqr8TOqWkMPQRdkMXo CSeq: 38718 INVITE WWW-Authenticate: Digest realm="asterisk",nonce="1394795710/0bf9c194050e9e9dfa6c9ce3630fe815",opaque="10f8692071c9c17f",algorithm=md5,qop="auth" Content-Length: 0 <--- Received SIP request (366 bytes) from WS:10.10.5.106:54411 ---> ACK sip:204 at 10.10.5.49 SIP/2.0 Via: SIP/2.0/WS df7jal23ls0d.invalid;branch=z9hG4bKiBw81ooU7ybSRbRqr8TOqWkMPQRdkMXo;rport From: "John Doe (101)"<sip:1060 at 10.10.5.49>;tag=heMv1HvlT7DeQxPxuqcq To: <sip:204 at 10.10.5.49>;tag=z9hG4bKiBw81ooU7ybSRbRqr8TOqWkMPQRdkMXo Call-ID: 636a5d79-5fda-f79a-cc4b-9ba18d060edc CSeq: 38718 ACK Content-Length: 0 Max-Forwards: 70 <--- Received SIP request (2700 bytes) from WS:10.10.5.106:54411 ---> INVITE sip:204 at 10.10.5.49 SIP/2.0 Via: SIP/2.0/WS df7jal23ls0d.invalid;branch=z9hG4bKJ66Vob7HcTK6CEVvF5HgzG1xGm7RnTgf;rport From: "John Doe (101)"<sip:1060 at 10.10.5.49>;tag=heMv1HvlT7DeQxPxuqcq To: <sip:204 at 10.10.5.49> Contact: "John Doe (101)"<sip:1060 at df7jal23ls0d.invalid;rtcweb-breaker=yes;click2call=no;transport=ws>;impi=1060;ha1=0b2413e6f3c96a0517b4413a6f6ce7ae;+g.oma.sip-im;+sip.ice;language="en,fr,it" Call-ID: 636a5d79-5fda-f79a-cc4b-9ba18d060edc CSeq: 38719 INVITE Content-Type: application/sdp Content-Length: 1827 Max-Forwards: 70 Authorization: Digest username="1060",realm="asterisk",nonce="1394795710/0bf9c194050e9e9dfa6c9ce3630fe815",uri="sip:204 at 10.10.5.49",response="db5afb11e5bab4ae21ed405cf4f1b8e6",algorithm=md5,cnonce="3428d08b52f61e586a6b8f1ce4226ee7",opaque="10f8692071c9c17f",qop=auth,nc=00000001 User-Agent: IM-client/OMA1.0 sipML5 v=0 o=- 365893986064703740 2 IN IP4 127.0.0.1 s=Doubango Telecom - chrome t=0 0 a=group:BUNDLE audio a=msid-semantic: WMS dXVhxyOSxULu3iClZayhTeEBzH2voboiJJ28 m=audio 37874 RTP/SAVPF 111 103 104 0 8 106 105 13 126 c=IN IP4 85.0.XXX.XXX a=rtcp:37874 IN IP4 85.0.XXX.XXX a=candidate:296123718 1 udp 2113937151 10.10.5.106 63858 typ host generation 0 a=candidate:296123718 2 udp 2113937151 10.10.5.106 63858 typ host generation 0 a=candidate:3103388307 1 udp 1845501695 85.0.XXX.XXX 37874 typ srflx raddr 10.10.5.106 rport 63858 generation 0 a=candidate:3103388307 2 udp 1845501695 85.0.XXX.XXX 37874 typ srflx raddr 10.10.5.106 rport 63858 generation 0 a=candidate:1596293558 1 tcp 1509957375 10.10.5.106 0 typ host generation 0 a=candidate:1596293558 2 tcp 1509957375 10.10.5.106 0 typ host generation 0 a=ice-ufrag:l8AWdK4ft+AnAYGl a=ice-pwd:3tLKvT97tf0GQr+e8v8bKncd a=ice-options:google-ice a=fingerprint:sha-256 89:D4:EB:6E:9C:41:36:03:A1:44:CD:A2:08:78:CD:86:FE:EC:30:09:53:0F:77:CE:BA:8E:DE:8C:1B:A1:41:10 a=setup:actpass a=mid:audio a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level a=sendrecv a=rtcp-mux a=crypto:0 AES_CM_128_HMAC_SHA1_32 inline:dYMEPP1zoNS/W70Ln6cnBCtHXDCq6ciLZmHDHdFj a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:Gr23SpFGDiukOKyrrfAauWssQ+3pYjD0jwkK9hOo a=rtpmap:111 opus/48000/2 a=fmtp:111 minptime=10 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=maxptime:60 a=ssrc:2003565451 cname:0Cqf6EiGG5oFoWF5 a=ssrc:2003565451 msid:dXVhxyOSxULu3iClZayhTeEBzH2voboiJJ28 8ae66e18-c0ba-4738-a35c-130a3de87f8f a=ssrc:2003565451 mslabel:dXVhxyOSxULu3iClZayhTeEBzH2voboiJJ28 a=ssrc:2003565451 label:8ae66e18-c0ba-4738-a35c-130a3de87f8f <--- Transmitting SIP response (372 bytes) to WS:10.10.5.106:54411 ---> SIP/2.0 488 Not Acceptable Here Via: SIP/2.0/WS df7jal23ls0d.invalid;rport;received=10.10.5.106;branch=z9hG4bKJ66Vob7HcTK6CEVvF5HgzG1xGm7RnTgf Call-ID: 636a5d79-5fda-f79a-cc4b-9ba18d060edc From: "John Doe (101)" <sip:1060 at 10.10.5.49>;tag=heMv1HvlT7DeQxPxuqcq To: <sip:204 at 10.10.5.49>;tag=7d738f9c-ec5a-45d2-bc41-e215f32f0d13 CSeq: 38719 INVITE Content-Length: 0 <--- Received SIP request (363 bytes) from WS:10.10.5.106:54411 ---> ACK sip:204 at 10.10.5.49 SIP/2.0 Via: SIP/2.0/WS df7jal23ls0d.invalid;branch=z9hG4bKJ66Vob7HcTK6CEVvF5HgzG1xGm7RnTgf;rport From: "John Doe (101)"<sip:1060 at 10.10.5.49>;tag=heMv1HvlT7DeQxPxuqcq To: <sip:204 at 10.10.5.49>;tag=7d738f9c-ec5a-45d2-bc41-e215f32f0d13 Call-ID: 636a5d79-5fda-f79a-cc4b-9ba18d060edc CSeq: 38719 ACK Content-Length: 0 Max-Forwards: 70