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

Dmitri G. xbt.dev at gmail.com
Thu Feb 18 19:48:22 CET 2010


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20100218/07feba81/attachment.htm 


More information about the Users mailing list