mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 11:58:52 +00:00
res_pjsip_session.c: Fix build when TEST_FRAMEWORK is not defined
Change-Id: Id4852c26e9c412af8e37b5dd3c15da9453ad3276
This commit is contained in:
committed by
George Joseph
parent
83140c9fed
commit
6f32c254be
@@ -2951,9 +2951,11 @@ static void session_destructor(void *obj)
|
|||||||
struct ast_sip_session *session = obj;
|
struct ast_sip_session *session = obj;
|
||||||
struct ast_sip_session_delayed_request *delay;
|
struct ast_sip_session_delayed_request *delay;
|
||||||
|
|
||||||
|
#ifdef TEST_FRAMEWORK
|
||||||
/* We dup the endpoint ID in case the endpoint gets freed out from under us */
|
/* We dup the endpoint ID in case the endpoint gets freed out from under us */
|
||||||
const char *endpoint_name = session->endpoint ?
|
const char *endpoint_name = session->endpoint ?
|
||||||
ast_strdupa(ast_sorcery_object_get_id(session->endpoint)) : "<none>";
|
ast_strdupa(ast_sorcery_object_get_id(session->endpoint)) : "<none>";
|
||||||
|
#endif
|
||||||
|
|
||||||
ast_debug(3, "%s: Destroying SIP session\n", ast_sip_session_get_name(session));
|
ast_debug(3, "%s: Destroying SIP session\n", ast_sip_session_get_name(session));
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user