Check this config set out: git://github.com/curriegrad2004/freeswitch-sample-configs.git The internal.xml file under the light-pbx/dialplan directory of the git repository demonstrates what you really want to do. On Sun, Jan 8, 2012 at 2:42 PM, Bob Smith <gb10hkzo-freeswitch@yahoo.co.uk> wrote:
Hi,
I'm a bit of a newbie to Freeswitch at the moment, still trying to wrap my head around its power.
My current pet project is fairly simple, trying to mimick the prefix based number withhold features typically offered by carriers (e.g dialling 141 in the UK, or, I believe *67 will withhold your number from the recipient). Basically I want to set the RPID/Privacy Flags etc. if a certain prefix is dialled ahead of the main number.
My current dialplan is along the following lines :
<include> <extension name="Premium International Rates"> <condition field="${toll_allow}" expression="int_premium" break="on-false" /> <condition field="destination_number" expression="^(?:\+|00)(<bunch of numbers>)\d{1,13}$" break="on-false"> <action application="bridge" data="sofia/gateway/xyz/$1"/> </condition> </extension> more extensions here..... </include>
I've found the prefix dialling example here http://wiki.freeswitch.org/wiki/Prefix_dialing, but I can't see how I can integrate it with a syntax similar to the above where I am already checking for other prefixes?
Thanks in advance
Bob
_________________________________________________________________________ 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