diff options
Diffstat (limited to 'res')
-rw-r--r-- | res/res_pjsip.c | 2 | ||||
-rw-r--r-- | res/res_pjsip/config_transport.c | 2 | ||||
-rw-r--r-- | res/res_pjsip_outbound_registration.c | 2 |
3 files changed, 5 insertions, 1 deletions
diff --git a/res/res_pjsip.c b/res/res_pjsip.c index e7c83d9d1..d9d841472 100644 --- a/res/res_pjsip.c +++ b/res/res_pjsip.c @@ -1290,6 +1290,8 @@ static int sip_get_tpselector_from_endpoint(const struct ast_sip_endpoint *endpo transport = ast_sorcery_retrieve_by_id(ast_sip_get_sorcery(), "transport", transport_name); if (!transport || !transport->state) { + ast_log(LOG_ERROR, "Unable to retrieve PJSIP transport '%s' for endpoint '%s'\n", + transport_name, ast_sorcery_object_get_id(endpoint)); return -1; } diff --git a/res/res_pjsip/config_transport.c b/res/res_pjsip/config_transport.c index 82a995cb6..cf0b5e878 100644 --- a/res/res_pjsip/config_transport.c +++ b/res/res_pjsip/config_transport.c @@ -309,7 +309,7 @@ int ast_sip_initialize_sorcery_transport(struct ast_sorcery *sorcery) { ast_sorcery_apply_default(sorcery, "transport", "config", "pjsip.conf,criteria=type=transport"); - if (ast_sorcery_object_register(sorcery, "transport", transport_alloc, NULL, transport_apply)) { + if (ast_sorcery_object_register_no_reload(sorcery, "transport", transport_alloc, NULL, transport_apply)) { return -1; } diff --git a/res/res_pjsip_outbound_registration.c b/res/res_pjsip_outbound_registration.c index 67e0ead33..166b55777 100644 --- a/res/res_pjsip_outbound_registration.c +++ b/res/res_pjsip_outbound_registration.c @@ -602,6 +602,8 @@ static int sip_outbound_registration_regc_alloc(void *data) RAII_VAR(struct ast_sip_transport *, transport, ast_sorcery_retrieve_by_id(ast_sip_get_sorcery(), "transport", registration->transport), ao2_cleanup); if (!transport || !transport->state) { + ast_log(LOG_ERROR, "Unable to retrieve PJSIP transport '%s' " + " for outbound registration", registration->transport); return -1; } |