[Asterisk-code-review] res_ari_channels: Fixed endpoint 80 characters limit (asterisk[13])
Joshua Colp
asteriskteam at digium.com
Wed Apr 22 16:07:45 CDT 2020
Joshua Colp has submitted this change. ( https://gerrit.asterisk.org/c/asterisk/+/14305 )
Change subject: res_ari_channels: Fixed endpoint 80 characters limit
......................................................................
res_ari_channels: Fixed endpoint 80 characters limit
Fixed it to copy the entire string from the requested endpoint body except tech-prefix.
ASTERISK-28847
Change-Id: I91b5f6708a1200363f3267b847dd6a0915222c25
---
M res/ari/resource_channels.c
1 file changed, 2 insertions(+), 2 deletions(-)
Approvals:
George Joseph: Looks good to me, but someone else must approve
Kevin Harwell: Looks good to me, approved
Joshua Colp: Approved for Submit
diff --git a/res/ari/resource_channels.c b/res/ari/resource_channels.c
index bdb3534..ad03835 100644
--- a/res/ari/resource_channels.c
+++ b/res/ari/resource_channels.c
@@ -939,7 +939,7 @@
struct ast_ari_response *response)
{
char *dialtech;
- char dialdevice[AST_CHANNEL_NAME];
+ char *dialdevice = NULL;
struct ast_dial *dial;
char *caller_id = NULL;
char *cid_num = NULL;
@@ -978,7 +978,7 @@
dialtech = ast_strdupa(args_endpoint);
if ((stuff = strchr(dialtech, '/'))) {
*stuff++ = '\0';
- ast_copy_string(dialdevice, stuff, sizeof(dialdevice));
+ dialdevice = stuff;
}
if (ast_strlen_zero(dialtech) || ast_strlen_zero(dialdevice)) {
--
To view, visit https://gerrit.asterisk.org/c/asterisk/+/14305
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Change-Id: I91b5f6708a1200363f3267b847dd6a0915222c25
Gerrit-Change-Number: 14305
Gerrit-PatchSet: 2
Gerrit-Owner: sungtae kim <pchero21 at gmail.com>
Gerrit-Reviewer: Friendly Automation
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Joshua Colp <jcolp at sangoma.com>
Gerrit-Reviewer: Kevin Harwell <kharwell at digium.com>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20200422/cca8acae/attachment-0001.html>
More information about the asterisk-code-review
mailing list