Hi I need some help in Dail() application.
I want to execute agi script in Dial application immediately after call was answered.
Thank you
Hi I need some help in Dail() application.
I want to execute agi script in Dial application immediately after call was answered.
Thank you
[quote]*CLI > core show application dial
-= Info about application ‘Dial’ =-
G(context^exten^pri) - If the call is answered, transfer the calling party to
the specified priority and the called party to the specified priority+1.
M(x[^arg]) - Execute the Macro for the *called* channel before connecting
U(x[^arg]) - Execute via Gosub the routine 'x' for the *called* channel before connecting[/quote]
[quote]*CLI> core show application bridge
-= Info about application ‘Bridge’ =-
[Synopsis]
Bridge two channels[/quote]
Thanks david55
I am able to execute script by use of Macro inside dialplan.
good day zed009
sorry but im still new in asterisk it seems i have the same problem with you,id just want to ask if is that ok with you on how did you solve that problem-
thank you so much…
Hi lary_aying
For executing script inside dial application
you can do in the following way:
in dialplan
exten => _X.,1,Dial(SIP/sip_account/${EXTEN},20,M(new,${EXTEN}))
[macro-new]
exten => s,1,AGI(exe.php,${ARG1})
thank you so much zed009–it’s a big help. Thank you