Hi, Anyone provide any advise. The following dial plan chunk is not taking the EXT number and placing it in my bridge statement. <extension name="Voicemail_Get_Admin"> <condition field="destination_number" expression="^\*86(7\d{3})$"/> <condition field="${phone_type}" expression="1"> <action application="set" data="dialed_number=$1"/> <action application="bridge" data="{origination_callee_id_name='Voicemail'}sofia/gateway/vm/vm86-${phone_ type}-$1-${site}-$${lang}"/> </condition> </extension>
Its because you’ve stacked them reverse the order of operations for those conditions. -- Brian West brian@freeswitch.org FreeSWITCH Solutions, LLC PO BOX 2531 Brookfield, WI 53008-2531 Twitter: @FreeSWITCH , @briankwest http://www.freeswitchbook.com http://www.freeswitchcookbook.com T: +1.918.420.9001 | F: +1.918.420.9002 | M: +1.918.424.WEST iNUM: +883 5100 1420 9001 ISN: 410*543 Skype:briankwest PGP Key: http://www.bkw.org/key.txt (AB93356707C76CED) On Feb 14, 2014, at 9:53 AM, Jason Holden <jason.holden@start.ca> wrote:
Hi, Anyone provide any advise. The following dial plan chunk is not taking the EXT number and placing it in my bridge statement.
<extension name="Voicemail_Get_Admin"> <condition field="destination_number" expression="^\*86(7\d{3})$"/> <condition field="${phone_type}" expression="1"> <action application="set" data="dialed_number=$1"/> <action application="bridge" data="{origination_callee_id_name='Voicemail'}sofia/gateway/vm/vm86-${phone_type}-$1-${site}-$${lang}"/> </condition> </extension> _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
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)
-
Brian West
-
Jason Holden