<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content=text/html;charset=utf-8>
<META content="MSHTML 6.00.6000.16705" name=GENERATOR></HEAD>
<BODY id=MailContainerBody 
style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-TOP: 15px" 
bgColor=#ffffff leftMargin=0 topMargin=0 CanvasTabStop="true" 
name="Compose message area">
<DIV><FONT face=Arial size=2>nope <IMG title="Sad smile emoticon" 
style="FLOAT: none; MARGIN: 0px; POSITION: static" tabIndex=-1 
alt="Sad smile emoticon" src="cid:CE4C1E8D22B640379DDBF0F336E45CC7@Comp36" 
MSNNonUserImageOrEmoticon="true"></FONT></DIV>
<DIV><FONT face=Arial size=2>it still says INVALID_NUMBER_FORMAT</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I put this is the dialplan:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&lt;action application="set" 
data="continue_on_fail=NO_ROUTE_DESTINATION, INVALID_NUMBER_FORMAT, 
DESTINATION_OUT_OF_ORDER"/&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><FONT face="Times New Roman" 
size=3></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>still it says </FONT></DIV>
<DIV><BR><A href="mailto:freeswitch@Comp36">freeswitch@Comp36</A>&gt; 2008-09-15 
02:15:55 [NOTICE] writeFile.js:1 console_log() des<BR>tination.txt 
created2008-09-15 02:15:56 [ERR] mod_sofia.c:1860 sofia_outgoing_ch<BR>annel() 
Invalid URL<BR>2008-09-15 02:15:56 [NOTICE] mod_sofia.c:2059 
sofia_outgoing_channel() Close Cha<BR>nnel N/A [CS_NEW]<BR>2008-09-15 02:15:56 
[ERR] switch_ivr_originate.c:926 switch_ivr_originate() Cann<BR>ot create 
outgoing channel of type [sofia] cause: [INVALID_NUMBER_FORMAT]<BR></FONT><FONT 
face=Arial size=2></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Regards,<BR>Gayatri Kulkarni</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>-----<BR>Whenever you find yourself on the side of 
the majority, it is time to pause and reflect.<BR></FONT></DIV>
<DIV style="FONT: 10pt Tahoma">
<DIV><BR></DIV>
<DIV style="BACKGROUND: #f5f5f5">
<DIV style="font-color: black"><B>From:</B> <A 
title=ruchir.brahmbhatt@ecosmob.com 
href="mailto:ruchir.brahmbhatt@ecosmob.com">Ruchir Brahmbhatt</A> </DIV>
<DIV><B>Sent:</B> Saturday, September 13, 2008 1:26 PM</DIV>
<DIV><B>To:</B> <A title=freeswitch-users@lists.freeswitch.org 
href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</A> 
</DIV>
<DIV><B>Subject:</B> Re: [Freeswitch-users] call getting 
pre-answered</DIV></DIV></DIV>
<DIV><BR></DIV>I think you should remove following line.<BR><B><FONT 
size=2>session.answer();</FONT></B><BR>
<TABLE cellSpacing=0 cellPadding=0 width="100%">
  <TBODY>
  <TR>
    <TD><BR>Thanks,<BR>Ruchir Brahmbhatt<BR>Director<BR>Ecosmob Technologies 
      Pvt. Ltd. </TD></TR></TBODY></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("temp.txt");</FONT></B><BR><B><FONT size=2>var buff = 
fd.read(10);</FONT></B><BR><B><FONT size=2>console_log("notice","\nYou are 
trying to reach "+buff+"\n");</FONT></B><BR><B><FONT size=2>route = 
"sofia/gateway/net4india/"+buff;</FONT></B><BR><B><FONT 
size=2>session.execute("bridge", route);</FONT></B><BR><B><FONT 
size=2>session.waitForAnswer(5000);</FONT></B><BR><B><FONT 
size=2>console_log("notice", "Disconnect cause: " + session.cause + 
"\n");</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 = 
"sofia/gateway/net4india" + dtmf.digits;</FONT></B> <B><FONT 
size=2>session.execute("bridge", 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>
<P>
<HR>

<P></P>_______________________________________________<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<BR></BODY></HTML>