[#2623] Add interface name in account

This commit is contained in:
Alexandre Savard
2010-01-04 11:22:58 -05:00
parent eaa5b37197
commit 2cbd678837

View File

@ -196,6 +196,17 @@ class SIPAccount : public Account
*/
std::string getContactHeader(const std::string& address, const std::string& port);
/**
* Set the interface name on which this account is bound, "default" means
* that the account is bound to the ANY interafec (0.0.0.0). This method should be
* when binding the account to a new sip transport only.
*/
inline voidsetLocalInterface(const std::string interface&) {_interface = interface;}
/**
* Get the local interface name on which this account is bound.
*/
inline std::string getLocalInterface(void) { return _interface; }
/**
* Get a flag which determine the usage in sip headers of either the local
@ -328,6 +339,9 @@ class SIPAccount : public Account
// Network settings
std::string _registrationExpire;
// interface name on which this account is bound
std::string _interface;
// Flag which determine if _localIpAddress or _publishedIpAddress is used in
// sip headers
bool _publishedSameasLocal;