<div dir="ltr">Hi<div><br></div><div style>No posible, please use append_branch() and  seturi("<a href="http://sip:08121069941@10.70.1.1:5060">sip:08121069941@10.70.1.1:5060</a>"); for forward call </div><div style><br></div><div style>UAC---->KAMAILIO A---->MSC---->Mobile Subscriber</div><div style><br></div><div style><br></div><div style><pre style="padding:1em;border:1px dashed rgb(47,111,171);color:rgb(0,0,0);background-color:rgb(249,249,249);line-height:1.1em"># if someone calls B, the call should be forwarded to C too.
   if (method=="INVITE" && uri=~"sip:B@xx.xxx.xx ")
   {
       # copy the current branch (branches[0]) into
       # a new branch (branches[1])
       append_branch();
       # all URI manipulation functions work on branches[0]
       # thus, URI manipulation does not touch the 
       # appended branch (branches[1])
       seturi("sip:C@domain");
       # now: branch 0 = C@domain
       #      branch 1 = B@xx.xx.xx.xx</pre></div><div style><br></div><div style>See Detail</div><div style><a href="http://www.open-voip.org/index.php?title=Kamailio_%22revert%22_%22append_branch%22_%22rewritehostport%22">http://www.open-voip.org/index.php?title=Kamailio_%22revert%22_%22append_branch%22_%22rewritehostport%22</a><br></div><div style><br></div><div style>//Gafar</div><div style><br></div><div style><br></div><div style><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 3, 2014 at 5:56 PM, Massimo Varriale (IPZeta) <span dir="ltr"><<a href="mailto:m.varriale@ipzeta.it" target="_blank">m.varriale@ipzeta.it</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
I'm trying to send outbound calls to an external IP address adding a prefix, is this possible using function rewritehostport?<br>
<br>
Thank you<br>
Max<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>
</blockquote></div><br></div>