Skip to content

Commit

Permalink
registrar: set server_id field for location record
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Mar 27, 2015
1 parent 67e40ec commit 5c817f8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/registrar/save.c
Expand Up @@ -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");
Expand Down Expand Up @@ -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 */
Expand Down

0 comments on commit 5c817f8

Please sign in to comment.