[asterisk-users] Macro

Richard Cahilig r.cahilig at gmail.com
Fri May 2 08:46:20 CDT 2008


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 


More information about the asterisk-users mailing list