I figured it out. 

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

This work sometime
if ( uri=~"sip:92[1-9][0-...@.*" ) {
load_balance("27","white"); 
} 
if ( uri=~"sip:3392[1-9][0-...@.*" ) {
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.

_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to