[asterisk-users] System Command not executing php

Steve Edwards asterisk.org at sedwards.com
Wed Aug 24 18:50:35 CDT 2011


> On 11-08-24 03:48 PM, Steve Edwards wrote:

>> You can pass multiple parameters on the command line like:
>>
>>         exten = *,n,system(echo ${EPOCH} ${CHANNEL} >/tmp/foo)
>> 
>> (When I wrote this example, I used the EXTEN channel variable instead of 
>> EPOCH. Extra points for the first reader to explain why that was not a good 
>> example. Anyone, anyone?)

On Wed, 24 Aug 2011, J Gao wrote:

> (But I hasn't figure out your question about the using 
> of EXTEN channel variable. I can only guessing it could be you are using 
> "*".)

Correct -- buy that man a beer!

echo expanded * so /tmp/foo contained a list of all of the files in 
Asterisk's CWD followed by the channel name.

-- 
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