Merge "res_pjsip: Only check transaction on transaction state events."

This commit is contained in:
zuul
2016-05-24 19:09:13 -05:00
committed by Gerrit Code Review

View File

@@ -3513,6 +3513,7 @@ static void send_request_cb(void *token, pjsip_event *e)
pjsip_rx_data *challenge;
struct ast_sip_supplement *supplement;
if (e->type == PJSIP_EVENT_TSX_STATE) {
switch(e->body.tsx_state.type) {
case PJSIP_EVENT_TRANSPORT_ERROR:
case PJSIP_EVENT_TIMER:
@@ -3554,6 +3555,7 @@ static void send_request_cb(void *token, pjsip_event *e)
ast_log(LOG_ERROR, "Unexpected PJSIP event %u\n", e->body.tsx_state.type);
break;
}
}
if (req_data->callback) {
req_data->callback(req_data->token, e);