connect to a channel.
Before committing to 1.4 i would like some other people to
review and test this fix - thanks.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48574
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
handle_cause(cause, &num);
if (!rest) /* we are on the last destination */
chan->hangupcause = cause;
+ free(tmp);
continue;
}
pbx_builtin_setvar_helper(tmp->chan, "DIALEDPEERNUMBER", numsubst);
}
if (!tmp->chan) {
handle_cause(cause, &num);
+ free(tmp);
continue;
}
}
ast_verbose(VERBOSE_PREFIX_3 "Couldn't call %s\n", numsubst);
ast_hangup(tmp->chan);
tmp->chan = NULL;
+ free(tmp);
continue;
} else {
senddialevent(chan, tmp->chan);