|
|
@ -819,19 +819,19 @@ static int dial_exec_full(struct ast_channel *chan, void *data, struct ast_flags
|
|
|
|
mac++; /* Leave the "m" in the string */
|
|
|
|
mac++; /* Leave the "m" in the string */
|
|
|
|
while (*mac && (*mac != ')'))
|
|
|
|
while (*mac && (*mac != ')'))
|
|
|
|
*(mac++) = 'X';
|
|
|
|
*(mac++) = 'X';
|
|
|
|
if (*mac)
|
|
|
|
if (*mac) {
|
|
|
|
*mac = 'X';
|
|
|
|
*mac = 'X';
|
|
|
|
else {
|
|
|
|
mac = strchr(mohclass, ')');
|
|
|
|
ast_log(LOG_WARNING, "Could not find music on hold class to use, assuming default.\n");
|
|
|
|
|
|
|
|
mohclass=NULL;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
mac = strchr(macroname, ')');
|
|
|
|
|
|
|
|
if (mac)
|
|
|
|
if (mac)
|
|
|
|
*mac = '\0';
|
|
|
|
*mac = '\0';
|
|
|
|
else {
|
|
|
|
else {
|
|
|
|
ast_log(LOG_WARNING, "Music on hold class specified without trailing ')'\n");
|
|
|
|
ast_log(LOG_WARNING, "Music on hold class specified without trailing ')'\n");
|
|
|
|
mohclass = NULL;
|
|
|
|
mohclass = NULL;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
ast_log(LOG_WARNING, "Could not find music on hold class to use, assuming default.\n");
|
|
|
|
|
|
|
|
mohclass=NULL;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
/* Extract privacy info from transfer */
|
|
|
|
/* Extract privacy info from transfer */
|
|
|
|
if ((s = strstr(transfer, "P("))) {
|
|
|
|
if ((s = strstr(transfer, "P("))) {
|
|
|
|