how to get call logging for non agent/campaign calls

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

how to get call logging for non agent/campaign calls

Postby jayboo876 » Tue Aug 23, 2022 9:58 pm

What would be the best/cleanest method to be able to generate call reports for calls made by non dialer/campaign agents. We currently have users registered with soft phones using vicidial for its basic pbx features, however, these calls do not show up in any of the vicidial canned reports. So far, I have enabled cdr in cdr.conf and module cdr_csv.so and now have logs in the Master.csv. Not sure if this is best way so looking for some suggestions from the xperts.
Thanks
installation
generic vicibox10 iso, ast16 update, cluster mode, virtual servers
jayboo876
 
Posts: 38
Joined: Sat Apr 02, 2022 12:51 pm

Re: how to get call logging for non agent/campaign calls

Postby mflorell » Wed Aug 24, 2022 10:47 am

We recommend having the dialing context of the non-agent phones go through a Call Menu that uses the "agi-NVA_recording.agi" script in it:

Code: Select all
# 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
#
# ;inbound to agent example:
#exten => 5678,1,AGI(agi-NVA_recording.agi,BOTH------Y---Y---Y---N---N---N)
#exten => 5678,n,Goto(vicidial-auto,5678,1)
#exten => 5678,n,Hangup
#
# ; example of dial prefix of 94 in System Settings Custom Dialplan to default log
#exten => _941NXXNXXXXXX,1,Goto(defaultlog,9${EXTEN:2},1)
#
# ; example of using as Call Menu prompt to record with playing of recording id
#agi-NVA_recording.agi,BOTH------Y---N---Y---N---Y---Y
#
# ; example of using as Call Menu prompt to record, search for phone number, run NVA call URL and error if not found
#agi-NVA_recording.agi,BOTH------Y---N---Y---N---N---N---Y---ALLLISTS---Y---Y
#
# ;custom dialplan entry example: (similar to the defaultlog Call Menu) with NVA options
#exten => _X.,1,AGI(agi-NVA_recording.agi,BOTH------Y---N---Y---N---N---N---Y---ALLLISTS---N---Y---Y)
#exten => _X.,n,Goto(default,${EXTEN},1)
#exten => _X.,n,Hangup
#
mflorell
Site Admin
 
Posts: 18335
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: how to get call logging for non agent/campaign calls

Postby jayboo876 » Thu Aug 25, 2022 9:11 pm

I set the phone context to defualtlog, however, in the extensions-vicidial.conf, I see it's hitting exten => h,1,AGI(agi://127.0.0.1:4577/ - code snippet below. It seems I need to either comment this line or create a new context in the extensions.conf pointing to exten => _X.,1,AGI(agi-NVA_recording.agi,BOTH------Y---Y---Y) ?

; logging of all outbound calls from agent phones
[defaultlog]
exten => s,1,Answer
exten => s,n,AGI(agi-VDAD_inbound_calltime_check.agi,-----NO-----defaultlog-------------------------NO-----YES)
exten => s,n,Set(INVCOUNT=0)
exten => s,n,Background(sip-silence)
exten => s,n,WaitExten(20)


; hangup
exten => t,1,Playback(vm-goodbye)
exten => t,n,Hangup()
exten => i,1,Goto(s,4)
exten => i,n,Hangup()
; hangup
exten => h,1,AGI(agi://127.0.0.1:4577/call_log--HVcauses ... EBUG-----${HANGUPCAUSE}-----${DIALSTATUS}-----${DIALEDTIME}-----${ANSWEREDTIME}-----${HANGUPCAUSE(${HANGUPCAUSE_KEYS()},tech)}))

; custom dialplan entries
exten => _X.,1,AGI(agi-NVA_recording.agi,BOTH------Y---Y---Y)
exten => _X.,n,Goto(default,${EXTEN},1)
jayboo876
 
Posts: 38
Joined: Sat Apr 02, 2022 12:51 pm

Re: how to get call logging for non agent/campaign calls

Postby jayboo876 » Thu Aug 25, 2022 9:43 pm

For some reason vici doesn't seem to be applying my new phone context. Even after setting phone context to default-blocked (which doesn't exist), a full server reboot, and I am still able to make outbound calls from softphone. I will have to do some digging.

Thanks
jayboo876
 
Posts: 38
Joined: Sat Apr 02, 2022 12:51 pm

Re: how to get call logging for non agent/campaign calls

Postby striker » Fri Aug 26, 2022 1:10 am

after changing the phone context in ADMIN > Phones > phone extension

CHeck the file vi /etc/asterisk/sip-vicidial.conf
wether the context is updated or still showing default.
www.striker24x7.com www.youtube.com/c/striker24x7 Telegram/skype id : striker24x7
striker
 
Posts: 962
Joined: Sun Jun 06, 2010 10:25 am

Re: how to get call logging for non agent/campaign calls

Postby jayboo876 » Sat Aug 27, 2022 12:35 am

The phone was assigned the template SIp_Generic, which has context=default and apparently this takes precedence over the custom context in the phone configuration. After removing the template, the custom context was applied in the sip-vicidial.conf. I thought it would be the other way around - phone custom context taking precedence when phone template is applied?

Thank you
jayboo876
 
Posts: 38
Joined: Sat Apr 02, 2022 12:51 pm

Re: how to get call logging for non agent/campaign calls

Postby jayboo876 » Sat Aug 27, 2022 1:05 am

So now call is hitting the correct script, but still not seeing my test calls in the dial log or carrier log reports. I can however see call logs under 'user stats' if I create a user with userid and phone extension being the same eg (7000006101). But would really like to be able to view these calls holistically, instead of individual phones. Below is a snapshot of the call log. Thanks

== Using SIP RTP CoS mark 5
> 0x7f68d007bee0 -- Strict RTP learning after remote address set to: x.x.x.x:55149
-- Executing [94845886637@defaultlog:1] AGI("SIP/7000006101-00000084", "agi-NVA_recording.agi,BOTH------Y---Y---Y") in new stack
-- Launched AGI Script /usr/share/asterisk/agi-bin/agi-NVA_recording.agi
-- AGI Script Executing Application: (Monitor) Options: (wav,/var/spool/asterisk/monitor/MIX/20220827015527_7000006101_94845886637)
-- <SIP/7000006101-00000084>AGI Script agi-NVA_recording.agi completed, returning 0
-- Executing [94845886637@defaultlog:2] Goto("SIP/7000006101-00000084", "default,94845886637,1") in new stack
-- Goto (default,94845886637,1)
-- Executing [94845886637@default:1] AGI("SIP/7000006101-00000084", "agi://127.0.0.1:4577/call_log") in new stack
-- <SIP/7000006101-00000084>AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
-- Executing [94845886637@default:2] Dial("SIP/7000006101-00000084", "SIP/pstn/4845886637,,To") in new stack
== Using SIP RTP CoS mark 5
jayboo876
 
Posts: 38
Joined: Sat Apr 02, 2022 12:51 pm

Re: how to get call logging for non agent/campaign calls

Postby mflorell » Sun Aug 28, 2022 7:13 am

The NVA script was never designed to log outside of the call_log, user_call_log and recording_log tables. I'm sure the vicidial_dial_log could be added, but it is not currently an option.
mflorell
Site Admin
 
Posts: 18335
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: how to get call logging for non agent/campaign calls

Postby jayboo876 » Tue Aug 30, 2022 8:29 pm

Is there a single report I could run to display all users (agents and nonagents) call log? Thank for you help.
jayboo876
 
Posts: 38
Joined: Sat Apr 02, 2022 12:51 pm

Re: how to get call logging for non agent/campaign calls

Postby mflorell » Wed Aug 31, 2022 4:44 pm

There is currently no web report that will show all calls together in one display. I'm sure one could be written, but we haven't had any clients request that up to this point.
mflorell
Site Admin
 
Posts: 18335
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida


Return to Support

Who is online

Users browsing this forum: Google [Bot] and 64 guests