git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@5685
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
static int pbx_builtin_rtimeout(struct ast_channel *chan, void *data)
{
+ /* If the channel is not in a PBX, return now */
+ if (!chan->pbx)
+ return 0;
+
/* Set the timeout for how long to wait between digits */
chan->pbx->rtimeout = atoi((char *)data);
if (option_verbose > 2)
static int pbx_builtin_dtimeout(struct ast_channel *chan, void *data)
{
+ /* If the channel is not in a PBX, return now */
+ if (!chan->pbx)
+ return 0;
+
/* Set the timeout for how long to wait between digits */
chan->pbx->dtimeout = atoi((char *)data);
if (option_verbose > 2)