Thanks Vlad!

Date: Fri, 11 Nov 2011 10:59:40 +0200
From: [email protected]
To: [email protected]
Subject: Re: [OpenSIPS-Users] load balancing based on source IP



  


    
    
  
  
    Hello,

    

    You can use the dispatcher module to accomplish this. Please check
    the hash_pvar param [1] and the ds_select_dst() func [2] with the
    7th algorithm. 

    

    So what you need to do is put the $si ( source IP ) in the hash_pvar
    AVP, and then call ds_select_dst("1","7"). This will lead to having
    calls from the same IP to be routed to the same Asterisk server.

    

    

    [1]
    http://www.opensips.org/html/docs/modules/devel/dispatcher.html#id250265

    [2]
    http://www.opensips.org/html/docs/modules/devel/dispatcher.html#id292791

    

    Regards,

    Vlad Paiu
OpenSIPS Developer
    

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

Reply via email to