Hi,<br><br>If I want to route all usrloc requsts to a media server, could I use next gateway with the on_reply route?<br>When extension 101 dials 102 OpenSiPS will invite both extensions and forward both channels to Asterisk via the gateway list. Asterisk and OpenSIPS do not share a database and Asterisk does not know how to find extensions. This way you could use any rtp media server, Asterisk, Sailfin, Mobicents etc.<br>
<br>Thanks<br><br>Albert<br><br>route[1] {<br>
# for INVITEs enable some additional helper routes<br> if (is_method("INVITE")) {<br> t_on_reply("3");<br> t_on_failure("1");<br> }<br> if (!t_relay()) {<br>
sl_reply_error();<br> };<br> exit;<br>}<br><br>#Route for user lookups<br>route[3]{<br> if (!lookup...<br><br><br><br>onreply_route[3] {<br> xlog("incoming reply\n");<br>
<br><br>if (use_next_gw()) {<br> xlog ("next gateway $ru \n");<br><br> t_relay();<br> exit;<br><br>} else {<br> t_reply("503", "Service not available, no more<br> gateways");<br>
exit;<br>}<br><br>}<br><br>