[sr-dev] git:master: registrar: Prevent incorrect application of path when forwarding a register
Hugh Waite
hugh.waite at acision.com
Wed Oct 29 18:22:55 CET 2014
Module: sip-router
Branch: master
Commit: 61a1eee4fe2b7e3a7c6a8f82c86ac52957439053
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=61a1eee4fe2b7e3a7c6a8f82c86ac52957439053
Author: Hugh Waite <hugh.waite at acision.com>
Committer: Hugh Waite <hugh.waite at acision.com>
Date: Wed Oct 29 16:18:28 2014 +0000
registrar: Prevent incorrect application of path when forwarding a register
- Reset the internal path pointer after a save() to prevent it being added
as a Route: header, e.g. when running t_replicate()
---
modules/registrar/save.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/modules/registrar/save.c b/modules/registrar/save.c
index 794a593..89a97f6 100644
--- a/modules/registrar/save.c
+++ b/modules/registrar/save.c
@@ -991,6 +991,9 @@ int save(struct sip_msg* _m, udomain_t* _d, int _cflags, str *_uri)
&& !is_cflag_set(REG_SAVE_NORPL_FL) && (reg_send_reply(_m) < 0))
return -1;
+ if (path_enabled && path_mode != PATH_MODE_OFF) {
+ reset_path_vector(_m);
+ }
return ret;
error:
update_stat(rejected_registrations, 1);
More information about the sr-dev
mailing list