The whole thing is I&#39;m making routing decisions adding prefixes to usernames, for example, suppose I have two boxes: box01 and box02. If I want to dial to an extension in box02 from and extension registered in box01 I was prefixing the box02 to the username. When the call hits kamailio I check if the username has the box02 prefix and if it has I send it to the ip address of that box stripping the prefix before. Something like this:<div>
<br></div><div> if(($rU=~&quot;^(box02)[0-9]{2,15}$&quot;)) {</div><div>             $rU = $(rU{s.substr,5,0});</div><div>             $ru = &quot;sip:&quot; + $rU + &quot;@&quot; + $sel(cfg_get.box02.gw_ip)  + &quot;:&quot; + $sel(cfg_get.box02.gw_port);</div>
<div>}</div><div><br></div><div>The problem I&#39;m having is I&#39;m not being able to do blind tranfers. I think the cause is the prefix that remains in the TO field. After rewriting the TO field nothing change. I would appreciate if someone could point me to the right path.</div>
<div><br></div><div>Lucas Alvarez<br><br><div class="gmail_quote">On Wed, Mar 7, 2012 at 4:22 PM, Andrew Pogrebennyk <span dir="ltr">&lt;<a href="mailto:apogrebennyk@sipwise.com">apogrebennyk@sipwise.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 03/07/2012 07:37 PM, Lucas Alvarez wrote:<br>
&gt; I want rewrite $tU but I&#39;m not being able, I&#39;m doing the following:<br>
&gt;<br>
&gt;   remove_hf(&quot;To&quot;);<br>
&gt;   insert_hf(&quot;To: sip:$rU@$rd\r\n&quot;, &quot;From&quot;);<br>
&gt;<br>
&gt; Then I&#39;m printing $tU and it is still having the previous value, any<br>
&gt; help will be appreciated.<br>
&gt; Thanks in advance.<br>
<br>
</div></div>Did you verify what is actually sent on the wire?<br>
If it&#39;s just a logging issue you need to do msg_apply_changes().<br>
<div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</div></div></blockquote></div><br></div>