in the first example you are transferring to 118<br>in the script you are calling a sip address but you are not supplying the domain<br><br>try <br>var my_domain = &quot;1.2.3.4&quot;<br>session.execute(&quot;bridge&quot;, &quot;sofia/default/118%&quot; + my_domain);<br>
<br>where you set my_domain to whatever domain your phone registered with.<br><br><br><br><div class="gmail_quote">On Wed, Jul 8, 2009 at 9:41 AM,  <span dir="ltr">&lt;<a href="mailto:paparoga@mailinator.com">paparoga@mailinator.com</a>&gt;</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&#39;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&#39;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(&quot;sofia/zz.xxx.200.29/1001&quot;);<br>
//session = new Session();<br>
//session.originate(session, &quot;sofia/zz.yyy.200.29/118&quot;);<br>
session.execute(&quot;bridge&quot;, &quot;sofia/default/118&quot;);<br>
=====================================<br>
and almost all possibles variations, but I&#39;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?<br>
<br>
By the way, I attempted also the &#39;transfer&#39; function, but I get the following:<br>
<br>
2009-07-08 16:35:43 [NOTICE] sofia.c:2782 sofia_handle_sip_i_state()<br>
Ring-Ready sofia/internal/1001!<br>
2009-07-08 16:35:50 [NOTICE] sofia.c:3220 sofia_handle_sip_i_state() Channel<br>
[sofia/internal/1001] has been answered<br>
2009-07-08 16:35:50 [NOTICE] switch_ivr.c:1343 switch_ivr_session_transfer()<br>
Transfer sofia/internal/1001 to XML[sofia/default/118@default]<br>
2009-07-08 16:35:50 [NOTICE] mod_spidermonkey.c:2994 session_destroy() Hangup<br>
sofia/internal/1001 [CS_ROUTING] [NORMAL_CLEARING]<br>
2009-07-08 16:35:50 [NOTICE] switch_core_session.c:970<br>
switch_core_session_thread() Session 8 (sofia/internal/1001) Ended<br>
2009-07-08 16:35:50 [NOTICE] switch_core_session.c:972<br>
switch_core_session_thread() Close Channel sofia/internal/1001 [CS_HANGUP]<br>
<br>
<br>
Any suggestion?<br>
<br>
Regards<br>
<br>
Kowalsky<br>
<br>
_______________________________________________<br>
Freeswitch-users mailing list<br>
<a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
<br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="http://iax:guest@conference.freeswitch.org/888">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>pstn:213-799-1400<br>