specified, use the "default" context, not the channel's current context (issue #6507)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@10301
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
break;
}
- if( use_directory ) {
+ if (use_directory) {
/* use app_directory */
char old_context[sizeof(chan->context)];
old_priority = chan->priority;
/* call the the Directory, changes the channel */
- res = pbx_exec(chan, app, ((context)?context:chan->context), 1);
+ res = pbx_exec(chan, app, context ? context : "default", 1);
ast_copy_string(username, chan->exten, sizeof(username));