Custom Recording Extension

All installation and configuration problems and questions

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

Custom Recording Extension

Postby hiadviser » Thu Jan 07, 2016 10:46 am

Right now I'm trying to generate a separate, second recording during my call. Here is how we need our users to do this: Get on the phone with a client, dial in an extension with the client, read them a script, hang up the extension, and finish the call with the client. A company we sell for needs that little separate recording where we read the script for liability purposes. It would be much easier if we could generate a separate recording rather than trying to manually listen and splice hundreds of recordings everyday.

I saw this in the extensions-vicidial.conf:

; this is used for recording conference calls, the client app sends the filename
; value as a callerID recordings go to /var/spool/asterisk/monitor (WAV)
; Recording is limited to 1 hour, to make longer, just change the server
; setting ViciDial Recording Limit
; this is the WAV verison, default
exten => 8309,1,Answer
exten => 8309,2,Monitor(wav,${CALLERID(name)})
exten => 8309,3,Wait(3600)
exten => 8309,4,Hangup()




My first thought was to dial directly 8309, but so far hasn't worked. My process: With the client on the phone, I press Transfer-Conf. Check Consultative box. Type in 8309. Press Dial With Customer.

It seems to just be put on hold though and doesn't actually do anything. Here is the CLI:

[Jan 7 07:30:57] == Manager 'sendcron' logged on from 127.0.0.1
[Jan 7 07:30:57] -- Executing [90009*AGENTDIRECT*CXFER*197133**XXXXXXXXXX*5000*8309*187*@default:1] Answer("Local/90009*AGENTDIRECT*CXFER*197133**XXXXXXXXXX*5000*8309*187*@default-", "") in new stack
[Jan 7 07:30:57] > Channel Local/90009*AGENTDIRECT*CXFER*197133**XXXXXXXXXX*5000*8309*187*@default-0000180f;1 was answered.
[Jan 7 07:30:57] -- Executing [8600051@default:1] MeetMe("Local/90009*AGENTDIRECT*CXFER*197133**XXXXXXXXXX*5000*8309*187*@default-", "8600051,F") in new stack
[Jan 7 07:30:57] -- Executing [90009*AGENTDIRECT*CXFER*197133**XXXXXXXXXX*5000*8309*187*@default:2] Dial("Local/90009*AGENTDIRECT*CXFER*197133**XXXXXXXXXX*5000*8309*187*@default-", "IAX2/ASTloop:Z3oHlPIixrZIRHu@127.0.0.1:40569/990009*AGENTDIRECT*CXFER*197133**XXXXXXXXXX*5000*8309*187*,,to") in new stack
[Jan 7 07:30:57] -- Called IAX2/ASTloop:Z3oHlPIixrZIRHu@127.0.0.1:40569/990009*AGENTDIRECT*CXFER*197133**XXXXXXXXXX*5000*8309*187*
[Jan 7 07:30:57] -- Accepting AUTHENTICATED call from 127.0.0.1:
> requested format = gsm,
> requested prefs = (gsm|ulaw),
> actual format = ulaw,
> host prefs = (ulaw),
> priority = mine
[Jan 7 07:30:57] -- Call accepted by 127.0.0.1 (format ulaw)
[Jan 7 07:30:57] -- Format for call is ulaw
[Jan 7 07:30:57] -- Executing [990009*AGENTDIRECT*CXFER*197133**XXXXXXXXXX*5000*8309*187*@default:1] Answer("IAX2/ASTloop-11360", "") in new stack
[Jan 7 07:30:57] -- IAX2/127.0.0.1:40569-11872 answered Local/90009*AGENTDIRECT*CXFER*197133**XXXXXXXXXX*5000*8309*187*@default-0000180f;2
[Jan 7 07:30:57] -- Executing [990009*AGENTDIRECT*CXFER*197133**XXXXXXXXXX*5000*8309*187*@default:2] AGI("IAX2/ASTloop-11360", "agi-VDAD_ALL_inbound.agi,CLOSER-----LB-----CL_TESTCAMP-----7275551212-----Closer-----park----------999-----1") in new stack
[Jan 7 07:30:57] -- Launched AGI Script /usr/share/asterisk/agi-bin/agi-VDAD_ALL_inbound.agi
[Jan 7 07:30:57] -- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
[Jan 7 07:30:57] -- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
[Jan 7 07:30:57] -- Executing [h@default:1] AGI("Local/90009*AGENTDIRECT*CXFER*197133**XXXXXXXXXX*5000*8309*187*@default-", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16-----ANSWER-----0-----0") in new stack
[Jan 7 07:30:57] -- <Local/90009*AGENTDIRECT*CXFER*197133**XXXXXXXXXX*5000*8309*187*@default-0000180f;2>AGI Script agi://127.0.0.1:4577/call_log--HVcauses ... ---0-----0 completed, returning 0
[Jan 7 07:30:57] == Spawn extension (default, 90009*AGENTDIRECT*CXFER*197133**XXXXXXXXXX*5000*8309*187*, 2) exited non-zero on 'Local/90009*AGENTDIRECT*CXFER*197133**XXXXXXXXXX*5000*8309*187*@default-0000180f;2'
[Jan 7 07:30:58] == Manager 'sendcron' logged off from 127.0.0.1
[Jan 7 07:31:01] == Manager 'sendcron' logged on from 127.0.0.1
[Jan 7 07:31:01] == Manager 'sendcron' logged off from 127.0.0.1
[Jan 7 07:31:02] -- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
[Jan 7 07:31:02] -- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
[Jan 7 07:31:02] -- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
[Jan 7 07:31:02] -- Playing 'generic_hold' (escape_digits=) (sample_offset 0)
[Jan 7 07:31:06] == Manager 'sendcron' logged on from 127.0.0.1
[Jan 7 07:31:06] == Manager 'sendcron' logged off from 127.0.0.1



I'm sure I've missed something along the way or maybe there is a better way to do this. Any help is appreciated.
ViciDial VERSION: 2.14-583a | BUILD: 161226-2224 | Asterisk 11.22.0-vici | Cluster Setp - 3 Web, 1 DB| No Digium/Sangoma Hardware | No Extra Software | HP ProLiant DL360 G6, 48GB RAM, 16 x Intel Xeon X5550 2.67GHz, 480GB SSD
hiadviser
 
Posts: 71
Joined: Wed Dec 05, 2012 9:29 am

Re: Custom Recording Extension

Postby mflorell » Thu Jan 07, 2016 11:11 am

You might want to look into using the existing agi-NVA_recording.agi script(which can tag a lead_id to a recording) for these. You just need to set up a custom dialplan entry going to a number that agent would 3way call with.
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: Custom Recording Extension

Postby hiadviser » Thu Jan 07, 2016 11:23 am

Ok so looking that script, would the custom dialplan look like this:

exten => 1234.,1,AGI(agi-NVA_recording.agi,BOTH------Y---N---Y---N---N---N)
exten => 1234.,n,Goto(default,${EXTEN},1)
exten => 1234.,n,Hangup

Where 1234 is the extension my agents dial to generate the recording?
ViciDial VERSION: 2.14-583a | BUILD: 161226-2224 | Asterisk 11.22.0-vici | Cluster Setp - 3 Web, 1 DB| No Digium/Sangoma Hardware | No Extra Software | HP ProLiant DL360 G6, 48GB RAM, 16 x Intel Xeon X5550 2.67GHz, 480GB SSD
hiadviser
 
Posts: 71
Joined: Wed Dec 05, 2012 9:29 am


Return to Support

Who is online

Users browsing this forum: No registered users and 55 guests