[Asterisk-code-review] pbx dundi: added support for PJSIP in dundi mappings (asterisk[15])
Kirsty Tyerman
asteriskteam at digium.com
Sun Jan 6 22:39:51 CST 2019
Kirsty Tyerman has uploaded this change for review. ( https://gerrit.asterisk.org/10855
Change subject: pbx_dundi: added support for PJSIP in dundi mappings
......................................................................
pbx_dundi: added support for PJSIP in dundi mappings
ASTERISK-28233
Reported-by: Kirsty Tyerman
Change-Id: Icfd2d7637e25c5c0a5aa1f3254bab641b1bfe133
---
M include/asterisk/dundi.h
M pbx/dundi-parser.c
M pbx/pbx_dundi.c
3 files changed, 9 insertions(+), 0 deletions(-)
git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/55/10855/1
diff --git a/include/asterisk/dundi.h b/include/asterisk/dundi.h
index 3f73c19..ed12001 100644
--- a/include/asterisk/dundi.h
+++ b/include/asterisk/dundi.h
@@ -59,6 +59,8 @@
DUNDI_PROTO_SIP = 2,
/*! ITU H.323 */
DUNDI_PROTO_H323 = 3,
+ /*! PJSIP */
+ DUNDI_PROTO_PJSIP = 4,
};
enum {
diff --git a/pbx/dundi-parser.c b/pbx/dundi-parser.c
index 5e53f81..ed8c5b7 100644
--- a/pbx/dundi-parser.c
+++ b/pbx/dundi-parser.c
@@ -235,6 +235,9 @@
case DUNDI_PROTO_H323:
strncpy(buf, "H.323", bufsiz - 1);
break;
+ case DUNDI_PROTO_PJSIP:
+ strncpy(buf, "PJSIP", bufsiz - 1);
+ break;
default:
snprintf(buf, bufsiz, "Unknown Proto(%d)", proto);
}
diff --git a/pbx/pbx_dundi.c b/pbx/pbx_dundi.c
index 6b32a31..ddd20eb 100644
--- a/pbx/pbx_dundi.c
+++ b/pbx/pbx_dundi.c
@@ -387,6 +387,8 @@
return "SIP";
case DUNDI_PROTO_H323:
return "H323";
+ case DUNDI_PROTO_PJSIP:
+ return "PJSIP";
default:
return "Unknown";
}
@@ -400,6 +402,8 @@
return DUNDI_PROTO_SIP;
else if (!strcasecmp(str, "H323"))
return DUNDI_PROTO_H323;
+ else if (!strcasecmp(str, "PJSIP"))
+ return DUNDI_PROTO_PJSIP;
else
return -1;
}
--
To view, visit https://gerrit.asterisk.org/10855
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: 15
Gerrit-MessageType: newchange
Gerrit-Change-Id: Icfd2d7637e25c5c0a5aa1f3254bab641b1bfe133
Gerrit-Change-Number: 10855
Gerrit-PatchSet: 1
Gerrit-Owner: Kirsty Tyerman <kirsty.tyerman at boeing.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20190106/f9d883e1/attachment.html>
More information about the asterisk-code-review
mailing list