[Home]

Summary:ASTERISK-06332: Using the directory to forward a message uses wrong context when context not specified in parameter
Reporter:Dinesh Nair (alphaque)Labels:
Date Opened:2006-02-16 06:10:53.000-0600Date Closed:2008-01-15 16:50:12.000-0600
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Applications/app_voicemail
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) app_voicemail.c.diff
Description:When VoicemailMain() is called without a context parameter, using the directory to lookup extensions to call usually fails because the wrong context parameter is passed. this can be reproduced with the following dialplan:

exten => *9, 1, Voicemailmain(${CALLERID(num)})
exten => *9, 2, Hangup()

this is because the pbx_exec() call to the directory app is made by passing in the current channel's context instead of "default" when the context parameter is NULL or not given. this one line patch fixes this.

****** ADDITIONAL INFORMATION ******


This bug exists in 1.2.4 though it may exist in earlier/later versions as well.

Comments:By: Russell Bryant (russell) 2006-02-16 11:21:33.000-0600

fixed in the 1.2 branch and trunk in revisions 10301 and 10302, thanks!

By: Digium Subversion (svnbot) 2008-01-15 16:50:11.000-0600

Repository: asterisk
Revision: 10301

U   branches/1.2/apps/app_voicemail.c

------------------------------------------------------------------------
r10301 | russell | 2008-01-15 16:50:10 -0600 (Tue, 15 Jan 2008) | 3 lines

when executing the Directory application from voicemail and a context is not
specified, use the "default" context, not the channel's current context (issue ASTERISK-6332)

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=10301

By: Digium Subversion (svnbot) 2008-01-15 16:50:12.000-0600

Repository: asterisk
Revision: 10302

_U  trunk/
U   trunk/apps/app_voicemail.c

------------------------------------------------------------------------
r10302 | russell | 2008-01-15 16:50:11 -0600 (Tue, 15 Jan 2008) | 11 lines

Merged revisions 10301 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r10301 | russell | 2006-02-16 13:07:52 -0500 (Thu, 16 Feb 2006) | 3 lines

when executing the Directory application from voicemail and a context is not
specified, use the "default" context, not the channel's current context (issue ASTERISK-6332)

........

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=10302