<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body><div>Hi Kevin,</div><div><br></div><div>Yes you can use FQDN in gw definition. In this case the DNS lookup will be done each time the gw is used.</div><div><br></div><div>For your second issue, after do_routing() simply do:</div><div>&nbsp; &nbsp; &nbsp; &nbsp;$du = "ip_asterisk".</div><div>This will force routing to asterisk while you still have in RURI the gw address.</div><div><br></div><div>Regards,</div><div>Bogdan</div><div><br></div><div><br></div><div><div style="font-size:75%;color:#575757">Sent from Samsung Mobile</div></div> <br>Kevin Mathy &lt;k.mathy@hexanet.fr&gt; wrote:<br>Hi list,&nbsp;<div><br></div><div>I've got some questions, about DRouting module.&nbsp;</div><div>First, is it possible to set, in database, as a gateway address, a sip domain name ?</div><div>For example :</div><div><table summary="Sample dr_gateways records" border="1" style="font-family:Helvetica,Arial;background-color:rgb(255,255,255)">

<thead><tr><th>gwid</th><th>type</th><th>address</th><th>strip</th><th>pri_prefix</th><th>probe_mode</th><th>description</th></tr></thead><tbody><tr><td>1</td><td>10</td><td><b><a href="http://alpha.omega.voipservice.com:5060">alpha.omega.voipservice.com:5060</a></b></td>

<td>0</td><td>2222</td><td>0</td><td>Gateway 1</td></tr><tr><td>2</td><td>10</td><td>10.10.10.10</td><td>2</td><td>3333</td><td>2</td><td>Gateway 2</td></tr></tbody></table></div><div><b><div><span style="font-weight:normal"><br>

</span></div><div><span style="font-weight:normal">Then, we've got this situation :</span></div><div><span style="font-weight:normal"><br></span></div><div><span style="font-weight:normal">SIP Proxy server (OpenSIPS) ======&gt; Asterisk SBC =========&gt; SIP Provider 1</span></div>

<div><span style="font-weight:normal">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =========&gt; SIP Provider 2</span></div><div><span style="font-weight:normal"><br></span></div><div><span style="font-weight:normal">So, our SIP proxy server will send requests to Asterisk SBC with drouting module, but, we must be able to tell to asterisk to send SIP message through provider 1 or 2... My question is : is there any possibility to send this information, with a SIP header, set with informations contained in drouting tables ?&nbsp;</span></div>

<div><span style="font-weight:normal"><br></span></div><div><span style="font-weight:normal">Thanks a lot,&nbsp;</span></div><div><span style="font-weight:normal"><br></span></div><div><span style="font-weight:normal">If you have further questions, feel free to ask me !&nbsp;</span></div>

<div><span style="font-weight:normal"><br></span></div><div><br></div><div><span style="font-weight:normal">Bien cordialement,&nbsp;</span></div><div><span style="font-weight:normal">Best Regards,&nbsp;</span></div><div><span style="font-weight:normal"><br>

</span></div></b><b>Kevin MATHY</b><div><b>HEXANET</b></div><b><div><span style="font-weight:normal">--</span></div></b><div>Phone : +33 (0) 3 26 79 30 05</div><div>Tech Support : +33 (0) 3 51 08 42 07</div><div>Web : <a href="http://www.hexanet.fr" target="_blank">www.hexanet.fr</a></div>

<div>Twitter :&nbsp;<a href="http://twitter.com/Hexanet" target="_blank">http://twitter.com/Hexanet</a></div><div><br></div><div><br></div><br>
</div>
</body>