[OpenSIPS-Users] Load balance,failed to remove from profile
Miha
miha at softnet.si
Mon Jun 24 15:54:37 CEST 2013
HI,
I need a little help regarding load_balance issue. I am doing
load_balance, for 408 responses I am doing again in failure_route as I
would like to implement callforward after some periad of time.
Fist time load_balance from route[] works like it should but when I am
doing it in failure_route I am getting this:
DBG:load_balancer:do_load_balance: found requested (0) resource test
DBG:load_balancer:do_load_balance: sequential call of LB - previous
selected dst is 1
DBG:load_balancer:do_load_balance: skipping destination
<sip:xxx.xxx.xxx.xxx:5060> (used=1 , disabled=0)
CRITICAL:load_balancer:get_dst_load: bug - cannot find request resource
in dst
DBG:load_balancer:do_load_balance: destination
<sip:xxx.xxx.xxx.xxx:5060> selected for LB set with free=0 (max=0)
ERROR:load_balancer:do_load_balance: failed to remove from profile
I tried with different resource and id group in failure_route as in
route[] but still the same.
not working:
failure_route[CFW_NR]
{
if(t_check_status("408")){
xlog("Zgodi se CFW_NR po $avp(cfw_nr_timeout) sekundah, cfwnr
stevilka: $avp(cfw_nr)");
$rU=$avp(cfw_nr);
route(number_translation_to_sbc);
if (!load_balance("2","test")) {
xlog("gre v !load_balance");
send_reply("503","Service Unavailable");
exit;
}
#route(from_sbc_slo);
}
}
works:
route[from_sbc_slo]{
xlog("from_sbc_slo load balancing");
if (!load_balance("1","tran")) {
xlog("gre v !load_balance");
send_reply("503","Service Unavailable");
exit;
}
xlog("doing load balancing");
route(group_calls);
t_relay();
exit;
}
id
<http://212.13.252.2/phpmyadmin/sql.php?db=opensips&table=load_balancer&sql_query=SELECT+%2A+FROM+%60load_balancer%60+ORDER+BY+%60load_balancer%60.%60id%60+ASC&token=c0371a75d6d4c9c17d156b486f075de6>
group_id
<http://212.13.252.2/phpmyadmin/sql.php?db=opensips&table=load_balancer&sql_query=SELECT+%2A+FROM+%60load_balancer%60+ORDER+BY+%60load_balancer%60.%60group_id%60+ASC&token=c0371a75d6d4c9c17d156b486f075de6>
dst_uri
<http://212.13.252.2/phpmyadmin/sql.php?db=opensips&table=load_balancer&sql_query=SELECT+%2A+FROM+%60load_balancer%60+ORDER+BY+%60load_balancer%60.%60dst_uri%60+ASC&token=c0371a75d6d4c9c17d156b486f075de6>
resources
<http://212.13.252.2/phpmyadmin/sql.php?db=opensips&table=load_balancer&sql_query=SELECT+%2A+FROM+%60load_balancer%60+ORDER+BY+%60load_balancer%60.%60resources%60+ASC&token=c0371a75d6d4c9c17d156b486f075de6>
probe_mode
<http://212.13.252.2/phpmyadmin/sql.php?db=opensips&table=load_balancer&sql_query=SELECT+%2A+FROM+%60load_balancer%60+ORDER+BY+%60load_balancer%60.%60probe_mode%60+ASC&token=c0371a75d6d4c9c17d156b486f075de6>
description
<http://212.13.252.2/phpmyadmin/sql.php?db=opensips&table=load_balancer&sql_query=SELECT+%2A+FROM+%60load_balancer%60+ORDER+BY+%60load_balancer%60.%60description%60+ASC&token=c0371a75d6d4c9c17d156b486f075de6>
Uredi
<http://212.13.252.2/phpmyadmin/tbl_change.php?db=opensips&table=load_balancer&where_clause=%60load_balancer%60.%60id%60+%3D+1&clause_is_unique=1&sql_query=SELECT+%2A+FROM+%60load_balancer%60&goto=sql.php&token=c0371a75d6d4c9c17d156b486f075de6>
Izbris(i
<http://212.13.252.2/phpmyadmin/sql.php?db=opensips&table=load_balancer&sql_query=DELETE+FROM+%60opensips%60.%60load_balancer%60+WHERE+%60load_balancer%60.%60id%60+%3D+1&zero_rows=Vrstica+je+izbrisana&goto=sql.php%3Fdb%3Dopensips%26table%3Dload_balancer%26sql_query%3DSELECT%2B%252A%2BFROM%2B%2560load_balancer%2560%26zero_rows%3DVrstica%2Bje%2Bizbrisana%26goto%3Dtbl_structure.php%26token%3Dc0371a75d6d4c9c17d156b486f075de6&token=c0371a75d6d4c9c17d156b486f075de6>
1 1 sip:xxx.xxx.xxx.xxx:5060 tran=20;test=30 2 FS
Uredi
<http://212.13.252.2/phpmyadmin/tbl_change.php?db=opensips&table=load_balancer&where_clause=%60load_balancer%60.%60id%60+%3D+2&clause_is_unique=1&sql_query=SELECT+%2A+FROM+%60load_balancer%60&goto=sql.php&token=c0371a75d6d4c9c17d156b486f075de6>
Izbris(i
<http://212.13.252.2/phpmyadmin/sql.php?db=opensips&table=load_balancer&sql_query=DELETE+FROM+%60opensips%60.%60load_balancer%60+WHERE+%60load_balancer%60.%60id%60+%3D+2&zero_rows=Vrstica+je+izbrisana&goto=sql.php%3Fdb%3Dopensips%26table%3Dload_balancer%26sql_query%3DSELECT%2B%252A%2BFROM%2B%2560load_balancer%2560%26zero_rows%3DVrstica%2Bje%2Bizbrisana%26goto%3Dtbl_structure.php%26token%3Dc0371a75d6d4c9c17d156b486f075de6&token=c0371a75d6d4c9c17d156b486f075de6>
2 1 sip:xxx.xxx.xxx.xxx:5060 tran=20 2 FS2
Uredi
<http://212.13.252.2/phpmyadmin/tbl_change.php?db=opensips&table=load_balancer&where_clause=%60load_balancer%60.%60id%60+%3D+3&clause_is_unique=1&sql_query=SELECT+%2A+FROM+%60load_balancer%60&goto=sql.php&token=c0371a75d6d4c9c17d156b486f075de6>
Izbris(i
<http://212.13.252.2/phpmyadmin/sql.php?db=opensips&table=load_balancer&sql_query=DELETE+FROM+%60opensips%60.%60load_balancer%60+WHERE+%60load_balancer%60.%60id%60+%3D+3&zero_rows=Vrstica+je+izbrisana&goto=sql.php%3Fdb%3Dopensips%26table%3Dload_balancer%26sql_query%3DSELECT%2B%252A%2BFROM%2B%2560load_balancer%2560%26zero_rows%3DVrstica%2Bje%2Bizbrisana%26goto%3Dtbl_structure.php%26token%3Dc0371a75d6d4c9c17d156b486f075de6&token=c0371a75d6d4c9c17d156b486f075de6>
3 2 sip:xxx.xxx.xxx.xxx2:5060 test=30 2 FS2 test
Uredi
<http://212.13.252.2/phpmyadmin/tbl_change.php?db=opensips&table=load_balancer&where_clause=%60load_balancer%60.%60id%60+%3D+4&clause_is_unique=1&sql_query=SELECT+%2A+FROM+%60load_balancer%60&goto=sql.php&token=c0371a75d6d4c9c17d156b486f075de6>
Izbris(i
<http://212.13.252.2/phpmyadmin/sql.php?db=opensips&table=load_balancer&sql_query=DELETE+FROM+%60opensips%60.%60load_balancer%60+WHERE+%60load_balancer%60.%60id%60+%3D+4&zero_rows=Vrstica+je+izbrisana&goto=sql.php%3Fdb%3Dopensips%26table%3Dload_balancer%26sql_query%3DSELECT%2B%252A%2BFROM%2B%2560load_balancer%2560%26zero_rows%3DVrstica%2Bje%2Bizbrisana%26goto%3Dtbl_structure.php%26token%3Dc0371a75d6d4c9c17d156b486f075de6&token=c0371a75d6d4c9c17d156b486f075de6>
4 2 sip:xxx.xxx.xxx.xxx:5060 test=20 2 test
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20130624/d84e2a72/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: b_edit.png
Type: image/png
Size: 451 bytes
Desc: not available
URL: <http://lists.opensips.org/pipermail/users/attachments/20130624/d84e2a72/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: b_drop.png
Type: image/png
Size: 311 bytes
Desc: not available
URL: <http://lists.opensips.org/pipermail/users/attachments/20130624/d84e2a72/attachment-0003.png>
More information about the Users
mailing list