Try with something like <br><br>action.setChannel("SIP/99051000XXXXXX@YourTrunkName");<br><br><div class="gmail_quote">On Sat, Jul 17, 2010 at 10:19 PM, Felipe Kurkowski <span dir="ltr"><<a href="mailto:felipekurkowski@gmail.com">felipekurkowski@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hello, <br><br>I'm currently developing a simple asterisk application using SFS (Skype For<br>
SIP) which tries to call to an outbound number, play a message and read DMTF <br>digits. My first approach used the Manager to originate calls and then called an <br>
agi script to deal with the rest. Anyway, this ended up being not so clear <br>because the call did not start on the Originate extension that it was supposed <br>to. Instead it would go to the Skype ID number extension.<br>
<br>For example, if I originate a call with the code below, it will go first to the <br>9051000XXXXXX extension and then to 1. Is it possible to use the CONSOLE<br>(somehow like console dial number) channel to originate calls? This might be <br>
a solution.<br><br>action.setChannel("SIP/99051000XXXXXX");<br>action.setCallerId("99051000XXXXXX");<br>action.setContext("autodialer");<br>action.setExten("1");<br>action.setPriority(new Integer(1));<br>
action.setVariable("numero", "5555555");<br><br>Then, I figured I could place the calls from within an AGI script. Obviously, I <br>got stuck again. Now, when I execute the application Dial, the script<br>
pauses until the called party hangs up. This behavior is expected but I'd <br>like to know if there's any way to continue the execution of the script so I <br>can play the message and read the digits. I tried to create multiple threads <br>
to see if I could continue with the script even after the dial, but it would not <br>run the second thread until the call ended. Any help on this subject is <br>welcome.<br><br>Kindly,<br><font color="#888888">Felipe KUrkowski<br>
<br>
</font><br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br><br clear="all"><br>-- <br>Nasir Iqbal<br><br>ICT Innovations<br>
<a href="http://www.ictinnovations.com/" target="_blank">http://www.ictinnovations.com/</a><br><br>