[Freeswitch-users] Caller ID lost on second bridge in extension
Mario
mario_fs at mgtech.com
Mon Oct 4 16:18:18 PDT 2010
I have a 15 second ring to local extensions, then 15 seconds to local +
2 cell phones. However, when the second bridge is executed the caller ID
is replaced by 0000000000. I tried removing pieces below like the
execute app but it made no difference. Not found on the wiki or web
either. Anyone know where/why it's lost and how to keep it? Thanks. Mario
<extension name="u1phone">
<condition field="destination_number" expression="^2920$">
<!-- Make sure they hear rings after playing hi -->
<action application="set" data="ringback=${us-ring}"/>
<!--action application="playback" data="phrase:mvpeople:100"/-->
<action application="execute_extension" data="2921 XML default"/>
<!-- Next lines not needed here but seems a good idea if
special fesatures are used -->
<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::$${base_dir}/recordings/${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"/>
<!-- Next lines allow control after bridge timeout and hangup
after bridge -->
<action application="set" data="hangup_after_bridge=true"/>
<action application="set" data="continue_on_fail=true"/>
<!-- ring home extensions only for ## seconds -->
<action application="set" data="call_timeout=15"/>
<action application="bridge" data="group/home@${domain_name}"/>
<!-- Say we are keep trying.... -->
<action application="execute_extension" data="2922 XML default"/>
<action application="playback"
data="/usr/local/freeswitch/conf/mvsounds/we_trying_please_hold.wav"/>
<!-- Setup so they hear music while ringing a second time -->
<action application="set" data="ringback=$${hold_music}"/>
<!-- this is needed to allow call_timeout to work after bridging
to a gateway -->
<action application="set" data="ignore_early_media=true"/>
<!-- ring home extensions +cell phone for ## seconds NOTE THE
NEXT 2 LINES DID NOT WORK TO SET TIMEOUT -->
<!--action application="set" data="bridge_answer_timeout=10"/-->
<!--action application="set" data="call_timeout=15"/-->
<!-- Any of the next 3 bridge lines work as long as :_: is used
to ring simoultaneously -->
<action application="bridge"
data="<originate_timeout=15>group/home@${domain_name}:_:sofia/gateway/uid1/19161234567:_:sofia/gateway/uid1/19162223333"/>
<!--action application="bridge"
data="group/home@${domain_name}:_:sofia/gateway/uid1/19161234567"/-->
<!--action application="bridge"
data="<originate_timeout=15>sofia/gateway/uid1/19161234567,user/100@${domain_name}"/-->
<!-- No answer go to voicemail -->
<action application="answer"/>
<action application="voicemail" data="default ${domain_name} 100"/>
</condition>
</extension>
More information about the FreeSWITCH-users
mailing list