Is this an incoming call? If so then why are you doing &quot;execute_on_media&quot;? Wouldn&#39;t you want to pre_answer the call, do the tone_detect and sleep for 5000ms or so, and then proceed on to the bridge?<div><br></div>
<div>-MC<br><br><div class="gmail_quote">On Thu, Mar 31, 2011 at 10:10 AM, Madovsky <span dir="ltr">&lt;<a href="mailto:infos@madovsky.org">infos@madovsky.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">






<div bgcolor="#ffffff">
<div><font size="2">I&#39;m trying to find a way to dectect a fax or call from the 
same extension</font></div>
<div><font size="2"></font> </div>
<div><font size="2">        &lt;extension 
name=&quot;myphone&quot;&gt;<br>                
&lt;condition field=&quot;${sip_to_uri}&quot; 
expression=&quot;^(9999)@$${domain}$&quot;&gt;<br>                        
&lt;action inline=&quot;true&quot; application=&quot;export&quot; 
data=&quot;dialed_extension=$1&quot;/&gt;<br>                        
&lt;action application=&quot;set&quot; 
data=&quot;session_in_hangup_hook=true&quot;/&gt;<br>                        
&lt;action application=&quot;set&quot; 
data=&quot;hangup_after_bridge=true&quot;/&gt;<br>                        
&lt;action application=&quot;set&quot; 
data=&quot;continue_on_fail=NORMAL_TEMPORARY_FAILURE,CALL_REJECTED,NORMAL_CLEARING,USER_NOT_REGISTERED,NO_ANSWER,NO_USER_RESPONSE,USER_BUSY&quot;/&gt;<br>                        
&lt;action application=&quot;set&quot; 
data=&quot;group_confirm_cancel_timeout=1&quot;/&gt;<br>                        
&lt;action 
application=&quot;ring_ready&quot;/&gt;<br>                        
&lt;action application=&quot;set&quot; data=&quot;execute_on_media=tone_detect fax 1100 r +5000 
transfer &#39;receivefax XML features&#39; 
1&quot;/&gt;<br>                        
&lt;action application=&quot;export&quot; 
data=&quot;originate_timeout=25&quot;/&gt;<br>                        
&lt;action application=&quot;bridge&quot; 
data=&quot;{sip_invite_domain=${sip_from_host},nibble_account=,nibble_rate=,origination_caller_id_name=${caller_id_name},origination_caller_id_number=${caller_id_number,}}user/${dialed_extension}&quot;/&gt;<br>                
&lt;/condition&gt;<br>         
&lt;/extension&gt;<br></font><font size="2"></font></div>
<div><font size="2">is there a way to detect a fax before answer (2 rings for 
example) and avoid </font></div>
<div><font size="2">phone rings until no answer ?</font></div>
<div><font size="2"></font> </div>
<div><font size="2">thanks</font></div></div>
<br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">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></blockquote></div><br></div>