I'm having some issues setting this up as well.
Our system is
VERSION: 2.6-345c
BUILD: 120420-1621
using Asterisk 1.4.38
I've set it up so that when an agent using a particular campaign transfers to the third party, the number they are transferring to is prefixed with "777" using the "3-Way Call Dial Prefix" setting. Also, the campaign is set up to switch the caller ID to that of the customer's number using the "3-Way Call Outbound CallerID" setting, and we're using a SIP carrier on all our servers.
Under the "Carrier" settings for each server in our system, I put the following lines in the custom dialplan entry:
exten => _777.,1,Answer
exten => _777.,n,Goto(defaultlog,9${EXTEN:3},1)
This sends the call to the defaultlog call menu, where it meets the call menu's custom dial plan entry that executes the NVA recording script:
exten => _X.,1,AGI(agi-NVA_recording.agi,BOTH------Y---Y---Y)
exten => _X.,n,Goto(default,${EXTEN},1)
(
fibres, I hope this can help answer your above question)
It all seems to work up to a point. The problem I'm having is that the recording started by the NVA script terminates as soon as the third party picks up. For example, I placed a call to 727-000-0000 and then did a "Dial with Customer" transfer to phone number 727-111-1111 The output in the Asterisk CLI is:
[Sep 4 10:24:03] -- Executing [8600051@default:1] MeetMe("Local/8600051@default-594a,2", "8600051|F") in new stack
[Sep 4 10:24:03] > Channel Local/8600051@default-594a,1 was answered.
[Sep 4 10:24:03] -- Executing [617270000000@default:1] AGI("Local/8600051@default-594a,1", "agi://127.0.0.1:4577/call_log") in new stack
[Sep 4 10:24:03] -- AGI Script
agi://127.0.0.1:4577/call_log completed, returning 0
[Sep 4 10:24:03] -- Executing [617270000000@default:2] Verbose("Local/8600051@default-594a,1", "VITELITY OUTBOUND") in new stack
[Sep 4 10:24:03] VITELITY OUTBOUND
[Sep 4 10:24:03] -- Executing [617270000000@default:3] Dial("Local/8600051@default-594a,1", "SIP/vitel-outbound/17270000000|65|tToR") in new stack
[Sep 4 10:24:03] -- Called vitel-outbound/17270000000
[Sep 4 10:24:03] == Parsing '/etc/asterisk/manager.conf': [Sep 4 10:24:03] Found
[Sep 4 10:24:03] == Manager 'sendcron' logged on from 127.0.0.1
[Sep 4 10:24:03] -- Executing [58600051@default:1] MeetMe("Local/58600051@default-c22f,2", "8600051|Fmq") in new stack
[Sep 4 10:24:03] > Channel Local/58600051@default-c22f,1 was answered.
[Sep 4 10:24:03] -- Executing [8309@default:1] Answer("Local/58600051@default-c22f,1", "") in new stack
[Sep 4 10:24:03] -- Executing [8309@default:2] Monitor("Local/58600051@default-c22f,1", "wav|20120904-102402_6666_7270000000") in new stack
[Sep 4 10:24:03] -- Executing [8309@default:3] Wait("Local/58600051@default-c22f,1", "3600") in new stack
[Sep 4 10:24:05] == Manager 'sendcron' logged off from 127.0.0.1
[Sep 4 10:24:05] -- SIP/vitel-outbound-00000010 answered Local/8600051@default-594a,1
[Sep 4 10:24:05] == Manager 'sendcron' logged off from 127.0.0.1
[Sep 4 10:24:07] == Parsing '/etc/asterisk/manager.conf': [Sep 4 10:24:07] Found
[Sep 4 10:24:07] == Manager 'sendcron' logged on from 127.0.0.1
[Sep 4 10:24:07] == Manager 'sendcron' logged off from 127.0.0.1
[Sep 4 10:24:11] == Parsing '/etc/asterisk/manager.conf': [Sep 4 10:24:11] Found
[Sep 4 10:24:11] == Manager 'sendcron' logged on from 127.0.0.1
[Sep 4 10:24:11] -- Executing [77717271111111@default:1] Wait("Local/77717271111111@default-0018,2", "2") in new stack
[Sep 4 10:24:13] -- Executing [77717271111111@default:2] Answer("Local/77717271111111@default-0018,2", "") in new stack
[Sep 4 10:24:13] > Channel Local/77717271111111@default-0018,1 was answered.
[Sep 4 10:24:13] -- Executing [77717271111111@default:3] Goto("Local/77717271111111@default-0018,2", "defaultlog|917271111111|1") in new stack
[Sep 4 10:24:13] -- Executing [8600051@default:1] MeetMe("Local/77717271111111@default-0018,1", "8600051|F") in new stack
[Sep 4 10:24:13] -- Goto (defaultlog,917271111111,1)
[Sep 4 10:24:13] -- Executing [917271111111@defaultlog:1] AGI("Local/77717271111111@default-0018,2", "agi-NVA_recording.agi|BOTH------Y---Y---Y") in new stack
[Sep 4 10:24:13] -- Launched AGI Script /var/lib/asterisk/agi-bin/agi-NVA_recording.agi
2012-09-04 10:24:13|agi-NVA_recording.agi|Perl Environment Dump:
2012-09-04 10:24:13|agi-NVA_recording.agi|BOTH||Y|Y||
2012-09-04 10:24:13|agi-NVA_recording.agi|request|agi-NVA_recording.agi
2012-09-04 10:24:13|agi-NVA_recording.agi|channel|Local/77717271111111@default-0018,2
2012-09-04 10:24:13|agi-NVA_recording.agi|language|en
2012-09-04 10:24:13|agi-NVA_recording.agi|type|Local
2012-09-04 10:24:13|agi-NVA_recording.agi|uniqueid|1346768651.89
2012-09-04 10:24:13|agi-NVA_recording.agi|callerid|7270000000
2012-09-04 10:24:13|agi-NVA_recording.agi|calleridname|DC768651W0054519634W
2012-09-04 10:24:13|agi-NVA_recording.agi|callingpres|0
2012-09-04 10:24:13|agi-NVA_recording.agi|callingani2|0
2012-09-04 10:24:13|agi-NVA_recording.agi|callington|0
2012-09-04 10:24:13|agi-NVA_recording.agi|callingtns|0
2012-09-04 10:24:13|agi-NVA_recording.agi|dnid|unknown
2012-09-04 10:24:13|agi-NVA_recording.agi|rdnis|unknown
2012-09-04 10:24:13|agi-NVA_recording.agi|context|defaultlog
2012-09-04 10:24:13|agi-NVA_recording.agi|extension|917271111111
2012-09-04 10:24:13|agi-NVA_recording.agi|priority|1
2012-09-04 10:24:13|agi-NVA_recording.agi|enhanced|0.0
2012-09-04 10:24:13|agi-NVA_recording.agi|accountcode|
[Sep 4 10:24:13] -- AGI Script Executing Application: (Monitor) Options: (wav|/var/spool/asterisk/monitor/MIX/20120904102413__917271111111)
[Sep 4 10:24:13] -- AGI Script agi-NVA_recording.agi completed, returning 0
[Sep 4 10:24:13] -- Executing [917271111111@defaultlog:2] Goto("Local/77717271111111@default-0018,2", "default|917271111111|1") in new stack
[Sep 4 10:24:13] -- Goto (default,917271111111,1)
[Sep 4 10:24:13] -- Executing [917271111111@default:1] AGI("Local/77717271111111@default-0018,2", "agi://127.0.0.1:4577/call_log") in new stack
[Sep 4 10:24:13] -- AGI Script
agi://127.0.0.1:4577/call_log completed, returning 0
[Sep 4 10:24:13] -- Executing [917271111111@default:2] Verbose("Local/77717271111111@default-0018,2", "9-VITELITY OUTBOUND") in new stack
[Sep 4 10:24:13] 9-VITELITY OUTBOUND
[Sep 4 10:24:13] -- Executing [917271111111@default:3] Dial("Local/77717271111111@default-0018,2", "SIP/vitel-outbound/17271111111|65|tToR") in new stack
[Sep 4 10:24:13] -- Called vitel-outbound/17271111111
[Sep 4 10:24:15] == Manager 'sendcron' logged off from 127.0.0.1
[Sep 4 10:24:16] -- SIP/vitel-outbound-00000011 is making progress passing it to Local/77717271111111@default-0018,2
[Sep 4 10:24:27] -- SIP/vitel-outbound-00000011 answered Local/77717271111111@default-0018,2
[Sep 4 10:24:27] -- Executing [h@default:1] DeadAGI("Local/77717271111111@default-0018,2", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16-----ANSWER-----16-----0
m") in new stack
[Sep 4 10:24:27] -- AGI Script
agi://127.0.0.1:4577/call_log--HVcauses ... --16-----0 completed, returning 0
[Sep 4 10:24:27] == Spawn extension (default, 917271111111, 3) exited non-zero on 'Local/77717271111111@default-0018,2'
I think it's that DeadAGI where the recording ends, but I don't know if the issue is that or if "Local/77717271111111@default-0018,2" is the wrong channel to record, and if so how to work around it. Does anyone have any suggestions? Thanks