<p>N A has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/19702">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">pbx_dundi: Add PJSIP support.<br><br>Adds PJSIP as a supported technology to DUNDi.<br><br>ASTERISK-28109 #close<br><br>Change-Id: I2e28e5a5d007bd49e3df113ad567b011103899bf<br>---<br>A doc/CHANGES-staging/dundi.txt<br>M include/asterisk/dundi.h<br>M pbx/dundi-parser.c<br>M pbx/pbx_dundi.c<br>4 files changed, 24 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/02/19702/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/doc/CHANGES-staging/dundi.txt b/doc/CHANGES-staging/dundi.txt</span><br><span>new file mode 100644</span><br><span>index 0000000..a3cba47</span><br><span>--- /dev/null</span><br><span>+++ b/doc/CHANGES-staging/dundi.txt</span><br><span>@@ -0,0 +1,3 @@</span><br><span style="color: hsl(120, 100%, 40%);">+Subject: DUNDi</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+DUNDi now supports chan_pjsip.</span><br><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 bbfc760..5be8f4c 100644</span><br><span>--- a/pbx/dundi-parser.c</span><br><span>+++ b/pbx/dundi-parser.c</span><br><span>@@ -236,6 +236,8 @@</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>         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 9c0f2fa..6cfb289 100644</span><br><span>--- a/pbx/pbx_dundi.c</span><br><span>+++ b/pbx/pbx_dundi.c</span><br><span>@@ -388,6 +388,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>@@ -401,6 +403,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/c/asterisk/+/19702">change 19702</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/+/19702"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I2e28e5a5d007bd49e3df113ad567b011103899bf </div>
<div style="display:none"> Gerrit-Change-Number: 19702 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: N A <asterisk@phreaknet.org> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>