r.cahilig at gmail.com Guest
|
Posted: Fri May 02, 2008 8:46 am Post subject: [asterisk-users] Macro |
|
|
Hi,
Please help me create macro for this extension?
[globals]
VOIP=SIP/voip
PREFIX=19001
[outbound]
exten => _9NXXNXXXXXX,1,Set(DIREC=/tmp/asterisk/recordings)
exten =>
_9NXXNXXXXXX,n,Set(CALLFILENAME=${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)}_${CALLERID(num)}_${EXTEN})
exten => _9NXXNXXXXXX,n,MixMonitor(${DIREC}/${CALLFILENAME}.wav|W(2)|v(3)|b)
exten => _9NXXNXXXXXX,n,Dial(${VOIP}/${PREFIX}${EXTEN:1})
exten => _9NXXNXXXXXX,n,Hangup()
Thank you
--
Richard R. Cahilig
Blog: http://www.chr05210084.com
AKLUG: http://www.aklan-linux.org
Email: r.cahilig at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080502/75a0d702/attachment.htm |
|