<br><br><div class="gmail_quote">On Wed, Jul 8, 2009 at 7:41 AM, <span dir="ltr"><<a href="mailto:paparoga@mailinator.com">paparoga@mailinator.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi all,<br>
<br>
I'm attempting to setup a simple alarm handling machine.<br>
<br>
It should be triggered by an external event, dial a phone number (depending on<br>
the alarm type), and play a few wav files indicating the failure happened.<br>
<br>
Using Free, up to now, I've created a simple IVR and connected it to my EXT.<br>
118.<br>
<br>
Connecting a softphone to the ext. 1001 and dialing the ext 118 the IVR is ok.<br>
<br>
Also using the following Free command from the console all is ok:<br>
<br>
originate sofia/zz.xxx.200.29/1001 118<br>
<br>
My softphone at ext 1001 get ringed and then connected to the IVR at ext. 118.<br>
<br>
I cannot get the same from a simple js.<br>
<br>
I tried:<br>
=====================================<br>
session = new Session("sofia/zz.xxx.200.29/1001");<br>
//session = new Session();<br>
//session.originate(session, "sofia/zz.yyy.200.29/118");<br>
session.execute("bridge", "sofia/default/118");<br>
=====================================<br>
and almost all possibles variations, but I'get this result:<br>
<br>
2009-07-08 16:23:00 [NOTICE] sofia.c:3220 sofia_handle_sip_i_state() Channel<br>
[sofia/internal/1001] has been answered<br>
2009-07-08 16:23:00 [WARNING] mod_sofia.c:2495 sofia_outgoing_channel() Cannot<br>
locate registered user 118@default<br>
2009-07-08 16:23:00 [NOTICE] mod_sofia.c:2591 sofia_outgoing_channel() Close<br>
Channel N/A [CS_NEW]<br>
<br>
How can I tell to the script that the EXT. 118 is an IVR and not a registered<br>
USER?</blockquote><div><br>It looks like 118 is defined in your dialplan so use transfer instead of bridge:<br> session.execute("transfer", "118 XML default");<br><br>-MC<br></div></div><br>