versatica / JsSIP

JsSIP, the JavaScript SIP library
https://jssip.net
Other
2.42k stars 744 forks source link

Uncaught INVALID_STATE_ERROR: Invalid status: 8 on terminate() #784

Closed newmediacrew closed 2 years ago

newmediacrew commented 2 years ago

Version

3.9.1

Error message

inbound call confirmed
jsSip.min.js?ver=6.0.1:9 JsSIP:RTCSession terminate() +2s
jsSip.min.js?ver=6.0.1:9 JsSIP:RTCSession terminating session +1ms
jsSip.min.js?ver=6.0.1:9 JsSIP:RTCSession sendRequest() +0ms
jsSip.min.js?ver=6.0.1:9 JsSIP:Transport send() +2s
jsSip.min.js?ver=6.0.1:9 JsSIP:Transport sending message:BYE sip:asterisk@xxx.xxx.xxx:5060;transport=ws SIP/2.0
Via: SIP/2.0/WSS 3e8hn6fvk91i.invalid;branch=z9hG4bK1082460
Max-Forwards: 69
To: <sip:+447429457449@xxx.xxx.xxx>;tag=e52e8107-9ab9-4a9e-80da-6556b9ab00ec
From: <sip:pk0gqokg@xxx.xxx.xxx.xxx>;tag=82cnnt7lt2
Call-ID: 477df26f-292f-48a5-895b-a65c675c4026
CSeq: 1758 BYE
Allow: INVITE,ACK,CANCEL,BYE,UPDATE,MESSAGE,OPTIONS,REFER,INFO,NOTIFY
Supported: outbound
User-Agent: JsSIP 3.9.1
Content-Length: 0

 +0ms
jsSip.min.js?ver=6.0.1:9 JsSIP:WebSocketInterface send() +2s
jsSip.min.js?ver=6.0.1:9 JsSIP:RTCSession session ended +1ms
jsSip.min.js?ver=6.0.1:9 JsSIP:RTCSession close() +0ms
jsSip.min.js?ver=6.0.1:9 JsSIP:RTCSession close() | closing local MediaStream +1ms
jsSip.min.js?ver=6.0.1:9 JsSIP:Dialog dialog 477df26f-292f-48a5-895b-a65c675c402682cnnt7lt2e52e8107-9ab9-4a9e-80da-6556b9ab00ec deleted +2s
jsSip.min.js?ver=6.0.1:9 JsSIP:RTCSession emit "ended" +2ms
jsSipMethod.js?ver=6.0.1:34 inbound call has ended
jsSip.min.js?ver=6.0.1:9 JsSIP:RTCSession terminate() +0ms
jsSip.min.js?ver=6.0.1:9 Uncaught INVALID_STATE_ERROR: Invalid status: 8
    at n.value (https://xxx.xxx.xxx/xxx/Ctb/Assets/src/jsSip/jsSip.min.js?ver=6.0.1:9:132380)
    at n.<anonymous> (https://xxx.xxx.xxx/xxx/Ctb/Assets/js/jsSipMethod.js?ver=6.0.1:35:33)
    at https://xxx.xxx.xxx/xxx/Ctb/Assets/src/jsSip/jsSip.min.js?ver=6.0.1:9:256890
    at o.emit (https://xxx.xxx.xxx/xxx/Ctb/Assets/src/jsSip/jsSip.min.js?ver=6.0.1:9:256960)
    at n.value (https://xxx.xxx.xxx/xxx/Ctb/Assets/src/jsSip/jsSip.min.js?ver=6.0.1:9:166509)
    at n.value (https://xxx.xxx.xxx/xxx/Ctb/Assets/src/jsSip/jsSip.min.js?ver=6.0.1:9:134052)
    at HTMLDivElement.<anonymous> (https://xxx.xxx.xxx/xxx/Ctb/Assets/js/jsSipMethod.js?ver=6.0.1:82:33)
    at Object.trigger (https://xxx.xxx.xxx/xxx/vendor/twbs/bootstrap/dist/js/bootstrap.bundle.min.js?ver=6.0.1:6:5880)
    at Hi.hide (https://xxx.xxx.xxx/xxx/vendor/twbs/bootstrap/dist/js/bootstrap.bundle.min.js?ver=6.0.1:6:50660)
    at CtbMethod.closeModal (https://xxx.xxx.xxx/xxx/Ctb/Assets/js/ctbMethod.js?ver=6.0.1:6016:26)
value @ jsSip.min.js?ver=6.0.1:9
(anonymous) @ jsSipMethod.js?ver=6.0.1:35
(anonymous) @ jsSip.min.js?ver=6.0.1:9
o.emit @ jsSip.min.js?ver=6.0.1:9
value @ jsSip.min.js?ver=6.0.1:9
value @ jsSip.min.js?ver=6.0.1:9
(anonymous) @ jsSipMethod.js?ver=6.0.1:82
trigger @ event-handler.js:337
hide @ modal.js:151
closeModal @ ctbMethod.js?ver=6.0.1:6016
(anonymous) @ jsSipMethod.js?ver=6.0.1:51
jsSip.min.js?ver=6.0.1:9 JsSIP:WebSocketInterface received WebSocket message +30ms
jsSip.min.js?ver=6.0.1:9 JsSIP:Transport received text message:SIP/2.0 200 OK
Via: SIP/2.0/WSS 3e8hn6fvk91i.invalid;rport=64430;received=xxx.xxx.xxx.xxx;branch=z9hG4bK1082460
Call-ID: 477df26f-292f-48a5-895b-a65c675c4026
From: <sip:pk0gqokg@xxx.xxx.xxx.xxx>;tag=82cnnt7lt2
To: <sip:+447429457449@xxx.xxx.xxx>;tag=e52e8107-9ab9-4a9e-80da-6556b9ab00ec
CSeq: 1758 BYE
Server: Asterisk PBX 18.13.0
Content-Length:  0

 +30ms
jsSip.min.js?ver=6.0.1:9 JsSIP:WebSocketInterface received WebSocket message +6s
jsSip.min.js?ver=6.0.1:9 JsSIP:Transport received text message:

How to reproduce

while sending call.terminate()

Note

Everything is working fine with this version of pjsip and asterisk 18.13. Just an annoying message that popups. Couldn't find any information about status 8

ibc commented 2 years ago

This is not a forum. Use the public mailing list for usage questions or usage problems.

newmediacrew commented 2 years ago

This was not ment to be a question, but more or less a bug report. But i guess its not a bug reading your comment. Thank you for your time and patience.