Hi, I am new to freeswitch and trying to run a javascript example calltest.js.I have put that code inside the folder /usr/local/freeswitch.I have started the freeswitch and from that console I have tried to run the program like jsrun /usr/local/freeswitch/calltest.js. but i am getting the following error: 2008-09-20 15:49:32 [NOTICE] switch_channel.c:534 switch_channel_set_name() New Channel sofia/internal/1001@192.168.1.2 [d1987c09-ebd2-4590-b072-ce851e4b5794] 2008-09-20 15:49:32 [NOTICE] switch_channel.c:534 switch_channel_set_name() New Channel sofia/internal/0000000000@192.168.1.2 [c98bc58d-2ef9-4656-8f74-9c024000d18c] 2008-09-20 15:49:32 [INFO] mod_dialplan_xml.c:222 dialplan_hunt() Processing FreeSWITCH->1001@public 2008-09-20 15:49:32 [ERR] sofia.c:2845 sofia_handle_sip_i_refer() Cannot Blind Transfer 1 Legged calls 2008-09-20 15:49:32 [NOTICE] switch_core_state_machine.c:157 switch_core_standard_on_execute() Hangup sofia/internal/0000000000@192.168.1.2 [CS_EXECUTE] [NORMAL_CLEARING] 2008-09-20 15:49:32 [NOTICE] sofia.c:2545 sofia_handle_sip_i_state() Hangup sofia/internal/1001@192.168.1.2 [CS_ROUTING] [NO_USER_RESPONSE] 2008-09-20 15:49:32 [NOTICE] switch_core_session.c:807 switch_core_session_thread() Session 23 (sofia/internal/0000000000@192.168.1.2) Ended 2008-09-20 15:49:32 [NOTICE] switch_core_session.c:809 switch_core_session_thread() Close Channel sofia/internal/0000000000@192.168.1.2 [CS_HANGUP] 2008-09-20 15:49:32 [WARNING] mod_spidermonkey.c:2933 session_originate() Cannot Create Outgoing Channel! [sofia/default/1001@192.168.1.2] 2008-09-20 15:49:32 [ERR] inline:1 mod_spidermonkey() You must call the session.originate method before calling this method! 2008-09-20 15:49:32 [NOTICE] switch_core_session.c:807 switch_core_session_thread() Session 22 (sofia/internal/1001@192.168.1.2) Ended 2008-09-20 15:49:32 [NOTICE] switch_core_session.c:809 switch_core_session_thread() Close Channel sofia/internal/1001@192.168.1.2 [CS_HANGUP] the code is: new_session = new Session(); new_session.originate(session, "sofia/default/1001@192.168.1.2"); new_session = new Session(session, "sofia/default/1001@192.168.1.2"); // wait for it ... answer new_session.waitForAnswer(10000); // IF everybody is ready, then bridge our current session & the new_session if (session.ready() && new_session.ready()) { bridge(session, new_session); } // log to the console console_log("***********Voila!\n"); // hangup when done new_session.hangup(); Is there anything i have to add to the program or any other requirements are needed to run this javascript successfully? please assist me to do this. -------------------------------------------------------------------- mail2web.com - Microsoft® Exchange solutions from a leading provider - http://link.mail2web.com/Business/Exchange
Hi, Hi Imthi, This is Anand, all the scripts should go to /var/www/scripts or /usr/local/freeswitch/scripts directory. then I had result= new_session.originate(session, "sofia/default/1001@192.168.1.2"); since we are using openzap, we have use openzap instead of sofia. thanks Anand,Kris On Sat, Sep 20, 2008 at 6:42 PM, imthiyaz@peopletech.co.in < imthiyaz@peopletech.co.in> wrote:
Hi, I am new to freeswitch and trying to run a javascript example calltest.js.I have put that code inside the folder /usr/local/freeswitch.I have started the freeswitch and from that console I have tried to run the program like jsrun /usr/local/freeswitch/calltest.js. but i am getting the following error:
2008-09-20 15:49:32 [NOTICE] switch_channel.c:534 switch_channel_set_name() New Channel sofia/internal/1001@192.168.1.2 [d1987c09-ebd2-4590-b072-ce851e4b5794] 2008-09-20 15:49:32 [NOTICE] switch_channel.c:534 switch_channel_set_name() New Channel sofia/internal/0000000000@192.168.1.2 [c98bc58d-2ef9-4656-8f74-9c024000d18c] 2008-09-20 15:49:32 [INFO] mod_dialplan_xml.c:222 dialplan_hunt() Processing FreeSWITCH->1001@public 2008-09-20 15:49:32 [ERR] sofia.c:2845 sofia_handle_sip_i_refer() Cannot Blind Transfer 1 Legged calls 2008-09-20 15:49:32 [NOTICE] switch_core_state_machine.c:157 switch_core_standard_on_execute() Hangup sofia/internal/0000000000@192.168.1.2 [CS_EXECUTE] [NORMAL_CLEARING] 2008-09-20 15:49:32 [NOTICE] sofia.c:2545 sofia_handle_sip_i_state() Hangup sofia/internal/1001@192.168.1.2 [CS_ROUTING] [NO_USER_RESPONSE] 2008-09-20 15:49:32 [NOTICE] switch_core_session.c:807 switch_core_session_thread() Session 23 (sofia/internal/0000000000@192.168.1.2) Ended 2008-09-20 15:49:32 [NOTICE] switch_core_session.c:809 switch_core_session_thread() Close Channel sofia/internal/0000000000@192.168.1.2 [CS_HANGUP] 2008-09-20 15:49:32 [WARNING] mod_spidermonkey.c:2933 session_originate() Cannot Create Outgoing Channel! [sofia/default/1001@192.168.1.2] 2008-09-20 15:49:32 [ERR] inline:1 mod_spidermonkey() You must call the session.originate method before calling this method! 2008-09-20 15:49:32 [NOTICE] switch_core_session.c:807 switch_core_session_thread() Session 22 (sofia/internal/1001@192.168.1.2) Ended 2008-09-20 15:49:32 [NOTICE] switch_core_session.c:809 switch_core_session_thread() Close Channel sofia/internal/1001@192.168.1.2 [CS_HANGUP]
the code is: new_session = new Session();
new_session.originate(session, "sofia/default/1001@192.168.1.2");
new_session = new Session(session, "sofia/default/1001@192.168.1.2");
// wait for it ... answer new_session.waitForAnswer(10000);
// IF everybody is ready, then bridge our current session & the new_session if (session.ready() && new_session.ready()) { bridge(session, new_session); }
// log to the console console_log("***********Voila!\n");
// hangup when done new_session.hangup();
Is there anything i have to add to the program or any other requirements are needed to run this javascript successfully? please assist me to do this.
-------------------------------------------------------------------- mail2web.com - Microsoft(R) Exchange solutions from a leading provider - http://link.mail2web.com/Business/Exchange
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
replace the @ with a % where you say @192.168.1.2 from the url you are trying to call when you are calling your own domain you must specify a % sign to signify you want to call the phone registered at that exten rather than literally call your own box. On Sat, Sep 20, 2008 at 8:12 AM, imthiyaz@peopletech.co.in < imthiyaz@peopletech.co.in> wrote:
Hi, I am new to freeswitch and trying to run a javascript example calltest.js.I have put that code inside the folder /usr/local/freeswitch.I have started the freeswitch and from that console I have tried to run the program like jsrun /usr/local/freeswitch/calltest.js. but i am getting the following error:
2008-09-20 15:49:32 [NOTICE] switch_channel.c:534 switch_channel_set_name() New Channel sofia/internal/1001@192.168.1.2 [d1987c09-ebd2-4590-b072-ce851e4b5794] 2008-09-20 15:49:32 [NOTICE] switch_channel.c:534 switch_channel_set_name() New Channel sofia/internal/0000000000@192.168.1.2 [c98bc58d-2ef9-4656-8f74-9c024000d18c] 2008-09-20 15:49:32 [INFO] mod_dialplan_xml.c:222 dialplan_hunt() Processing FreeSWITCH->1001@public 2008-09-20 15:49:32 [ERR] sofia.c:2845 sofia_handle_sip_i_refer() Cannot Blind Transfer 1 Legged calls 2008-09-20 15:49:32 [NOTICE] switch_core_state_machine.c:157 switch_core_standard_on_execute() Hangup sofia/internal/0000000000@192.168.1.2 [CS_EXECUTE] [NORMAL_CLEARING] 2008-09-20 15:49:32 [NOTICE] sofia.c:2545 sofia_handle_sip_i_state() Hangup sofia/internal/1001@192.168.1.2 [CS_ROUTING] [NO_USER_RESPONSE] 2008-09-20 15:49:32 [NOTICE] switch_core_session.c:807 switch_core_session_thread() Session 23 (sofia/internal/0000000000@192.168.1.2) Ended 2008-09-20 15:49:32 [NOTICE] switch_core_session.c:809 switch_core_session_thread() Close Channel sofia/internal/0000000000@192.168.1.2 [CS_HANGUP] 2008-09-20 15:49:32 [WARNING] mod_spidermonkey.c:2933 session_originate() Cannot Create Outgoing Channel! [sofia/default/1001@192.168.1.2] 2008-09-20 15:49:32 [ERR] inline:1 mod_spidermonkey() You must call the session.originate method before calling this method! 2008-09-20 15:49:32 [NOTICE] switch_core_session.c:807 switch_core_session_thread() Session 22 (sofia/internal/1001@192.168.1.2) Ended 2008-09-20 15:49:32 [NOTICE] switch_core_session.c:809 switch_core_session_thread() Close Channel sofia/internal/1001@192.168.1.2 [CS_HANGUP]
the code is: new_session = new Session();
new_session.originate(session, "sofia/default/1001@192.168.1.2");
new_session = new Session(session, "sofia/default/1001@192.168.1.2");
// wait for it ... answer new_session.waitForAnswer(10000);
// IF everybody is ready, then bridge our current session & the new_session if (session.ready() && new_session.ready()) { bridge(session, new_session); }
// log to the console console_log("***********Voila!\n");
// hangup when done new_session.hangup();
Is there anything i have to add to the program or any other requirements are needed to run this javascript successfully? please assist me to do this.
-------------------------------------------------------------------- mail2web.com - Microsoft(R) Exchange solutions from a leading provider - http://link.mail2web.com/Business/Exchange
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
Can you tell me on the wiki where this example is? /b On Sep 20, 2008, at 8:12 AM, imthiyaz@peopletech.co.in wrote:
Hi, I am new to freeswitch and trying to run a javascript example calltest.js.I have put that code inside the folder /usr/local/freeswitch.I have started the freeswitch and from that console I have tried to run the program like jsrun /usr/local/freeswitch/calltest.js. but i am getting the following error:
2008-09-20 15:49:32 [NOTICE] switch_channel.c:534 switch_channel_set_name() New Channel sofia/internal/1001@192.168.1.2 [d1987c09-ebd2-4590-b072-ce851e4b5794] 2008-09-20 15:49:32 [NOTICE] switch_channel.c:534 switch_channel_set_name() New Channel sofia/internal/0000000000@192.168.1.2 [c98bc58d-2ef9-4656-8f74-9c024000d18c] 2008-09-20 15:49:32 [INFO] mod_dialplan_xml.c:222 dialplan_hunt() Processing FreeSWITCH->1001@public 2008-09-20 15:49:32 [ERR] sofia.c:2845 sofia_handle_sip_i_refer() Cannot Blind Transfer 1 Legged calls 2008-09-20 15:49:32 [NOTICE] switch_core_state_machine.c:157 switch_core_standard_on_execute() Hangup sofia/internal/0000000000@192.168.1.2 [CS_EXECUTE] [NORMAL_CLEARING] 2008-09-20 15:49:32 [NOTICE] sofia.c:2545 sofia_handle_sip_i_state() Hangup sofia/internal/1001@192.168.1.2 [CS_ROUTING] [NO_USER_RESPONSE] 2008-09-20 15:49:32 [NOTICE] switch_core_session.c:807 switch_core_session_thread() Session 23 (sofia/internal/0000000000@192.168.1.2) Ended 2008-09-20 15:49:32 [NOTICE] switch_core_session.c:809 switch_core_session_thread() Close Channel sofia/internal/0000000000@192.168.1.2 [CS_HANGUP] 2008-09-20 15:49:32 [WARNING] mod_spidermonkey.c:2933 session_originate() Cannot Create Outgoing Channel! [sofia/default/1001@192.168.1.2] 2008-09-20 15:49:32 [ERR] inline:1 mod_spidermonkey() You must call the session.originate method before calling this method! 2008-09-20 15:49:32 [NOTICE] switch_core_session.c:807 switch_core_session_thread() Session 22 (sofia/internal/1001@192.168.1.2 ) Ended 2008-09-20 15:49:32 [NOTICE] switch_core_session.c:809 switch_core_session_thread() Close Channel sofia/internal/1001@192.168.1.2 [CS_HANGUP]
the code is: new_session = new Session();
new_session.originate(session, "sofia/default/1001@192.168.1.2");
new_session = new Session(session, "sofia/default/1001@192.168.1.2");
// wait for it ... answer new_session.waitForAnswer(10000);
// IF everybody is ready, then bridge our current session & the new_session if (session.ready() && new_session.ready()) { bridge(session, new_session); }
// log to the console console_log("***********Voila!\n");
// hangup when done new_session.hangup();
Is there anything i have to add to the program or any other requirements are needed to run this javascript successfully? please assist me to do this.
-------------------------------------------------------------------- mail2web.com - Microsoft® Exchange solutions from a leading provider - http://link.mail2web.com/Business/Exchange
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
I have put the calltest.js in /usr/local/freeswitch/scripts and changed sofia to openzap/default/1001@192.168.1.2 in the coding and i got the error: Error: 2008-09-22 10:13:26 [ERR] switch_core_session.c:249 switch_core_session_outgoing_channel() Could not locate channel type openzap 2008-09-22 10:13:26 [ERR] switch_ivr_originate.c:926 switch_ivr_originate() Cannot create outgoing channel of type [openzap] cause: [CHAN_NOT_IMPLEMENTED] 2008-09-22 10:13:26 [WARNING] mod_spidermonkey.c:2933 session_originate() Cannot Create Outgoing Channel! [openzap/default/1001@192.168.1.2] 2008-09-22 10:13:26 [ERR] inline:1 mod_spidermonkey() You must call the session.originate method before calling this method! so i have changed that to sofia again. As Anthony Minessale said, i have changed @ symbol to % like sofia/default/1001%192.168.1.2 in the coding.But i am getting the following error: Error: 2008-09-22 10:18:08 [WARNING] mod_sofia.c:1949 sofia_outgoing_channel() Cannot locate registered user 1001@192.168.1.2 2008-09-22 10:18:08 [NOTICE] mod_sofia.c:2046 sofia_outgoing_channel() Close Channel N/A [CS_NEW] 2008-09-22 10:18:08 [ERR] switch_ivr_originate.c:926 switch_ivr_originate() Cannot create outgoing channel of type [sofia] cause: [NO_ROUTE_DESTINATION] 2008-09-22 10:18:08 [WARNING] mod_spidermonkey.c:2933 session_originate() Cannot Create Outgoing Channel! [sofia/default/1001%192.168.1.2] 2008-09-22 10:18:08 [ERR] inline:1 mod_spidermonkey() You must call the session.originate method before calling this method! Thanks.
Hi Preetha, you have use like this openzap/1/a/1001@192.168.1.2 Thanks Kris Anand On Mon, Sep 22, 2008 at 10:19 AM, preetha Ayyappan < preetha.ayyappan@gmail.com> wrote:
I have put the calltest.js in /usr/local/freeswitch/scripts and changed sofia to openzap/default/1001@192.168.1.2 in the coding and i got the error:
Error: 2008-09-22 10:13:26 [ERR] switch_core_session.c:249 switch_core_session_outgoing_channel() Could not locate channel type openzap 2008-09-22 10:13:26 [ERR] switch_ivr_originate.c:926 switch_ivr_originate() Cannot create outgoing channel of type [openzap] cause: [CHAN_NOT_IMPLEMENTED] 2008-09-22 10:13:26 [WARNING] mod_spidermonkey.c:2933 session_originate() Cannot Create Outgoing Channel! [openzap/default/1001@192.168.1.2] 2008-09-22 10:13:26 [ERR] inline:1 mod_spidermonkey() You must call the session.originate method before calling this method!
so i have changed that to sofia again.
As Anthony Minessale said, i have changed @ symbol to % like sofia/default/1001%192.168.1.2 in the coding.But i am getting the following error:
Error: 2008-09-22 10:18:08 [WARNING] mod_sofia.c:1949 sofia_outgoing_channel() Cannot locate registered user 1001@192.168.1.2 2008-09-22 10:18:08 [NOTICE] mod_sofia.c:2046 sofia_outgoing_channel() Close Channel N/A [CS_NEW] 2008-09-22 10:18:08 [ERR] switch_ivr_originate.c:926 switch_ivr_originate() Cannot create outgoing channel of type [sofia] cause: [NO_ROUTE_DESTINATION] 2008-09-22 10:18:08 [WARNING] mod_spidermonkey.c:2933 session_originate() Cannot Create Outgoing Channel! [sofia/default/1001%192.168.1.2] 2008-09-22 10:18:08 [ERR] inline:1 mod_spidermonkey() You must call the session.originate method before calling this method!
Thanks.
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
On Sep 22, 2008, at 12:49 AM, preetha Ayyappan wrote:
I have put the calltest.js in /usr/local/freeswitch/scripts and changed sofia to openzap/default/1001@192.168.1.2 in the coding and i got the error:
Error: 2008-09-22 10:13:26 [ERR] switch_core_session.c:249 switch_core_session_outgoing_channel() Could not locate channel type openzap 2008-09-22 10:13:26 [ERR] switch_ivr_originate.c:926 switch_ivr_originate() Cannot create outgoing channel of type [openzap] cause: [CHAN_NOT_IMPLEMENTED] 2008-09-22 10:13:26 [WARNING] mod_spidermonkey.c:2933 session_originate() Cannot Create Outgoing Channel! [openzap/default/1001@192.168.1.2 ] 2008-09-22 10:13:26 [ERR] inline:1 mod_spidermonkey() You must call the session.originate method before calling this method!
mod_openzap isn't loaded.
so i have changed that to sofia again.
As Anthony Minessale said, i have changed @ symbol to % like sofia/ default/1001%192.168.1.2 in the coding.But i am getting the following error:
Error: 2008-09-22 10:18:08 [WARNING] mod_sofia.c:1949 sofia_outgoing_channel() Cannot locate registered user 1001@192.168.1.2 2008-09-22 10:18:08 [NOTICE] mod_sofia.c:2046 sofia_outgoing_channel() Close Channel N/A [CS_NEW] 2008-09-22 10:18:08 [ERR] switch_ivr_originate.c:926 switch_ivr_originate() Cannot create outgoing channel of type [sofia] cause: [NO_ROUTE_DESTINATION] 2008-09-22 10:18:08 [WARNING] mod_spidermonkey.c:2933 session_originate() Cannot Create Outgoing Channel! [sofia/default/ 1001%192.168.1.2] 2008-09-22 10:18:08 [ERR] inline:1 mod_spidermonkey() You must call the session.originate method before calling this method!
It looks like this phone is not registered.
MIke
Hi michael, I can able to originate a call to an extension.but how could i bridge two extensions and test if session is ready or not? Preetha.A
participants (6)
-
Anthony Minessale
-
Brian West
-
imthiyaz@peopletech.co.in
-
kris kothan
-
Michael Jerris
-
preetha Ayyappan