Who hung up the call?

Looking in /var/log/asterisk/full at the call info, trying to determine WHO hung up a call. Can anyone give me any advice what I’m looking for (or if that’s included in this log by default)?
Running FreePBX 13.0.197.

Do you have any log?

The only thing you can see (without the the SIP signalling) from the full log are the lines when the channels leave the bridge, i.e.:

[2019-06-24 14:59:18] VERBOSE[24425][C-00000045] bridge_channel.c: Channel PJSIP/5014-00000049 left 'simple_bridge' basic-bridge <92aed772-552c-4f61-a1d2-b5e1255cf298>
[2019-06-24 14:59:18] VERBOSE[24480][C-00000045] bridge_channel.c: Channel PJSIP/fpbx-1-8CeeToemYCth-0000004a left 'simple_bridge' basic-bridge <92aed772-552c-4f61-a1d2-b5e1255cf298>

I interpret the above to mean that channel PJSIP/5014 hung up first, but I’ve been warned by Asterisk people far smarter than me not to rely on this.

Here’s some of the log:
[2019-06-24 09:13:36] VERBOSE[27028][C-00006334] pbx.c: Executing [s@macro-outbound-callerid:18] ExecIf(“SIP/223-0000d74a”, “1?Set(CALLERID(all)=“General Code” <5853281810>)”) in new stack
[2019-06-24 09:13:36] VERBOSE[27028][C-00006334] pbx.c: Executing [s@macro-outbound-callerid:19] ExecIf(“SIP/223-0000d74a”, “0?Set(CALLERID(all)=)”) in new stack
[2019-06-24 09:13:36] VERBOSE[27028][C-00006334] pbx.c: Executing [s@macro-outbound-callerid:20] ExecIf(“SIP/223-0000d74a”, “0?Set(CALLERID(all)=)”) in new stack
[2019-06-24 09:13:36] VERBOSE[27028][C-00006334] pbx.c: Executing [s@macro-outbound-callerid:21] ExecIf(“SIP/223-0000d74a”, “0?Set(CALLERPRES(name-pres)=prohib_passed_screen)”) in new stack
[2019-06-24 09:13:36] VERBOSE[27028][C-00006334] pbx.c: Executing [s@macro-outbound-callerid:22] ExecIf(“SIP/223-0000d74a”, “0?Set(CALLERPRES(num-pres)=prohib_passed_screen)”) in new stack
[2019-06-24 09:13:36] VERBOSE[27028][C-00006334] pbx.c: Executing [s@macro-outbound-callerid:23] Set(“SIP/223-0000d74a”, “CDR(outbound_cnum)=5853281810”) in new stack
[2019-06-24 09:13:36] VERBOSE[27028][C-00006334] pbx.c: Executing [s@macro-outbound-callerid:24] Set(“SIP/223-0000d74a”, “CDR(outbound_cnam)=General Code”) in new stack
[2019-06-24 09:13:36] VERBOSE[27028][C-00006334] pbx.c: Executing [s@macro-dialout-trunk:13] GosubIf(“SIP/223-0000d74a”, “0?sub-flp-1,s,1()”) in new stack
[2019-06-24 09:13:36] VERBOSE[27028][C-00006334] pbx.c: Executing [s@macro-dialout-trunk:14] Set(“SIP/223-0000d74a”, “OUTNUM=16312617502”) in new stack
[2019-06-24 09:13:36] VERBOSE[27028][C-00006334] pbx.c: Executing [s@macro-dialout-trunk:15] Set(“SIP/223-0000d74a”, “custom=SIP/O-SmartVox”) in new stack
[2019-06-24 09:13:36] VERBOSE[27028][C-00006334] pbx.c: Executing [s@macro-dialout-trunk:16] ExecIf(“SIP/223-0000d74a”, “0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)T)”) in new stack
[2019-06-24 09:13:36] VERBOSE[27028][C-00006334] pbx.c: Executing [s@macro-dialout-trunk:17] ExecIf(“SIP/223-0000d74a”, “0?Set(DIAL_TRUNK_OPTIONS=TM(confirm))”) in new stack
[2019-06-24 09:13:36] VERBOSE[27028][C-00006334] pbx.c: Executing [s@macro-dialout-trunk:18] Macro(“SIP/223-0000d74a”, “dialout-trunk-predial-hook,”) in new stack
[2019-06-24 09:13:36] VERBOSE[27028][C-00006334] pbx.c: Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit(“SIP/223-0000d74a”, “”) in new stack
[2019-06-24 09:13:36] VERBOSE[27028][C-00006334] pbx.c: Executing [s@macro-dialout-trunk:19] GotoIf(“SIP/223-0000d74a”, “0?bypass,1”) in new stack
[2019-06-24 09:13:36] VERBOSE[27028][C-00006334] pbx.c: Executing [s@macro-dialout-trunk:20] ExecIf(“SIP/223-0000d74a”, “1?Set(CONNECTEDLINE(num,i)=16312617502)”) in new stack
[2019-06-24 09:13:36] VERBOSE[27028][C-00006334] pbx.c: Executing [s@macro-dialout-trunk:21] ExecIf(“SIP/223-0000d74a”, “1?Set(CONNECTEDLINE(name,i)=CID:5853281810)”) in new stack
[2019-06-24 09:13:36] VERBOSE[27028][C-00006334] pbx.c: Executing [s@macro-dialout-trunk:22] ExecIf(“SIP/223-0000d74a”, “0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)5853281810)”) in new stack
[2019-06-24 09:13:36] VERBOSE[27028][C-00006334] pbx.c: Executing [s@macro-dialout-trunk:23] GotoIf(“SIP/223-0000d74a”, “0?customtrunk”) in new stack
[2019-06-24 09:13:36] VERBOSE[27028][C-00006334] pbx.c: Executing [s@macro-dialout-trunk:24] Dial(“SIP/223-0000d74a”, “SIP/O-SmartVox/16312617502,300,T”) in new stack
[2019-06-24 09:13:36] VERBOSE[27028][C-00006334] netsock2.c: Using SIP RTP TOS bits 184
[2019-06-24 09:13:36] VERBOSE[27028][C-00006334] netsock2.c: Using SIP RTP CoS mark 5
[2019-06-24 09:13:36] VERBOSE[27028][C-00006334] app_dial.c: Called SIP/O-SmartVox/16312617502
[2019-06-24 09:13:37] VERBOSE[27028][C-00006334] app_dial.c: SIP/O-SmartVox-0000d74b is ringing
[2019-06-24 09:13:37] VERBOSE[27028][C-00006334] app_dial.c: SIP/O-SmartVox-0000d74b is making progress passing it to SIP/223-0000d74a
[2019-06-24 09:13:40] VERBOSE[27028][C-00006334] app_dial.c: SIP/O-SmartVox-0000d74b answered SIP/223-0000d74a
[2019-06-24 09:13:40] VERBOSE[27031][C-00006334] bridge_channel.c: Channel SIP/O-SmartVox-0000d74b joined ‘simple_bridge’ basic-bridge
[2019-06-24 09:13:40] VERBOSE[27028][C-00006334] bridge_channel.c: Channel SIP/223-0000d74a joined ‘simple_bridge’ basic-bridge
[2019-06-24 09:14:11] VERBOSE[27031][C-00006334] bridge_channel.c: Channel SIP/O-SmartVox-0000d74b left ‘simple_bridge’ basic-bridge
[2019-06-24 09:14:11] VERBOSE[27028][C-00006334] bridge_channel.c: Channel SIP/223-0000d74a left ‘simple_bridge’ basic-bridge
[2019-06-24 09:14:11] VERBOSE[27028][C-00006334] app_macro.c: Spawn extension (macro-dialout-trunk, s, 24) exited non-zero on ‘SIP/223-0000d74a’ in macro ‘dialout-trunk’
[2019-06-24 09:14:11] VERBOSE[27028][C-00006334] pbx.c: Spawn extension (from-internal, 916312617502, 6) exited non-zero on ‘SIP/223-0000d74a’
[2019-06-24 09:14:11] VERBOSE[27028][C-00006334] pbx.c: Executing [h@from-internal:1] Macro(“SIP/223-0000d74a”, “hangupcall”) in new stack
[2019-06-24 09:14:11] VERBOSE[27028][C-00006334] pbx.c: Executing [s@macro-hangupcall:1] GotoIf(“SIP/223-0000d74a”, “1?theend”) in new stack
[2019-06-24 09:14:11] VERBOSE[27028][C-00006334] pbx_builtins.c: Goto (macro-hangupcall,s,3)
[2019-06-24 09:14:11] VERBOSE[27028][C-00006334] pbx.c: Executing [s@macro-hangupcall:3] ExecIf(“SIP/223-0000d74a”, “0?Set(CDR(recordingfile)=)”) in new stack
[2019-06-24 09:14:11] VERBOSE[27028][C-00006334] pbx.c: Executing [s@macro-hangupcall:4] Hangup(“SIP/223-0000d74a”, “”) in new stack
[2019-06-24 09:14:11] VERBOSE[27028][C-00006334] app_macro.c: Spawn extension (macro-hangupcall, s, 4) exited non-zero on ‘SIP/223-0000d74a’ in macro ‘hangupcall’
[2019-06-24 09:14:11] VERBOSE[27028][C-00006334] pbx.c: Spawn extension (from-internal, h, 1) exited non-zero on ‘SIP/223-0000d74a’

Notwithstanding the above caveat, I would judge the trunk to have hung up first.

2 Likes

Thank you folks. I guessed as much but I wanted to be sure I was looking for the right data. This will help with troubleshooting similar behavior in the future. As always, I appreciate your advice.

1 Like

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