|
@@ -2273,6 +2273,7 @@ int ds_manage_routes(sip_msg_t *msg, ds_select_state_t *rstate)
|
|
}
|
|
}
|
|
/* max load exceeded per destination */
|
|
/* max load exceeded per destination */
|
|
if(rstate->alg == DS_ALG_CALLLOAD
|
|
if(rstate->alg == DS_ALG_CALLLOAD
|
|
|
|
+ && idx->dlist[i].attrs.maxload != 0
|
|
&& idx->dlist[i].dload >= idx->dlist[i].attrs.maxload) {
|
|
&& idx->dlist[i].dload >= idx->dlist[i].attrs.maxload) {
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|
|
@@ -2294,6 +2295,7 @@ int ds_manage_routes(sip_msg_t *msg, ds_select_state_t *rstate)
|
|
}
|
|
}
|
|
/* max load exceeded per destination */
|
|
/* max load exceeded per destination */
|
|
if(rstate->alg == DS_ALG_CALLLOAD
|
|
if(rstate->alg == DS_ALG_CALLLOAD
|
|
|
|
+ && idx->dlist[i].attrs.maxload != 0
|
|
&& idx->dlist[i].dload >= idx->dlist[i].attrs.maxload) {
|
|
&& idx->dlist[i].dload >= idx->dlist[i].attrs.maxload) {
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|