mirror of
https://github.com/RangeNetworks/openbts.git
synced 2025-11-03 13:23:16 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user