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: <script>:
Request coming from SCloud
Aug 15 11:24:28 PrxyDev /usr/sbin/kamailio[2818]: ERROR: <script>:
Checking grp_internal, having: <null>
"""
I have in dispatcher set:
modparam("dispatcher", "grp_avp", "$avp(dsgrp)")
and I am loading the rules from file.
I should mention that this block was working fine before upgrade.
Am I doing something wrong?
Thanks in advance!
DanB
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users