<p>Guido Falsi has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/16514">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">Resources/res_rtp_asterisk: Fix build failure due to missing symbols when HAVE_PJPROJECT is false<br><br>Some code has been aded referencing symbols defined in a block<br>protected by #ifdef HAVE_PJPROJECT. Protect those code parts in<br><br>ASTERISK-29660<br><br>Change-Id: Ib18d4392d51ac80ca5481dabf6e498a4e3e49e6f<br>---<br>M res/res_rtp_asterisk.c<br>1 file changed, 4 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/14/16514/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/res/res_rtp_asterisk.c b/res/res_rtp_asterisk.c</span><br><span>index 6da4824..5bb6e2a 100644</span><br><span>--- a/res/res_rtp_asterisk.c</span><br><span>+++ b/res/res_rtp_asterisk.c</span><br><span>@@ -655,8 +655,10 @@</span><br><span> </span><br><span> static int __rtp_sendto(struct ast_rtp_instance *instance, void *buf, size_t size, int flags, struct ast_sockaddr *sa, int rtcp, int *via_ice, int use_srtp);</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+#ifdef HAVE_PJPROJECT</span><br><span> static void stunaddr_resolve_callback(const struct ast_dns_query *query);</span><br><span> static int store_stunaddr_resolved(const struct ast_dns_query *query);</span><br><span style="color: hsl(120, 100%, 40%);">+#endif</span><br><span> </span><br><span> #if defined(HAVE_OPENSSL) && (OPENSSL_VERSION_NUMBER >= 0x10001000L) && !defined(OPENSSL_NO_SRTP)</span><br><span> static int dtls_bio_new(BIO *bio)</span><br><span>@@ -9026,6 +9028,7 @@</span><br><span> return 0;</span><br><span> }</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+#ifdef HAVE_PJPROJECT</span><br><span> static void stunaddr_resolve_callback(const struct ast_dns_query *query)</span><br><span> {</span><br><span> const int lowest_ttl = ast_dns_result_get_lowest_ttl(ast_dns_query_get_result(query));</span><br><span>@@ -9091,6 +9094,7 @@</span><br><span> memset(&stunaddr, 0, sizeof(stunaddr));</span><br><span> ast_rwlock_unlock(&stunaddr_lock);</span><br><span> }</span><br><span style="color: hsl(120, 100%, 40%);">+#endif</span><br><span> </span><br><span> #if defined(HAVE_OPENSSL) && (OPENSSL_VERSION_NUMBER >= 0x10001000L) && !defined(OPENSSL_NO_SRTP)</span><br><span> /*! \pre instance is locked */</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/16514">change 16514</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/c/asterisk/+/16514"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 19 </div>
<div style="display:none"> Gerrit-Change-Id: Ib18d4392d51ac80ca5481dabf6e498a4e3e49e6f </div>
<div style="display:none"> Gerrit-Change-Number: 16514 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Guido Falsi <madpilot@freebsd.org> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>