pjsip: Added "reg_server" to contacts.

If the Asterisk system name is set in asterisk.conf, it will be stored
into the "reg_server" field in the ps_contacts table to facilitate
multi-server setups.

ASTERISK-25931

Change-Id: Ia8f6bd2267809c78753b52bcf21835b9b59f4cb8
This commit is contained in:
Alexei Gradinari
2016-04-15 15:26:15 -04:00
committed by Joshua Colp
parent 69ced86c6c
commit 3cb8934de0
6 changed files with 56 additions and 0 deletions

View File

@@ -248,6 +248,8 @@ struct ast_sip_contact {
struct ast_sip_endpoint *endpoint;
/*! The name of the aor this contact belongs to */
char *aor;
/*! Asterisk Server name */
AST_STRING_FIELD_EXTENDED(reg_server);
};
#define CONTACT_STATUS "contact_status"