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