/[resiprocate]/main/sip/resiprocate/dum/ServerInviteSession.cxx
ViewVC logotype

Diff of /main/sip/resiprocate/dum/ServerInviteSession.cxx

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2996 by derek, Tue Jun 15 22:15:58 2004 UTC revision 2997 by derek, Wed Jun 16 01:08:25 2004 UTC
# Line 10  Line 10 
10    
11  using namespace resip;  using namespace resip;
12    
13    #define RESIPROCATE_SUBSYSTEM Subsystem::DUM
14    
15  ServerInviteSession::ServerInviteSession(DialogUsageManager& dum, Dialog& dialog, const SipMessage& request)  ServerInviteSession::ServerInviteSession(DialogUsageManager& dum, Dialog& dialog, const SipMessage& request)
16     : InviteSession(dum, dialog, Initial)     : InviteSession(dum, dialog, Initial)
17  {  {
# Line 26  Line 28 
28  SipMessage&  SipMessage&
29  ServerInviteSession::end()  ServerInviteSession::end()
30  {  {
31       InfoLog ( << "ServerInviteSession::end" );  
32     switch (mState)     switch (mState)
33     {     {
34        case Accepting:        case Accepting:
# Line 41  Line 44 
44  void  void
45  ServerInviteSession::send(SipMessage& msg)  ServerInviteSession::send(SipMessage& msg)
46  {  {
47       if (mState == Accepting || mState == Connected || mState == Terminated)
48       {
49          InviteSession::send(msg);
50          return;
51       }
52    
53     //!dcm! -- not considering prack, so offer/answer only happens in 2xx     //!dcm! -- not considering prack, so offer/answer only happens in 2xx
54     if(msg.isResponse())     if(msg.isResponse())
55     {     {
# Line 97  Line 106 
106     return mFinalResponse;     return mFinalResponse;
107  }  }
108    
   
   
109  void  void
110  ServerInviteSession::dispatch(const SipMessage& msg)  ServerInviteSession::dispatch(const SipMessage& msg)
111  {  {
# Line 117  Line 124 
124              {              {
125                 InviteSession::incomingSdp(msg, offans.second);                 InviteSession::incomingSdp(msg, offans.second);
126              }              }
127                mLastRequest.releaseContents();  //!dcm! -- not sure, but seems right
128              break;              break;
129           case Proceeding:           case Proceeding:
130              // !jf! consider UPDATE method              // !jf! consider UPDATE method
# Line 138  Line 146 
146     }     }
147     else     else
148     {     {
149        assert(0); //!dcm! -- throw, toss away, inform other endpoint?        InviteSession::dispatch(msg);
150     }     }
151  }  }
152    

Legend:
Removed from v.2996  
changed lines
  Added in v.2997

webmaster AT resiprocate DOT org
ViewVC Help
Powered by ViewVC 1.1.27