HangUp CAUSE

Hello…

We have a FREEPBX 15 (15.0.37.5). hosting an DID INTL for MEX (through VoipInnovations)

we are experiencing some issues while assigning call to extension, as in a random behavior, we have got :
“HANGUP CAUSE: 0” or “HANGUP CAUSE: 127”

This happens with the same caller… some time the call is accepted and sometime is dropped … for a call coming from the same origin.

End user states the call rings but unable to take the call.

Thanks for your efforts in posting but are they really your efforts or just you doing ‘LMGTFY’ for AI ?

2 Likes

We have confirmed with VoIP the RTP port span, IPs for carriers at IPS/ACL … i have enabled degug option to track this issue as this behavior is still faced.

Post a call log of a failed call.

This is the part that apparently is dropping the call randomly:

[2024-07-16 17:31:37] VERBOSE[6722][C-00000001] app_dial.c: PJSIP/XXX-00000003 is ringing
[2024-07-16 17:31:37] VERBOSE[6722][C-00000001] app_dial.c: PJSIP/XXX-00000003 is ringing
[2024-07-16 17:31:41] VERBOSE[6722][C-00000001] app_stack.c: PJSIP/XXX-00000003 Internal Gosub(crm-hangup,s,1) start
[2024-07-16 17:31:41] VERBOSE[6722][C-00000001] pbx.c: Executing [s@crm-hangup:1] NoOp("PJSIP/XXX-00000003", "Sending Hangup to CRM") in new stack
[2024-07-16 17:31:41] VERBOSE[6722][C-00000001] pbx.c: Executing [s@crm-hangup:2] NoOp("PJSIP/XXX-00000003", "HANGUP CAUSE: 0") in new stack
[2024-07-16 17:31:41] VERBOSE[6722][C-00000001] pbx.c: Executing [s@crm-hangup:3] ExecIf("PJSIP/XXX-00000003", "0?Set(__CRM_VOICEMAIL=)") in new stack
[2024-07-16 17:31:41] VERBOSE[6722][C-00000001] pbx.c: Executing [s@crm-hangup:4] NoOp("PJSIP/XXX-00000003", "MASTER CHANNEL: 1721169097.3 = 1721169096.2") in new stack
[2024-07-16 17:31:41] VERBOSE[6722][C-00000001] pbx.c: Executing [s@crm-hangup:5] GotoIf("PJSIP/XXX-00000003", "1?return") in new stack
[2024-07-16 17:31:41] VERBOSE[6722][C-00000001] pbx_builtins.c: Goto (crm-hangup,s,8)
[2024-07-16 17:31:41] VERBOSE[6722][C-00000001] pbx.c: Executing [s@crm-hangup:8] Return("PJSIP/XXX-00000003", "") in new stack
[2024-07-16 17:31:41] VERBOSE[6722][C-00000001] app_stack.c: Spawn extension (from-internal, 3030, 1) exited non-zero on 'PJSIP/XXX-00000003'
[2024-07-16 17:31:41] VERBOSE[6722][C-00000001] app_stack.c: PJSIP/XXX-00000003 Internal Gosub(crm-hangup,s,1) complete GOSUB_RETVAL=
[2024-07-16 17:31:41] VERBOSE[6722][C-00000001] app_macro.c: Spawn extension (macro-dial, s, 29) exited non-zero on 'PJSIP/voipInn-2-oqoSb5a5cttVNeUad8th-00000002' in macro 'dial'
[2024-07-16 17:31:41] VERBOSE[6722][C-00000001] pbx.c: Spawn extension (ext-group, 3030, 22) exited non-zero on 'PJSIP/voipInn-2-oqoSb5a5cttVNeUad8th-00000002'
[2024-07-16 17:31:41] VERBOSE[6722][C-00000001] pbx.c: Executing [h@ext-group:1] Macro("PJSIP/voipInn-2-oqoSb5a5cttVNeUad8th-00000002", "hangupcall,") in new stack
[2024-07-16 17:31:41] VERBOSE[6722][C-00000001] pbx.c: Executing [s@macro-hangupcall:1] GotoIf("PJSIP/voipInn-2-oqoSb5a5cttVNeUad8th-00000002", "1?theend") in new stack
[2024-07-16 17:31:41] VERBOSE[6722][C-00000001] pbx_builtins.c: Goto (macro-hangupcall,s,3)
[2024-07-16 17:31:41] VERBOSE[6722][C-00000001] pbx.c: Executing [s@macro-hangupcall:3] ExecIf("PJSIP/voipInn-2-oqoSb5a5cttVNeUad8th-00000002", "0?Set(CDR(recordingfile)=)") in new stack
[2024-07-16 17:31:41] VERBOSE[6722][C-00000001] pbx.c: Executing [s@macro-hangupcall:4] Hangup("PJSIP/voipInn-2-oqoSb5a5cttVNeUad8th-00000002", "") in new stack
[2024-07-16 17:31:41] VERBOSE[6722][C-00000001] app_macro.c: Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'PJSIP/voipInn-2-oqoSb5a5cttVNeUad8th-00000002' in macro 'hangupcall'
[2024-07-16 17:31:41] VERBOSE[6722][C-00000001] pbx.c: Spawn extension (ext-group, h, 1) exited non-zero on 'PJSIP/voipInn-2-oqoSb5a5cttVNeUad8th-00000002'
[2024-07-16 17:31:41] VERBOSE[6722][C-00000001] app_stack.c: PJSIP/voipInn-2-oqoSb5a5cttVNeUad8th-00000002 Internal Gosub(crm-hangup,s,1) start
[2024-07-16 17:31:41] VERBOSE[6722][C-00000001] pbx.c: Executing [s@crm-hangup:1] NoOp("PJSIP/voipInn-2-oqoSb5a5cttVNeUad8th-00000002", "Sending Hangup to CRM") in new stack
[2024-07-16 17:31:41] VERBOSE[6722][C-00000001] pbx.c: Executing [s@crm-hangup:2] NoOp("PJSIP/voipInn-2-oqoSb5a5cttVNeUad8th-00000002", "HANGUP CAUSE: **127**") in new stack```

Post a log with “pjsip set logger on|” in effect.

Also, as a general principle, post the whole call.

1 Like

If this is a call is assigned to an extension, why is it hitting a Ring Group? Because the Ring Group is timing out (hangup cause 0) and it is hanging up the call with no real response thus sending a hangup cause 127 to the provider trunk.

there is a Ring Group… a couple of extensions ringing in parallel … anyway will try with a single extension … besides will enable pjsip debug option

image
found next settings for SANGOMA S Phones… just update the span… and testing