[asterisk-users] "Problems" with System() application

Steve Edwards asterisk.org at sedwards.com
Wed Jul 20 15:03:24 CDT 2011


On Wed, 20 Jul 2011, Antonio Modesto wrote:

> System(/bin/sh /var/spool/asterisk/calllog/log.sh ${FromExt} ${exten});

Specifying '/bin/sh' is not necessary.

The system() dialplan application calls the execl() system function with 
the command '/bin/sh -c' so specifying '/bin/sh foo' results in sh running 
sh running foo.

-- 
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards       sedwards at sedwards.com      Voice: +1-760-468-3867 PST
Newline                                              Fax: +1-760-731-3000



More information about the asterisk-users mailing list