[Freeswitch-users] destination_number cleanup

Ryan V ryan at kaevee.com
Mon Dec 19 05:08:46 MSK 2011


On Mon, Dec 19, 2011 at 2:56 AM, Elliott Vogel <elliott at zoogmedia.com>wrote:

>  I was wondering if anyone has a regex expression that works to return
> just digest? I have some clients sending requests formatted to +1 (555)
> 555-5555, 555-555-5555, 555.555.5555 which aren’t be processed  by our dial
> plan because we are expecting all numbers (5555555555) ****
>
>
How about this?

^\+1\s+\((\d{3})\)\s(\d{3})-(\d{4})$|^(\d{3})-(\d{3})-(\d{4})$|^(\d{3})\.(\d{3})\.(\d{4})$

$1, $2 and $3 should give you the full number.

Regards,

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


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list