Rosalinda Trevino Cadena
2007-Jun-12 04:21 UTC
[asterisk-users] No audio after Dial with G option
I'm using the Dial application in the extensions file with the G option to
execute an AGI script after the Dial (I need to track the call status) as
follows:
exten => _X.,3, Dial({DIAL_STRING},,G(_X.^4))
exten => _X.,4, Answer()
exten => _X.,5,AGI,agiScript.php
The problem is that testing between two internal phones (with two ATA) I loose
the audio when I include the G option in the Dial application, while the audio
is restored if I remove the G option, but that way I can't execute the AGI
script wile the call is up.
Any ideas on how to solve the problem or on what the cause might be?
Thanks,
Rosalinda
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.digium.com/pipermail/asterisk-users/attachments/20070612/593bf0aa/attachment.htm
Remove Answer() and try . On 12/06/07, Rosalinda Trevino Cadena <r.trevino@confianza.it> wrote:> > I'm using the Dial application in the extensions file with the G option > to execute an AGI script after the Dial (I need to track the call status) as > follows: > > exten => _X.,3, Dial({DIAL_STRING},,G(_X.^4)) > exten => _X.,4, Answer() > exten => _X.,5,AGI,agiScript.php > > The problem is that testing between two internal phones (with two ATA) I > loose the audio when I include the G option in the Dial application, while > the audio is restored if I remove the G option, but that way I can't execute > the AGI script wile the call is up. > > > Any ideas on how to solve the problem or on what the cause might be? > > Thanks, > Rosalinda > > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070613/16c58f77/attachment.htm
Try using Unique call id, for example to pass this parameter into agi
script you can use:
exten => s,n,agi,myscript.agi|${UNIQUEID}
Regards,
Luis Morales
On Wed, 2007-06-13 at 19:35 +0530, Jaswinder Singh
wrote:> ption to execute an AGI script after the Dial (I need to track the
> call status)
--
.-.-.-.-.-.-.-.-.-.-.-.-.--.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
Sigma Dental Plan
Jefe de Soporte y Sistemas
Telf. Oficina : +58(212)2646811
Cel. : +58(416)4242091
Caracas, Venezuela
.-.-.-.-.-.-.-.-.-.-.-.-.--.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.