mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 11:25:35 +00:00
res_pjsip: Create human friendly serializer names.
PJSIP name formats: pjsip/aor/<aor>-<seq> -- registrar thread pool serializer pjsip/default-<seq> -- default thread pool serializer pjsip/messaging -- messaging thread pool serializer pjsip/outreg/<registration>-<seq> -- outbound registration thread pool serializer pjsip/pubsub/<endpoint>-<seq> -- pubsub thread pool serializer pjsip/refer/<endpoint>-<seq> -- REFER thread pool serializer pjsip/session/<endpoint>-<seq> -- session thread pool serializer pjsip/websocket-<seq> -- websocket thread pool serializer Change-Id: Iff9df8da3ddae1132cb2ef65f64df0c465c5e084
This commit is contained in:
@@ -342,6 +342,7 @@ static int refer_progress_alloc(struct ast_sip_session *session, pjsip_rx_data *
|
||||
const pj_str_t str_true = { "true", 4 };
|
||||
pjsip_tx_data *tdata;
|
||||
pjsip_hdr hdr_list;
|
||||
char tps_name[AST_TASKPROCESSOR_MAX_NAME + 1];
|
||||
|
||||
*progress = NULL;
|
||||
|
||||
@@ -363,7 +364,11 @@ static int refer_progress_alloc(struct ast_sip_session *session, pjsip_rx_data *
|
||||
/* To prevent a potential deadlock we need the dialog so we can lock/unlock */
|
||||
(*progress)->dlg = session->inv_session->dlg;
|
||||
|
||||
if (!((*progress)->serializer = ast_sip_create_serializer())) {
|
||||
/* Create name with seq number appended. */
|
||||
ast_taskprocessor_build_name(tps_name, sizeof(tps_name), "pjsip/refer/%s",
|
||||
ast_sorcery_object_get_id(session->endpoint));
|
||||
|
||||
if (!((*progress)->serializer = ast_sip_create_serializer(tps_name))) {
|
||||
goto error;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user