Paulo, Você pode pegar isso durante a ligação com o sngrep.
Em sex, 8 de jun de 2018 às 16:33, Paulo Silva <[email protected]> escreveu: > Boa tarde pessoal, tudo bem? > Alguém poderia me ajudar? > > Fiz uma chamada para um celular que está no log porem preciso saber quem > desligou. > Se o hangup veio de celular ou do operador. > Se veio do celular qual o HangupCase > Segue o log final: > > > [2018-06-08 13:42:39] VERBOSE[11513][C-000328d2] app_dial.c: -- > SIP/TEIQ-0005cd9f is making progress passing it to SIP/7166-0005cd9d > [2018-06-08 13:43:11] VERBOSE[11513][C-000328d2] app_dial.c: -- > SIP/TEIQ-0005cd9f answered SIP/7166-0005cd9d > [2018-06-08 13:45:57] VERBOSE[11513][C-000328d2] pbx.c: -- Executing > [h@macro-dialout-trunk:1] Macro("SIP/7166-0005cd9d", "hangupcall,") in > new stack > [2018-06-08 13:45:57] VERBOSE[11513][C-000328d2] pbx.c: -- Executing > [s@macro-hangupcall:1] GotoIf("SIP/7166-0005cd9d", "0?endmixmoncheck") in > new stack > [2018-06-08 13:45:57] VERBOSE[11513][C-000328d2] pbx.c: -- Executing > [s@macro-hangupcall:2] Set("SIP/7166-0005cd9d", > "MIXMON_CALLFILENAME=/var/spool/asterisk/monitor/out-084999581393-7166-20180608-134234-1528476154.421223.wav") > in new stack > [2018-06-08 13:45:57] VERBOSE[11513][C-000328d2] pbx.c: -- Executing > [s@macro-hangupcall:3] GotoIf("SIP/7166-0005cd9d", "1?defaultmixmondir") > in new stack > [2018-06-08 13:45:57] VERBOSE[11513][C-000328d2] pbx.c: -- Goto > (macro-hangupcall,s,5) > [2018-06-08 13:45:57] VERBOSE[11513][C-000328d2] pbx.c: -- Executing > [s@macro-hangupcall:5] System("SIP/7166-0005cd9d", "test -e > /var/spool/asterisk/monitor/out-084999581393-7166-20180608-134234-1528476154.421223.wav") > in new stack > [2018-06-08 13:45:57] VERBOSE[11513][C-000328d2] pbx.c: -- Executing > [s@macro-hangupcall:6] NoOp("SIP/7166-0005cd9d", "SYSTEMSTATUS = > APPERROR") in new stack > [2018-06-08 13:45:57] VERBOSE[11513][C-000328d2] pbx.c: -- Executing > [s@macro-hangupcall:7] GotoIf("SIP/7166-0005cd9d", "0?endmixmoncheck") in > new stack > [2018-06-08 13:45:57] VERBOSE[11513][C-000328d2] pbx.c: -- Executing > [s@macro-hangupcall:8] Set("SIP/7166-0005cd9d", "CDR(recordingfile)=") in > new stack > [2018-06-08 13:45:57] VERBOSE[11513][C-000328d2] pbx.c: -- Executing > [s@macro-hangupcall:9] NoOp("SIP/7166-0005cd9d", "End of MIXMON check") > in new stack > [2018-06-08 13:45:57] VERBOSE[11513][C-000328d2] pbx.c: -- Executing > [s@macro-hangupcall:10] GotoIf("SIP/7166-0005cd9d", "1?nomeetmemon") in > new stack > [2018-06-08 13:45:57] VERBOSE[11513][C-000328d2] pbx.c: -- Goto > (macro-hangupcall,s,28) > [2018-06-08 13:45:57] VERBOSE[11513][C-000328d2] pbx.c: -- Executing > [s@macro-hangupcall:28] NoOp("SIP/7166-0005cd9d", "End of MEETME check") > in new stack > [2018-06-08 13:45:57] VERBOSE[11513][C-000328d2] pbx.c: -- Executing > [s@macro-hangupcall:29] GotoIf("SIP/7166-0005cd9d", "1?noautomon") in new > stack > [2018-06-08 13:45:57] VERBOSE[11513][C-000328d2] pbx.c: -- Goto > (macro-hangupcall,s,34) > [2018-06-08 13:45:57] VERBOSE[11513][C-000328d2] pbx.c: -- Executing > [s@macro-hangupcall:34] NoOp("SIP/7166-0005cd9d", > "TOUCH_MONITOR_OUTPUT=") in new stack > [2018-06-08 13:45:57] VERBOSE[11513][C-000328d2] pbx.c: -- Executing > [s@macro-hangupcall:35] GotoIf("SIP/7166-0005cd9d", "1?noautomon2") in > new stack > [2018-06-08 13:45:57] VERBOSE[11513][C-000328d2] pbx.c: -- Goto > (macro-hangupcall,s,41) > [2018-06-08 13:45:57] VERBOSE[11513][C-000328d2] pbx.c: -- Executing > [s@macro-hangupcall:41] NoOp("SIP/7166-0005cd9d", "MONITOR_FILENAME=") in > new stack > [2018-06-08 13:45:57] VERBOSE[11513][C-000328d2] pbx.c: -- Executing > [s@macro-hangupcall:42] GotoIf("SIP/7166-0005cd9d", "0?noautomon3") in > new stack > [2018-06-08 13:45:57] VERBOSE[11513][C-000328d2] pbx.c: -- Executing > [s@macro-hangupcall:43] System("SIP/7166-0005cd9d", "test -e > /var/spool/asterisk/monitor/2018/06/08/out-084999581393-7166-20180608-134234-1528476154.421223.wav*") > in new stack > [2018-06-08 13:45:57] VERBOSE[11513][C-000328d2] pbx.c: -- Executing > [s@macro-hangupcall:44] NoOp("SIP/7166-0005cd9d", "SYSTEMSTATUS = > SUCCESS") in new stack > [2018-06-08 13:45:57] VERBOSE[11513][C-000328d2] pbx.c: -- Executing > [s@macro-hangupcall:45] GotoIf("SIP/7166-0005cd9d", "0?errornoautomon2") > in new stack > [2018-06-08 13:45:57] VERBOSE[11513][C-000328d2] pbx.c: -- Executing > [s@macro-hangupcall:46] Set("SIP/7166-0005cd9d", > "CDR(recordingfile)=/var/spool/asterisk/monitor/2018/06/08/out-084999581393-7166-20180608-134234-1528476154.421223.wav") > in new stack > [2018-06-08 13:45:57] VERBOSE[11513][C-000328d2] pbx.c: -- Executing > [s@macro-hangupcall:47] NoOp("SIP/7166-0005cd9d", "End of > MIXMONITOR_FILENAME check") in new stack > [2018-06-08 13:45:57] VERBOSE[11513][C-000328d2] pbx.c: -- Executing > [s@macro-hangupcall:48] NoOp("SIP/7166-0005cd9d", > "MIXMONITOR_FILENAME=/var/spool/asterisk/monitor/2018/06/08/out-084999581393-7166-20180608-134234-1528476154.421223.wav") > in new stack > [2018-06-08 13:45:57] VERBOSE[11513][C-000328d2] pbx.c: -- Executing > [s@macro-hangupcall:49] GotoIf("SIP/7166-0005cd9d", "1?noautomon4") in > new stack > [2018-06-08 13:45:57] VERBOSE[11513][C-000328d2] pbx.c: -- Goto > (macro-hangupcall,s,51) > [2018-06-08 13:45:57] VERBOSE[11513][C-000328d2] pbx.c: -- Executing > [s@macro-hangupcall:51] NoOp("SIP/7166-0005cd9d", "ONETOUCH_RECFILE=") in > new stack > [2018-06-08 13:45:57] VERBOSE[11513][C-000328d2] pbx.c: -- Executing > [s@macro-hangupcall:52] GotoIf("SIP/7166-0005cd9d", "1?skiprg") in new > stack > [2018-06-08 13:45:57] VERBOSE[11513][C-000328d2] pbx.c: -- Goto > (macro-hangupcall,s,55) > [2018-06-08 13:45:57] VERBOSE[11513][C-000328d2] pbx.c: -- Executing > [s@macro-hangupcall:55] GotoIf("SIP/7166-0005cd9d", "1?skipblkvm") in new > stack > [2018-06-08 13:45:57] VERBOSE[11513][C-000328d2] pbx.c: -- Goto > (macro-hangupcall,s,58) > [2018-06-08 13:45:57] VERBOSE[11513][C-000328d2] pbx.c: -- Executing > [s@macro-hangupcall:58] GotoIf("SIP/7166-0005cd9d", "1?theend") in new > stack > [2018-06-08 13:45:57] VERBOSE[11513][C-000328d2] pbx.c: -- Goto > (macro-hangupcall,s,60) > [2018-06-08 13:45:57] VERBOSE[11513][C-000328d2] pbx.c: -- Executing > [s@macro-hangupcall:60] AGI("SIP/7166-0005cd9d", "hangup.agi") in new > stack > [2018-06-08 13:45:57] VERBOSE[11513][C-000328d2] res_agi.c: -- > Launched AGI Script /var/lib/asterisk/agi-bin/hangup.agi > [2018-06-08 13:45:57] VERBOSE[11513][C-000328d2] res_agi.c: -- > <SIP/7166-0005cd9d>AGI Script hangup.agi completed, returning 0 > [2018-06-08 13:45:57] VERBOSE[11513][C-000328d2] pbx.c: -- Executing > [s@macro-hangupcall:61] Hangup("SIP/7166-0005cd9d", "") in new stack > [2018-06-08 13:45:57] VERBOSE[11513][C-000328d2] app_macro.c: == Spawn > extension (macro-hangupcall, s, 61) exited non-zero on 'SIP/7166-0005cd9d' > in macro 'hangupcall' > [2018-06-08 13:45:57] VERBOSE[11513][C-000328d2] pbx.c: == Spawn > extension (macro-dialout-trunk, h, 1) exited non-zero on 'SIP/7166-0005cd9d' > [2018-06-08 13:45:58] VERBOSE[11513][C-000328d2] app_macro.c: == Spawn > extension (macro-dialout-trunk, s, 22) exited non-zero on > 'SIP/7166-0005cd9d' in macro 'dialout-trunk' > [2018-06-08 13:45:58] VERBOSE[11513][C-000328d2] pbx.c: == Spawn > extension (from-internal, 084999581393, 7) exited non-zero on > 'SIP/7166-0005cd9d' > > Obrigado. > -- > Paulo Silva > Analista de Sistemas - Telecom > _______________________________________________ > KHOMP: completa linha de placas externas FXO, FXS, GSM e E1 > Media Gateways de 1 a 64 E1s para SIP com R2, ISDN e SS7 > Intercomunicador e acesso remoto via rede IP e telefones IP > Conheça todo o portfólio em www.Khomp.com > _______________________________________________ > Para remover seu email desta lista, basta enviar um email em branco para > [email protected]
_______________________________________________ KHOMP: completa linha de placas externas FXO, FXS, GSM e E1 Media Gateways de 1 a 64 E1s para SIP com R2, ISDN e SS7 Intercomunicador e acesso remoto via rede IP e telefones IP Conheça todo o portfólio em www.Khomp.com _______________________________________________ Para remover seu email desta lista, basta enviar um email em branco para [email protected]

