Thanks Norm,<br><br>That is exactly what I am looking for. It solved my problem. I used the prefix to identify calls that should be routed to a particular carrier by Openser. But this added prefix affects the interop with some applications with the carrier, hence the need to strip off the tags i added.
<br><br>Rgds,<br><br>Tolu<br><br><div><span class="gmail_quote">On 8/18/07, <b class="gmail_sendername">Norman Brandinger</b> &lt;<a href="mailto:norm@goes.com">norm@goes.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
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&#39;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;<div><span class="e" id="q_1147951d46a84ec3_1"><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;<a href="mailto:norm@goes.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">norm@goes.com</a>&gt; wrote: <br>&gt;&gt; <br>&gt;&gt; Take a look at the
following documentation. Take special note of &#39;substr&#39; <br>&gt;&gt; <br>&gt;&gt;
<a href="http://openser.org/dokuwiki/doku.php/transformations:1.2.x" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://openser.org/dokuwiki/doku.php/transformations:1.2.x</a> <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; <a href="mailto:Users@openser.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Users@openser.org
</a> <br>&gt;&gt; &gt;
<a href="http://openser.org/cgi-bin/mailman/listinfo/users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://openser.org/cgi-bin/mailman/listinfo/users</a> <br>&gt;&gt; &gt; <br></span></div>
</blockquote></div><br>