Module: kamailio
Branch: master
Commit: 76d6d75a5f29c7154b3541d732b450c7ea618e5b
URL:
https://github.com/kamailio/kamailio/commit/76d6d75a5f29c7154b3541d732b450c…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2016-07-05T11:24:13+02:00
registrar: skip adding attributes to xavp for regisrered when match_action has bit 2 set
---
Modified: modules/registrar/lookup.c
---
Diff:
https://github.com/kamailio/kamailio/commit/76d6d75a5f29c7154b3541d732b450c…
Patch:
https://github.com/kamailio/kamailio/commit/76d6d75a5f29c7154b3541d732b450c…
---
diff --git a/modules/registrar/lookup.c b/modules/registrar/lookup.c
index 44e1e03..eabaf92 100644
--- a/modules/registrar/lookup.c
+++ b/modules/registrar/lookup.c
@@ -756,9 +756,11 @@ int registered4(struct sip_msg* _m, udomain_t* _d, str* _uri, int
match_flag,
memcmp(match_contact.s, ptr->c.s, match_contact.len)))
continue;
- xavp_rcd_helper(ptr);
+ if(!(match_action_flag & 2)) {
+ xavp_rcd_helper(ptr);
+ }
- if(ptr->xavp!=NULL && match_action_flag == 1) {
+ if((ptr->xavp!=NULL) && (match_action_flag & 1)) {
sr_xavp_t *xavp = xavp_clone_level_nodata(ptr->xavp);
if(xavp_add(xavp, NULL)<0) {
LM_ERR("error adding xavp for %.*s after successful match\n",