Helo,destination has to be a full sip address, so you have to add 'sip:' in front of the ip addresses.Cheers,
DanielOn Wed, May 24, 2017 at 9:35 PM, Jean Cérien <cerien.jean@gmail.com> wrote:______________________________HelloI am working with Kamaiio 5.0 on the dispatcher, with the default dispatcher.cfg file ( https://github.com/kamailio/kamailio/blob/master/src/modul )es/dispatcher/doc/dispatcher. cfg I've added via mysql a gateway:mysql> select * from dispatcher \G;*************************** 1. row ***************************id: 1setid: 1destination: 192.168.2.20flags: 0priority: 0attrs:description: local gw1 row in set (0.00 sec)Kamctl sees it correctly:kamctl dispatcher showdispatcher 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 1DEBUG: dispatcher [dispatch.c:1314]: ds_list_exist(): -- Looking for set 1INFO: dispatcher [dispatch.c:1320]: ds_list_exist(): destination set [1] not foundINFO: <script>: ----------- NO data in set 1ERROR: dispatcher [dispatch.c:1679]: ds_select_dst_limit(): no destination setssame result wether I state the dataset as 1 or "1" - Mysql table column type is int(11).What could be wrong ?Thanks for the helpJ._________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
--Daniel-Constantin Mierla - http://www.asipto.com
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr- users