<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19019">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>I tried your solution</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV>
<DIV><FONT size=2> <extension
name="myphone"><BR>
<condition field="${sip_to_uri}"
expression="^(9999)@$${domain}$"><BR>
<action inline="true" application="export"
data="dialed_extension=$1"/><BR>
<action application="set"
data="session_in_hangup_hook=true"/><BR>
<action application="set"
data="hangup_after_bridge=true"/><BR>
<action application="set"
data="continue_on_fail=NORMAL_TEMPORARY_FAILURE,CALL_REJECTED,NORMAL_CLEARING,USER_NOT_REGISTERED,NO_ANSWER,NO_USER_RESPONSE,USER_BUSY"/><BR>
<action application="set"
data="group_confirm_cancel_timeout=1"/><BR>
<action
application="ring_ready"/><BR>
<action application="tone_detect" data="fax 1100 r +5000 transfer 'receivefax
XML features' 1"/></FONT></DIV>
<DIV><FONT size=2>
<action
application="sleep"
data="5000"/><BR>
<action application="export"
data="originate_timeout=25"/><BR>
<action application="bridge"
data="{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}"/><BR>
</condition><BR>
</extension></FONT></DIV><FONT size=2></FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>but the tone_detect doesn't tranfer as long as the bridge
answer</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Thanks</DIV>
<DIV><BR></DIV></FONT><FONT size=2></FONT>
<BLOCKQUOTE
style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="FONT: 10pt arial; BACKGROUND: #e4e4e4; font-color: black"><B>From:</B>
<A title=msc@freeswitch.org href="mailto:msc@freeswitch.org">Michael
Collins</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=freeswitch-users@lists.freeswitch.org
href="mailto:freeswitch-users@lists.freeswitch.org">FreeSWITCH Users Help</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, April 01, 2011 12:44
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Freeswitch-users] incoming
fax calls</DIV>
<DIV><BR></DIV>Is this an incoming call? If so then why are you doing
"execute_on_media"? Wouldn'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><<A
href="mailto:infos@madovsky.org">infos@madovsky.org</A>></SPAN> wrote:<BR>
<BLOCKQUOTE
style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex"
class=gmail_quote>
<DIV bgcolor="#ffffff">
<DIV><FONT size=2>I'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> <extension
name="myphone"><BR>
<condition field="${sip_to_uri}"
expression="^(9999)@$${domain}$"><BR>
<action inline="true" application="export"
data="dialed_extension=$1"/><BR>
<action application="set"
data="session_in_hangup_hook=true"/><BR>
<action application="set"
data="hangup_after_bridge=true"/><BR>
<action application="set"
data="continue_on_fail=NORMAL_TEMPORARY_FAILURE,CALL_REJECTED,NORMAL_CLEARING,USER_NOT_REGISTERED,NO_ANSWER,NO_USER_RESPONSE,USER_BUSY"/><BR>
<action application="set"
data="group_confirm_cancel_timeout=1"/><BR>
<action
application="ring_ready"/><BR>
<action application="set" data="execute_on_media=tone_detect fax 1100 r
+5000 transfer 'receivefax XML features'
1"/><BR>
<action application="export"
data="originate_timeout=25"/><BR>
<action application="bridge"
data="{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}"/><BR>
</condition><BR>
</extension><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>
<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></BLOCKQUOTE></BODY></HTML>