[Asterisk-Users] Re: Asterisk-Users digest, Vol 1 #1994 - 14 msgs

tad tad at media.mit.edu
Mon Nov 24 08:12:40 MST 2003


as i said, right now i'm just getting my feet wet. but, i will be needing
to build dialplans on the fly. 'add extension' seems like the right call
to make.

.t

> What is the goal of this?  It doesn't make much sense to me.  Care to
> share some insite into what your goal is?
>
> bkw
>
> On Sun, 23 Nov 2003, tad wrote:
>
> > actually, i do have a workaround which bypasses the exec command entirely:
> > system("asterisk -r -x 'add extension s,3,Playback(demo-congrats) into local'");
> >
> > but it's ugly. seems like it should be possible to do this with exec.
> >
> > .t
> >
> > ---------- Forwarded message ----------
> > Date: Sun, 23 Nov 2003 21:17:50 -0500 (EST)
> > From: tad <tad at media.mit.edu>
> > To: asterisk-users at lists.digium.com
> > Subject: agi exec problem.
> >
> > hi folks.
> >
> > (apologies in advance if this is a particularly stupid question)
> >
> > just getting my feet wet with asterisk / agi, and am a little stuck using
> > EXEC. it works fine for applicaitons that take simple arguments, but
> > chokes on applications that require multiple words as arguments.
> >
> > for example, this works fine:
> >  EXEC Playback(demo-congrats)
> >
> > but this doesn't:
> >  EXEC add extension s,3,Playback(demo-congrats) into local
> >
> > problem seems to be that AGI reads the second example to be:
> >  EXEC add extension
> >
> > and ignores the rest (presumably because it assumes the space after
> > 'extension' singifies the end of the argument)
> >
> > is there a way around this?





More information about the asterisk-users mailing list