From miconda@gmail.com Wed May 24 21:52:24 2017 From: Daniel-Constantin Mierla To: sr-users@lists.kamailio.org Subject: Re: [SR-Users] Dispatcher - no destination sets Date: Wed, 24 May 2017 21:52:18 +0200 Message-ID: In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1741482173==" --===============1741482173== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Helo, destination has to be a full sip address, so you have to add 'sip:' in front of the ip addresses. Cheers, Daniel On Wed, May 24, 2017 at 9:35 PM, Jean Cérien wrote: > > 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/dispatcher.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: