From miconda@gmail.com Wed Aug 15 12:52:13 2012 From: Daniel-Constantin Mierla To: sr-users@lists.kamailio.org Subject: Re: [SR-Users] Dispatcher: ds_is_from_list does not longer populate grp_avp Date: Wed, 15 Aug 2012 12:52:04 +0200 Message-ID: <502B7F54.4010808@gmail.com> In-Reply-To: <502B7CA1.6080907@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1277936294==" --===============1277936294== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hello, right, the readme was mistaken. Probably grp_avp was used initially but=20 changed later because it messes up when ds_is_from_list() and=20 ds_select_*() are used for same requests. I committed an update to the readme. Cheers, Daniel On 8/15/12 12:40 PM, DanB wrote: > Daniel, > > My bad, I was reading through the lines :(. > > I now understand that setid_pvar is different than group pvar. I got=20 > the false understanding based on documentation saying: > """ > Parameter groupid is optional, when it is missing, then the matching=20 > will be done against all addresses in all groups. Upon a match, the=20 > 'grp_avp' will be set to groupid of matching address. > """ > > All clear now, thanks!!! > > DanB > > On 08/15/2012 11:41 AM, Daniel-Constantin Mierla wrote: >> Hello, >> >> there was no change in dispatcher module related to this function since >> 3.3.0. The value of the group id is set to the variable specified by the >> parameter setid_pvar: >> >> http://kamailio.org/docs/modules/stable/modules_k/dispatcher.html#id249580= 0=20 >> >> >> Very likely you are using the wrong variable which you set as grp_avp >> parameter, based your config snippets. >> >> Cheers, >> Daniel >> >> On 8/15/12 11:30 AM, DanB wrote: >>> Hey Guys, >>> >>> Something I noticed after upgrading Kamailio from 3.3.0 to 3.3.1. >>> >>> Having the following code: >>> """ >>> if ds_is_from_list() { >>> xlog("Request coming from SCloud"); >>> xlog("Checking grp_internal, having: $avp(s:dsgrp)"); >>> } >>> """ >>> >>> will produce the following output to syslog (dsgrp null instead of >>> group id): >>> """ >>> Aug 15 11:24:28 PrxyDev /usr/sbin/kamailio[2818]: ERROR: