mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-18 15:49:56 +00:00
Merge "res_pjsip: Only check transaction on transaction state events."
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user