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

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

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

revision 3138 by derek, Thu Jul 22 18:29:17 2004 UTC revision 3146 by derek, Sat Jul 24 00:26:47 2004 UTC
# Line 404  Line 404 
404              case INVITE:              case INVITE:
405              case CANCEL:              case CANCEL:
406              case REFER:              case REFER:
407                case BYE:
408                 if (mInviteSession == 0)                 if (mInviteSession == 0)
409                 {                 {
410                    //spurious                    //spurious
# Line 732  Line 733 
733  Dialog::makeResponse(SipMessage& response, const SipMessage& request, int code)  Dialog::makeResponse(SipMessage& response, const SipMessage& request, int code)
734  {  {
735     assert( code >= 100 );     assert( code >= 100 );
736       response.remove(h_Contacts);  
737     if (code < 300 && code > 100)     if (code < 300 && code > 100)
738     {     {
739        assert(request.isRequest());        assert(request.isRequest());
# Line 739  Line 741 
741               request.header(h_RequestLine).getMethod() == SUBSCRIBE ||               request.header(h_RequestLine).getMethod() == SUBSCRIBE ||
742               request.header(h_RequestLine).getMethod() == BYE ||               request.header(h_RequestLine).getMethod() == BYE ||
743               request.header(h_RequestLine).getMethod() == CANCEL ||               request.header(h_RequestLine).getMethod() == CANCEL ||
744               request.header(h_RequestLine).getMethod() == NOTIFY               request.header(h_RequestLine).getMethod() == REFER ||
745                 request.header(h_RequestLine).getMethod() == MESSAGE ||
746                 request.header(h_RequestLine).getMethod() == NOTIFY ||
747                 request.header(h_RequestLine).getMethod() == OPTIONS
748               );               );
749                
750        assert (request.header(h_RequestLine).getMethod() == CANCEL ||  // Contact header is not required for Requests that do not form a dialog        assert (request.header(h_RequestLine).getMethod() == CANCEL ||  // Contact header is not required for Requests that do not form a dialog

Legend:
Removed from v.3138  
changed lines
  Added in v.3146

webmaster AT resiprocate DOT org
ViewVC Help
Powered by ViewVC 1.1.27