[SR-Users] Help with routing block and Dispatcher Module
pablo rosales
pablo2412 at gmail.com
Fri Jun 10 03:39:05 CEST 2016
Hi everyone! I am a newbie with Kamailio.
I'm trying to connect a kamailio server to an asterisk gateway. We are
using basic Kamailio 4.4.x configuration file with mysql and rtpproxy
we are having same issues with dispatcher module. we can not call between
local subscribers.
Basically, If I call to a local subscriber, the module always execute the
route(DISPATCHER) code on the routing block, trying to send the call to my
gateway, but if I try to call to an external number, it works perfect. All
calls are being send to my gateway.
Here is my dispatcher code:
# Dispatch requests
route[DISPATCH] {
# round robin dispatching on gateways group '1'
if(!ds_select_dst("1", "4"))
{
send_reply("404", "No destination");
exit;
}
### xlog("L_DBG", "--- SCRIPT: going to <$ru> via <$du>\n");
xlog(" --- DISPATCH: going to <$ru> via <$du>n");
t_on_failure("RTF_DISPATCH");
return;
}
## Sample failure route
failure_route[RTF_DISPATCH] {
xlog(" --- DISPATCH: Starts RTF_DISPATCH \n");
if (t_is_canceled()) {
exit;
}
# next DST - only for 500 or local timeout
if (t_check_status("500")
or (t_branch_timeout() and !t_branch_replied()))
{
if(ds_next_dst())
{
t_on_failure("RTF_DISPATCH");
route(RELAY);
exit;
}
}
}
Can anybody help to see what I am doing wrong??
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20160609/7f508c1b/attachment.html>
More information about the sr-users
mailing list