Changeset 943 for pjproject


Ignore:
Timestamp:
Feb 13, 2007 6:51:44 PM (18 years ago)
Author:
bennylp
Message:

Fixed bug in simpleua sample: shouldn't respond to ACK request!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/samples/simpleua.c

    r911 r943  
    473473    if (rdata->msg_info.msg->line.req.method.id != PJSIP_INVITE_METHOD) { 
    474474 
    475         pj_str_t reason = pj_str("Simple UA unable to handle this request"); 
    476  
    477         pjsip_endpt_respond_stateless( g_endpt, rdata,  
    478                                        500, &reason, 
    479                                        NULL, NULL); 
     475        if (rdata->msg_info.msg->line.req.method.id != PJSIP_ACK_METHOD) { 
     476            pj_str_t reason = pj_str("Simple UA unable to handle " 
     477                                     "this request"); 
     478 
     479            pjsip_endpt_respond_stateless( g_endpt, rdata,  
     480                                           500, &reason, 
     481                                           NULL, NULL); 
     482        } 
    480483        return PJ_TRUE; 
    481484    } 
Note: See TracChangeset for help on using the changeset viewer.