Page 1 of 1

DID EXTEN Routing Reports

PostPosted: Thu Apr 19, 2018 7:17 am
by ZeeTech
We need to forward a particular DID calls to external server(carrier), I have setup following parameters in DID definition.

DID Route: EXTEN
Extension: 991234567890
Extension Context: ipdialing

Context defined in extensions.conf
[ipdialing]
exten => _99X.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _99X.,n,Dial(${SIP100}/${EXTEN:2},,To)
exten => _99X.,n,Hangup
* SIP100 is the Globals String defined in carrier.

Call flow is working fine, I need to know how I can capture forward call stats. “Inbound DID Report” is only showing number of call routed through extension method but I also need to know the total call duration for the forward calls, Secondly please advise either agi://127.0.0.1:4577/call_log script is required in this scenario, I through it will be helpful to log CDRs.

Thanks,
Zee
--------
VERSION: 2.12-541a BUILD: 160306-1053
Asterisk 1.8.23.0-vici, libpri-1.4.15 with DAHDI Version: 2.11
Dell R720 – No additional hardware.

Re: DID EXTEN Routing Reports

PostPosted: Thu Apr 19, 2018 10:42 am
by mflorell
That is one of the things you can do with the agi-NVA_recording.agi script:

# agi-NVA_recording.agi version 2.12
#
# This script is designed to give recording ability to agents not the using
# ViciDial agent screen
#
# ; 1. logging output (NONE|STDERR|FILE|BOTH)
# ; 2. the ViciDial user ID, if empty it defaults to accountcode(usually phone extension) or vicidial_live_agents user who launched the call
# ; 3. log this call in user_call_log (Y|N) default N
# ; 4. log this call in call_log (Y|N) default N, ONLY NEEDED FOR INBOUND AND INTERSYSTEM CALLS!!!
# ; 5. audio record this call (Y|N) default N
# ; 6. double-log this call in call_log (Y|N) default N, ONLY NEEDED FOR INBOUND CALLMENU FORWARDED CALLS!!!
# ; 7. play the recording ID of this call before recording starts
# ; 8. include the recording ID in the filename
# ; 9. search vicidial_list for phone number dialed (Y|N) default N, assumes 10 digit phone numbers
# ; 10. if 9 is Y, this is search method (ALLLISTS|PHONE) default ALLLISTS, search all lists, use phone setting, CURRENTLY DOES NOTHING
# ; 11. error out and end call if phone number is not found (Y|N) default N
# ; 12. run the phone entry's NVA Call URL (Y|N) default N
# ; 13. if 9 is Y, and phone number is not found, insert into phone's NVA List ID (Y|N) default N
# ; 14. if 13 is Y, override phone's NVA List ID with this list ID when lead is inserted
# ; 15. if 13 is Y, override phone's NVA Phone Code with this phone code when lead is inserted
# ; 16. if 13 is Y, override phone's NVA Status with this status when lead is inserted
#
#
# ;custom dialplan entry example: (similar to the defaultlog Call Menu)
#exten => _X.,1,AGI(agi-NVA_recording.agi,BOTH------Y---N---Y---N---N---N)
#exten => _X.,n,Goto(default,${EXTEN},1)
#exten => _X.,n,Hangup
#