[Freeswitch-users] Dialplan XML phone number match

Lars Zeb larclap at yahoo.com
Thu Jun 11 12:49:24 PDT 2009


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.

 

There's got to be a better way. Any suggestions?

 

Thanks, Lars

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090611/ebb49988/attachment.html 


More information about the Freeswitch-users mailing list