I am calling my program using dialplan, Below is the clause under ../conf/dialplan/default.xml. ====== <extension name="Test2"> <condition field="destination_number" expression="^1002$"> <action application="java" data="/home/adeel/programs/freeswitch/scripts/freeswitch.jar net.digitalapps.freeswitch.CallTest"/> </condition> </extension> ======= Thanks. On Tue, Aug 19, 2008 at 12:52 PM, Adeel Ansari <adeel.gnome@gmail.com>wrote:
Sound. Now the code looks like,
==== CoreSession session = null; CoreSession newSession1 = null;
try { session = new JavaSession(uuid); newSession1 = new JavaSession();
session.originate(newSession1, "sofia/gateway/gizmo/01160176905074");
session.waitForAnswer(newSession1); if (newSession1.ready() && session.ready()) { freeswitch.bridge(session, newSession1); }
freeswitch.console_log("notice", "***********Babies!\n"); newSession1.hangup();
} finally { if (session != null) { session.delete(); } } =====
Error improved slightly, I suppose. :)
======= UUID: 556a126e-6daa-11dd-b2b1-9ba07a457500 ARGS: 2008-08-19 12:50:23 [NOTICE] switch_channel.c:535 switch_channel_set_name() New Channel sofia/external/01160176905074 [5573124c-6daa-11dd-b2b1-9ba07a457500] 2008-08-19 12:50:24 [NOTICE] sofia.c:2561 sofia_handle_sip_i_state() Hangup sofia/external/01160176905074 [CS_CONSUME_MEDIA] [NORMAL_UNSPECIFIED] 2008-08-19 12:50:24 [WARNING] switch_cpp.cpp:889 originate() Error Creating Outgoing Channel! [sofia/gateway/gizmo/01160176905074] 2008-08-19 12:50:24 [ERR] switch_cpp.cpp:974 waitForAnswer() session is not initalized 2008-08-19 12:50:24 [ERR] switch_cpp.cpp:835 ready() session is not initalized 2008-08-19 12:50:24 [ERR] switch_cpp.cpp:529 hangup() session is not initalized 2008-08-19 12:50:24 [NOTICE] switch_core_state_machine.c:157 switch_core_standard_on_execute() Hangup sofia/internal/ 1001@192.168.253.101 [CS_EXECUTE] [NORMAL_CLEARING] 2008-08-19 12:50:24 [NOTICE] switch_core_session.c:812 switch_core_session_thread() Session 2 (sofia/external/01160176905074) Ended 2008-08-19 12:50:24 [NOTICE] switch_core_session.c:814 switch_core_session_thread() Close Channel sofia/external/01160176905074 [CS_HANGUP] =========
On Tue, Aug 19, 2008 at 12:35 PM, Brian West <brian@freeswitch.org> wrote:
Also if you're calling thru gizmo its sofia/gateway/gizmo/01160176905074 <01160176905074@proxy01.sipphone.com>
As proxy01 and all that are set on the gateway.
/b
On Aug 18, 2008, at 11:27 PM, Adeel Ansari wrote:
sofia/sip/gizmo/01160176905074@proxy01.sipphone.com
_______________________________________________ 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
-- Best, Adeel Ansari
-- Best, Adeel Ansari http://www.linkedin.com/in/adeelansari