From danb.lists@gmail.com Wed Aug 15 12:40:41 2012 From: DanB 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:40:33 +0200 Message-ID: <502B7CA1.6080907@gmail.com> In-Reply-To: <502B6EE4.8090508@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2035531963==" --===============2035531963== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Daniel, My bad, I was reading through the lines :(. I now understand that setid_pvar is different than group pvar. I got the false understanding based on documentation saying: """ Parameter groupid is optional, when it is missing, then the matching will be done against all addresses in all groups. Upon a match, the '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#id2495800 > > 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: