Module: sip-router
Branch: master
Commit: f2a2c54faf21bde2e4418b2590458c009e7e8ba9
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=f2a2c54…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Mon Jun 1 20:36:07 2009 +0300
pv: parse K-style AVP aliases
---
modules_k/pv/pv_core.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/modules_k/pv/pv_core.c b/modules_k/pv/pv_core.c
index 9103d81..87b83fe 100644
--- a/modules_k/pv/pv_core.c
+++ b/modules_k/pv/pv_core.c
@@ -2062,7 +2062,6 @@ int pv_parse_avp_name(pv_spec_p sp, str *in)
char *p;
char *s;
pv_spec_p nsp = 0;
- int avp_index;
if(in==NULL || in->s==NULL || sp==NULL)
return -1;
@@ -2089,9 +2088,8 @@ int pv_parse_avp_name(pv_spec_p sp, str *in)
return 0;
}
/*LM_DBG("static name [%.*s]\n", in->len, in->s);*/
- avp_index = 0;
- if(parse_avp_spec(in, &sp->pvp.pvn.u.isname.type,
- &sp->pvp.pvn.u.isname.name, &avp_index)!=0)
+ if(km_parse_avp_spec(in, &sp->pvp.pvn.u.isname.type,
+ &sp->pvp.pvn.u.isname.name)!=0)
{
LM_ERR("bad avp name [%.*s]\n", in->len, in->s);
return -1;