Hi,<br><br>Is it possible? I want to make a dial plan like this :<br><br>From domain.org (match 77)<br>calling 7722@domain.org --> calling 7722@domain.com<br><br>From domain.com (match 55)<br>calling 5537@domain.com --> calling 5537@domain.org<br><br>if not match it's a local call. <br><br>Thanks<br><br>Regards,<br>Tsitsi <br><b><i><br><br>Tsitsi <mediatsitsi-ser@yahoo.fr></i></b> a écrit :<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> 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 : <br> New request - M=INVITE RURI=sip:7722@domain.org;transport=tcp <br> 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> 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: Request URI<br>T=sip:7722@domain.org : To URI<br><br>Thanks,<br><br>Regards,<br>Tsitsi<br><b><i><br><br>Daniel-Constantin Mierla <daniel@voice-system.ro></i></b> a écrit :<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>> Hi,<br>> For making a dialplan in 2 or many openser, I try fonction <br>>
rewritehost("domain.com") for override a default request URI <br>> 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>><br>> if (uri=~"sip:77[1-9][0-9]+@.*")<br>> rewritehost("domain.mg");<br>><br>><br>> Openser 1<br>> Before :<br>> <br>> New request - M=INVITE RURI=sip:7722@domain.org;transport=tcp <br>> F=sip:user2@domain.org T=sip:7722@domain.org IP=192.168.80.222 <br>> ID=771b514742765432N2I0ZTAwZTMzZmE1ZGUwYjc4MWNhYTM3NTA3N2RjNWY.<br>><br>> After :<br>><br>> Rewrite!!! - M=INVITE RURI=sip:7722@domain.com;transport=tcp <br>> F=sip:user2@domain.org T=sip:7722@domain.org IP=192.168.80.222 <br>> ID=771b514742765432N2I0ZTAwZTMzZmE1ZGUwYjc4MWNhYTM3NTA3N2RjNWY.<br>><br>> Openser
2:<br>><br>><br>> New request - M=INVITE RURI=sip:7722@domain.com;transport=tcp <br>> F=sip:tvm_user2@domain.org T=sip:7722@domain.org IP=192.168.80.254 <br>> ID=ef6a5b0a6d73c925N2I0ZTAwZTMzZmE1ZGUwYjc4MWNhYTM3NTA3N2RjNWY.<br>><br>><br>> And the dial is not fully a success,it can ring but when i terminated <br>> a call the callee is hang up !!<br>><br>> How solve this problem for a dial plan? <br>> Thanks.<br>><br>> Regards,<br>> Tsitsi<br>><br>> ------------------------------------------------------------------------<br>> Découvrez une nouvelle façon d'obtenir des réponses à toutes vos <br>> questions ! Profitez des connaissances, des opinions et des <br>> expériences des internautes sur Yahoo! Questions/Réponses <br>> <http: fr.rd.yahoo.com="" evt="42054/*http://fr.answers.yahoo.com">.<br>> ------------------------------------------------------------------------<br>><br>>
_______________________________________________<br>> Users mailing list<br>> Users@openser.org<br>> http://openser.org/cgi-bin/mailman/listinfo/users<br>> <br></http:></blockquote><br><div> </div><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>._______________________________________________<br>Users mailing list<br>Users@openser.org<br>http://openser.org/cgi-bin/mailman/listinfo/users<br></blockquote><br><p> 
<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>.