Browser-Phone
Browser-Phone copied to clipboard
sometimes can not answer the call
hi there, i am using latest browser phone and sometimes i can not answer the call, here is the console log:
Tue Jan 11 2022 00:30:13 GMT-0900 (Alaska Standard Time) | sip.Invitation | Invitation.progress sip-0.20.0.min.js:2:127164 Tue Jan 11 2022 00:30:13 GMT-0900 (Alaska Standard Time) | sip.invite-dialog | INVITE dialog f004b9a9-596d-47f0-9e91-e4f8c51f9328f2pphbpvaf882e8bd1-f6d2-4bfd-bb45-edc115ad029c constructed sip-0.20.0.min.js:2:127164 New Incoming Call! 1111111111 <1111111111> phone.js:1512:13 Current Call Count: 0 phone.js:1515:13 Selecting Buddy: Queue1111111111 phone.js:8347:13 Audio: media/Ringtone_1.mp3 phone.js:1757:17 Selecting Line : 12 phone.js:7237:13 Call canceled by remote party before answer phone.js:2049:17 Tue Jan 11 2022 00:30:28 GMT-0900 (Alaska Standard Time) | sip.Invitation | Invitation.reject sip-0.20.0.min.js:2:127164 Tue Jan 11 2022 00:30:28 GMT-0900 (Alaska Standard Time) | sip.Invitation | Session f004b9a9-596d-47f0-9e91-e4f8c51f9328882e8bd1-f6d2-4bfd-bb45-edc115ad029c transitioned to state Terminated sip-0.20.0.min.js:2:127164 New CDR Object { CdrId: "1641893428089241D", ItemType: "CDR", ItemDate: "2022-01-11 09:30:15 UTC", CallAnswer: null, CallEnd: "2022-01-11 09:30:28 UTC", SrcUserId: "1641893413112A95", Src: "<1111111111> Queue1111111111", DstUserId: "16349793907139A6", Dst: "<300> 300", RingTime: 13.086, … } phone.js:4224:13 Last Activity for Queue1111111111 is now: 2022-01-11 09:30:28 UTC phone.js:4415:13 Set Missed badge for Queue1111111111 to: 1 phone.js:4400:13 Tue Jan 11 2022 00:30:32 GMT-0900 (Alaska Standard Time) | sip.Invitation | Session f004b9a9-596d-47f0-9e91-e4f8c51f9328882e8bd1-f6d2-4bfd-bb45-edc115ad029c in state Terminated is being disposed sip-0.20.0.min.js:2:127164 Tue Jan 11 2022 00:30:32 GMT-0900 (Alaska Standard Time) | sip.Invitation | Invitation.accept sip-0.20.0.min.js:2:127164 Tue Jan 11 2022 00:30:32 GMT-0900 (Alaska Standard Time) | sip.Invitation | Invalid session state Terminated sip-0.20.0.min.js:2:127094 Failed to answer call Error: Invalid session state Terminated accept https://myURLServer//lib/SipJS/sip-0.20.0.min.js:2 AnswerAudioCall https://myURLServer//phone.js:1887 onclick https://myURLServer//index.html:1
Object { pendingReinvite: false, pendingReinviteAck: false, _state: "Terminated", delegate: {…}, _stateEventEmitter: {…}, _userAgent: {…}, incomingInviteRequest: {…}, disposed: true, expiresTimer: undefined, isCanceled: false, … } phone.js:1890:17 Closing Line: 12 phone.js:7523:13 Selecting previously selected buddy... 1641893413112A95 phone.js:7505:21 Selecting Buddy: Queue1111111111 phone.js:8347:13 Tue Jan 11 2022 00:30:34 GMT-0900 (Alaska Standard Time) | sip.Invitation | Invitation.progress sip-0.20.0.min.js:2:127164 Tue Jan 11 2022 00:30:34 GMT-0900 (Alaska Standard Time) | sip.invite-dialog | INVITE dialog 5f702905-03b7-47ff-8598-9b755d45ea1cvvigc6s8vb090a0957-9ac7-4b81-89a2-a7d3e9e2807e constructed sip-0.20.0.min.js:2:127164 New Incoming Call! Queue1111111111 <1111111111> phone.js:1512:13 Current Call Count: 0 phone.js:1515:13 Audio: media/Ringtone_1.mp3 phone.js:1757:17 Selecting Line : 13 phone.js:7237:13 Tue Jan 11 2022 00:30:36 GMT-0900 (Alaska Standard Time) | sip.invite-dialog | INVITE dialog f004b9a9-596d-47f0-9e91-e4f8c51f9328f2pphbpvaf882e8bd1-f6d2-4bfd-bb45-edc115ad029c destroyed sip-0.20.0.min.js:2:127164 Call canceled by remote party before answer phone.js:2049:17 Tue Jan 11 2022 00:30:36 GMT-0900 (Alaska Standard Time) | sip.Invitation | Invitation.reject sip-0.20.0.min.js:2:127164 Tue Jan 11 2022 00:30:36 GMT-0900 (Alaska Standard Time) | sip.Invitation | Session 5f702905-03b7-47ff-8598-9b755d45ea1c090a0957-9ac7-4b81-89a2-a7d3e9e2807e transitioned to state Terminated sip-0.20.0.min.js:2:127164 New CDR Object { CdrId: "164189343658511DE", ItemType: "CDR", ItemDate: "2022-01-11 09:30:34 UTC", CallAnswer: null, CallEnd: "2022-01-11 09:30:36 UTC", SrcUserId: "1641893413112A95", Src: "<1111111111> Queue1111111111", DstUserId: "16349793907139A6", Dst: "<300> 300", RingTime: 2.585, … } phone.js:4224:13 Last Activity for Queue1111111111 is now: 2022-01-11 09:30:36 UTC phone.js:4415:13 Set Missed badge for Queue1111111111 to: 1 phone.js:4400:13 Tue Jan 11 2022 00:30:40 GMT-0900 (Alaska Standard Time) | sip.Invitation | Session 5f702905-03b7-47ff-8598-9b755d45ea1c090a0957-9ac7-4b81-89a2-a7d3e9e2807e in state Terminated is being disposed sip-0.20.0.min.js:2:127164 Tue Jan 11 2022 00:30:40 GMT-0900 (Alaska Standard Time) | sip.Invitation | Invitation.accept sip-0.20.0.min.js:2:127164 Tue Jan 11 2022 00:30:40 GMT-0900 (Alaska Standard Time) | sip.Invitation | Invalid session state Terminated sip-0.20.0.min.js:2:127094 Failed to answer call Error: Invalid session state Terminated accept https://myURLServer//lib/SipJS/sip-0.20.0.min.js:2 AnswerAudioCall https://myURLServer//phone.js:1887 onclick https://myURLServer//index.html:1
Object { pendingReinvite: false, pendingReinviteAck: false, _state: "Terminated", delegate: {…}, _stateEventEmitter: {…}, _userAgent: {…}, incomingInviteRequest: {…}, disposed: true, expiresTimer: undefined, isCanceled: false, … } phone.js:1890:17 Closing Line: 13 phone.js:7523:13 Selecting previously selected buddy... 1641893413112A95 phone.js:7505:21 Selecting Buddy: Queue1111111111 phone.js:8347:13 Tue Jan 11 2022 00:30:42 GMT-0900 (Alaska Standard Time) | sip.invite-dialog | INVITE dialog 5f702905-03b7-47ff-8598-9b755d45ea1cvvigc6s8vb090a0957-9ac7-4b81-89a2-a7d3e9e2807e destroyed sip-0.20.0.min.js:2:127164 Closing Buddy: 1641893413112A95 phone.js:8400:13 Show Popup Menu phone.js:12087:13
The log shows: Call canceled by remote party before answer phone.js:2049:17
In other words, you may have been clicking the "Answer Button", but in the mean time, the call had already been ended from the remote side. What isn't so clear is why the UI is still up and showing the buttons, when the call was already torn down.
It may literally be a race condition... maybe the UI is just a little sluggish.
I also see that the you are using Queues, and if you are on a ring-all strategy, It could be that someone else has answered the call already - in this case i must just check what happens. Can you send the SIP message as the call is being terminated. I want to see why the UI is available even tho the cal ended.
the firefox is getting slower maybe its because too many call logs, is there any way to keep only the last 10 days of call logs?
Not right now. something I have been looking to include.
How many rows do you have in the CDR items?
The database can be cleared out periodically if you are not worried about the call data?
i have like 2500 row of call data
I'll build something for this.
In the mean while, im interested to know what the lag is like - if this really is the issue. I see the New CDR
line exists first, then the terminate error. This may suggest that adding the CDR is the heavy/slow part.
The only way to know is if there are timestamps. Can you capture the same again with timestamps. That would help.
its almost on everything lagging , even when i dial someone it rings after 5-10 seconds
Wow... that's terrible!
I have an idea, will need a few days to implement.
https://github.com/InnovateAsterisk/Browser-Phone/commit/8763fce922691b81d0aecb157ce438c153d1b82a
You can set this value to say 10. It may gobble up a lot of data the first few calls you make ;)