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

git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@943 74dad513-b988-da41-8d7b-12977e46ad98
This commit is contained in:
Benny Prijono 2007-02-13 18:51:44 +00:00
parent f5443b2e7e
commit 53932c05aa
1 changed files with 7 additions and 4 deletions

View File

@ -472,11 +472,14 @@ static pj_bool_t on_rx_request( pjsip_rx_data *rdata )
*/
if (rdata->msg_info.msg->line.req.method.id != PJSIP_INVITE_METHOD) {
pj_str_t reason = pj_str("Simple UA unable to handle this request");
if (rdata->msg_info.msg->line.req.method.id != PJSIP_ACK_METHOD) {
pj_str_t reason = pj_str("Simple UA unable to handle "
"this request");
pjsip_endpt_respond_stateless( g_endpt, rdata,
500, &reason,
NULL, NULL);
pjsip_endpt_respond_stateless( g_endpt, rdata,
500, &reason,
NULL, NULL);
}
return PJ_TRUE;
}