Skip to content
Snippets Groups Projects
Commit 6368a9ad authored by Alexandre Savard's avatar Alexandre Savard
Browse files

[#3170] Add route set for invite and registration requests

parent 10c22dbe
No related branches found
No related tags found
No related merge requests found
...@@ -89,6 +89,7 @@ SIPAccount::SIPAccount (const AccountID& accountID) ...@@ -89,6 +89,7 @@ SIPAccount::SIPAccount (const AccountID& accountID)
, _publishedIpAddress ("") , _publishedIpAddress ("")
, _localPort (atoi (DEFAULT_SIP_PORT)) , _localPort (atoi (DEFAULT_SIP_PORT))
, _publishedPort (atoi (DEFAULT_SIP_PORT)) , _publishedPort (atoi (DEFAULT_SIP_PORT))
, _serviceRoute("")
, _tlsListenerPort (atoi (DEFAULT_SIP_TLS_PORT)) , _tlsListenerPort (atoi (DEFAULT_SIP_TLS_PORT))
, _transportType (PJSIP_TRANSPORT_UNSPECIFIED) , _transportType (PJSIP_TRANSPORT_UNSPECIFIED)
, _transport (NULL) , _transport (NULL)
......
...@@ -433,6 +433,10 @@ class SIPAccount : public Account ...@@ -433,6 +433,10 @@ class SIPAccount : public Account
*/ */
inline void setPublishedAddress(const std::string& publishedIpAddress) { _publishedIpAddress = publishedIpAddress; } inline void setPublishedAddress(const std::string& publishedIpAddress) { _publishedIpAddress = publishedIpAddress; }
inline std::string getServiceRoute(void) { return _serviceRoute; }
inline void setServiceRoute(std::string route) { _serviceRoute = route; }
/** /**
* Get the chosen transport type. * Get the chosen transport type.
* @return pjsip_transport_type_e Transport type chosen by the user for this account. * @return pjsip_transport_type_e Transport type chosen by the user for this account.
...@@ -576,6 +580,8 @@ class SIPAccount : public Account ...@@ -576,6 +580,8 @@ class SIPAccount : public Account
pj_uint16_t _localPort; pj_uint16_t _localPort;
pj_uint16_t _publishedPort; pj_uint16_t _publishedPort;
std::string _serviceRoute;
/** /**
* The global TLS listener port which can be configured through the IP2IP_PROFILE * The global TLS listener port which can be configured through the IP2IP_PROFILE
*/ */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment