[asterisk-commits] branch 1.2 r10301 -
/branches/1.2/apps/app_voicemail.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Thu Feb 16 11:07:53 MST 2006
Author: russell
Date: Thu Feb 16 12:07:52 2006
New Revision: 10301
URL: http://svn.digium.com/view/asterisk?rev=10301&view=rev
Log:
when executing the Directory application from voicemail and a context is not
specified, use the "default" context, not the channel's current context (issue #6507)
Modified:
branches/1.2/apps/app_voicemail.c
Modified: branches/1.2/apps/app_voicemail.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/apps/app_voicemail.c?rev=10301&r1=10300&r2=10301&view=diff
==============================================================================
--- branches/1.2/apps/app_voicemail.c (original)
+++ branches/1.2/apps/app_voicemail.c Thu Feb 16 12:07:52 2006
@@ -3407,7 +3407,7 @@
break;
}
- if( use_directory ) {
+ if (use_directory) {
/* use app_directory */
char old_context[sizeof(chan->context)];
@@ -3424,7 +3424,7 @@
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));
More information about the asterisk-commits
mailing list