Henning hi,<div><br></div><div>I did looked the trace and the headers were the same.</div><div>In Kamailio-1.5.3 it worked. In Kamailio 3.x.x it seems to not behave properly and I dont understand why since it does not require any special configuration.</div>
<div><br></div><div>Any other ideas ?</div><div><br></div><div>Cheers</div><div>Alex</div><div><br></div><div><br><br><div class="gmail_quote">2011/5/23 Henning Westerholt <span dir="ltr">&lt;<a href="mailto:henning.westerholt@1und1.de">henning.westerholt@1und1.de</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On Friday 20 May 2011, alex pappas wrote:<br>
&gt; I&#39;m trying to change the From uri and Dsplay but without sucess.<br>
&gt;<br>
&gt; My config is as follow:<br>
&gt;<br>
&gt; if(dp_translate(&quot;1111&quot;,<br>
&gt; &quot;$avp(s:frm_user_name)/$avp(s:test_frm_user_name)&quot;))  --&gt; i&#39;m sending<br>
&gt; 2112202701 and I get back corectly 701 {<br>
&gt;                         $avp(s:display) = $avp(s:test_frm_user_name);<br>
&gt;                         $avp(s:fu_uri) = &quot;sip:&quot; +<br>
&gt; $avp(s:test_frm_user_name) + &quot;@&quot; + $fd;<br>
&gt;<br>
&gt;                         xlog(&quot;alx ------- The avp(s:display):<br>
&gt; $avp(s:display) ---- avp(s:fu_uri)=$avp(s:fu_uri)  ----------\n&quot;);  --&gt; I<br>
&gt; see values  701 and sip:701@my_IP_address<br>
&gt;<br>
&gt;<br>
&gt; uac_replace_from(&quot;$avp(s:display)&quot;,&quot;$avp(s:fu_uri)&quot;); Here I log the fu<br>
&gt; and I see that nothing has changed..<br>
&gt;<br>
&gt;                  }<br>
<br>
</div>Hi Alex,<br>
<br>
i guess your changes to the from header are not visible because they are not<br>
applied yet. They should be visible on the message that is send out to the<br>
network, have you looked to a trace? Otherwise you could use the<br>
apply_msg_change method, then it should be also visible:<br>
<a href="http://www.kamailio.org/docs/modules/3.1.x/modules/textopsx.html#msg_apply_changes" target="_blank">http://www.kamailio.org/docs/modules/3.1.x/modules/textopsx.html#msg_apply_changes</a><br>
<br>
Cheers,<br>
<font color="#888888"><br>
Henning<br>
</font></blockquote></div><br></div>