From jmr.richardson@gmail.com Mon Jun 28 23:39:37 2010 From: JR Richardson To: sr-users@lists.kamailio.org Subject: [SR-Users] Dispatcher module problem or feature? Date: Mon, 28 Jun 2010 16:39:36 -0500 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1347897550==" --===============1347897550== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Hi All, I'm testing dispatcher functions with kamailio 3.0 and using database to load destination address. The problem I am seeing is the 1'st destination address in a group is not being used, the dispatcher always starts at the second database entry. For instance, if I have 2 destination addresses listed in the database, sip:10.10.14.101:5060 and sip:10.10.14.102:5060, only sip:10.10.14.102:5060 will receive calls. But if I list .101 in the database twice, then I will get proper distribution. So here is my setup and some debug traffic: sipp><10.10.14.101, 10.10.14.102, 10.10.14.101 This will send calls to both .101 and 102 evenly. sip-router2:~# kamctl fifo ds_list SET:: 1 URI:: sip:10.10.14.101:5060 flag=A URI:: sip:10.10.14.102:5060 flag=A URI:: sip:10.10.14.101:5060 flag=A first call to dispatcher: 0(4780) DEBUG: dispatcher [dispatch.c:1111]: set [1] 0(4780) DEBUG: dispatcher [dispatch.c:1185]: alg hash [0] 0(4780) DEBUG: dispatcher [dispatch.c:1223]: selected [4-1/0] 0(4780) DEBUG: dispatcher [dispatch.c:1257]: using entry [1/1] 0(4780) INFO: