[OpenSIPS-Users] Basic dynamic routing question
James Wiegand
originaljimdandy at gmail.com
Sat Jun 20 00:22:47 CEST 2009
Hi all,
I am trying to get dynamic routing working and can't seem to get any
traction on the problem
when I do a do_routing() call in the request loop nothing seems to
happen. I am at a loss troubleshooting this problem. How can you
tell what possible matches there are?
Routing setup I have includes the following items - OpenSIPS 1.5.1
table dr_rules:
ruleid groupid prefix timerec priority routeid gwlist description
1 1 870 20040101T000000 0 0 1 Default route
table dr_gateways:
gwid type address strip pri_prefix attrs description
1 10 XXX.XXX.XXX.XXX 0 NULL NULL Provider
route {
...
do_routing("1");
xlog("-----gw attr is $avp(s:dr_attrs)\n");
if(use_next_gw())
{
if (!t_relay())
{
sl_reply_error();
}
exit;
} else {
sl_send_reply("503", "No destination available");
exit;
}
}
More information about the Users
mailing list