[Freeswitch-users] Direct inward dialling

stephen at stephenjc stephen at stephenjc.com
Mon Jun 7 10:17:26 PDT 2010


i use this tool

http://www.gskinner.com/RegExr/desktop/


Thanks,
Stephen C
-All of my email addresses go to the same place
-Save Paper, think before you print



On Mon, Jun 7, 2010 at 10:02 AM, tom strickland <mr.tom.strickland at gmail.com
> wrote:

> Perhaps you could use an online tool to test your regexes? If I understand
> correctly, the regexes in FS are all Perl-style regexes and there are a
> number of online or downloadable tools that will allow you to see the effect
> of your developing regex on a sample set of data. If this is the case, could
> anyone recommend a tool?
>
> Tom
>
> On 2 June 2010 22:17, RR <ranjtech at gmail.com> wrote:
>
>>
>>
>> On Wed, Jun 2, 2010 at 2:17 PM, Michael Collins <msc at freeswitch.org>wrote:
>>
>>>
>>>
>>> On Tue, Jun 1, 2010 at 7:57 PM, Ron McLeod <ron.freeswitch at mcleodnet.com
>>> > wrote:
>>>
>>>>  Is  [32|48|54|55|65]  correct?  Shouldn’t it be  (32|48|54|55|65)
>>>> instead?
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> ^\+?1?(0[0-1]+)?((32|48|54|55|65)\d+)\;?(phone-context=)?\+?(\d+)?$
>>>>
>>> Also, you really don't need the dash in [0-1], just do [01] which means
>>> "match a 0 or a 1"
>>> -MC
>>>
>>>
>> Ok cool. Thanks for that. BTW, I've noticed that the regex CLI command
>> doesn't always behave the same way as the core FS engine. A lot of tests
>> that display a different result when testing using the regex command yield
>> different behaviour when one makes a call and how FS behaves/treats the
>> call. Maybe it's a bug in the old version. We're using a very old version of
>> FS
>>
>> _______________________________________________
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>>
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100607/2f8b4f2d/attachment-0001.html 


More information about the FreeSWITCH-users mailing list