<div dir="ltr">Hi,<br>Hi Imthi,<br>This is Anand,&nbsp; all the scripts should go to /var/www/scripts or /usr/local/freeswitch/scripts directory.<br>then I had <br>result= new_session.originate(session, &quot;sofia/default/<a href="mailto:1001@192.168.1.2">1001@192.168.1.2</a>&quot;);<br>
since we are using openzap, we have use openzap instead of sofia.<br>thanks<br>Anand,Kris<br><br><div class="gmail_quote">On Sat, Sep 20, 2008 at 6:42 PM, <a href="mailto:imthiyaz@peopletech.co.in">imthiyaz@peopletech.co.in</a> <span dir="ltr">&lt;<a href="mailto:imthiyaz@peopletech.co.in">imthiyaz@peopletech.co.in</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;"><br>
Hi,<br>
I am new to freeswitch and trying to run a javascript example calltest.js.I<br>
have put that code inside &nbsp;the folder /usr/local/freeswitch.I have started<br>
the freeswitch and from that console I have tried to run the program like<br>
jsrun /usr/local/freeswitch/calltest.js.<br>
but i am getting the following error:<br>
<br>
&nbsp;2008-09-20 15:49:32 [NOTICE] switch_channel.c:534<br>
switch_channel_set_name() New Channel sofia/internal/<a href="mailto:1001@192.168.1.2">1001@192.168.1.2</a><br>
[d1987c09-ebd2-4590-b072-ce851e4b5794]<br>
2008-09-20 15:49:32 [NOTICE] switch_channel.c:534 switch_channel_set_name()<br>
New Channel sofia/internal/<a href="mailto:0000000000@192.168.1.2">0000000000@192.168.1.2</a><br>
[c98bc58d-2ef9-4656-8f74-9c024000d18c]<br>
2008-09-20 15:49:32 [INFO] mod_dialplan_xml.c:222 dialplan_hunt()<br>
Processing FreeSWITCH-&gt;1001@public<br>
2008-09-20 15:49:32 [ERR] sofia.c:2845 sofia_handle_sip_i_refer() Cannot<br>
Blind Transfer 1 Legged calls<br>
2008-09-20 15:49:32 [NOTICE] switch_core_state_machine.c:157<br>
switch_core_standard_on_execute() Hangup<br>
sofia/internal/<a href="mailto:0000000000@192.168.1.2">0000000000@192.168.1.2</a> [CS_EXECUTE] [NORMAL_CLEARING]<br>
2008-09-20 15:49:32 [NOTICE] sofia.c:2545 sofia_handle_sip_i_state() Hangup<br>
sofia/internal/<a href="mailto:1001@192.168.1.2">1001@192.168.1.2</a> [CS_ROUTING] [NO_USER_RESPONSE]<br>
2008-09-20 15:49:32 [NOTICE] switch_core_session.c:807<br>
switch_core_session_thread() Session 23<br>
(sofia/internal/<a href="mailto:0000000000@192.168.1.2">0000000000@192.168.1.2</a>) Ended<br>
2008-09-20 15:49:32 [NOTICE] switch_core_session.c:809<br>
switch_core_session_thread() Close Channel<br>
sofia/internal/<a href="mailto:0000000000@192.168.1.2">0000000000@192.168.1.2</a> [CS_HANGUP]<br>
2008-09-20 15:49:32 [WARNING] mod_spidermonkey.c:2933 session_originate()<br>
Cannot Create Outgoing Channel! [sofia/default/<a href="mailto:1001@192.168.1.2">1001@192.168.1.2</a>]<br>
2008-09-20 15:49:32 [ERR] inline:1 mod_spidermonkey() &nbsp;You must call the<br>
session.originate method before calling this method!<br>
2008-09-20 15:49:32 [NOTICE] switch_core_session.c:807<br>
switch_core_session_thread() Session 22 (sofia/internal/<a href="mailto:1001@192.168.1.2">1001@192.168.1.2</a>)<br>
Ended<br>
2008-09-20 15:49:32 [NOTICE] switch_core_session.c:809<br>
switch_core_session_thread() Close Channel sofia/internal/<a href="mailto:1001@192.168.1.2">1001@192.168.1.2</a><br>
[CS_HANGUP]<br>
<br>
the code is:<br>
new_session = new Session();<br>
<br>
new_session.originate(session, &quot;sofia/default/<a href="mailto:1001@192.168.1.2">1001@192.168.1.2</a>&quot;);<br>
<br>
new_session = new Session(session, &quot;sofia/default/<a href="mailto:1001@192.168.1.2">1001@192.168.1.2</a>&quot;);<br>
<br>
// wait for it ... answer<br>
new_session.waitForAnswer(10000);<br>
<br>
// IF everybody is ready, then bridge our current session &amp; the new_session<br>
if (session.ready() &amp;&amp; new_session.ready()) {<br>
 &nbsp; &nbsp;bridge(session, new_session);<br>
}<br>
<br>
// log to the console<br>
console_log(&quot;***********Voila!\n&quot;);<br>
<br>
// hangup when done<br>
new_session.hangup();<br>
<br>
<br>
Is there anything i have to add to the program or any other requirements<br>
are needed to run this javascript successfully?<br>
please assist me to do this.<br>
<br>
--------------------------------------------------------------------<br>
<a href="http://mail2web.com" target="_blank">mail2web.com</a> - Microsoft&reg; Exchange solutions from a leading provider -<br>
<a href="http://link.mail2web.com/Business/Exchange" target="_blank">http://link.mail2web.com/Business/Exchange</a><br>
<br>
<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></div>