Hi Bogdan, Thanks for the clarification regarding the function! The 'make menuconfig' definitely helps.
-Gunjan On Tue, Feb 23, 2016 at 2:28 PM, Bogdan-Andrei Iancu <[email protected]> wrote: > Hi Gunjan, > > the ds_select_dst() will just pick the first to be used and prepares the > rest of the available destination (this function does not do any SIP > signaling, it just get the available destinations from the indicated set). > The function returns false only if there is no available (know to be > available) destination in the set. > > To have a model, please use the "make menuconfig" to generate a > load-balancer like script using dispatcher - this will give you a hint on > how dispatcher has to be configured for failover. > > Regards, > > Bogdan-Andrei Iancu > OpenSIPS Founder and Developerhttp://www.opensips-solutions.com > > On 23.02.2016 09:29, Gunjan Korlekar wrote: > > Hello, > > I am new to the dispatcher module on opensips 1.11 and was trying to > understand how failover works in the ds_select_dst function. I tried > searching for answers online but I could not get much clarity. > > So, I have a bunch of destinations in my dispatcher table and the > following piece of code in my route function in the config file - > > if ( !ds_select_dst("1", "4") ) { > xlog("L_INFO", "ds_select_dst error"); > send_reply("500","Unable to route"); > } > > I have ds_probing_mode set in my config file so it always knows what > destinations are active. > > Can you please help in clarifying the following - > > Will the ds_select_dst() return a 'False' only after it has tried all the > destinations in the dispatcher table or just the one that gets selected in > the round-robin? > > If above is not true and the destination selected by ds_select_dst turns > out to be non reachable, will the above call return False for the > destination that it picks? In such a case can you guide me as to what I can > do so that it selects the next available destination in the dispatcher list? > > What is the default value of 'max_results' in the ds_select_dst() > signature and does it affect failover selection? > > Thanks in advance! > > -- > Thanks, > Gunjan > > > _______________________________________________ > Users mailing > [email protected]http://lists.opensips.org/cgi-bin/mailman/listinfo/users > > > -- Thanks, Gunjan
_______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
