Module: kamailio
Branch: master
Commit: 5c3b29f51d43e38bd10ecee913d387ffde7d9ee0
URL:
https://github.com/kamailio/kamailio/commit/5c3b29f51d43e38bd10ecee913d387f…
Author: jaybeepee <jason.penton(a)gmail.com>
Committer: jaybeepee <jason.penton(a)gmail.com>
Date: 2016-07-11T17:36:03+02:00
lib/ims: fixed parsing of multiple contact headers
---
Modified: lib/ims/ims_getters.c
---
Diff:
https://github.com/kamailio/kamailio/commit/5c3b29f51d43e38bd10ecee913d387f…
Patch:
https://github.com/kamailio/kamailio/commit/5c3b29f51d43e38bd10ecee913d387f…
---
diff --git a/lib/ims/ims_getters.c b/lib/ims/ims_getters.c
index 74e8180..7d25951 100644
--- a/lib/ims/ims_getters.c
+++ b/lib/ims/ims_getters.c
@@ -96,7 +96,7 @@ contact_body_t *cscf_parse_contacts(struct sip_msg *msg)
ptr = msg->contact;
while(ptr) {
if (ptr->type == HDR_CONTACT_T) {
- if (msg->contact->parsed==0){
+ if (ptr->parsed==0){
if (parse_contact(ptr)<0){
LM_DBG("error parsing contacts [%.*s]\n",
ptr->body.len,ptr->body.s);