[Asterisk-Users] callerid send to shell script with system command

James Golovich james at wwnet.net
Tue Apr 29 11:30:19 MST 2003


Tomaz,

exten => s,2,System(/bin/script ${CALLERIDNUM})

would do what you want

James

On Tue, 29 Apr 2003, Tomaz Izanc wrote:

> hi!
> 
> 
> anyone has a idea how to send caller id (incoming number)
> to shell script like:
> 
> exten => s,1,wait,2
> exten => s,2,System(/bin/script callerid-number)
> exten =>s,3,answer
> 
> i need to run script in shell with command line like "/bin/script -a 
> 123456789 "
> this 123456789 must be callerid (incoming call) number.




More information about the asterisk-users mailing list