[OpenSIPS-Users] Load balancer retcode question on OpenSIPS 1.6.2

k1028 mrprotocols at gmail.com
Wed Jul 28 21:32:32 CEST 2010


I figured it out. 

This work all the time
if ( uri=~"sip:92[1-9][0-9]+ at .*" ) {
load_balance("27","white"); 
} else if ( uri=~"sip:3392[1-9][0-9]+ at .*" ) {
load_balance("27","grey"); #
}
if ( $retcode < 0 ) {
sl_send_reply("500","Service full");
exit;
}

This work sometime
if ( uri=~"sip:92[1-9][0-9]+ at .*" ) {
load_balance("27","white"); 
} 
if ( uri=~"sip:3392[1-9][0-9]+ at .*" ) {
load_balance("27","grey"); #
}
if ( $retcode < 0 ) {
sl_send_reply("500","Service full");
exit;
}

-- 
View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/Load-balancer-retcode-question-on-OpenSIPS-1-6-2-tp5346088p5346201.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.



More information about the Users mailing list