[sr-dev] git:master:5c817f89: registrar: set server_id field for location record

Daniel-Constantin Mierla miconda at gmail.com
Fri Mar 27 16:20:55 CET 2015


Module: kamailio
Branch: master
Commit: 5c817f8997cea3345f053129aa8945968b8b17bd
URL: https://github.com/kamailio/kamailio/commit/5c817f8997cea3345f053129aa8945968b8b17bd

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2015-03-27T15:46:58+01:00

registrar: set server_id field for location record

---

Modified: modules/registrar/save.c

---

Diff:  https://github.com/kamailio/kamailio/commit/5c817f8997cea3345f053129aa8945968b8b17bd.diff
Patch: https://github.com/kamailio/kamailio/commit/5c817f8997cea3345f053129aa8945968b8b17bd.patch

---

diff --git a/modules/registrar/save.c b/modules/registrar/save.c
index 1391647..ae311e8 100644
--- a/modules/registrar/save.c
+++ b/modules/registrar/save.c
@@ -217,7 +217,8 @@ static inline int no_contacts(sip_msg_t *_m, udomain_t* _d, str* _a, str* _h)
 /*! \brief
  * Fills the common part (for all contacts) of the info structure
  */
-static inline ucontact_info_t* pack_ci( struct sip_msg* _m, contact_t* _c, unsigned int _e, unsigned int _f, int _use_regid)
+static inline ucontact_info_t* pack_ci( struct sip_msg* _m, contact_t* _c,
+		unsigned int _e, unsigned int _f, int _use_regid)
 {
 	static ucontact_info_t ci;
 	static str no_ua = str_init("n/a");
@@ -305,6 +306,8 @@ static inline ucontact_info_t* pack_ci( struct sip_msg* _m, contact_t* _c, unsig
 			ci.received = path_received;
 		}
 
+		ci.server_id = server_id;
+
 		allow_parsed = 0; /* not parsed yet */
 		received_found = 0; /* not found yet */
 		m = _m; /* remember the message */




More information about the sr-dev mailing list