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: &lt;47Adrian@his_ip will become <br>From: &lt;47@his_ip, From: &lt;123gheorghe07@his_ip will become From: &lt;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">&lt;<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>&gt;</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>
&gt; Hi List,<br>
&gt;<br>
&gt; I have tried with textops to remove some suspicious things from the<br>
&gt; From: field, but without any luck. Unfortunately one of my customers<br>
&gt; sending weird callerids, and my vendor doesn&#39;t accept it. The customer<br>
&gt; itself is unable to fix it for some reson, but he sending the above<br>
&gt; mentioned header like this:<br>
&gt;<br>
&gt; From: &lt;47Adrian@his_ip.....<br>
&gt;<br>
&gt; From: &lt;anica117@his_ip<br>
&gt;<br>
&gt; From: &lt;123gheorghe07@his_ip<br>
&gt;<br>
&gt; So fromusers like this, real IPs are replaced with his_ip because I<br>
&gt; don&#39;t want to post it here.<br>
&gt;<br>
&gt; I have tried with the subst_ fuctions mentioned in the docs, but no<br>
&gt; luck, I&#39;m not so good in sed like scripting.<br>
&gt; Anyone can give me a hint about how can I strip the non-numeric parts?<br>
&gt;<br>
&gt; Thanks,<br>
&gt;<br>
&gt; dimitry<br>
&gt;<br>
&gt;<br>
</div></div>&gt; ------------------------------------------------------------------------<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Users mailing list<br>
&gt; <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
&gt; <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
&gt;<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>