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]
=========
Also if you're calling thru gizmo its
As proxy01 and all that are set on the gateway.
/b
On Aug 18, 2008, at 11:27 PM, Adeel Ansari wrote: