Hi Daniel,<br><br>I want to rewrite the default domain added by UA (the local domain), I use rewritehost("domain.com") for rewriting a the uri request like user1@domain.org and it will become user1@domain.com and the request can be reply for another sip proxy (domain.com) instead the local domain(domain.org) . <br>After this fonction rewritehost() the part the domain of URI request change but the To URI request ( eg. To: user1@domain.com) does not change in the SIP request. <br><br>Before :&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br>  New request - M=INVITE RURI=sip:7722@domain.org;transport=tcp <br>&nbsp;F=sip:user2@domain.org T=sip:7722@domain.org IP=192.168.80.222 <br><br>After rewriting:<br>Rewrite!!! - M=INVITE RURI=<span style="font-weight: bold;">sip:7722@domain.com</span>;transport=tcp <br>&nbsp;F=sip:user2@domain.org <span style="font-weight: bold;">T=sip:7722@domain.org </span>IP=192.168.80.222 <br><br>RURI=sip:7722@domain.com:&nbsp; Request
 URI<br>T=sip:7722@domain.org :&nbsp; To URI<br><br>Thanks,<br><br>Regards,<br>Tsitsi<br><b><i><br><br>Daniel-Constantin Mierla &lt;daniel@voice-system.ro&gt;</i></b> a écrit&nbsp;:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> Hello.<br><br>On 04/19/07 14:38, Tsitsi wrote:<br>&gt; Hi,<br>&gt; For making a dialplan in 2 or many openser, I  try fonction <br>&gt; rewritehost("domain.com") for override  a default   request  URI  <br>&gt; from  Client softphone,  the RURI change but the to URI still the same<br>I don't get it exactly -- can you detail a bit? rewritehost("domain.mg") <br>rewrite the R-URI. What do you mean tha "but the URI still the same"?<br><br>Cheers,<br>Daniel<br><br>&gt;<br>&gt;   if (uri=~"sip:77[1-9][0-9]+@.*")<br>&gt;     rewritehost("domain.mg");<br>&gt;<br>&gt;<br>&gt; Openser 1<br>&gt; Before :<br>&gt;  <br>&gt;  New request - M=INVITE RURI=sip:7722@domain.org;transport=tcp <br>&gt;
 F=sip:user2@domain.org T=sip:7722@domain.org IP=192.168.80.222 <br>&gt; ID=771b514742765432N2I0ZTAwZTMzZmE1ZGUwYjc4MWNhYTM3NTA3N2RjNWY.<br>&gt;<br>&gt; After :<br>&gt;<br>&gt;  Rewrite!!! - M=INVITE RURI=sip:7722@domain.com;transport=tcp <br>&gt; F=sip:user2@domain.org T=sip:7722@domain.org IP=192.168.80.222 <br>&gt; ID=771b514742765432N2I0ZTAwZTMzZmE1ZGUwYjc4MWNhYTM3NTA3N2RjNWY.<br>&gt;<br>&gt; Openser 2:<br>&gt;<br>&gt;<br>&gt;  New request - M=INVITE RURI=sip:7722@domain.com;transport=tcp <br>&gt; F=sip:tvm_user2@domain.org T=sip:7722@domain.org IP=192.168.80.254 <br>&gt; ID=ef6a5b0a6d73c925N2I0ZTAwZTMzZmE1ZGUwYjc4MWNhYTM3NTA3N2RjNWY.<br>&gt;<br>&gt;<br>&gt; And the dial is not fully a success,it can ring but when i terminated <br>&gt; a call the callee is hang up !!<br>&gt;<br>&gt; How solve this problem for a dial plan? <br>&gt; Thanks.<br>&gt;<br>&gt; Regards,<br>&gt; Tsitsi<br>&gt;<br>&gt;
 ------------------------------------------------------------------------<br>&gt; Découvrez une nouvelle façon d'obtenir des réponses à toutes vos <br>&gt; questions ! Profitez des connaissances, des opinions et des <br>&gt; expériences des internautes sur Yahoo! Questions/Réponses <br>&gt; <http: fr.rd.yahoo.com="" evt="42054/*http://fr.answers.yahoo.com">.<br>&gt; ------------------------------------------------------------------------<br>&gt;<br>&gt; _______________________________________________<br>&gt; Users mailing list<br>&gt; Users@openser.org<br>&gt; http://openser.org/cgi-bin/mailman/listinfo/users<br>&gt;   <br></http:></blockquote><br><p>&#32;


      

      <hr size="1"> 
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! 
Profitez des connaissances, des opinions et des expériences des internautes sur <a href="http://fr.rd.yahoo.com/evt=42054/*http://fr.answers.yahoo.com">Yahoo! Questions/Réponses</a>.