[Asterisk-Users] DISA() context restrictions

Michael Greb mikegrb at gmail.com
Thu Nov 11 09:58:37 MST 2004


On Thu, 11 Nov 2004 09:33:29 +0200 (SAST), steve at daviesfam.org
<steve at daviesfam.org> wrote:
> On Tue, 9 Nov 2004, Michael George wrote:
> 
> > The only difference to my extensions.conf file is that if I have:
> > exten => s,2,DISA(no-password, disa)
> >
> >
> >     -- Executing DISA("IAX2/pewamo at pewamo/6", "no-password| disa") in new
> > stack
> > Nov  9 19:50:33 DEBUG[14521]: app_disa.c:160 disa_exec: Context:  disa
> 
> Bet you its the space after the comma.  Notice that the "Context:  disa"
> has two spaces.
> 
> So try DISA(no-password,disa) without the space and see if that helps.
> 
> If it does, its obviously a bug, but you have a work-around at least.
> 
> Steve

I wouldn't really call that a bug, especially since I've seen cautions
in several places against including spaces.  It's just the way it is,
one wouldn't include spaces in a CSV file, nor inbetween comma
seperated values in the GECOS field in /etc/passwd, so why between
arguments in the dial plan.  No fault of Michael George of course, he
didn't know that was the case before but now he does... I just
wouldn't call it a bug.

Michael



More information about the asterisk-users mailing list