Hi Guys,
I am using Freepbx distro with Asterisk 11.
I want to fetch these DTMFS and display their pattern to my queue agent before the calls connects to them.
[2020-10-13 20:28:46] DTMF[5155][C-000463e7]: channel.c:4170 __ast_read: DTMF begin '1' received on SIP/1004-0004fd97
[2020-10-13 20:28:46] DTMF[5155][C-000463e7]: channel.c:4181 __ast_read: DTMF begin passthrough '1' on SIP/1004-0004fd97
[2020-10-13 20:28:46] DTMF[5155][C-000463e7]: channel.c:4084 __ast_read: DTMF end '1' received on SIP/1004-0004fd97, duration 160 ms
[2020-10-13 20:28:46] DTMF[5155][C-000463e7]: channel.c:4125 __ast_read: DTMF end accepted with begin '1' on SIP/1004-0004fd97
[2020-10-13 20:28:46] DTMF[5155][C-000463e7]: channel.c:4154 __ast_read: DTMF end passthrough '1' on SIP/1004-0004fd97
[2020-10-13 20:28:46] DTMF[5190][C-000463e9]: channel.c:4170 __ast_read: DTMF begin '1' received on SIP/DIDFS2-0004fd9a
[2020-10-13 20:28:46] DTMF[5190][C-000463e9]: channel.c:4174 __ast_read: DTMF begin ignored '1' on SIP/DIDFS2-0004fd9a
[2020-10-13 20:28:46] DTMF[5190][C-000463e9]: channel.c:4084 __ast_read: DTMF end '1' received on SIP/DIDFS2-0004fd9a, duration 220 ms
[2020-10-13 20:28:46] DTMF[5190][C-000463e9]: channel.c:4154 __ast_read: DTMF end passthrough '1' on SIP/DIDFS2-0004fd9a
FreePBX in the Logs by default displaying DTMFs. but don’t know how and in which file code.
if you can see Freepbx by default giving these values. please check below:
__ast_read: DTMF end ‘1’ received on SIP/DIDFS2-0004fd9a, duration 220 ms
how can I get that output store in the database or where can I access that ?
I need these DTMF to print out and display to my queue agents.
where are these values stored in the database or in the system. How can I access this ?
not able to get any dtmf digits from the below code:
$result = $agi->get_data(${IVR_MSG}, 6000, 10);
$agi->verbose(“Result For DTMF is” .json_encode($result));
$agi->verbose(“Result is $result”);
OUTPUT:
pbx.c: -- Executing [s@ivr-23:10] AGI("SIP/DIDFS1-00054bce", "get.dtmf.php") in new stack
/var/log/asterisk/full:[2020-10-15 14:32:24] VERBOSE[24709][C-00048c59] res_agi.c: -- Launched AGI Script /var/lib/asterisk/agi-bin/get.dtmf.php
/var/log/asterisk/full:[2020-10-15 14:32:24] VERBOSE[24709][C-00048c59] res_agi.c: get.dtmf.php: Faisal Testing CID Superfecta
/var/log/asterisk/full:[2020-10-15 14:32:24] VERBOSE[24709][C-00048c59] res_agi.c: get.dtmf.php: AGI is Running -------------------------- Connected
/var/log/asterisk/full:[2020-10-15 14:32:24] VERBOSE[24709][C-00048c59] res_agi.c: get.dtmf.php: CID Testing: number passed from Asterisk is: 123456789
/var/log/asterisk/full:[2020-10-15 14:32:24] WARNING[24709][C-00048c59] file.c: File 6000 does not exist in any format
/var/log/asterisk/full:[2020-10-15 14:32:24] WARNING[24709][C-00048c59] file.c: Unable to open 6000 (format (ulaw)): No such file or directory
/var/log/asterisk/full:[2020-10-15 14:32:24] VERBOSE[24709][C-00048c59] res_agi.c: get.dtmf.php: Result For DTMF is{code:200,result:-1,data:}
/var/log/asterisk/full:[2020-10-15 14:32:24] VERBOSE[24709][C-00048c59] res_agi.c: get.dtmf.php: Result is Array
/var/log/asterisk/full:[2020-10-15 14:32:24] VERBOSE[24709][C-00048c59] res_agi.c: -- <SIP/DIDFS1-00054bce>AGI Script get.dtmf.php completed, returning 0