{"action":"closed","issue":{"url":"https://api.github.com/repos/onsip/SIP.js/issues/256","labels_url":"https://api.github.com/repos/onsip/SIP.js/issues/256/labels{/name}","comments_url":"https://api.github.com/repos/onsip/SIP.js/issues/256/comments","events_url":"https://api.github.com/repos/onsip/SIP.js/issues/256/events","html_url":"https://github.com/onsip/SIP.js/issues/256","id":120331024,"number":256,"title":"No media in Firefox 42 + Asterisk 11.19","user":{"login":"soulhunter1987","id":2089893,"avatar_url":"https://avatars.githubusercontent.com/u/2089893?v=3","gravatar_id":"","url":"https://api.github.com/users/soulhunter1987","html_url":"https://github.com/soulhunter1987","followers_url":"https://api.github.com/users/soulhunter1987/followers","following_url":"https://api.github.com/users/soulhunter1987/following{/other_user}","gists_url":"https://api.github.com/users/soulhunter1987/gists{/gist_id}","starred_url":"https://api.github.com/users/soulhunter1987/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soulhunter1987/subscriptions","organizations_url":"https://api.github.com/users/soulhunter1987/orgs","repos_url":"https://api.github.com/users/soulhunter1987/repos","events_url":"https://api.github.com/users/soulhunter1987/events{/privacy}","received_events_url":"https://api.github.com/users/soulhunter1987/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-04T04:33:29Z","updated_at":"2015-12-14T22:11:34Z","closed_at":"2015-12-14T22:11:34Z","body":"Connecting to Asterisk 11.19 via WebRTC, asterisk setup according to http://sipjs.com/guides/server-configuration/asterisk/ SIP.js UA config:\r\n```javascript\r\nSIP.UA({\r\n        uri:                user + '@' + host,\r\n        wsServers:          [protocol + '//' + host + ':' + port + '/ws'],\r\n        password:           password,\r\n        hackIpInContact:    true,\r\n        traceSip:           true,\r\n        hackWssInTransport: true,\r\n        stunServers:        [\r\n            \"stun:stun.l.google.com:19302\",\r\n            \"stun:stun.sipgate.net\",\r\n            \"stun:217.10.68.152\",\r\n            \"stun:stun.sipgate.net:10000\",\r\n            \"stun:217.10.68.152:10000\"\r\n        ]\r\n    });\r\n```\r\nUsing wss connection, call with audio only.\r\nChrome 47 works perfect when calling to another peer (webrtc or sip softphone, doesn't matter)\r\nIn Firefox 42 signaling works, but no sound in the call. Log from Firefox console:\r\n<pre>\r\nFri Dec 04 2015 06:32:25 GMT+0200 (EET) | sip.invitecontext.mediahandler | acquiring local media\r\nsip.js (строка 2892)\r\nFri Dec 04 2015 06:32:25 GMT+0200 (EET) | sip.invitecontext.mediahandler | acquired local media streams\r\nsip.js (строка 2892)\r\nFri Dec 04 2015 06:32:25 GMT+0200 (EET) | sip.invitecontext.mediahandler | ICE candidate received: candidate:0 1 UDP 2130379007 192.168.0.101 62932 typ host\r\nsip.js (строка 2892)\r\nFri Dec 04 2015 06:32:25 GMT+0200 (EET) | sip.invitecontext.mediahandler | ICE candidate received: candidate:6 1 UDP 2122252543 10.211.55.2 58112 typ host\r\nsip.js (строка 2892)\r\nFri Dec 04 2015 06:32:25 GMT+0200 (EET) | sip.invitecontext.mediahandler | ICE candidate received: candidate:12 1 UDP 2122187007 10.37.129.2 54950 typ host\r\nsip.js (строка 2892)\r\nFri Dec 04 2015 06:32:25 GMT+0200 (EET) | sip.invitecontext.mediahandler | ICE candidate received: candidate:0 2 UDP 2130379006 192.168.0.101 57483 typ host\r\nsip.js (строка 2892)\r\nFri Dec 04 2015 06:32:25 GMT+0200 (EET) | sip.invitecontext.mediahandler | ICE candidate received: candidate:6 2 UDP 2122252542 10.211.55.2 56119 typ host\r\nsip.js (строка 2892)\r\nFri Dec 04 2015 06:32:25 GMT+0200 (EET) | sip.invitecontext.mediahandler | ICE candidate received: candidate:12 2 UDP 2122187006 10.37.129.2 50620 typ host\r\nsip.js (строка 2892)\r\nFri Dec 04 2015 06:32:25 GMT+0200 (EET) | sip.invitecontext.mediahandler | ICE candidate received: candidate:3 1 UDP 1694179327 109.237.12.9 62932 typ srflx raddr 192.168.0.101 rport 62932\r\nsip.js (строка 2892)\r\nFri Dec 04 2015 06:32:25 GMT+0200 (EET) | sip.invitecontext.mediahandler | ICE candidate received: candidate:3 2 UDP 1694179326 109.237.12.9 57483 typ srflx raddr 192.168.0.101 rport 57483\r\nsip.js (строка 2892)\r\nFri Dec 04 2015 06:32:30 GMT+0200 (EET) | sip.invitecontext.mediahandler | RTCIceChecking Timeout Triggered after 5000 milliseconds\r\nsip.js (строка 2892)\r\n\r\nFri Dec 04 2015 06:32:30 GMT+0200 (EET) | sip.transport | sending WebSocket message:\r\n\r\nINVITE sip:2001:sip.7-travel.ru@sip.7-travel.ru SIP/2.0\r\nVia: SIP/2.0/WSS 192.0.2.155;branch=z9hG4bK3235882\r\nMax-Forwards: 70\r\nTo: <sip:2001:sip.7-travel.ru@sip.7-travel.ru>\r\nFrom: <sip:9090@sip.7-travel.ru>;tag=2vqbedg59q\r\nCall-ID: 83j4btn7ss1gd1iu61nv\r\nCSeq: 1622 INVITE\r\nContact: <sip:ok9q7c0q@192.0.2.155;transport=wss;ob>\r\nAllow: ACK,CANCEL,BYE,OPTIONS,INFO,NOTIFY,INVITE\r\nContent-Type: application/sdp\r\nSupported: outbound\r\nUser-Agent: SIP.js/0.7.2\r\nContent-Length: 1301\r\n\r\nv=0\r\no=mozilla...THIS_IS_SDPARTA-42.0 5797156348674783538 0 IN IP4 192.0.2.191\r\ns=-\r\nt=0 0\r\na=sendrecv\r\na=fingerprint:sha-256 88:F0:3D:84:B4:E0:05:7A:BC:78:8F:B1:8E:A6:FF:E2:16:64:FA:DC:DD:3A:BA:44:C9:82:E7:77:01:0B:6C:79\r\na=ice-options:trickle\r\na=msid-semantic:WMS *\r\nm=audio 9 UDP/TLS/RTP/SAVPF 109 9 0 8\r\nc=IN IP4 192.0.2.191\r\na=candidate:0 1 UDP 2130379007 192.168.0.101 62932 typ host\r\na=candidate:6 1 UDP 2122252543 10.211.55.2 58112 typ host\r\na=candidate:12 1 UDP 2122187007 10.37.129.2 54950 typ host\r\na=candidate:0 2 UDP 2130379006 192.168.0.101 57483 typ host\r\na=candidate:6 2 UDP 2122252542 10.211.55.2 56119 typ host\r\na=candidate:12 2 UDP 2122187006 10.37.129.2 50620 typ host\r\na=candidate:3 1 UDP 1694179327 109.237.12.9 62932 typ srflx raddr 192.168.0.101 rport 62932\r\na=candidate:3 2 UDP 1694179326 109.237.12.9 57483 typ srflx raddr 192.168.0.101 rport 57483\r\na=sendrecv\r\na=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level\r\na=ice-pwd:02f20909c3c91ea8001d3f64c36d8c02\r\na=ice-ufrag:4c9d01bc\r\na=mid:sdparta_0\r\na=msid:{5f49c4a7-423f-c448-b0b8-3e1fb6a57c04} {b55793da-d771-134d-9102-b6a413531176}\r\na=rtcp-mux\r\na=rtpmap:109 opus/48000/2\r\na=rtpmap:9 G722/8000/1\r\na=rtpmap:0 PCMU/8000\r\na=rtpmap:8 PCMA/8000\r\na=setup:actpass\r\na=ssrc:2542239510 cname:{f0e501e9-bd84-ab4a-a77d-4f5256fcdc19}\r\n\r\nsip.js (строка 2892)\r\n\r\nFri Dec 04 2015 06:32:30 GMT+0200 (EET) | sip.transport | received WebSocket text message:\r\n\r\nSIP/2.0 401 Unauthorized\r\nVia: SIP/2.0/WSS 192.0.2.155;branch=z9hG4bK3235882;received=109.237.12.9;rport=52740\r\nFrom: <sip:9090@sip.7-travel.ru>;tag=2vqbedg59q\r\nTo: <sip:2001:sip.7-travel.ru@sip.7-travel.ru>;tag=as590ed82b\r\nCall-ID: 83j4btn7ss1gd1iu61nv\r\nCSeq: 1622 INVITE\r\nServer: Asterisk PBX 11.19.0\r\nAllow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE\r\nSupported: replaces, timer\r\nWWW-Authenticate: Digest algorithm=MD5, realm=\"asterisk\", nonce=\"21b591e0\"\r\nContent-Length: 0\r\n\r\n\r\nsip.js (строка 2892)\r\n\r\nFri Dec 04 2015 06:32:30 GMT+0200 (EET) | sip.transport | sending WebSocket message:\r\n\r\nACK sip:2001:sip.7-travel.ru@sip.7-travel.ru SIP/2.0\r\nVia: SIP/2.0/WSS 192.0.2.155;branch=z9hG4bK3235882\r\nTo: <sip:2001:sip.7-travel.ru@sip.7-travel.ru>;tag=as590ed82b\r\nFrom: <sip:9090@sip.7-travel.ru>;tag=2vqbedg59q\r\nCall-ID: 83j4btn7ss1gd1iu61nv\r\nContent-Length: 0\r\nCSeq: 1622 ACK\r\n\r\n\r\nsip.js (строка 2892)\r\n\r\nFri Dec 04 2015 06:32:30 GMT+0200 (EET) | sip.transport | sending WebSocket message:\r\n\r\nINVITE sip:2001:sip.7-travel.ru@sip.7-travel.ru SIP/2.0\r\nVia: SIP/2.0/WSS 192.0.2.155;branch=z9hG4bK2514840\r\nMax-Forwards: 70\r\nTo: <sip:2001:sip.7-travel.ru@sip.7-travel.ru>\r\nFrom: <sip:9090@sip.7-travel.ru>;tag=2vqbedg59q\r\nCall-ID: 83j4btn7ss1gd1iu61nv\r\nCSeq: 1623 INVITE\r\nAuthorization: Digest algorithm=MD5, username=\"9090\", realm=\"asterisk\", nonce=\"21b591e0\", uri=\"sip:2001:sip.7-travel.ru@sip.7-travel.ru\", response=\"b838ea271076d184c67b9f6577248400\"\r\nContact: <sip:ok9q7c0q@192.0.2.155;transport=wss;ob>\r\nAllow: ACK,CANCEL,BYE,OPTIONS,INFO,NOTIFY,INVITE\r\nContent-Type: application/sdp\r\nSupported: outbound\r\nUser-Agent: SIP.js/0.7.2\r\nContent-Length: 1301\r\n\r\nv=0\r\no=mozilla...THIS_IS_SDPARTA-42.0 5797156348674783538 0 IN IP4 192.0.2.191\r\ns=-\r\nt=0 0\r\na=sendrecv\r\na=fingerprint:sha-256 88:F0:3D:84:B4:E0:05:7A:BC:78:8F:B1:8E:A6:FF:E2:16:64:FA:DC:DD:3A:BA:44:C9:82:E7:77:01:0B:6C:79\r\na=ice-options:trickle\r\na=msid-semantic:WMS *\r\nm=audio 9 UDP/TLS/RTP/SAVPF 109 9 0 8\r\nc=IN IP4 192.0.2.191\r\na=candidate:0 1 UDP 2130379007 192.168.0.101 62932 typ host\r\na=candidate:6 1 UDP 2122252543 10.211.55.2 58112 typ host\r\na=candidate:12 1 UDP 2122187007 10.37.129.2 54950 typ host\r\na=candidate:0 2 UDP 2130379006 192.168.0.101 57483 typ host\r\na=candidate:6 2 UDP 2122252542 10.211.55.2 56119 typ host\r\na=candidate:12 2 UDP 2122187006 10.37.129.2 50620 typ host\r\na=candidate:3 1 UDP 1694179327 109.237.12.9 62932 typ srflx raddr 192.168.0.101 rport 62932\r\na=candidate:3 2 UDP 1694179326 109.237.12.9 57483 typ srflx raddr 192.168.0.101 rport 57483\r\na=sendrecv\r\na=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level\r\na=ice-pwd:02f20909c3c91ea8001d3f64c36d8c02\r\na=ice-ufrag:4c9d01bc\r\na=mid:sdparta_0\r\na=msid:{5f49c4a7-423f-c448-b0b8-3e1fb6a57c04} {b55793da-d771-134d-9102-b6a413531176}\r\na=rtcp-mux\r\na=rtpmap:109 opus/48000/2\r\na=rtpmap:9 G722/8000/1\r\na=rtpmap:0 PCMU/8000\r\na=rtpmap:8 PCMA/8000\r\na=setup:actpass\r\na=ssrc:2542239510 cname:{f0e501e9-bd84-ab4a-a77d-4f5256fcdc19}\r\n\r\nsip.js (строка 2892)\r\nFri Dec 04 2015 06:32:30 GMT+0200 (EET) | sip.transaction.ict | Timer D expired for INVITE client transaction z9hG4bK3235882\r\nsip.js (строка 2892)\r\n\r\nFri Dec 04 2015 06:32:30 GMT+0200 (EET) | sip.transport | received WebSocket text message:\r\n\r\nSIP/2.0 100 Trying\r\nVia: SIP/2.0/WSS 192.0.2.155;branch=z9hG4bK2514840;received=109.237.12.9;rport=52740\r\nFrom: <sip:9090@sip.7-travel.ru>;tag=2vqbedg59q\r\nTo: <sip:2001:sip.7-travel.ru@sip.7-travel.ru>\r\nCall-ID: 83j4btn7ss1gd1iu61nv\r\nCSeq: 1623 INVITE\r\nServer: Asterisk PBX 11.19.0\r\nAllow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE\r\nSupported: replaces, timer\r\nContact: <sip:2001@77.221.131.250:5060;transport=WS>\r\nContent-Length: 0\r\n\r\n\r\nsip.js (строка 2892)\r\n\r\nFri Dec 04 2015 06:32:30 GMT+0200 (EET) | sip.transport | received WebSocket text message:\r\n\r\nSIP/2.0 180 Ringing\r\nVia: SIP/2.0/WSS 192.0.2.155;branch=z9hG4bK2514840;received=109.237.12.9;rport=52740\r\nFrom: <sip:9090@sip.7-travel.ru>;tag=2vqbedg59q\r\nTo: <sip:2001:sip.7-travel.ru@sip.7-travel.ru>;tag=as2ee2a13f\r\nCall-ID: 83j4btn7ss1gd1iu61nv\r\nCSeq: 1623 INVITE\r\nServer: Asterisk PBX 11.19.0\r\nAllow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE\r\nSupported: replaces, timer\r\nContact: <sip:2001@77.221.131.250:5060;transport=WS>\r\nContent-Length: 0\r\n\r\n\r\nsip.js (строка 2892)\r\nFri Dec 04 2015 06:32:30 GMT+0200 (EET) | sip.dialog | new UAC dialog created with status EARLY\r\nsip.js (строка 2892)\r\n\r\nFri Dec 04 2015 06:32:32 GMT+0200 (EET) | sip.transport | received WebSocket text message:\r\n\r\nSIP/2.0 200 OK\r\nVia: SIP/2.0/WSS 192.0.2.155;branch=z9hG4bK2514840;received=109.237.12.9;rport=52740\r\nFrom: <sip:9090@sip.7-travel.ru>;tag=2vqbedg59q\r\nTo: <sip:2001:sip.7-travel.ru@sip.7-travel.ru>;tag=as2ee2a13f\r\nCall-ID: 83j4btn7ss1gd1iu61nv\r\nCSeq: 1623 INVITE\r\nServer: Asterisk PBX 11.19.0\r\nAllow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE\r\nSupported: replaces, timer\r\nContact: <sip:2001@77.221.131.250:5060;transport=WS>\r\nContent-Type: application/sdp\r\nContent-Length: 1447\r\n\r\nv=0\r\no=root 281801830 281801830 IN IP4 77.221.131.250\r\ns=Asterisk PBX 11.19.0\r\nc=IN IP4 77.221.131.250\r\nt=0 0\r\nm=audio 14054 RTP/SAVPF 8 0 9\r\na=rtpmap:8 PCMA/8000\r\na=rtpmap:0 PCMU/8000\r\na=rtpmap:9 G722/8000\r\na=ptime:20\r\na=ice-ufrag:49f75bf767102bdd6b561b1222e2f2e5\r\na=ice-pwd:2fa4558c25d86ba513705e7137ebf56c\r\na=candidate:H4ddd83fa 1 UDP 2130706431 77.221.131.250 14054 typ host\r\na=candidate:H4ddd83fb 1 UDP 2130706431 77.221.131.251 14054 typ host\r\na=candidate:H4ddd83fc 1 UDP 2130706431 77.221.131.252 14054 typ host\r\na=candidate:H4ddd83fd 1 UDP 2130706431 77.221.131.253 14054 typ host\r\na=candidate:H4ddd83fe 1 UDP 2130706431 77.221.131.254 14054 typ host\r\na=candidate:Hac112a01 1 UDP 2130706431 172.17.42.1 14054 typ host\r\na=candidate:Hc0a87a01 1 UDP 2130706431 192.168.122.1 14054 typ host\r\na=candidate:H4ddd83fa 2 UDP 2130706430 77.221.131.250 14055 typ host\r\na=candidate:H4ddd83fb 2 UDP 2130706430 77.221.131.251 14055 typ host\r\na=candidate:H4ddd83fc 2 UDP 2130706430 77.221.131.252 14055 typ host\r\na=candidate:H4ddd83fd 2 UDP 2130706430 77.221.131.253 14055 typ host\r\na=candidate:H4ddd83fe 2 UDP 2130706430 77.221.131.254 14055 typ host\r\na=candidate:Hac112a01 2 UDP 2130706430 172.17.42.1 14055 typ host\r\na=candidate:Hc0a87a01 2 UDP 2130706430 192.168.122.1 14055 typ host\r\na=connection:new\r\na=setup:active\r\na=fingerprint:SHA-256 17:6F:92:6E:F6:DB:42:2B:F6:05:AF:D7:FB:87:5D:3A:72:7A:A6:2C:D3:D6:E9:BA:BA:39:92:E0:A4:78:9A:14\r\na=sendrecv\r\n\r\nsip.js (строка 2892)\r\n\r\nFri Dec 04 2015 06:32:32 GMT+0200 (EET) | sip.dialog | dialog 83j4btn7ss1gd1iu61nv2vqbedg59qas2ee2a13f  changed to CONFIRMED state\r\n\r\nsip.js (строка 2892)\r\n\r\nFri Dec 04 2015 06:32:32 GMT+0200 (EET) | sip.transport | sending WebSocket message:\r\n\r\nACK sip:2001@77.221.131.250:5060;transport=ws SIP/2.0\r\nVia: SIP/2.0/WSS 192.0.2.155;branch=z9hG4bK965839\r\nMax-Forwards: 70\r\nTo: <sip:2001:sip.7-travel.ru@sip.7-travel.ru>;tag=as2ee2a13f\r\nFrom: <sip:9090@sip.7-travel.ru>;tag=2vqbedg59q\r\nCall-ID: 83j4btn7ss1gd1iu61nv\r\nCSeq: 1623 ACK\r\nSupported: outbound\r\nUser-Agent: SIP.js/0.7.2\r\nContent-Length: 0\r\n\r\n\r\nsip.js (строка 2892)\r\nFri Dec 04 2015 06:32:32 GMT+0200 (EET) | sip.invitecontext.mediahandler | stream added: {b2f90a74-2b3c-0745-805d-61fe0a6cdb90}\r\nsip.js (строка 2892)\r\n\r\nFri Dec 04 2015 06:32:34 GMT+0200 (EET) | sip.transport | received WebSocket text message:\r\n\r\nBYE sip:ok9q7c0q@192.0.2.155;transport=wss;ob SIP/2.0\r\nVia: SIP/2.0/WS 77.221.131.250:5060;branch=z9hG4bK07b6e1ad;rport\r\nMax-Forwards: 70\r\nFrom: <sip:2001:sip.7-travel.ru@sip.7-travel.ru>;tag=as2ee2a13f\r\nTo: <sip:9090@sip.7-travel.ru>;tag=2vqbedg59q\r\nCall-ID: 83j4btn7ss1gd1iu61nv\r\nCSeq: 102 BYE\r\nUser-Agent: Asterisk PBX 11.19.0\r\nProxy-Authorization: Digest username=\"9090\", realm=\"asterisk\", algorithm=MD5, uri=\"sip:sip.7-travel.ru\", nonce=\"21b591e0\", response=\"3e3aab3cb8ad814df62cf595fb3fb1f4\"\r\nX-Asterisk-HangupCause: Normal Clearing\r\nX-Asterisk-HangupCauseCode: 16\r\nContent-Length: 0\r\n\r\n\r\nsip.js (строка 2892)\r\n\r\nFri Dec 04 2015 06:32:34 GMT+0200 (EET) | sip.transport | sending WebSocket message:\r\n\r\nSIP/2.0 200 OK\r\nVia: SIP/2.0/WS 77.221.131.250:5060;branch=z9hG4bK07b6e1ad;rport\r\nTo: <sip:9090@sip.7-travel.ru>;tag=2vqbedg59q\r\nFrom: <sip:2001:sip.7-travel.ru@sip.7-travel.ru>;tag=as2ee2a13f\r\nCall-ID: 83j4btn7ss1gd1iu61nv\r\nCSeq: 102 BYE\r\nSupported: outbound\r\nUser-Agent: SIP.js/0.7.2\r\nContent-Length: 0\r\n\r\n\r\nsip.js (строка 2892)\r\nFri Dec 04 2015 06:32:34 GMT+0200 (EET) | sip.inviteclientcontext | closing INVITE session 83j4btn7ss1gd1iu61nvujfff56fgr\r\nsip.js (строка 2892)\r\nFri Dec 04 2015 06:32:34 GMT+0200 (EET) | sip.invitecontext.mediahandler | closing PeerConnection\r\nsip.js (строка 2892)\r\nFri Dec 04 2015 06:32:34 GMT+0200 (EET) | sip.dialog | dialog 83j4btn7ss1gd1iu61nv2vqbedg59qas2ee2a13f deleted\r\n</pre>"}}