Hi Kevin,

See inline.

Regards,

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


On 02/01/2013 02:41 PM, Kevin Mathy wrote:
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
That;s ok also.


So, we don't use external module, but only a "if" test in opensips's configuration
avoid using IF with hardcoded values - you will have to restart each time you want to add/delete/change something there. Better use something like dialplan module to do the translation between the quality and the group.

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
No need for priority - simply make a rule for prefix 72 with 2 GWs (A and B) and use weights - set the wight flag for the rule and as gw_list put "A=50;B=50" - See the DR doc on that.


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] <mailto:[email protected]>* 2013/2/1 Bogdan-Andrei Iancu <[email protected] <mailto:[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 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]  <mailto:[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