<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body 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 class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
<br>
On 01/31/2013 06:43 PM, Kevin Mathy wrote:
<blockquote
cite="mid:CAOmzhXmnJVBkDC-OVfyO7o2=__SUZ3F9ZqGRojWTjny69dC9QQ@mail.gmail.com"
type="cite">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>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
</body>
</html>