Usually you set the group based on something else. I use memcache for this.. so I toss the IP against memcache, which returns a group id, then I use that in the do_routing() cmd. <div><br></div><div>Of course, this requires pre-populating the cache src_ip =&gt; group_id</div>

<div><br></div><div>The newly released startup_route can do that for you now. :D</div><div><br></div><div>-Brett</div><div><br></div><div><br><div class="gmail_quote">On Thu, Sep 10, 2009 at 8:00 AM, Julien Chavanton <span dir="ltr">&lt;<a href="mailto:jc@atlastelecom.com">jc@atlastelecom.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">


<div>
<div><font face="Arial" color="#000000" size="2">With Dynamic Routing, how can we route based on source IP address/Gateway ?</font></div></div><br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>