[Freeswitch-users] Dialplan XML phone number match

Lars Zeb larclap at yahoo.com
Thu Jun 11 15:57:52 PDT 2009


The users entering numbers into their phonebooks are able to recognize the
number more easily.

 

I will tell them to forget it and make the phone numbers numeric only.

 

From: freeswitch-users-bounces at lists.freeswitch.org
[mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Michael
Collins
Sent: Thursday, June 11, 2009 2:21 PM
To: freeswitch-users at lists.freeswitch.org
Subject: Re: [Freeswitch-users] Dialplan XML phone number match

 

 

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/556cec3e/attachment.html 


More information about the Freeswitch-users mailing list