Module: sip-router
Branch: 3.1
Commit: e7bc980b2d42a5f2a26111978e6c3bc21198d2ef
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=e7bc980…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Fri Nov 26 13:07:08 2010 +0100
avpops: use proper avp list for avp_print()
- reported by Alex Hermann - FS#104
(cherry picked from commit d8803270678b730a7f7352c90f475188fca50c2c)
---
modules/avpops/avpops_impl.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/avpops/avpops_impl.c b/modules/avpops/avpops_impl.c
index 38edc44..bf1e822 100644
--- a/modules/avpops/avpops_impl.c
+++ b/modules/avpops/avpops_impl.c
@@ -687,7 +687,7 @@ int ops_dbstore_avps (struct sip_msg* msg, struct fis_param *sp,
}
} else {
/* avp name is unknown -> go through all list */
- avp_list = get_avp_list(AVP_TRACK_FROM | AVP_CLASS_USER);
+ avp_list = get_avp_list(AVP_TRACK_FROM | AVP_CLASS_URI);
avp = avp_list;
for ( ; avp ; avp=avp->next )
@@ -784,7 +784,7 @@ int ops_delete_avp(struct sip_msg* msg, struct fis_param *ap)
} else {
/* avp name is not given - we have just flags */
/* -> go through all list */
- avp_list = get_avp_list(AVP_TRACK_FROM | AVP_CLASS_USER);
+ avp_list = get_avp_list(AVP_TRACK_FROM | AVP_CLASS_URI);
avp = avp_list;
for ( ; avp ; avp=avp_next )
@@ -1320,7 +1320,7 @@ int ops_print_avp(void)
str *name;
/* go through all list */
- avp_list = get_avp_list(AVP_TRACK_FROM | AVP_CLASS_USER);
+ avp_list = get_avp_list(AVP_TRACK_FROM | AVP_CLASS_URI);
avp = avp_list;
for ( ; avp ; avp=avp->next)