On Sun, 2003-11-23 at 21:30, Brian West wrote: > asterisk*CLI> show agi > answer Asserts answer > wait for digit Waits for a digit to be pressed > send text Sends text to channels supporting it > receive char Receives text from channels supporting it > tdd mode Sends text to channels supporting it > stream file Sends audio file on channel > send image Sends images to channels supporting it > say digits Says a given digit string > say number Says a given number > get data Gets data on a channel > set context Sets channel context > set extension Changes channel extension > set priority Prioritizes the channel > record file Records to a given file > set autohangup Autohangup channel in some time > hangup Hangup the current channel > exec Executes a given Application > set callerid Sets callerid for the current channel > channel status Returns status of the connected channel > set variable Sets a channel variable > get variable Gets a channel variable > verbose Logs a message to the asterisk verbose log > database get Gets database value > database put Adds/updates database value > database del Removes database key/value > database deltree Removes database keytree/value > noop Does nothing > set music Enable/Disable Music on hold generator > > > I don't see add extension in the list of AGI commands.
Yes, but AGI does have the exec command that was needed. Then exec takes arguments. > On Sun, 23 Nov 2003, tad wrote: > > > 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? > > > > thanks, > > tad -- Steven Critchfield <[EMAIL PROTECTED]> _______________________________________________ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users
