<b>Hi,<br><br>I want to get the events for the tone detect but i cant able to get any events,<br><br>Procedures i follow to done detect:</b><br><br>
<font style="color: rgb(255, 153, 0);" size="4">Step 1:I have added the line in default.xml</font><br><br> <extension name="Local_Extension"><br> <condition field="destination_number" expression="^(1[0-9][0-9][0-9])$"><br>
<action application="set" data="dialed_ext=$1"/> <b> <br> <action application="tone_detect" data="fax 1100 r +5000 transfer fax XML default" />
===>I have add this line </b><br> <action application="answer"/><br> <action application="info"/><br> <action application="export" data="Answer-State"/><br>
<action application="log" data="INFO Answer-State [${Answer-State}]\n"/><br> <action application="record_session" data="$${base_dir}/recordings/${destination_number}_${caller_id_number}.wav"/><br>
<action application="export" data="dialed_ext=$1"/><br> </condition><br><b><br>I have added the line to detect fax.</b><br><pre><font size="2"><font size="2"><span style="font-family: arial,helvetica,sans-serif;"><context name="default"></span>
<span style="font-family: arial,helvetica,sans-serif;"> <extension name="fax"></span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;"> <condition field="destination_number" expression="^fax$"></span>
<span style="font-family: arial,helvetica,sans-serif;"> <action application="answer"/></span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">        <action application="sleep" data="1000"/></span>
<span style="font-family: arial,helvetica,sans-serif;"> <action application="set" data="fax_file_name=/tmp/fax/${caller_id_number}-${strftime(%Y-%m-%d-%H-%M-%S)}.tiff"/></span>
<span style="font-family: arial,helvetica,sans-serif;"> <action application="set" data="fax_mode=recv"/></span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;"> <action application="socket" data="<a href="http://127.0.0.1:8084/" target="_blank">127.0.0.1:8084</a> async"/></span>
<span style="font-family: arial,helvetica,sans-serif;"> <action application="hangup"/></span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;"> </condition></span>
<span style="font-family: arial,helvetica,sans-serif;"> </extension></span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;"></context></span></font></font></pre>
<font size="4"><span style="color: rgb(255, 153, 0);">Step 2:Then reloaded freeswitch console using reloadxml command</span><br><font size="2">reloadxml<br>API CALL [reloadxml()] output:<br>+OK [Success]<br><br>2009-01-09 17:49:51 [INFO] mod_enum.c:806 event_handler() ENUM Reloaded<br>
2009-01-09 17:49:51 [INFO] switch_time.c:656 switch_load_timezones() Timezone reloaded 530 definitions</font><br><br></font><font style="color: rgb(255, 153, 0);" size="4">Step3:Through x-lite i have dial the fax no </font><b style="color: rgb(255, 153, 0);">(43951333)</b><br>
<font size="4"><br><span style="color: rgb(255, 153, 0);">Step4:I have passed events through event socket</span></font><br><b><br>event plain DETECTED_TONE</b><br><br>Content-Type: command/reply<br>
Reply-Text: +OK event listener enabled plain ====>But i did not get any events in the event socket when i dial the fax no <br><br><font size="4"><span style="color: rgb(255, 153, 0);">Step 5:I have pasted the freeswitch log in the link </span><b><font style="color: rgb(51, 102, 255);" size="2"><a href="http://pastebin.freeswitch.org/6713">http://pastebin.freeswitch.org/6713</a></font></b></font><br>
<br style="color: rgb(255, 0, 0);"><b style="color: rgb(255, 0, 0);">I need to get the fax tone detect but i cant able to detect the fax tone. If any thing is wrong correct me and help to solve the problem.</b><br><br><br>
-- <br>Warm Regards,<br>N.Baskar<br><br>