Fixes #711 in private. We now check RTP ports before allocation, to ensure they're not already in use.

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3225 19bc5d8c-e614-43d4-8b26-e1612bc8e597
This commit is contained in:
Kurtis Heimerl
2012-02-24 07:59:11 +00:00
parent 56dd0dd9df
commit 3f264a9e86
5 changed files with 33 additions and 4 deletions

View File

@@ -121,6 +121,9 @@ SIPEngine::SIPEngine(const char* proxy, const char* IMSI)
mMyTag=tmp;
// set our CSeq in case we need one
mCSeq = random()%600;
//to make sure noise doesn't magically equal a valid RTP port
mRTPPort = 0;
}

View File

@@ -151,6 +151,9 @@ public:
/** Return the current SIP call state. */
SIPState state() const { return mState; }
/** Return the RTP Port being used. */
short RTPPort() const { return mRTPPort; }
/** Return if the call has successfully finished */
bool finished() const { return (mState==Cleared || mState==Canceled); }