[Freeswitch-users] Inbound caller ID lost after return from bridge

Mario mario_fs at mgtech.com
Wed Oct 6 09:55:14 PDT 2010


THe extension below works fine except that the inbound caller ID is lost
between the first and second bridge, it is replaced by 0000000000 on the
local extensions. Does the first bridge function cause the inbound
caller ID to be lost? Is there a way to keep it so it shows up during
the second bridge? 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 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/MXT@${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"/-->
to ring simoultaneously -->
        <action application="bridge"
data="<originate_timeout=15>group/MXT@${domain_name}:_:sofia/gateway/uid1/19161234567:_:sofia/gateway/uid1/19162223333"/>
        <!-- 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