<p>Kirsty Tyerman has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/10855">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">pbx_dundi: added support for PJSIP in dundi mappings<br><br>ASTERISK-28233<br>Reported-by: Kirsty Tyerman<br><br>Change-Id: Icfd2d7637e25c5c0a5aa1f3254bab641b1bfe133<br>---<br>M include/asterisk/dundi.h<br>M pbx/dundi-parser.c<br>M pbx/pbx_dundi.c<br>3 files changed, 9 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/55/10855/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/include/asterisk/dundi.h b/include/asterisk/dundi.h</span><br><span>index 3f73c19..ed12001 100644</span><br><span>--- a/include/asterisk/dundi.h</span><br><span>+++ b/include/asterisk/dundi.h</span><br><span>@@ -59,6 +59,8 @@</span><br><span>      DUNDI_PROTO_SIP  = 2,</span><br><span>        /*! ITU H.323 */</span><br><span>     DUNDI_PROTO_H323 = 3,</span><br><span style="color: hsl(120, 100%, 40%);">+ /*! PJSIP */</span><br><span style="color: hsl(120, 100%, 40%);">+  DUNDI_PROTO_PJSIP = 4,</span><br><span> };</span><br><span> </span><br><span> enum {</span><br><span>diff --git a/pbx/dundi-parser.c b/pbx/dundi-parser.c</span><br><span>index 5e53f81..ed8c5b7 100644</span><br><span>--- a/pbx/dundi-parser.c</span><br><span>+++ b/pbx/dundi-parser.c</span><br><span>@@ -235,6 +235,9 @@</span><br><span>        case DUNDI_PROTO_H323:</span><br><span>               strncpy(buf, "H.323", bufsiz - 1);</span><br><span>                 break;</span><br><span style="color: hsl(120, 100%, 40%);">+        case DUNDI_PROTO_PJSIP:</span><br><span style="color: hsl(120, 100%, 40%);">+               strncpy(buf, "PJSIP", bufsiz - 1);</span><br><span style="color: hsl(120, 100%, 40%);">+          break;</span><br><span>       default:</span><br><span>             snprintf(buf, bufsiz, "Unknown Proto(%d)", proto);</span><br><span>         }</span><br><span>diff --git a/pbx/pbx_dundi.c b/pbx/pbx_dundi.c</span><br><span>index 6b32a31..ddd20eb 100644</span><br><span>--- a/pbx/pbx_dundi.c</span><br><span>+++ b/pbx/pbx_dundi.c</span><br><span>@@ -387,6 +387,8 @@</span><br><span>             return "SIP";</span><br><span>      case DUNDI_PROTO_H323:</span><br><span>               return "H323";</span><br><span style="color: hsl(120, 100%, 40%);">+      case DUNDI_PROTO_PJSIP:</span><br><span style="color: hsl(120, 100%, 40%);">+               return "PJSIP";</span><br><span>    default:</span><br><span>             return "Unknown";</span><br><span>  }</span><br><span>@@ -400,6 +402,8 @@</span><br><span>              return DUNDI_PROTO_SIP;</span><br><span>      else if (!strcasecmp(str, "H323"))</span><br><span>                 return DUNDI_PROTO_H323;</span><br><span style="color: hsl(120, 100%, 40%);">+      else if (!strcasecmp(str, "PJSIP"))</span><br><span style="color: hsl(120, 100%, 40%);">+         return DUNDI_PROTO_PJSIP;</span><br><span>    else</span><br><span>                 return -1;</span><br><span> }</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/10855">change 10855</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/10855"/><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: Icfd2d7637e25c5c0a5aa1f3254bab641b1bfe133 </div>
<div style="display:none"> Gerrit-Change-Number: 10855 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Kirsty Tyerman <kirsty.tyerman@boeing.com> </div>