From 5c817f8997cea3345f053129aa8945968b8b17bd Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Fri, 27 Mar 2015 15:46:58 +0100 Subject: [PATCH] registrar: set server_id field for location record --- modules/registrar/save.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/registrar/save.c b/modules/registrar/save.c index 1391647815f..ae311e8d2f1 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 */