<div>Hi folks,</div>
<div>&nbsp;</div>
<div>I have Asterisk as a PSTN termination GW, Openser will handle the user registration.</div>
<div>Openser users&nbsp;has name format 7xxxxxxxx&nbsp; ( all digistes), which can call each other peer to peer ( it is a basic openser function).</div>
<div>I want to forward the call ( 1xxxxxxxxxx&nbsp; or 011xxxxxxxxxxxxx ) to Asterisk when openser user try to terminate US or International calls.</div>
<div>I tried to use the setting like this:</div>
<div>&nbsp;</div>
<div>if(is_method(&quot;INVITE&quot;) &amp;&amp; !has_totag() &amp;&amp; uri=~&quot;sip:011[0-9]+@.*&quot;) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; route(4);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; exit;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; };</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>
<p>route[4] {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strip(3);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # route to Asterisk Media Server<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rewritehostport(&quot;<a href="http://222.222.222.79:5060">222.222.222.79:5060</a>&quot;);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (!t_relay()) {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sl_reply_error();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; };<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; exit;<br>}</p></div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>OpenSER keep looking the 011xxxxxxxxx&nbsp; from location and&nbsp; got 408 always&nbsp;, it does not forward the call to Asterisk. I read a doc about&nbsp;how to share&nbsp;acc and voice meail with Asterisk,&nbsp;will it have to use&nbsp;&nbsp;failure_route to accomplish it ? I am new to Openser and dont know much about the routing logic. Anybody could point me to the right way? A sample cfg will really appreciated.
</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>Steve</div>