[Freeswitch-users] bind_meta_app failing - after FAX

Karl Schmidt karl at xtronics.com
Wed May 7 03:15:48 MSD 2014


This used to work - only changed a few things to get fax detect to work reliably. Could it be that 
the two interact?

If there isn't something obvious in the extension below:

What steps to debug? Do I need SIP logging?




<extension name="group_dial_sales">
<condition field="destination_number" expression="^30$">
<!--Export - Exports a channel variable from the A leg to the B leg-->
<action application="export" data="dialed_extension=$1"/>
<action application="answer"/>
<action application="set" data="transfer_ringback=${us-ring}"/>
<action application="set" data="ringback=${us-ring}"/>
<action application="spandsp_start_fax_detect" data="transfer '33 XML features' 6"/>

<!-- bind_meta_app can have these args <key> [a|b|ab] [a|b|o|s] <app> -->
<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}/${strftime(%Y-%m-%d_%H-%M-%S)}.${caller_id_number}.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="bind_meta_app" data="5 b s execute_extension::echo XML default"/>
<!--    ringback specifies audio to play to the A leg on =>unanswered<= aka (early media) call-->
<!--transfer_ringack sets ring tone for =>answered<= calls. This is any bridged call. -->
<!--call_timeout is the seconds to ring the B leg of a call when using the bridge application. The 
timeout is set on the A leg,-->
<action application="set" data="call_timeout=20"/>
<action application="set" data="zrtp_secure_media=false"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="set" 
data="continue_on_fail=NORMAL_TEMPORARY_FAILURE,USER_BUSY,NO_ANSWER,TIMEOUT,NO_ROUTE_DESTINATION"/>
<action application="set" data="continue_on_fail=true"/>
<!--Set hash values for call features-->
<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="export" 
data="nolocal:sip_secure_media=${user_data(${dialed_extension}@${domain_name} var sip_secure_media)}"/>
<action application="hash" data="insert/${domain_name}-last_dial/${called_party_callgroup}/${uuid}"/>
<action application="bridge" data="${group_call(sales@${domain_name})}"/>
<action application="sleep" data="1000"/>
<action application="transfer" data="voicemail xml features"/>
</condition>
</extension>




--------------------------------------------------------------------------------
Karl Schmidt                                  EMail Karl at xtronics.com
Transtronics, Inc.                              WEB http://secure.transtronics.com
3209 West 9th Street                             Ph (785) 841-3089
Lawrence, KS 66049                              FAX (785) 841-0434

Foreign aid is taking money from the poor people of a rich country and
giving it to the rich people of a poor country.


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



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