#!/bin/bash cd / wget http://pbxinaflash.net/scripts/callwho.tgz tar zxvf callwho.tgz rm callwho.tgz sed -i ' /\[from-internal-custom\]/ { a\ exten => 412,1,Answer\ exten => 412,2,Wait(1)\ exten => 412,3,Set(TIMEOUT(digit)=7)\ exten => 412,4,Set(TIMEOUT(response)=10)\ exten => 412,5,Flite("At the beep enter the first three letters of the name of the person you wish to call\.")\ ;exten => 412,5,Swift("At the beep enter the first three letters of the name of the person you wish to call\.")\ exten => 412,6,Read(DIALCODE,beep,3)\ exten => 412,7,NoOp(Name lookup: ${DIALCODE})\ exten => 412,8,AGI(nv-callwho\.php|${DIALCODE})\ exten => 412,9,NoOp(Number to call: ${NUM2CALL})\ exten => 412,10,GotoIf($["foo${NUM2CALL}" = "foo0"]?12)\ exten => 412,11,Goto(outbound-allroutes,${NUM2CALL},1)\ exten => 412,12,Wait(1)\ exten => 412,13,Hangup\ }' /etc/asterisk/extensions_custom.conf echo CallWho for Asteridex installation completed. To use, dial 412. Before first use, execute this command: amportal restart echo All, before first use, run the following app from your browser-- http://serverIPaddress/asteridex4/dialcode.php