[asterisk-users] AGI execution after Dial
Nasir Iqbal
nasir at ictinnovations.com
Sat Jul 17 12:41:42 CDT 2010
Try with something like
action.setChannel("SIP/99051000XXXXXX at YourTrunkName");
On Sat, Jul 17, 2010 at 10:19 PM, Felipe Kurkowski <
felipekurkowski at gmail.com> wrote:
> 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
>
>
> --
> _____________________________________________________________________
> -- 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
>
--
Nasir Iqbal
ICT Innovations
http://www.ictinnovations.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100717/ac340630/attachment.htm
More information about the asterisk-users
mailing list