completely assembled extension, so strncpy is more appropriate :)
if (!call->pbx_started)
{
CDEBUG(call, call->ast, "Asterisk not started, adding digits to number.\n");
if (!call->pbx_started)
{
CDEBUG(call, call->ast, "Asterisk not started, adding digits to number.\n");
- strncat(ast->exten, param->information.id, AST_MAX_EXTENSION-1);
+ strncpy(ast->exten, param->information.id, AST_MAX_EXTENSION-1);
lcr_start_pbx(call, ast, param->information.sending_complete);
return;
}
lcr_start_pbx(call, ast, param->information.sending_complete);
return;
}