[Asterisk-Users] DISA() context restrictions

Michael George george at mutualdata.com
Fri Nov 12 13:47:15 MST 2004


On Thu, Nov 11, 2004 at 10:58:37AM -0600, Michael Greb wrote:
> 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.

I agree, not necessarily a bug.  It would be nice if the spaces could be
there, but that's just how it is.  Now I know and hopefully others will pick
it up even more easily in teh archives.

-- 
-M

There are 10 kinds of people in this world:
	Those who can count in binary and those who cannot.



More information about the asterisk-users mailing list