[OpenSIPS-Users] removing non-numerical from the 'From: ' header

Dmitri G. xbt.dev at gmail.com
Fri Feb 19 22:55:01 CET 2010


2010/2/19 Iñaki Baz Castillo <ibc at aliax.net>

> El Viernes, 19 de Febrero de 2010, Dmitri G. escribió:
> > Hi Bogdan,
> >
> > Thank you for your reply! dan I use regexps with uac_replace_from?
> > My goal is to remove the non-numeric values, so From: <47Adrian at his_ipwill
> > become
> > From: <47 at his_ip, From: <123gheorghe07 at his_ip will become From:
> > <12307 at his_ip
> >
> > so you think it will work like this?
>
> Un a regular expression to store your desired From username intoa a pseudo-
> variable or AVP, and then use uac_replace_from with such pseudo-variable.
>
> --
> Iñaki Baz Castillo <ibc at aliax.net>
>
>
>
Iñaki,

My problem is that I don't know what regexp should I use for this (to strip
out the non-numeric)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20100219/eeeff699/attachment.htm 


More information about the Users mailing list