<div dir="ltr">I am calling my program using dialplan, Below is the clause under ../conf/dialplan/default.xml.<br><br>======<br>&nbsp;&nbsp;&nbsp; &nbsp; &lt;extension name=&quot;Test2&quot;&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &lt;condition field=&quot;destination_number&quot; expression=&quot;^1002$&quot;&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &lt;action application=&quot;java&quot; data=&quot;/home/adeel/programs/freeswitch/scripts/freeswitch.jar net.digitalapps.freeswitch.CallTest&quot;/&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &lt;/condition&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp; &lt;/extension&gt;<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">&lt;<a href="mailto:adeel.gnome@gmail.com">adeel.gnome@gmail.com</a>&gt;</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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CoreSession session = null;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CoreSession newSession1 = null;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; try {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; session = new JavaSession(uuid);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; newSession1 = new JavaSession();<br>
<br></div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; session.originate(newSession1, &quot;sofia/gateway/gizmo/01160176905074&quot;);<div class="Ih2E3d"><div dir="ltr">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; session.waitForAnswer(newSession1);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (newSession1.ready() &amp;&amp; session.ready()) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; freeswitch.bridge(session, newSession1);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; freeswitch.console_log(&quot;notice&quot;, &quot;***********Babies!\n&quot;);<br>


&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; newSession1.hangup();<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } finally {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (session != null) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; session.delete();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</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">&lt;<a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a>&gt;</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&#39;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>