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/[EMAIL PROTECTED]
2008-09-20 15:49:32 [NOTICE] switch_channel.c:534 switch_channel_set_name()
New Channel sofia/internal/[EMAIL PROTECTED]
2008-09-20 15:49:32 [INFO] mod_dialplan_xml.c:222 dialplan_hunt() Processing
FreeSWITCH->[EMAIL PROTECTED]
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/
[EMAIL PROTECTED] [CS_EXECUTE] [NORMAL_CLEARING]
2008-09-20 15:49:32 [NOTICE] sofia.c:2545 sofia_handle_sip_i_state() Hangup
sofia/internal/[EMAIL PROTECTED] [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/
[EMAIL PROTECTED]) Ended
2008-09-20 15:49:32 [NOTICE] switch_core_session.c:809
switch_core_session_thread() Close Channel sofia/internal/
[EMAIL PROTECTED] [CS_HANGUP]
2008-09-20 15:49:32 [WARNING] mod_spidermonkey.c:2933 session_originate()
Cannot Create Outgoing Channel! [sofia/default/[EMAIL PROTECTED]
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/[EMAIL PROTECTED])
Ended
2008-09-20 15:49:32 [NOTICE] switch_core_session.c:809
switch_core_session_thread() Close Channel
sofia/internal/[EMAIL PROTECTED]

the code is:
new_session = new Session();

new_session.originate(session, "sofia/default/[EMAIL PROTECTED]");

new_session = new Session(session, "sofia/default/[EMAIL PROTECTED]");

// 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.
-- 
Preetha.A
_______________________________________________
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

Reply via email to