<p>Corey Farrell has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/7292">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">res_pjsip: Fix warning by deferring implicit type cast.<br><br>Mac doesn't like the comparison of -1 to an enum, so store the result of<br>ast_sip_str_to_dtmf to an int so we can check for the negative return<br>value. ast_sip_str_to_dtmf returns an int so this is only delaying the<br>implicit type cast.<br><br>Change-Id: I0c262c1719ee951aae1f437d733a301cf5f8ad29<br>---<br>M res/res_pjsip/pjsip_configuration.c<br>1 file changed, 1 insertion(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/92/7292/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/res/res_pjsip/pjsip_configuration.c b/res/res_pjsip/pjsip_configuration.c<br>index 168d869..e63e158 100644<br>--- a/res/res_pjsip/pjsip_configuration.c<br>+++ b/res/res_pjsip/pjsip_configuration.c<br>@@ -366,7 +366,7 @@<br> static int dtmf_handler(const struct aco_option *opt, struct ast_variable *var, void *obj)<br> {<br> struct ast_sip_endpoint *endpoint = obj;<br>- enum ast_sip_dtmf_mode dtmf = ast_sip_str_to_dtmf(var->value);<br>+ int dtmf = ast_sip_str_to_dtmf(var->value);<br> <br> if (dtmf == -1) {<br> return -1;<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/7292">change 7292</a>. To unsubscribe, 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/7292"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 15 </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I0c262c1719ee951aae1f437d733a301cf5f8ad29 </div>
<div style="display:none"> Gerrit-Change-Number: 7292 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Corey Farrell <git@cfware.com> </div>