Hi Bogdan,<br><br>Thank you for your reply! dan I use regexps with uac_replace_from?<br>My goal is to remove the non-numeric values, so From: <47Adrian@his_ip will become <br>From: <47@his_ip, From: <123gheorghe07@his_ip will become From: <12307@his_ip<br>
<br>so you think it will work like this?<br><br>Dmitry<br><br><div class="gmail_quote">2010/2/19 Bogdan-Andrei Iancu <span dir="ltr"><<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Dimitri,<br>
<br>
try the uac_replace_from() from the uac module:<br>
<a href="http://www.opensips.org/html/docs/modules/1.6.x/uac.html#id228582" target="_blank">http://www.opensips.org/html/docs/modules/1.6.x/uac.html#id228582</a><br>
<br>
Regards,<br>
Bogdan<br>
<div><div></div><div class="h5"><br>
Dmitri G. wrote:<br>
> Hi List,<br>
><br>
> I have tried with textops to remove some suspicious things from the<br>
> From: field, but without any luck. Unfortunately one of my customers<br>
> sending weird callerids, and my vendor doesn't accept it. The customer<br>
> itself is unable to fix it for some reson, but he sending the above<br>
> mentioned header like this:<br>
><br>
> From: <47Adrian@his_ip.....<br>
><br>
> From: <anica117@his_ip<br>
><br>
> From: <123gheorghe07@his_ip<br>
><br>
> So fromusers like this, real IPs are replaced with his_ip because I<br>
> don't want to post it here.<br>
><br>
> I have tried with the subst_ fuctions mentioned in the docs, but no<br>
> luck, I'm not so good in sed like scripting.<br>
> Anyone can give me a hint about how can I strip the non-numeric parts?<br>
><br>
> Thanks,<br>
><br>
> dimitry<br>
><br>
><br>
</div></div>> ------------------------------------------------------------------------<br>
><br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
><br>
<br>
<br>
--<br>
Bogdan-Andrei Iancu<br>
<a href="http://www.voice-system.ro" target="_blank">www.voice-system.ro</a><br>
<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div><br>