Hello
I am working with Kamaiio 5.0 on the dispatcher, with the default
dispatcher.cfg file (
https://github.com/kamailio/kamailio/blob/master/src/modules/dispatcher/doc…
)
I've added via mysql a gateway:
mysql> select * from dispatcher \G;
*************************** 1. row ***************************
id: 1
setid: 1
destination: 192.168.2.20
flags: 0
priority: 0
attrs:
description: local gw
1 row in set (0.00 sec)
Kamctl sees it correctly:
kamctl dispatcher show
dispatcher gateways
+----+-------+--------------+-------+----------+-------+-------------+
| id | setid | destination | flags | priority | attrs | description |
+----+-------+--------------+-------+----------+-------+-------------+
| 1 | 1 | 192.168.2.20 | 0 | 0 | | local gw |
+----+-------+--------------+-------+----------+-------+-------------+
Here is the piece of cfg:
if(ds_list_exist(1)) {
xlog("L_INFO", "----------- data in set 1");
} else {
xlog("L_INFO", "----------- NO data in set 1");
}
if(!ds_select_dst("1", "4")) {
send_reply("404", "No destination");
exit;
}
Yet, when an INVITE arrives, I get the following errors:
DEBUG: dispatcher [dispatcher.c:876]: w_ds_list_exist(): --- Looking for
dispatcher set 1
DEBUG: dispatcher [dispatch.c:1314]: ds_list_exist(): -- Looking for set 1
INFO: dispatcher [dispatch.c:1320]: ds_list_exist(): destination set [1]
not found
INFO: <script>: ----------- NO data in set 1
ERROR: dispatcher [dispatch.c:1679]: ds_select_dst_limit(): no destination
sets
same result wether I state the dataset as 1 or "1" - Mysql table column
type is int(11).
What could be wrong ?
Thanks for the help
J.