<div dir="ltr">I am calling my program using dialplan, Below is the clause under ../conf/dialplan/default.xml.<br><br>======<br> <extension name="Test2"><br> <condition field="destination_number" expression="^1002$"><br>
<action application="java" data="/home/adeel/programs/freeswitch/scripts/freeswitch.jar net.digitalapps.freeswitch.CallTest"/><br> </condition><br> </extension><br>
<br>=======<br><br>Thanks.<br><br><div class="gmail_quote">On Tue, Aug 19, 2008 at 12:52 PM, Adeel Ansari <span dir="ltr"><<a href="mailto:adeel.gnome@gmail.com">adeel.gnome@gmail.com</a>></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;">
<div dir="ltr">Sound.<br>Now the code looks like,<div class="Ih2E3d"><br><br>====<br> CoreSession session = null;<br> CoreSession newSession1 = null;<br> <br> try {<br> session = new JavaSession(uuid); <br>
newSession1 = new JavaSession();<br>
<br></div> session.originate(newSession1, "sofia/gateway/gizmo/01160176905074");<div class="Ih2E3d"><div dir="ltr"> <br><br> session.waitForAnswer(newSession1); <br>
if (newSession1.ready() && session.ready()) {<br> freeswitch.bridge(session, newSession1);<br> }<br><br> freeswitch.console_log("notice", "***********Babies!\n");<br>
newSession1.hangup();<br><br> } finally {<br> if (session != null) {<br> session.delete();<br> }<br> }</div>=====<br><br></div>Error improved slightly, I suppose. :)<br>
<br>=======<br>UUID: 556a126e-6daa-11dd-b2b1-9ba07a457500 ARGS:<br>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]<br>
2008-08-19 12:50:24 [NOTICE] sofia.c:2561 sofia_handle_sip_i_state() Hangup sofia/external/01160176905074 [CS_CONSUME_MEDIA] [NORMAL_UNSPECIFIED]<br>2008-08-19 12:50:24 [WARNING] switch_cpp.cpp:889 originate() Error Creating Outgoing Channel! [sofia/gateway/gizmo/01160176905074]<br>
2008-08-19 12:50:24 [ERR] switch_cpp.cpp:974 waitForAnswer() session is not initalized<br>2008-08-19 12:50:24 [ERR] switch_cpp.cpp:835 ready() session is not initalized<br>2008-08-19 12:50:24 [ERR] switch_cpp.cpp:529 hangup() session is not initalized<br>
2008-08-19 12:50:24 [NOTICE] switch_core_state_machine.c:157 switch_core_standard_on_execute() Hangup sofia/internal/<a href="mailto:1001@192.168.253.101" target="_blank">1001@192.168.253.101</a> [CS_EXECUTE] [NORMAL_CLEARING]<br>
2008-08-19 12:50:24 [NOTICE] switch_core_session.c:812 switch_core_session_thread() Session 2 (sofia/external/01160176905074) Ended<br>
2008-08-19 12:50:24 [NOTICE] switch_core_session.c:814 switch_core_session_thread() Close Channel sofia/external/01160176905074 [CS_HANGUP]<br>=========<br><br><div class="gmail_quote"><div><div></div><div class="Wj3C7c">
On Tue, Aug 19, 2008 at 12:35 PM, Brian West <span dir="ltr"><<a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="Wj3C7c"><div>Also if you're calling thru gizmo its<div>
<br></div><div>sofia/gateway/gizmo/<a href="mailto:01160176905074@proxy01.sipphone.com" target="_blank">01160176905074</a></div>
<div><br></div><div>As proxy01 and all that are set on the gateway.</div><div><br></div><div>/b</div><div><br><div><div><div>On Aug 18, 2008, at 11:27 PM, Adeel Ansari wrote:</div><br></div><div>
<blockquote type="cite"><span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;">sofia/sip/gizmo/<a href="mailto:01160176905074@proxy01.sipphone.com" target="_blank">01160176905074@proxy01.sipphone.com</a></span></blockquote>
</div></div><br></div></div><br></div></div><div class="Ih2E3d">_______________________________________________<br>
Freeswitch-users mailing list<br>
<a href="mailto:Freeswitch-users@lists.freeswitch.org" target="_blank">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>
<br></div></blockquote></div><br><br clear="all"><div class="Ih2E3d"><br>-- <br>Best,<br>Adeel Ansari<br><br><a href="http://www.linkedin.com/in/adeelansari" target="_blank">http://www.linkedin.com/in/adeelansari</a><br>
</div></div>
</blockquote></div><br><br clear="all"><br>-- <br>Best,<br>Adeel Ansari<br><br><a href="http://www.linkedin.com/in/adeelansari">http://www.linkedin.com/in/adeelansari</a><br>
</div>