Phones sometimes show "no response" when trying to answer calls from queue

We’ve got four Grandstream GXP2170 phones that are agents to a ringall queue. Every day or so we’ll have a call come in, go to queue, and ring all those phones as expected. An operator picks up the phone and is greeted with the congestion sound and the phone says “No Response” on the screen. The other phones in the queue continue to ring, but this agent on duty needs to wait for the agent timeout to circle around again for her phone to ring. After that, the call can be answered by the same phone with no problem.

I searched through the logs and found the bit below, which I think it related. Specifically, this line caught my interested: NoOp(“PJSIP/111-0000037b”, “HANGUP CAUSE: 58”) in new stack

I did some searching on cause 58, but didn’t find a whole lot. It looks like it might be related to media codecs, but if a codec wasn’t enabled correctly, I wouldn’t expect the call to work the second time (after the queue times out and tries again).

Thanks in advance for any ideas!

2018-12-21 13:00:26] VERBOSE[8587][C-00000265] app_stack.c: PJSIP/120-0000037d Internal Gosub(func-apply-sipheaders,s,1) complete GOSUB_RETVAL=
[2018-12-21 13:00:26] VERBOSE[8585][C-00000265] app_dial.c: Called PJSIP/111/sip:[email protected]:33291
[2018-12-21 13:00:26] VERBOSE[8359][C-00000265] app_queue.c: Local/111@from-queue-0000010c;1 is ringing
[2018-12-21 13:00:26] VERBOSE[8585][C-00000265] app_dial.c: Connected line update to Local/111@from-queue-0000010c;2 prevented.
[2018-12-21 13:00:26] VERBOSE[8586][C-00000265] app_dial.c: Called PJSIP/113/sip:[email protected]:10256
[2018-12-21 13:00:26] VERBOSE[8359][C-00000265] app_queue.c: Local/113@from-queue-0000010d;1 is ringing
[2018-12-21 13:00:26] VERBOSE[8586][C-00000265] app_dial.c: Connected line update to Local/113@from-queue-0000010d;2 prevented.
[2018-12-21 13:00:26] VERBOSE[8587][C-00000265] app_dial.c: Called PJSIP/120/sip:[email protected]:39757
[2018-12-21 13:00:26] VERBOSE[8359][C-00000265] app_queue.c: Local/120@from-queue-0000010e;1 is ringing
[2018-12-21 13:00:26] VERBOSE[8587][C-00000265] app_dial.c: Connected line update to Local/120@from-queue-0000010e;2 prevented.
[2018-12-21 13:00:26] VERBOSE[8585][C-00000265] app_dial.c: PJSIP/111-0000037b is ringing
[2018-12-21 13:00:26] VERBOSE[8585][C-00000265] app_dial.c: PJSIP/111-0000037b is ringing
[2018-12-21 13:00:26] VERBOSE[8359][C-00000265] app_queue.c: Local/111@from-queue-0000010c;1 is ringing
[2018-12-21 13:00:26] VERBOSE[8586][C-00000265] app_dial.c: PJSIP/113-0000037c is ringing
[2018-12-21 13:00:26] VERBOSE[8586][C-00000265] app_dial.c: PJSIP/113-0000037c is ringing
[2018-12-21 13:00:26] VERBOSE[8587][C-00000265] app_dial.c: PJSIP/120-0000037d is ringing
[2018-12-21 13:00:26] VERBOSE[8587][C-00000265] app_dial.c: PJSIP/120-0000037d is ringing
[2018-12-21 13:00:26] VERBOSE[8359][C-00000265] app_queue.c: Local/120@from-queue-0000010e;1 is ringing
[2018-12-21 13:00:26] VERBOSE[8359][C-00000265] app_queue.c: Local/113@from-queue-0000010d;1 is ringing
[2018-12-21 13:00:31] VERBOSE[8585][C-00000265] app_stack.c: PJSIP/111-0000037b Internal Gosub(crm-hangup,s,1) start
[2018-12-21 13:00:31] VERBOSE[8585][C-00000265] pbx.c: Executing [s@crm-hangup:1] NoOp("PJSIP/111-0000037b", "Sending Hangup to CRM") in new stack
[2018-12-21 13:00:31] VERBOSE[8585][C-00000265] pbx.c: Executing [s@crm-hangup:2] NoOp("PJSIP/111-0000037b", "HANGUP CAUSE: 58") in new stack
[2018-12-21 13:00:31] VERBOSE[8585][C-00000265] pbx.c: Executing [s@crm-hangup:3] ExecIf("PJSIP/111-0000037b", "0?Set(__CRM_VOICEMAIL=)") in new stack
[2018-12-21 13:00:31] VERBOSE[8585][C-00000265] pbx.c: Executing [s@crm-hangup:4] NoOp("PJSIP/111-0000037b", "MASTER CHANNEL: 1545415226.2035 = 1545415193.2028") in new stack
[2018-12-21 13:00:31] VERBOSE[8585][C-00000265] pbx.c: Executing [s@crm-hangup:5] GotoIf("PJSIP/111-0000037b", "1?return") in new stack
[2018-12-21 13:00:31] VERBOSE[8585][C-00000265] pbx_builtins.c: Goto (crm-hangup,s,8)
[2018-12-21 13:00:31] VERBOSE[8585][C-00000265] pbx.c: Executing [s@crm-hangup:8] Return("PJSIP/111-0000037b", "") in new stack
[2018-12-21 13:00:31] VERBOSE[8585][C-00000265] app_stack.c: Spawn extension (from-internal, 111, 1) exited non-zero on 'PJSIP/111-0000037b'
[2018-12-21 13:00:31] VERBOSE[8585][C-00000265] app_stack.c: PJSIP/111-0000037b Internal Gosub(crm-hangup,s,1) complete GOSUB_RETVAL=
[2018-12-21 13:00:31] VERBOSE[8585][C-00000265] app_dial.c: Everyone is busy/congested at this time (1:0/0/1)
[2018-12-21 13:00:31] VERBOSE[8585][C-00000265] pbx.c: Executing [s@macro-dial-one:56] ExecIf("Local/111@from-queue-0000010c;2", "0?MacroExit()") in new stack
[2018-12-21 13:00:31] VERBOSE[8585][C-00000265] pbx.c: Executing [s@macro-dial-one:57] ExecIf("Local/111@from-queue-0000010c;2", "0?Set(DIALSTATUS=)") in new stack
[2018-12-21 13:00:31] VERBOSE[8585][C-00000265] pbx.c: Executing [s@macro-dial-one:58] GosubIf("Local/111@from-queue-0000010c;2", "0?s-CHANUNAVAIL,1()") in new stack
[2018-12-21 13:00:31] VERBOSE[8585][C-00000265] pbx.c: Executing [s@macro-dial-one:59] MacroExit("Local/111@from-queue-0000010c;2", "") in new stack
[2018-12-21 13:00:31] VERBOSE[8585][C-00000265] pbx.c: Executing [111@from-queue-exten-only:9] GotoIf("Local/111@from-queue-0000010c;2", "0?,,") in new stack
[2018-12-21 13:00:31] VERBOSE[8585][C-00000265] pbx.c: Executing [111@from-queue-exten-only:10] Hangup("Local/111@from-queue-0000010c;2", "") in new stack
[2018-12-21 13:00:31] VERBOSE[8585][C-00000265] pbx.c: Spawn extension (from-queue-exten-only, 111, 10) exited non-zero on 'Local/111@from-queue-0000010c;2'
[2018-12-21 13:00:31] VERBOSE[8585][C-00000265] pbx.c: Executing [h@from-queue-exten-only:1] Macro("Local/111@from-queue-0000010c;2", "hangupcall,") in new stack
[2018-12-21 13:00:31] VERBOSE[8585][C-00000265] pbx.c: Executing [s@macro-hangupcall:1] GotoIf("Local/111@from-queue-0000010c;2", "1?theend") in new stack
[2018-12-21 13:00:31] VERBOSE[8585][C-00000265] pbx_builtins.c: Goto (macro-hangupcall,s,3)
[2018-12-21 13:00:31] VERBOSE[8585][C-00000265] pbx.c: Executing [s@macro-hangupcall:3] ExecIf("Local/111@from-queue-0000010c;2", "0?Set(CDR(recordingfile)=)") in new stack
[2018-12-21 13:00:31] VERBOSE[8585][C-00000265] pbx.c: Executing [s@macro-hangupcall:4] NoOp("Local/111@from-queue-0000010c;2", " monior file= ") in new stack
[2018-12-21 13:00:31] VERBOSE[8585][C-00000265] pbx.c: Executing [s@macro-hangupcall:5] AGI("Local/111@from-queue-0000010c;2", "attendedtransfer-rec-restart.php,,") in new stack
[2018-12-21 13:00:31] VERBOSE[8585][C-00000265] res_agi.c: Launched AGI Script /var/lib/asterisk/agi-bin/attendedtransfer-rec-restart.php
[2018-12-21 13:00:31] VERBOSE[8585][C-00000265] res_agi.c: <Local/111@from-queue-0000010c;2>AGI Script attendedtransfer-rec-restart.php completed, returning 0
[2018-12-21 13:00:31] VERBOSE[8585][C-00000265] pbx.c: Executing [s@macro-hangupcall:6] Hangup("Local/111@from-queue-0000010c;2", "") in new stack
[2018-12-21 13:00:31] VERBOSE[8585][C-00000265] app_macro.c: Spawn extension (macro-hangupcall, s, 6) exited non-zero on 'Local/111@from-queue-0000010c;2' in macro 'hangupcall'
[2018-12-21 13:00:31] VERBOSE[8585][C-00000265] pbx.c: Spawn extension (from-queue-exten-only, h, 1) exited non-zero on 'Local/111@from-queue-0000010c;2'
[2018-12-21 13:00:31] VERBOSE[8359][C-00000265] app_queue.c: Nobody picked up in 5000 ms

https://wiki.asterisk.org/wiki/display/AST/Hangup+Cause+Mappings Cause Code Mappings are found at that link. Cause Code 58 is a result of a 488 or 606 SIP Reply, in this case probably a 488 which means the device that is trying to answer the call doesn’t have proper codecs or transport to match what Asterisk is expecting.

Thanks, I did find that. But how does the phone have the proper codecs 30 seconds later for the same call?

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.