Perhaps the &quot;uac_replace_from()&quot; function is what you are looking for.<br /><br />Note
that modifying the &quot;From:&quot; header is NOT allowed by the standards.&nbsp; Please review
the mailing lists in regard to this topic as it's been discussed many times.<br /><br />OpenSER
gives you enough control to &quot;shoot yourself in the foot&quot;.&nbsp; It it possible to create
a configuration that can solve your &quot;internal business situation&quot; but might cause
interoperability problems with others.<br /><br />Regards,<br />Norm&nbsp;<br /><br /><br /><br
/>&gt; Hi Norm, <br />&gt; <br />&gt; Thanks for the quick response. <br />&gt; <br />&gt; I was
able to use s.substr to perform the string transformations and I got <br />&gt; the correct value.
However, what I am really trying to do is to actually <br />&gt; re-write the PV ($fU) with the
result of s.substr. <br />&gt; <br />&gt; For example, I want ($fU) be assigned the value
$(fU{s.substr,3,0}); and <br />&gt; this new value be used as my from_uri; and hence my CallerID.
<br />&gt; <br />&gt; Thanks again. <br />&gt; <br />&gt; Tolu <br />&gt; <br />&gt; On 8/18/07,
Norman Brandinger &lt;norm@goes.com&gt; wrote: <br />&gt;&gt; <br />&gt;&gt; Take a look at the
following documentation. Take special note of 'substr' <br />&gt;&gt; <br />&gt;&gt;
http://openser.org/dokuwiki/doku.php/transformations:1.2.x <br />&gt;&gt; <br />&gt;&gt; Regards,
<br />&gt;&gt; Norm <br />&gt;&gt; <br />&gt;&gt; <br />&gt;&gt; &gt; Hi all, <br />&gt;&gt; &gt;
<br />&gt;&gt; &gt; I am trying to re-write the from_uri ($fU) for all calls coming from my <br
/>&gt;&gt; &gt; Asterisk server before sending it to the PSTN. I usually prefix the ANI <br
/>&gt;&gt; in <br />&gt;&gt; &gt; asterisk with &quot;222&quot; to route it to openser, and then
openser simply <br />&gt;&gt; &gt; forwards the call to the PSTN. The problem is that 222+ANI
appears as my <br />&gt;&gt; <br />&gt;&gt; &gt; caller id and is unacceptable. Can anyone give me
hint to strip out this <br />&gt;&gt; <br />&gt;&gt; &gt; prefix in openser. <br />&gt;&gt; &gt;
<br />&gt;&gt; &gt; Thanks. <br />&gt;&gt; &gt; <br />&gt;&gt; &gt; Tolu <br />&gt;&gt; &gt;
_______________________________________________ <br />&gt;&gt; &gt; Users mailing list <br
/>&gt;&gt; &gt; Users@openser.org <br />&gt;&gt; &gt;
http://openser.org/cgi-bin/mailman/listinfo/users <br />&gt;&gt; &gt; <br />