[asterisk-tech] Cleaning numbers

Douglas Lane dougsterlster at gmail.com
Mon Oct 22 21:30:50 SAST 2007

Hi Barry,

Why not pass the number through an AGI script, and use trim() in php to
strip out whitespaces and the sorts?


On 10/22/07, b at rry.co.za <b at rry.co.za> wrote:
> Hello All,
> Does anyone know how I could go about stripping spaces out of dialled
> numbers?
> Using X-Lite and Bria, dialing the number +27 11 xxx xxx generates a
> failure
> Problem is half my office has their numbers stored like this so it causes
> issues...
> The rewrite for the +27 bit is easy enough, as is the removal of 09 for
> other internationals, but the spaces throw errors all the time...
> Barry
> _______________________________________________
> asterisk tech mailing list
> tech at asterisk.org.za
> http://www.asterisk.org.za/mailman/listinfo/tech
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://asterisk.org.za/pipermail/tech/attachments/20071022/8a05899c/attachment.htm 

More information about the tech mailing list