[Home]

Summary:ASTERISK-02292: app_directory incorrectly refers to 'context' when 'dialcontext' has been defined
Reporter:kb1_kanobe2 (kb1_kanobe2)Labels:
Date Opened:2004-08-29 20:58:16Date Closed:2008-01-15 15:06:06.000-0600
Priority:TrivialRegression?No
Status:Closed/CompleteComponents:Core/NewFeature
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) app_directory_context_correction.diff.txt
Description:App_directory(vm-context[|dial-context]) incorrectly displays the value of vm-context when dial-context has been defined but the call cannot be setup. This four byte patch corrects that reference.

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

Consider:

Directory("IAX2/astpbx-woodbay@astpbx-wharfrd/1", "public|callexten")

Correctly throws:

app_directory.c:184 play_mailbox_owner: Can't find extension '6101' in context 'public'.  Did you pass the wrong context to Directory?

when dialexten,6101,1 doesn't exist - however it should indicate the context 'callexten' instead of 'public' in the error message.
Comments:By: Mark Spencer (markster) 2004-08-29 21:41:19

For some reason the patch didn't apply, but I made the fix by hand since it was so easy.

By: Digium Subversion (svnbot) 2008-01-15 15:06:06.000-0600

Repository: asterisk
Revision: 3678

U   trunk/apps/app_directory.c

------------------------------------------------------------------------
r3678 | markster | 2008-01-15 15:06:05 -0600 (Tue, 15 Jan 2008) | 2 lines

Minor fix in directory app (bug ASTERISK-2292)

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

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