[asterisk-users] AGI execution after Dial

Felipe Kurkowski felipekurkowski at gmail.com
Sat Jul 17 12:19:05 CDT 2010


Hello,

I'm currently developing a simple asterisk application using SFS (Skype For
SIP) which tries to call to an outbound number, play a message and read DMTF

digits. My first approach used the Manager to originate calls and then
called an
agi script to deal with the rest. Anyway, this ended up being not so clear
because the call did not start on the Originate extension that it was
supposed
to. Instead it would go to the Skype ID number extension.

For example, if I originate a call with the code below, it will go first to
the
9051000XXXXXX extension and then to 1. Is it possible to use the CONSOLE
(somehow like console dial number) channel to originate calls? This might be

a solution.

action.setChannel("SIP/99051000XXXXXX");
action.setCallerId("99051000XXXXXX");
action.setContext("autodialer");
action.setExten("1");
action.setPriority(new Integer(1));
action.setVariable("numero", "5555555");

Then, I figured I could place the calls from within an AGI script.
Obviously, I
got stuck again. Now, when I execute the application Dial, the script
pauses until the called party hangs up. This behavior is expected but I'd
like to know if there's any way to continue the execution of the script so I

can play the message and read the digits. I tried to create multiple threads

to see if I could continue with the script even after the dial, but it would
not
run the second thread until the call ended. Any help on this subject is
welcome.

Kindly,
Felipe KUrkowski
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100717/133ebab6/attachment.htm 


More information about the asterisk-users mailing list