[sr-dev] git:master: We need to parse all headers here. Otherwise, the Record-Route-Headers may be incomplete.
Carsten Bock
carsten at bock.info
Wed Jan 6 16:40:47 CET 2010
Module: sip-router
Branch: master
Commit: 9efc2f5f5195bbb8321e0e1a59d028e3c3358fb2
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=9efc2f5f5195bbb8321e0e1a59d028e3c3358fb2
Author: Carsten Bock <lists at bock.info>
Committer: Carsten Bock <lists at bock.info>
Date: Wed Jan 6 16:38:56 2010 +0100
We need to parse all headers here. Otherwise, the Record-Route-Headers may be incomplete.
---
modules_k/dialog/dlg_handlers.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules_k/dialog/dlg_handlers.c b/modules_k/dialog/dlg_handlers.c
index 491a1f1..9b10614 100644
--- a/modules_k/dialog/dlg_handlers.c
+++ b/modules_k/dialog/dlg_handlers.c
@@ -226,7 +226,7 @@ int populate_leg_info( struct dlg_cell *dlg, struct sip_msg *msg,
contact = ((contact_body_t *)msg->contact->parsed)->contacts->uri;
/* extract the RR parts */
- if(!msg->record_route && (parse_headers(msg,HDR_RECORDROUTE_F,0)<0) ){
+ if(!msg->record_route && (parse_headers(msg,HDR_EOH_F,0)<0) ){
LM_ERR("failed to parse record route header\n");
goto error0;
}
More information about the sr-dev
mailing list