Fixed bug: return proxy address when a line's domain is requested and there is no domain or registrar configured. This bug was introduced in SVN Rev. 4493.

git-svn-id: http://yate.null.ro/svn/yate/trunk@4546 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
marian 2011-08-18 11:29:54 +00:00
parent e6b65c4014
commit fe2891e3cc
1 changed files with 4 additions and 2 deletions

View File

@ -582,11 +582,13 @@ public:
{ return m_username; }
inline const String& getAuthName() const
{ return m_authname ? m_authname : m_username; }
inline const String& regDomain() const
{ return m_registrar ? m_registrar : m_transRemoteAddr; }
inline const String& domain() const
{ return m_domain ? m_domain : m_registrar; }
{ return m_domain ? m_domain : regDomain(); }
inline const char* domain(const char* defDomain) const
{ return m_domain ? m_domain.c_str() :
(TelEngine::null(defDomain) ? m_registrar.c_str() : defDomain); }
(TelEngine::null(defDomain) ? regDomain().c_str() : defDomain); }
inline bool valid() const
{ return m_valid; }
inline bool marked() const