[OpenSIPS-Users] removing non-numerical from the 'From: ' header
Dmitri G.
xbt.dev at gmail.com
Fri Feb 19 14:52:58 CET 2010
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_ip will
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?
Dmitry
2010/2/19 Bogdan-Andrei Iancu <bogdan at voice-system.ro>
> Hi Dimitri,
>
> try the uac_replace_from() from the uac module:
> http://www.opensips.org/html/docs/modules/1.6.x/uac.html#id228582
>
> Regards,
> Bogdan
>
> Dmitri G. wrote:
> > Hi List,
> >
> > I have tried with textops to remove some suspicious things from the
> > From: field, but without any luck. Unfortunately one of my customers
> > sending weird callerids, and my vendor doesn't accept it. The customer
> > itself is unable to fix it for some reson, but he sending the above
> > mentioned header like this:
> >
> > From: <47Adrian at his_ip.....
> >
> > From: <anica117 at his_ip
> >
> > From: <123gheorghe07 at his_ip
> >
> > So fromusers like this, real IPs are replaced with his_ip because I
> > don't want to post it here.
> >
> > I have tried with the subst_ fuctions mentioned in the docs, but no
> > luck, I'm not so good in sed like scripting.
> > Anyone can give me a hint about how can I strip the non-numeric parts?
> >
> > Thanks,
> >
> > dimitry
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Users mailing list
> > Users at lists.opensips.org
> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> >
>
>
> --
> Bogdan-Andrei Iancu
> www.voice-system.ro
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20100219/0fa337fc/attachment.htm
More information about the Users
mailing list