DoubangoTelecom / sipml5

The world's first HTML5 SIP client (WebRTC)
BSD 3-Clause "New" or "Revised" License
935 stars 455 forks source link

How to fix asterisk sipml5 “error 503 service unavailable” when make a call #330

Open laocoding opened 5 years ago

laocoding commented 5 years ago

I'm using sipml5 to connect to freepbx asterisk server via wss and try to make a call. it was ringing then call was rejected and error 503 Service Unavailable. how can i fix it?.

I try to make a call using Jitsi and Zoiper it working but when i use sipml5 on browser it not working.

this is my log:

SEND: INVITE sip:0101221@caller.local SIP/2.0 Via: SIP/2.0/WSS df7jal23ls0d.invalid;branch=z9hG4bK8TyhVFPP9VlUgnOnmmwyJcgHsUIDqiM0;rport From: "Vixar"sip:0101222@10.0.19.245;tag=lkOnhyQZVIEVxiVQdyTF To: sip:0101221@caller.local Contact: "Vixar"sips:0101222@df7jal23ls0d.invalid;rtcweb-breaker=no;click2call=no;transport=wss;+g.oma.sip-im;language="en,fr" Call-ID: 7de7a6cc-6abd-7f6c-7ebf-38d69fb86170 CSeq: 16977 INVITE Content-Type: application/sdp Content-Length: 2836 Max-Forwards: 70 Authorization: Digest username="0101222",realm="asterisk",nonce="1562151858/e0b61d90c2d0820fda839ad60fc00778",uri="sip:0101221@caller.local",response="1af5ff9576f761d207bb0792e72eb7d0",algorithm=md5,cnonce="caf28ff777242e51dfedf13e8abe92ea",opaque="7c15aecd6737cbd3",qop=auth,nc=00000001 User-Agent: IM-client/OMA1.0 sipML5-v1.2016.03.04 Organization: Doubango Telecom

v=0 o=- 3102520056178704400 2 IN IP4 127.0.0.1 s=Doubango Telecom - chrome t=0 0 a=group:BUNDLE 0 a=msid-semantic: WMS RMRSFqoAuPsNU92pfrY3W0lC8WYBEvuzN5pU m=audio 58632 UDP/TLS/RTP/SAVPF 111 103 104 9 0 8 106 105 13 110 112 113 126 c=IN IP4 172.19.90.209 a=rtcp:58635 IN IP4 172.19.90.209 a=candidate:403261254 1 udp 2122260223 172.19.90.209 58632 typ host generation 0 network-id 1 a=candidate:2309542727 1 udp 2122194687 192.168.214.2 58633 typ host generation 0 network-id 2 a=candidate:2613338743 1 udp 2122129151 10.0.19.224 58634 typ host generation 0 network-id 3 a=candidate:403261254 2 udp 2122260222 172.19.90.209 58635 typ host generation 0 network-id 1 a=candidate:2309542727 2 udp 2122194686 192.168.214.2 58636 typ host generation 0 network-id 2 a=candidate:2613338743 2 udp 2122129150 10.0.19.224 58637 typ host generation 0 network-id 3 a=candidate:1451932598 1 tcp 1518280447 172.19.90.209 9 typ host tcptype active generation 0 network-id 1 a=candidate:3341496247 1 tcp 1518214911 192.168.214.2 9 typ host tcptype active generation 0 network-id 2 a=candidate:3578240647 1 tcp 1518149375 10.0.19.224 9 typ host tcptype active generation 0 network-id 3 a=candidate:1451932598 2 tcp 1518280446 172.19.90.209 9 typ host tcptype active generation 0 network-id 1 a=candidate:3341496247 2 tcp 1518214910 192.168.214.2 9 typ host tcptype active generation 0 network-id 2 a=candidate:3578240647 2 tcp 1518149374 10.0.19.224 9 typ host tcptype active generation 0 network-id 3 a=ice-ufrag:9IfN a=ice-pwd:dywr02eFMYml0EPRbbNXdE8Z a=ice-options:trickle a=fingerprint:sha-256 05:6E:B9:18:A2:B4:47:0A:4D:64:40:DB:CC:82:12:C1:ED:C2:70:F0:BB:34:D8:D3:53:D9:86:DB:FC:B2:E2:00 a=setup:actpass a=mid:0 a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level a=extmap:2 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01 a=extmap:3 urn:ietf:params:rtp-hdrext:sdes:mid a=extmap:4 urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id a=extmap:5 urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id a=sendrecv a=msid:RMRSFqoAuPsNU92pfrY3W0lC8WYBEvuzN5pU 59b18dcc-fcd6-46f1-ab68-1ffce04cc782 a=rtcp-mux a=rtpmap:111 opus/48000/2 a=rtcp-fb:111 transport-cc a=fmtp:111 minptime=10;useinbandfec=1 a=rtpmap:103 ISAC/16000 a=rtpmap:104 ISAC/32000 a=rtpmap:9 G722/8000 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:110 telephone-event/48000 a=rtpmap:112 telephone-event/32000 a=rtpmap:113 telephone-event/16000 a=rtpmap:126 telephone-event/8000 a=ssrc:4132567400 cname:ne10dJwl3cTMmLg+ a=ssrc:4132567400 msid:RMRSFqoAuPsNU92pfrY3W0lC8WYBEvuzN5pU 59b18dcc-fcd6-46f1-ab68-1ffce04cc782 a=ssrc:4132567400 mslabel:RMRSFqoAuPsNU92pfrY3W0lC8WYBEvuzN5pU a=ssrc:4132567400 label:59b18dcc-fcd6-46f1-ab68-1ffce04cc782

tsk_utils.js?svn=252:116 __tsip_transport_ws_onmessage tsk_utils.js?svn=252:116 recv=SIP/2.0 100 Trying Via: SIP/2.0/WSS df7jal23ls0d.invalid;rport=58552;received=10.0.19.224;branch=z9hG4bK8TyhVFPP9VlUgnOnmmwyJcgHsUIDqiM0 From: "Vixar"sip:0101222@10.0.19.245;tag=lkOnhyQZVIEVxiVQdyTF To: sip:0101221@caller.local Call-ID: 7de7a6cc-6abd-7f6c-7ebf-38d69fb86170 CSeq: 16977 INVITE Content-Length: 0 Server: FPBX-14.0.3.1(15.4.0)

tsk_utils.js?svn=252:116 State machine: x0000_Any_2_Any_X_i1xx tsk_utils.js?svn=252:116 ==session event = i_ao_request tsk_utils.js?svn=252:116 __tsip_transport_ws_onmessage tsk_utils.js?svn=252:116 recv=SIP/2.0 180 Ringing Via: SIP/2.0/WSS df7jal23ls0d.invalid;rport=58552;received=10.0.19.224;branch=z9hG4bK8TyhVFPP9VlUgnOnmmwyJcgHsUIDqiM0 From: "Vixar"sip:0101222@10.0.19.245;tag=lkOnhyQZVIEVxiVQdyTF To: sip:0101221@caller.local;tag=a7d6652a-252e-4abf-beed-0759d9c4edb0 Contact: <sips:10.0.19.245:8089;transport=ws> Call-ID: 7de7a6cc-6abd-7f6c-7ebf-38d69fb86170 CSeq: 16977 INVITE Content-Length: 0 Server: FPBX-14.0.3.1(15.4.0) Allow: OPTIONS,SUBSCRIBE,NOTIFY,PUBLISH,INVITE,ACK,BYE,CANCEL,UPDATE,PRACK,REGISTER,MESSAGE,REFER P-Asserted-Identity: "Vixar"sip:0101221@caller.local

tsk_utils.js?svn=252:116 State machine: x0000_Any_2_Any_X_i1xx tsk_utils.js?svn=252:116 ==session event = i_ao_request tsk_utils.js?svn=252:116 __tsip_transport_ws_onmessage tsk_utils.js?svn=252:116 recv=SIP/2.0 503 Service Unavailable Via: SIP/2.0/WSS df7jal23ls0d.invalid;rport=58552;received=10.0.19.224;branch=z9hG4bK8TyhVFPP9VlUgnOnmmwyJcgHsUIDqiM0 From: "Vixar"sip:0101222@10.0.19.245;tag=lkOnhyQZVIEVxiVQdyTF To: sip:0101221@caller.local;tag=a7d6652a-252e-4abf-beed-0759d9c4edb0 Call-ID: 7de7a6cc-6abd-7f6c-7ebf-38d69fb86170 CSeq: 16977 INVITE Content-Length: 0 Server: FPBX-14.0.3.1(15.4.0) Allow: OPTIONS,SUBSCRIBE,NOTIFY,PUBLISH,INVITE,ACK,BYE,CANCEL,UPDATE,PRACK,REGISTER,MESSAGE,REFER Reason: cause=34;cause=34 P-Asserted-Identity: "Vixar"sip:0101221@caller.local

tsk_utils.js?svn=252:116 SEND: ACK sip:0101221@caller.local SIP/2.0 Via: SIP/2.0/WSS df7jal23ls0d.invalid;branch=z9hG4bK8TyhVFPP9VlUgnOnmmwyJcgHsUIDqiM0;rport From: "Vixar"sip:0101222@10.0.19.245;tag=lkOnhyQZVIEVxiVQdyTF To: sip:0101221@caller.local;tag=a7d6652a-252e-4abf-beed-0759d9c4edb0 Call-ID: 7de7a6cc-6abd-7f6c-7ebf-38d69fb86170 CSeq: 16977 ACK Content-Length: 0 Max-Forwards: 70

tsk_utils.js?svn=252:116 State machine: c0000_Outgoing_2_Terminated_X_i300_to_i699INVITE tsk_utils.js?svn=252:116 === INVITE Dialog terminated === tsk_utils.js?svn=252:116 PeerConnection::stop() tsk_utils.js?svn=252:116 ==session event = i_ao_request tsk_utils.js?svn=252:116 ==session event = terminated