Re: lua example script
Jan Willamowius <[email protected]> Mon, 30 Apr 2018 14:17:02 +0200
| Newsgroups | gmane.comp.telephony.openh323gk.user |
|---|---|
| Message-ID | <[email protected]> |
WARNING: You receive this message on the old GnuGk mailinglist that will go away soon. Please re-subscribe for the new mailinglist at https://lists.gnugk.org/cgi-bin/mailman/listinfo/gnugk-users Hi Nguyen, which variable names to use for interaction between LUA and GnuGk is documented with each LUA policy. Here is a simple example how to replace a hash with a star in dialed numbers: [Routing::Lua] Script=3DdestAlias=3Dstring.gsub(calledAlias, "#", "*") ; gnugk.trace(1, destAlias) Regards, Jan -- = Jan Willamowius, Founder of the GNU Gatekeeper Project EMail : [email protected] Website: https://www.gnugk.org Support: https://www.willamowius.com/gnugk-support.html Relaxed Communications GmbH Frahmredder 91 22393 Hamburg Gesch=E4ftsf=FChrer: Jan Willamowius HRB 125261 (Amtsgericht Hamburg) USt-IdNr: DE286003584 Nguyen Nam wrote: > Hello, > Can anyone help me with a working lua example script? I have no > experience with lua,but one small script may give me better > understanding about in/out between gnugk and lua. > Thanks in advance, > Nguyen ---------------------------------------------------------------------------= --- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________________ Posting: mailto:[email protected] Archive: https://sourceforge.net/mailarchive/forum.php?forum_name=3Dopenh32= 3gk-users Unsubscribe: https://lists.sourceforge.net/lists/listinfo/openh323gk-users Homepage: https://www.gnugk.org/