As Steve and Steven already said, you only need the brackets to create a capture group that contains the regexp match. Take a look at the regular expression wiki page: https://wiki.freeswitch.org/wiki/Regular_Expression On 11 January 2014 12:53, Steven Ayre <steveayre@gmail.com> wrote:
These will match identically.
The only difference will be the second will set $1 to 123456789, the first will not.
Brackets are only needed if you either want to capture part of the match into $1 etc, or you want to match against multiple possibilities (this|orthis).
On 11 January 2014 08:03, Richard Mace <richard.mace@gmail.com> wrote:
Hi, When you are setting up an inbound route, should you put brackets round the destination_number or not?
That is, which of theses entries is correct/safer/will work?
<condition field="destination_number" expression="^123456789$>
or
<condition field="destination_number" expression="^(123456789)$>
Thanks in advance
Richard
_________________________________________________________________________ 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
_________________________________________________________________________ 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
-- Dušan Dragić