[Asterisk-code-review] res_pjsip_session.c: Fix build when TEST_FRAMEWORK is not defined (asterisk[16])
Sean Bright
asteriskteam at digium.com
Tue Sep 15 16:16:10 CDT 2020
Sean Bright has uploaded this change for review. ( https://gerrit.asterisk.org/c/asterisk/+/14925 )
Change subject: res_pjsip_session.c: Fix build when TEST_FRAMEWORK is not defined
......................................................................
res_pjsip_session.c: Fix build when TEST_FRAMEWORK is not defined
Change-Id: Id4852c26e9c412af8e37b5dd3c15da9453ad3276
---
M res/res_pjsip_session.c
1 file changed, 2 insertions(+), 0 deletions(-)
git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/25/14925/1
diff --git a/res/res_pjsip_session.c b/res/res_pjsip_session.c
index 753e32e..19e0528 100644
--- a/res/res_pjsip_session.c
+++ b/res/res_pjsip_session.c
@@ -2933,9 +2933,11 @@
struct ast_sip_session *session = obj;
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 */
const char *endpoint_name = session->endpoint ?
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));
--
To view, visit https://gerrit.asterisk.org/c/asterisk/+/14925
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: 16
Gerrit-Change-Id: Id4852c26e9c412af8e37b5dd3c15da9453ad3276
Gerrit-Change-Number: 14925
Gerrit-PatchSet: 1
Gerrit-Owner: Sean Bright <sean.bright at gmail.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20200915/c8a11884/attachment.html>
More information about the asterisk-code-review
mailing list