[OpenSIPS-Users] load_balance and 483 error.
David
dave.nwk at gmail.com
Wed Jul 15 22:20:40 CEST 2009
Hmm.. I'm still getting the 483 looping error.
I've set $ru to "sip:" + $tU + "@" + $dd + ":" + $dp, but this should just do
the same as setting rewritehost to $du, correct?
Putting rewritehost(hostname) at the top of the route puts the call through how
I want, but I don't have the $dd, $du, etc. variables until after load_balance,
is there a way to get them to that first t_relay?
I hope that makes sense..
Here's the routing logic, thanks again for any help.
route{
if (!mf_process_maxfwd_header("10")) {
sl_send_reply("483","looping");
exit;
}
if (!has_totag()) {
# initial request
record_route();
} else {
# sequential request -> obey Route indication
loose_route();
t_relay();
exit;
}
# handle cancel and re-transmissions
if ( !t_check_trans() ) {
if (is_method("CANCEL"))
exit;
}
# from now on we have only the initial requests
if (!is_method("INVITE")) {
send_reply("405","Method Not Allowed");
exit;
}
else {
load_balance("0","pstn");
}
$ru = "sip:" + $tU + "@" + $dd + ":" + $dp;
if ($retcode<0) {
sl_send_reply("500","Service full");
exit;
}
xlog("Selected destination is: $du\n");
# send it out
if (!t_relay()) {
sl_reply_error();
}
}
More information about the Users
mailing list