Hi Kevin,

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).

Idea:
- in address table, put the IPs of your providers and in the "context_info" fields put the routing group you for it - call comes in -> check_source_address() -> it will load in script the "context_info" into an AVP - do do_routing("$avp(id)") - push directly in DR the routing group you want.

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com


On 01/31/2013 06:43 PM, Kevin Mathy wrote:
Hi List,

Just a question about Drouting module, and Source Routing; is there any way to do that ?

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.

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...

Have you got any idea, suggestions ?


Thanks a lot,

Regards,

Kevin


_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to