Changeset 575 for pjproject


Ignore:
Timestamp:
Jul 2, 2006 2:26:43 PM (18 years ago)
Author:
bennylp
Message:

Fixed minor bug in SIP transaction: transaction should verify that the method specified in CSeq header in the incoming request matches the method of the request (otherwise it will trigger assertion failure in dialog later)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip/sip_transaction.c

    r563 r575  
    12311231        return PJSIP_EMISSINGHDR; 
    12321232 
     1233    /* Check that method in CSeq header match request method. 
     1234     * Reference: PROTOS #1922 
     1235     */ 
     1236    if (pjsip_method_cmp(&msg->line.req.method,  
     1237                         &rdata->msg_info.cseq->method) != 0) 
     1238    { 
     1239        PJ_LOG(4,(THIS_FILE, "Error: CSeq header contains different " 
     1240                             "method than the request line")); 
     1241        return PJSIP_EINVALIDHDR; 
     1242    } 
    12331243 
    12341244    /*  
Note: See TracChangeset for help on using the changeset viewer.