/[resiprocate]/main/resip/dum/InviteSession.cxx
ViewVC logotype

Diff of /main/resip/dum/InviteSession.cxx

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

revision 3101 by derek, Wed Jul 14 19:53:49 2004 UTC revision 3112 by derek, Thu Jul 15 21:36:48 2004 UTC
# Line 282  Line 282 
282  }  }
283    
284  SipMessage&  SipMessage&
285    InviteSession::makeRefer(const NameAddr& referTo, InviteSessionHandle sessionToReplace)
286    {
287       if (!sessionToReplace.isValid())
288       {
289          throw new UsageUseException("Attempted to make a refer w/ and invalid replacement target", __FILE__, __LINE__);
290       }
291      
292       mDialog.makeRequest(mLastRequest, REFER);
293       mLastRequest.header(h_ReferTo) = referTo;
294       CallId replaces;
295       DialogId id = sessionToReplace->mDialog.getId();  
296       replaces.value() = id.getCallId();
297       replaces.param(p_toTag) = id.getRemoteTag();
298       replaces.param(p_fromTag) = id.getLocalTag();
299    
300       mLastRequest.header(h_ReferTo).uri().embedded().header(h_Replaces) = replaces;
301       return mLastRequest;
302    }
303    
304    SipMessage&
305  InviteSession::end()  InviteSession::end()
306  {  {
307     InfoLog ( << "InviteSession::end, state: " << mState);       InfoLog ( << "InviteSession::end, state: " << mState);  

Legend:
Removed from v.3101  
changed lines
  Added in v.3112

webmaster AT resiprocate DOT org
ViewVC Help
Powered by ViewVC 1.1.27