Re: Questions about bayonne2's script syntax
"Zhang Le" <[email protected]> Fri, 1 Sep 2006 11:30:22 +0800
| Newsgroups | gmane.comp.gnu.bayonne.devel |
|---|---|
| Message-ID | <[email protected]> |
Thank you! On 9/1/06, David Sugar <[email protected]> wrote: > > You can also use "add", but the docs do have some leftovers from the > older release. > > Here is a foreach example to try: > > set %list "a,b,c" > foreach %item %list token="," > echo %item > loop > > The behavior of first and last is now tied only to queues and fifo's, > where remove can be overloaded to apply to other data types... > > > > Zhang Le wrote: > > I am using bayonn2-1.5.27/ccscript3-1.0.9 and I take this guide > > http://data.gnutelephony.org/docs/bayonne2/script.html as a reference. I > > have found the follow problems. If there were any misunderstandings, > > please > > let me know. Thanks. > > 1. Command "post" which is claimed can be used to add values to > stack/fifo > > does not exist. Instead, we can now just use "set" to add values to > > stack/fifo. > > 2. It seems that "first" and "last" command don't have > field/offset/token > > keywords any more. Because, the checker function for them is > > ScriptChecks::chkCat(), which doesn't allow any keyword. > > 3. "foreach" command seems not working. > > > > In light of the these problems, could anyone tell me what is the best > way > > for a beginner to master bayonne2 script language? > > I am really confused. > > Thank you! > > > > > -- Zhang Le, Robert Linux Engineer/Trainer http://zhllg.blogspot.com http://zh.gentoo-wiki.com http://savannah.nongnu.org/projects/pgubook http://groups.google.com/group/gentoo-china http://groups.google.com/group/szlug