for example, allow_source_address() executes next function:
int match_addr_hash_table(struct addr_list** table, unsigned int
group,
ip_addr_t *addr, unsigned int port)
{
struct addr_list *np;
str addr_str;
avp_value_t val;
addr_str.s = (char*)addr->u.addr;
addr_str.len = 4;
for (np = table[perm_hash(addr_str)]; np != NULL; np =
np->next) {
if ( (np->grp == group)
&& ((np->port == 0) || (np->port ==
port))
&& ip_addr_cmp(&np->addr, addr)) {
if (tag_avp.n && np->tag.s) {
val.s = np->tag;
if (add_avp(tag_avp_type|AVP_VAL_STR, tag_avp, val)
!= 0) {
LM_ERR("setting of tag_avp failed\n");
return -1;
}
}
return 1;
}
}
return -1;
}
... and I see an avp being added over the tag_avp. Is it another
one?
Daniel
On 06/01/14 12:59, Kelvin Chua wrote:
checking the source code, looks like, it's not
being set at all on any of those functions
--
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda