<p>Joshua Colp <strong>merged</strong> this change.</p><p><a href="https://gerrit.asterisk.org/7292">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  Richard Mudgett: Looks good to me, but someone else must approve
  Joshua Colp: Looks good to me, approved; Approved for Submit

</div><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;">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: merged </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>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Richard Mudgett <rmudgett@digium.com> </div>