From danb.lists@gmail.com Wed Aug 15 12:37:21 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:37:14 +0200 Message-ID: <502B7BDA.4090802@gmail.com> In-Reply-To: <502B6EE4.8090508@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0217544062==" --===============0217544062== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Hey Daniel, Thanks for so fast feedback. I have doublecked again the config: If it helps, here are my complete settings: """ # ----- dispatcher params ----- modparam("dispatcher", "list_file", "/etc/sbalancer/dispatcher.list") modparam("dispatcher", "flags", 2) modparam("dispatcher", "dst_avp", "$avp(dsdst)") modparam("dispatcher", "grp_avp", "$avp(dsgrp)") modparam("dispatcher", "cnt_avp", "$avp(dscnt)") modparam("dispatcher", "attrs_avp", "$avp(dsattrs)") modparam("dispatcher", "hash_pvar", "$avp(dshash)") modparam("dispatcher", "ds_ping_from", "sip:SBalancer(a)mydomain.com") modparam("dispatcher", "ds_ping_interval", 30) modparam("dispatcher", "ds_probing_threshhold", 3) modparam("dispatcher", "ds_ping_reply_codes", "class=2;code=403;code=488;class=3") modparam("dispatcher", "ds_probing_mode", 1) """ Calling the logging block happens right at beginning, so not possible to overwrite the avp. """ request_route { #check antiflood before anything route(ANTIFLOOD); # Detect if requests are from internal network if ds_is_from_list() { xlog("Request coming from SCloud"); $avp(s:authType) = "INTERNAL"; $avp(s:authUser) = $hdr(X-AuthUser); xlog("Checking grp_internal, having: $avp(dsgrp)"); } """ Result the same ( I am sure ds_is_from_list matches since I get the first xlog correctly): """ Aug 15 12:36:07 PrxyDev /usr/sbin/kamailio[2973]: ERROR: