[Freeswitch-users] incoming fax calls

Madovsky infos at madovsky.org
Sat Apr 2 12:08:25 MSD 2011


I tried your solution

        <extension name="myphone">
                <condition field="${sip_to_uri}" expression="^(9999)@$${domain}$">
                        <action inline="true" application="export" data="dialed_extension=$1"/>
                        <action application="set" data="session_in_hangup_hook=true"/>
                        <action application="set" data="hangup_after_bridge=true"/>
                        <action application="set" data="continue_on_fail=NORMAL_TEMPORARY_FAILURE,CALL_REJECTED,NORMAL_CLEARING,USER_NOT_REGISTERED,NO_ANSWER,NO_USER_RESPONSE,USER_BUSY"/>
                        <action application="set" data="group_confirm_cancel_timeout=1"/>
                        <action application="ring_ready"/>
                        <action application="tone_detect" data="fax 1100 r +5000 transfer 'receivefax XML features' 1"/>
                        <action application="sleep" data="5000"/>
                        <action application="export" data="originate_timeout=25"/>
                        <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}"/>
                </condition>
         </extension>

but the tone_detect doesn't tranfer as long as the bridge answer

Thanks


  ----- Original Message ----- 
  From: Michael Collins 
  To: FreeSWITCH Users Help 
  Sent: Friday, April 01, 2011 12:44 AM
  Subject: Re: [Freeswitch-users] incoming fax calls


  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?


  -MC


  On Thu, Mar 31, 2011 at 10:10 AM, Madovsky <infos at madovsky.org> wrote:

    I'm trying to find a way to dectect a fax or call from the same extension

            <extension name="myphone">
                    <condition field="${sip_to_uri}" expression="^(9999)@$${domain}$">
                            <action inline="true" application="export" data="dialed_extension=$1"/>
                            <action application="set" data="session_in_hangup_hook=true"/>
                            <action application="set" data="hangup_after_bridge=true"/>
                            <action application="set" data="continue_on_fail=NORMAL_TEMPORARY_FAILURE,CALL_REJECTED,NORMAL_CLEARING,USER_NOT_REGISTERED,NO_ANSWER,NO_USER_RESPONSE,USER_BUSY"/>
                            <action application="set" data="group_confirm_cancel_timeout=1"/>
                            <action application="ring_ready"/>
                            <action application="set" data="execute_on_media=tone_detect fax 1100 r +5000 transfer 'receivefax XML features' 1"/>
                            <action application="export" data="originate_timeout=25"/>
                            <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}"/>
                    </condition>
             </extension>

    is there a way to detect a fax before answer (2 rings for example) and avoid 
    phone rings until no answer ?

    thanks

    _______________________________________________
    FreeSWITCH-users mailing list
    FreeSWITCH-users at lists.freeswitch.org
    http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
    UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
    http://www.freeswitch.org






------------------------------------------------------------------------------


  _______________________________________________
  FreeSWITCH-users mailing list
  FreeSWITCH-users at lists.freeswitch.org
  http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
  UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
  http://www.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110402/ea901027/attachment.html 


More information about the FreeSWITCH-users mailing list