Caller ID lost on second bridge in extension
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>
All 0's is the default callerid from vars.xml from the stock configs. You can change it there or set it in the dialplan prior or pass it as part of the bridge command. http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_bridge#Setting_Outgoing... should help. -- W PS: Feel free to ask if any other questions just getting a lil late to give it too much thought atm.
Wring callerid, It's the inbound that's missing. I guess I should repost. On 10/04/10 21:51, William Suffill wrote:
All 0's is the default callerid from vars.xml from the stock configs. You can change it there or set it in the dialplan prior or pass it as part of the bridge command.
http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_bridge#Setting_Outgoing...
should help.
-- W
PS: Feel free to ask if any other questions just getting a lil late to give it too much thought atm.
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (2)
-
Mario
-
William Suffill