[asterisk-users] system cmd

unplug maillisting at gmail.com
Sun Sep 17 03:25:20 MST 2006


Thanks.
Could you tell me some detail how to compile and implement it with asterisk?

On 9/17/06, Tzafrir Cohen <tzafrir.cohen at xorcom.com> wrote:
> 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 at local.xorcom.com
> icq#16849755          iax:tzafrir at local.xorcom.com
> +972-50-7952406          jabber:tzafrir at jabber.org
> tzafrir.cohen at xorcom.com     http://www.xorcom.com
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>


More information about the asterisk-users mailing list