<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=windows-1252" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19019">
<STYLE></STYLE>
</HEAD>
<BODY 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></BODY></HTML>