Put the AGI call in a macro context and add M(macro) to your Dial string.

 

From: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Henrik
Westerberg
Sent: Wednesday, January 02, 2013 8:02 AM
To: asterisk-users@lists.digium.com
Subject: [asterisk-users] Dialing out and recording

 

Hi,

 

I am using asterisk via AGI and want to be able to record a call.

The scenario is:

1.      A call comes in
2.      The call is redirected to a mobile number via a local extension and
ChannelRedirect
3.      The local extension looks like something this:

exten => _X.,1,Dial(SIP/${EXTEN},60,.)

exten => _X.,n,Agi(agi://localhost/aj.agi?action=....)

 

I have looked through all arguments of Dial but haven't found any way to
continue having a connected call between the caller and the callee and have
AGI control of it. Is there a way to do this or do I have to use G() and
connect the both ends to AGI separately and then bridging them before
recording the call?

 

Thanks for help.

 

Regards,

 

Henrik

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to