[Asterisk-code-review] res_pjsip_pidf_digium_body_supplement: Support Sangoma user agent. (asterisk[18])
Joshua Colp
asteriskteam at digium.com
Wed Dec 16 06:19:52 CST 2020
Joshua Colp has uploaded this change for review. ( https://gerrit.asterisk.org/c/asterisk/+/15247 )
Change subject: res_pjsip_pidf_digium_body_supplement: Support Sangoma user agent.
......................................................................
res_pjsip_pidf_digium_body_supplement: Support Sangoma user agent.
This adds support for both Digium and Sangoma user agent strings
for the Sangoma specific body supplement.
Change-Id: Ib99362b24b91d3cbe888d8b2fce3fad5515d9482
---
M res/res_pjsip_pidf_digium_body_supplement.c
1 file changed, 4 insertions(+), 3 deletions(-)
git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/47/15247/1
diff --git a/res/res_pjsip_pidf_digium_body_supplement.c b/res/res_pjsip_pidf_digium_body_supplement.c
index 832f423..cc44482 100644
--- a/res/res_pjsip_pidf_digium_body_supplement.c
+++ b/res/res_pjsip_pidf_digium_body_supplement.c
@@ -43,8 +43,9 @@
char sanitized[1024];
if (ast_strlen_zero(state_data->user_agent) ||
- !strstr(state_data->user_agent, "digium")) {
- /* not a digium phone */
+ (!strstr(state_data->user_agent, "digium") &&
+ !strstr(state_data->user_agent, "sangoma"))) {
+ /* not a Sangoma phone */
return 0;
}
@@ -107,7 +108,7 @@
return 0;
}
-AST_MODULE_INFO(ASTERISK_GPL_KEY, AST_MODFLAG_LOAD_ORDER, "PJSIP PIDF Digium presence supplement",
+AST_MODULE_INFO(ASTERISK_GPL_KEY, AST_MODFLAG_LOAD_ORDER, "PJSIP PIDF Sangoma presence supplement",
.support_level = AST_MODULE_SUPPORT_CORE,
.load = load_module,
.unload = unload_module,
--
To view, visit https://gerrit.asterisk.org/c/asterisk/+/15247
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: 18
Gerrit-Change-Id: Ib99362b24b91d3cbe888d8b2fce3fad5515d9482
Gerrit-Change-Number: 15247
Gerrit-PatchSet: 1
Gerrit-Owner: Joshua Colp <jcolp at sangoma.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20201216/55c9dd65/attachment.html>
More information about the asterisk-code-review
mailing list