I have setup a feature where users who have dialed outbound have the option to transfer the b-leg to a separate outbound number, like so:<div><br></div><div><div> <extension name="outbound_9"></div><div>
<condition field="destination_number" expression="^9(\d{10})$"></div><div> <action application="set" data="ringback=${us-ring}"/></div><div> <action application="set" data="transfer_ringback=$${hold_music}"/></div>
<div> <action application="set" data="continue_on_fail=true"/></div><div> <action application="set" data="bind_meta_key=*"/></div><div> <action application="bind_meta_app" data="1 a s execute_extension::dx XML mycontext"/></div>
<div> <action application="transfer" data="to_outbound XML mycontext"/></div><div> </condition></div><div> </extension></div></div><div><br></div><div><div> <extension name="dx"></div>
<div> <condition field="destination_number" expression="^dx$"></div><div> <action application="log" data="INFO transferring the b-leg..."/></div><div> <action application="answer"/></div>
<div> <action application="sleep" data="1000"/></div><div> <action application="playback" data="/usr/local/freeswitch/sounds/en/us/callie/misc/8000/transfer2.wav"/></div>
<div> <action application="read" data="11 11 'tone_stream://%(10000,0,350,440)' digits 5000 #"/></div><div> <action application="execute_extension" data="is_transfer XML mycontext"/></div>
<div> </condition></div><div> </extension></div></div><div><br></div><div>A delay sometimes occurs after users have pressed *1 and before the message "transferring the b-leg..." appears in the console. This delay happens ~1/3 of the time and lasts for ~5s. Do you know how I should execute this functionality in a way that will not cause such a delay?</div>
<div><br></div><div>thanks,</div><div>elijah</div><div><br></div>