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:
parent
f5443b2e7e
commit
53932c05aa
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue