<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.18.1">
</HEAD>
<BODY BGCOLOR="#ffffff" LEFTMARGIN="0" TOPMARGIN="0">
Try &#65279;<B><FONT SIZE="2">route = &quot;sofia/gateway/&quot; + buff + &quot;@net4india&quot;;</FONT></B><BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<BR>
Thanks,<BR>
Ruchir Brahmbhatt<BR>
Director<BR>
Ecosmob Technologies Pvt. Ltd.
</TD>
</TR>
</TABLE>
<BR>
<BR>
-----Original Message-----<BR>
<B>From</B>: Gayatri Kulkarni &lt;<A HREF="mailto:Gayatri%20Kulkarni%20%3cxtpl.gayatri@gmail.com%3e">xtpl.gayatri@gmail.com</A>&gt;<BR>
<B>Reply-To</B>: <A HREF="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</A><BR>
<B>To</B>: <A HREF="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</A><BR>
<B>Subject</B>: Re: [Freeswitch-users] call getting pre-answered<BR>
<B>Date</B>: Mon, 15 Sep 2008 02:21:53 -0700<BR>
<BR>
<FONT SIZE="2">nope </FONT><IMG SRC="cid:CE4C1E8D22B640379DDBF0F336E45CC7@Comp36" ALIGN="bottom" ALT="Sad smile emoticon" BORDER="0">
<FONT SIZE="2">it still says INVALID_NUMBER_FORMAT</FONT>
&nbsp;
<FONT SIZE="2">I put this is the dialplan:</FONT>
&nbsp;
<FONT SIZE="2">&lt;action application=&quot;set&quot; data=&quot;continue_on_fail=NO_ROUTE_DESTINATION, INVALID_NUMBER_FORMAT, DESTINATION_OUT_OF_ORDER&quot;/&gt;</FONT>
&nbsp;
<FONT SIZE="2">&nbsp;</FONT>
<FONT SIZE="2">still it says </FONT>
<BR>
<FONT SIZE="2"><A HREF="mailto:freeswitch@Comp36">freeswitch@Comp36</A>&gt; 2008-09-15 02:15:55 [NOTICE] writeFile.js:1 console_log() des</FONT><BR>
<FONT SIZE="2">tination.txt created2008-09-15 02:15:56 [ERR] mod_sofia.c:1860 sofia_outgoing_ch</FONT><BR>
<FONT SIZE="2">annel() Invalid URL</FONT><BR>
<FONT SIZE="2">2008-09-15 02:15:56 [NOTICE] mod_sofia.c:2059 sofia_outgoing_channel() Close Cha</FONT><BR>
<FONT SIZE="2">nnel N/A [CS_NEW]</FONT><BR>
<FONT SIZE="2">2008-09-15 02:15:56 [ERR] switch_ivr_originate.c:926 switch_ivr_originate() Cann</FONT><BR>
<FONT SIZE="2">ot create outgoing channel of type [sofia] cause: [INVALID_NUMBER_FORMAT]</FONT><BR>
<BR>
&nbsp;
<FONT SIZE="2">Regards,</FONT><BR>
<FONT SIZE="2">Gayatri Kulkarni</FONT>
&nbsp;
<FONT SIZE="2">-----</FONT><BR>
<FONT SIZE="2">Whenever you find yourself on the side of the majority, it is time to pause and reflect.</FONT><BR>
<BR>
<BR>
<BR>
<B>From:</B> <A HREF="mailto:ruchir.brahmbhatt@ecosmob.com">Ruchir Brahmbhatt</A> 
<B>Sent:</B> Saturday, September 13, 2008 1:26 PM
<B>To:</B> <A HREF="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</A> 
<B>Subject:</B> Re: [Freeswitch-users] call getting pre-answered
<BR>
<BR>
I think you should remove following line.<BR>
&#65279;<B><FONT SIZE="2">session.answer();</FONT></B><BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<BR>
Thanks,<BR>
Ruchir Brahmbhatt<BR>
Director<BR>
Ecosmob Technologies Pvt. Ltd. 
</TD>
</TR>
</TABLE>
<BR>
<BR>
-----Original Message-----<BR>
<B>From</B>: Gayatri Kulkarni &lt;<A HREF="mailto:xtpl.gayatri@gmail.com">xtpl.gayatri@gmail.com</A>&gt;<BR>
<B>Reply-To</B>: <A HREF="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</A><BR>
<B>To</B>: <A HREF="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</A><BR>
<B>Subject</B>: [Freeswitch-users] call getting pre-answered<BR>
<B>Date</B>: Sat, 13 Sep 2008 07:31:21 -0700<BR>
<BR>
<FONT SIZE="2">Hi</FONT> <FONT SIZE="2">I am running this script:</FONT> &nbsp; <B><FONT SIZE="2">session.answer();</FONT></B><BR>
<B><FONT SIZE="2">var fd = new File(&quot;temp.txt&quot;);</FONT></B><BR>
<B><FONT SIZE="2">var buff = fd.read(10);</FONT></B><BR>
<B><FONT SIZE="2">console_log(&quot;notice&quot;,&quot;\nYou are trying to reach &quot;+buff+&quot;\n&quot;);</FONT></B><BR>
<B><FONT SIZE="2">route = &quot;sofia/gateway/net4india/&quot;+buff;</FONT></B><BR>
<B><FONT SIZE="2">session.execute(&quot;bridge&quot;, route);</FONT></B><BR>
<B><FONT SIZE="2">session.waitForAnswer(5000);</FONT></B><BR>
<B><FONT SIZE="2">console_log(&quot;notice&quot;, &quot;Disconnect cause: &quot; + session.cause + &quot;\n&quot;);</FONT></B> &nbsp; <FONT SIZE="2">Freeswitch does get the number, originates a new hannel for it but it pre-answers the call !!!!</FONT> <FONT SIZE="2">I am not able to figure out why?!!!!</FONT> &nbsp; <FONT SIZE="2">if I read DTMF and bridge the call I.e.</FONT> &nbsp; <B><FONT SIZE="2">route = &quot;sofia/gateway/net4india&quot; + dtmf.digits;</FONT></B> <B><FONT SIZE="2">session.execute(&quot;bridge&quot;, route);</FONT></B><BR>
<BR>
<FONT SIZE="2">It </FONT><U><FONT SIZE="2">works perfectly fine!</FONT></U> &nbsp; <FONT SIZE="2">Here's what the&nbsp;console of FS looks like:</FONT> &nbsp; 2008-09-13 07:13:19 [NOTICE] switch_channel.c:534 switch_channel_set_name() New<BR>
Channel <A HREF="mailto:sofia/internal/1001@58.68.117.40">sofia/internal/1001@58.68.117.40</A> [1eb5e917-82cb-6f4b-96da-ac75a3b2b25c]<BR>
2008-09-13 07:13:20 [INFO] mod_dialplan_xml.c:222 dialplan_hunt() Processing Gay<BR>
atri-&gt;1200@default<BR>
2008-09-13 07:13:20 [NOTICE] mod_spidermonkey.c:2034 session_answer() Channel [s<BR>
<A HREF="mailto:ofia/internal/1001@58.68.117.40">ofia/internal/1001@58.68.117.40</A>] has been answered<BR>
2008-09-13 07:13:20 [ERR] readFile.js:36 mod_spidermonkey()&nbsp; File C:\Program Fil<BR>
es\FreeSWITCH\scripts\temp.txt is closed, will open it for reading, proceeding<BR>
2008-09-13 07:13:20 [NOTICE] readFile.js:1 console_log()<BR>
<B>You are trying to reach 1408512193</B><BR>
2008-09-13 07:13:21 [NOTICE] switch_channel.c:534 switch_channel_set_name() New<BR>
Channel sofia/external/1408512193 [66dddbc2-58e1-3e4e-8a82-4c32cea51156]<BR>
<B>2008-09-13 07:13:23 [NOTICE] switch_channel.c:534 switch_channel_set_name() New</B><BR>
<B>Channel sofia/external/455 [f9a48afa-b08a-2941-9b64-3eb949aa6f95]</B><BR>
<B>2008-09-13 07:13:24 [NOTICE] sofia.c:2183 sofia_handle_sip_i_state() Ring-Ready</B><BR>
<B>sofia/external/1408512193!</B><BR>
<B>2008-09-13 07:13:24 [NOTICE] sofia_glue.c:2027 sofia_glue_tech_media() Pre-Answe</B><BR>
<B>r sofia/external/1408512193!</B><BR>
<B>2008-09-13 07:13:24 [NOTICE] sofia.c:2561 sofia_handle_sip_i_state() Hangup sofi</B><BR>
<B>a/external/455 [CS_CONSUME_MEDIA] [CALL_REJECTED]</B><BR>
2008-09-13 07:13:25 [ERR] mod_xml_cdr.c:115 my_on_hangup() Error writing [C:\Pro<BR>
gram Files\FreeSWITCH\log\xml_cdr\f9a48afa-b08a-2941-9b64-3eb949aa6f95.cdr.xml][<BR>
No such file or directory]<BR>
2008-09-13 07:13:25 [NOTICE] switch_core_session.c:807 switch_core_session_threa<BR>
d() Session 8 (sofia/external/455) Ended<BR>
2008-09-13 07:13:25 [NOTICE] switch_core_session.c:809 switch_core_session_threa<BR>
d() Close Channel sofia/external/455 [CS_HANGUP]<BR>
2008-09-13 07:13:25 [NOTICE] sofia.c:2561 sofia_handle_sip_i_state() Hangup sofi<BR>
a/external/1408512193 [CS_EXCHANGE_MEDIA] [INVALID_NUMBER_FORMAT]<BR>
2008-09-13 07:13:26 [NOTICE] switch_core_session.c:807 switch_core_session_threa<BR>
d() Session 7 (sofia/external/1408512193) Ended<BR>
2008-09-13 07:13:26 [NOTICE] switch_core_session.c:809 switch_core_session_threa<BR>
d() Close Channel sofia/external/1408512193 [CS_HANGUP]<BR>
<B>2008-09-13 07:13:26 [NOTICE] readFile.js:1 console_log() Disconnect cause: NONE</B><BR>
2008-09-13 07:13:26 [NOTICE] switch_core_state_machine.c:157 switch_core_standar<BR>
d_on_execute() Hangup <A HREF="mailto:sofia/internal/1001@58.68.117.40">sofia/internal/1001@58.68.117.40</A> [CS_EXECUTE] [NORMAL_CLEA<BR>
RING] &nbsp; &nbsp; <FONT SIZE="2">if I call the destination with my cell phone, it rings - meaning the set is in correct place - on hook!</FONT> <FONT SIZE="2">Why would FS find it off-hook?!!</FONT> &nbsp; <FONT SIZE="2">Regards,</FONT><BR>
<FONT SIZE="2">Gayatri Kulkarni</FONT> &nbsp; <FONT SIZE="2">-----</FONT><BR>
<FONT SIZE="2">Whenever you find yourself on the side of the majority, it is time to pause and reflect.</FONT><BR>
<BR>
<PRE>
_______________________________________________
Freeswitch-users mailing list
<A HREF="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</A>
<A HREF="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</A>
UNSUBSCRIBE:<A HREF="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</A>
<A HREF="http://www.freeswitch.org">http://www.freeswitch.org</A>
</PRE>
<BR>

<HR>
<BR>
<BR>
_______________________________________________<BR>
Freeswitch-users mailing list<BR>
Freeswitch-users@lists.freeswitch.org<BR>
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<BR>
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<BR>
http://www.freeswitch.org
<PRE>
_______________________________________________
Freeswitch-users mailing list
<A HREF="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</A>
<A HREF="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</A>
UNSUBSCRIBE:<A HREF="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</A>
<A HREF="http://www.freeswitch.org">http://www.freeswitch.org</A>
</PRE>
</BODY>
</HTML>