Fixed it to copy the entire string from the requested endpoint body except tech-prefix.
ASTERISK-28847
Change-Id: I91b5f6708a1200363f3267b847dd6a0915222c25
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;
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)) {