[Freeswitch-users] Dialplan XML phone number match

Michael Collins msc at freeswitch.org
Thu Jun 11 14:20:52 PDT 2009


On Thu, Jun 11, 2009 at 12:49 PM, Lars Zeb <larclap at yahoo.com> wrote:

>  I have a match expression for outbound calls as “\d{10}”. It’s fine for
> unformatted numbers. Not knowing any better, I created another extension to
> handle numbers formatted like XXX-XXX-XXXX, which is easier to read and
> exists in one hard phone’s phonebook.
>
>
>
> It looks like: “^1?(\d{3})-(\d{3})-(\d{4})$”. But I can see making many
> extensions for different formats.
>

Out of curiosity, what benefit does having all these formats get you?
-MC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090611/1a0f1b8d/attachment.html 


More information about the Freeswitch-users mailing list