[Freeswitch-users] transfer_fallback_extension

T Fred Farmington tfred31 at yahoo.com
Fri Mar 27 23:02:30 MSK 2015


I very much appreciate your reply.
And, I even more greatly appreciate the thoroughness of your reply.

It sounds like exactly what I am looking for.
I will try it and see how it goes.

Thanks again.



--------------------------------------------
On Fri, 3/27/15, Raphael Lechner <raphael.lechner at gmail.com> wrote:

 Subject: Re: [Freeswitch-users] transfer_fallback_extension
 To: "FreeSWITCH Users Help" <freeswitch-users at lists.freeswitch.org>
 Date: Friday, March 27, 2015, 3:21 AM
 
 Hi,
 
 I have created the following dial plan for
 that.
 
 If the call is not
 answered after 30 seconds then the call is going back to the
 initial caller and on the display is showing
 (NO_ANSWER)>>orig_caller_id_name>>orig_caller_id_number.
 
 <extension
 name="Local_Extension">
  
 <condition field="destination_number"
 expression="^([0-9][0-9])$">
  
   <action application="export"
 data="dialed_extension=$1" />
     <action
 application="bind_meta_app" data="1 b s
 execute_extension::dx XML features" />
     <action
 application="bind_meta_app"
    
   data="2 b s
 record_session::$${recordings_dir}/${caller_id_number}.${strftime(%Y-%m-%d-%H-%M-%S)}.wav"
 />
     <action
 application="bind_meta_app" data="3 b s
 execute_extension::cf XML features" />
     <action
 application="bind_meta_app" data="4 b s
 execute_extension::att_xfer XML features" />
     <action application="set"
 data="transfer_ringback=$${hold_music}" />
     <action application="set"
 data="call_timeout=30" />
    
 <action application="set"
 data="hangup_after_bridge=true" />
     <action application="set"
 data="continue_on_fail=NO_ANSWER" />
     <action application="hash"
 data="insert/${domain_name}-call_return/${dialed_extension}/${caller_id_number}"
 />
     <action
 application="hash"
 data="insert/${domain_name}-last_dial_ext/${dialed_extension}/${uuid}"
 />
     <action
 application="set"
 data="called_party_callgroup=${user_data(${dialed_extension}@${domain_name}
 var callgroup)}" />
     <action
 application="hash"
 data="insert/${domain_name}-last_dial_ext/${called_party_callgroup}/${uuid}"
 />
     <action
 application="hash"
 data="insert/${domain_name}-last_dial_ext/global/${uuid}"
 />
     <action
 application="hash"
 data="insert/${domain_name}-last_dial/${called_party_callgroup}/${uuid}"
 />
     <action
 application="set"
      
 data="effective_callee_id_name=${user_data(${dialed_extension}@${domain_name}
 var effective_caller_id_name)}" />
     <action application="set"
 data="effective_callee_id_number=${dialed_extension}"
 />
     <action
 application="log" data="INFO
 effective_callee_id_number=${dialed_extension}"
 />
     <action
 application="log"
      
 data="INFO
 effective_callee_id_name=${user_data(${dialed_extension}@${domain_name}
 var effective_caller_id_name)}" />
     <action application="export"
 data="alert_info=http://localhost/;info=internal"
 />
     <action
 application="log" data="INFO
 alert_info=${alert_info}" />
 
     <condition
 field="${last_bridge_hangup_cause}"
 expression="^NO_ANSWER$">
    
   <action application="log"
  
       data="INFO NO_ANSWER --
 ${dialed_extension}(NO_ANSWER)>>${orig_caller_id_name}(${orig_caller_id_number})"
 />
       <action
 application="export"
        
 data="origination_caller_id_name=${dialed_extension}(NO_ANSWER)>>${orig_caller_id_name}(${orig_caller_id_number})"
 />
       <anti-action
 application="set"
        
 data="effective_callee_id_name=${user_data(${dialed_extension}@${domain_name}
 var effective_caller_id_name)}" />
     </condition>
 
     <action
 application="bridge"
      
 data="{effective_callee_id_name=${effective_callee_id_name},effective_callee_id_number=${effective_callee_id_number},origination_caller_id_name=${origination_caller_id_name}}user/${dialed_extension}@${domain_name}"
 />
     <action
 application="transfer"
 data="${last_sent_callee_id_number}" />
   </condition>
 </extension>
 
 Raphael
 
 >
 On 26 Mar 2015, at 18:55, T Fred Farmington <tfred31 at yahoo.com>
 wrote:
 > 
 > On a
 number of websites and in my conf/directory/default.xml file
 I see:   
 > 
    <variable name =
 "transfer_fallback_extension" value =
 "operator"/>
 > 
 > And in my   
 conf/dialplan/default.xml   file I see 
    <extension name =
 "operator">    where the operator
 'extension' is defined as a single extension
 number.
 > 
 > But I
 don't want the failed transfer attempt to go to a single
 pre-defined extension 
 > I want the
 failed transfer attempt to go back to the extension which
 initially launched the transfer attempt
 >
 
 > How/where would I modify the
 variable   transfer_fallback_extension   to
 get this to work as needed?
 > 
 > Or should this be handled in a different
 manner somewhere else within FreeSWITCH?
 > If so, where/how?
 > 
 > Thanks
 > 
 > 
 > 
 > 
 > 
 > 
 >
 _________________________________________________________________________
 > Professional FreeSWITCH Consulting
 Services: 
 > consulting at freeswitch.org
 > http://www.freeswitchsolutions.com
 > 
 > Official FreeSWITCH
 Sites
 > http://www.freeswitch.org
 > http://confluence.freeswitch.org
 > http://www.cluecon.com
 > 
 > 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
 
 
 _________________________________________________________________________
 Professional FreeSWITCH Consulting Services:
 
 consulting at freeswitch.org
 http://www.freeswitchsolutions.com
 
 Official FreeSWITCH Sites
 http://www.freeswitch.org
 http://confluence.freeswitch.org
 http://www.cluecon.com
 
 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
 



Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list