On Sun, Sep 17, 2006 at 01:13:07PM +0800, unplug wrote:> How can I use a system cmd to get back the return value in dial plan?
> Say, I want to run a script using system cmd to get the hostname.
> System(hostname)
Reading previous posts helps.
On Sat, Sep 16, 2006 at 01:15:01PM +0200, Christophorus Laube wrote:
> Hi list,
>
> is it possible to call a shell script from * which returns a number or
> a string which can be read to an asterisk variable? Something like
> 'Set(VAR(System(/opt/scripts/something.script)))?
> Does anyone have an idea?
http://pbxfreeware.org/app_backticks.c
--
Tzafrir Cohen sip:tzafrir@local.xorcom.com
icq#16849755 iax:tzafrir@local.xorcom.com
+972-50-7952406 jabber:tzafrir@jabber.org
tzafrir.cohen@xorcom.com http://www.xorcom.com