Hi Bogdan, <div><br></div><div>Thanks for your answer, but, we've got another idea ;-)</div><div>As our customers aren't directly connected to our OpenSIPS, we can't use your method... </div><div>This is what we thought :</div>
<div><br></div><div>Customers ===> Access SBC (Add a "X-Quality" header, with "premium" or "lowcost") ====> OpenSIPS (look for X-Quality header, and choose drouting group based on header's value) ====> Route to chosen provider</div>
<div><br></div><div>So, we don't use external module, but only a "if" test in opensips's configuration</div><div><br></div><div>One more thing, is it possible to make some loadbalancing with drouting module ? For example, if we set same priority to different rules ?</div>
<div>What we want to do is : for certain prefixes, we'd like to route to only one provider, and for some other prefixes, we'd like to route to different providers in loadbalancing</div><div><br></div><div>Example : </div>
<div>prefix 33 ==> Route to provider A only</div><div>prefix 44 ==> Route to provider B only</div><div>prefix 72 ==> Route to A and B, with loadbalancing, 50/50</div><div><br></div><div>Thanks, </div><div><div name="sig_2e0eb8fbaa" style="margin-top:2em;margin-right:0pt;margin-bottom:2em;margin-left:0pt">
Bien cordialement,<br>
Best regards,<br><br>
<b>Kevin MATHY</b><br>
----
<br>
<b>HEXANET</b> | Opérateur Télécom et fournisseur de services internet<br>
Tél. +33 (0) 3 26 79 30 05<br>
Web. <a href="http://www.hexanet.fr">http://www.hexanet.fr</a><br>
Twitter. <a href="http://twitter.com/Hexanet">http://twitter.com/Hexanet</a><br><br>
Pour toute demande de <b>Support Technique</b>, merci de nous contacter au <b>+33 (0) 3 51 08 42 07</b> / <b><a href="mailto:support@hexanet.fr">support@hexanet.fr</a></b></div><div class="gmail_quote">2013/2/1 Bogdan-Andrei Iancu <span dir="ltr"><<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>
<div bgcolor="#ffffff" text="#000000">
<tt>Hi Kevin,<br>
<br>
DR does not have a buit-in way of selecting the routing set based
on SRC ip. But you can integrate this with permissions module
(address table + check_source_address() function).<br>
<br>
Idea:<br>
- in address table, put the IPs of your providers and in the
"context_info" fields put the routing group you for it<br>
- call comes in -> </tt><tt>check_source_address() -> it
will load in script the </tt><tt>"context_info" into an AVP<br>
- do do_routing("$avp(id)") - push directly in DR the routing
group you want.<br>
</tt><tt><br>
Regards,<br>
</tt>
<pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre><div><div class="h5">
<br>
On 01/31/2013 06:43 PM, Kevin Mathy wrote:
</div></div><blockquote type="cite"><div><div class="h5">Hi List,
<div><br>
</div>
<div>Just a question about Drouting module, and Source Routing; is
there any way to do that ? </div>
<div><br>
</div>
<div>Example : I've got some SIP providers, and I'd like to be
able to route some calls to lowcost ones, and other calls to
premium ones.</div>
<div><br>
</div>
<div>I've found that I can make a drouting choose based on R-URI
domain or username, but I'd like to do it based on FROM
domain...</div>
<div><br>
</div>
<div>Have you got any idea, suggestions ? </div>
<div><br>
</div>
<div><br>
</div>
<div>Thanks a lot, </div>
<div><br>
</div>
<div>Regards, </div>
<div><br>
</div>
<div>Kevin </div>
</div></div><pre><fieldset></fieldset>
_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
</div>
</blockquote></div><br></div>