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

Bogdan-Andrei Iancu bogdan at voice-system.ro
Fri Feb 19 14:45:35 CET 2010


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




More information about the Users mailing list