mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-20 08:40:16 +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;
|
pjsip_rx_data *challenge;
|
||||||
struct ast_sip_supplement *supplement;
|
struct ast_sip_supplement *supplement;
|
||||||
|
|
||||||
|
if (e->type == PJSIP_EVENT_TSX_STATE) {
|
||||||
switch(e->body.tsx_state.type) {
|
switch(e->body.tsx_state.type) {
|
||||||
case PJSIP_EVENT_TRANSPORT_ERROR:
|
case PJSIP_EVENT_TRANSPORT_ERROR:
|
||||||
case PJSIP_EVENT_TIMER:
|
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);
|
ast_log(LOG_ERROR, "Unexpected PJSIP event %u\n", e->body.tsx_state.type);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (req_data->callback) {
|
if (req_data->callback) {
|
||||||
req_data->callback(req_data->token, e);
|
req_data->callback(req_data->token, e);
|
||||||
|
|||||||
Reference in New Issue
Block a user