Hi Bogdan, Thanks for your answer, but, we've got another idea ;-) As our customers aren't directly connected to our OpenSIPS, we can't use your method... This is what we thought :
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 So, we don't use external module, but only a "if" test in opensips's configuration One more thing, is it possible to make some loadbalancing with drouting module ? For example, if we set same priority to different rules ? 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 Example : prefix 33 ==> Route to provider A only prefix 44 ==> Route to provider B only prefix 72 ==> Route to A and B, with loadbalancing, 50/50 Thanks, Bien cordialement, Best regards, *Kevin MATHY* ---- *HEXANET* | Opérateur Télécom et fournisseur de services internet Tél. +33 (0) 3 26 79 30 05 Web. http://www.hexanet.fr Twitter. http://twitter.com/Hexanet Pour toute demande de *Support Technique*, merci de nous contacter au *+33 (0) 3 51 08 42 07* / *[email protected]* 2013/2/1 Bogdan-Andrei Iancu <[email protected]> > ** > 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 Developerhttp://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 > [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
