From cerien.jean@gmail.com Wed May 24 21:35:44 2017 From: Jean =?utf-8?q?C=C3=A9rien?= To: sr-users@lists.kamailio.org Subject: [SR-Users] Dispatcher - no destination sets Date: Wed, 24 May 2017 15:35:37 -0400 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1995797839==" --===============1995797839== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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/d= ispatcher.cfg ) 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: