/[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 6198 by sgodin, Mon May 8 20:00:25 2006 UTC revision 6209 by daniel, Fri May 12 00:31:05 2006 UTC
# Line 567  Line 567 
567        SharedPtr<SipMessage> refer(new SipMessage());        SharedPtr<SipMessage> refer(new SipMessage());
568        mDialog.makeRequest(*refer, REFER);        mDialog.makeRequest(*refer, REFER);
569        refer->header(h_ReferTo) = referTo;        refer->header(h_ReferTo) = referTo;
570        refer->header(h_ReferredBy) = mDialog.mLocalContact; // ?slg? is it ok to do this - should it be an option?        refer->header(h_ReferredBy) = mDialog.mLocalContact; //
571                                                               // !slg! is it ok to do this - should it be an option?
572        if (!referSub)        if (!referSub)
573        {        {
574           refer->header(h_ReferSub).value() = "false";           refer->header(h_ReferSub).value() = "false";
# Line 610  Line 610 
610        CallId replaces;        CallId replaces;
611        DialogId id = sessionToReplace->mDialog.getId();        DialogId id = sessionToReplace->mDialog.getId();
612        replaces.value() = id.getCallId();        replaces.value() = id.getCallId();
       if(dynamic_cast<ClientInviteSession*>(this))  
       {  
613           replaces.param(p_toTag) = id.getRemoteTag();           replaces.param(p_toTag) = id.getRemoteTag();
614           replaces.param(p_fromTag) = id.getLocalTag();           replaces.param(p_fromTag) = id.getLocalTag();
615        }  
       else  
       {  
          replaces.param(p_toTag) = id.getLocalTag();    
          replaces.param(p_fromTag) = id.getRemoteTag();  
       }  
616        refer->header(h_ReferTo).uri().embedded().header(h_Replaces) = replaces;        refer->header(h_ReferTo).uri().embedded().header(h_Replaces) = replaces;
617                
618        if (!referSub)        if (!referSub)

Legend:
Removed from v.6198  
changed lines
  Added in v.6209

webmaster AT resiprocate DOT org
ViewVC Help
Powered by ViewVC 1.1.27