; depends: app_macro app_system app_record func_callerid
; app_sayunixtime app_playback func_db
; format_gsm codec_gsm
-[globals]
-LASTCALL_DIR=/opt/etc/asterisk/directory
+;[globals]
+;LASTCALL_DIR=/etc/asterisk/directory
[macro-lastcallstore] ; (Number , EntryType, BufferSize)
exten => s,1,set(lcsName=lastcall)
exten => 6,n,Set(lcsPointer=$[${lcsPointer} + 1])
exten => 4,1,GotoIf($[${lcsPointer}=1]?sayn)
exten => 4,n,Set(lcsPointer=$[${lcsPointer} - 1])
-exten => _[46],n(sayn),saynumber(${lcsPointer})
+exten => _[46],n(sayn),Background(h-${lcsPointer})
exten => _[46],n,goto(s|again)
exten => 7,1,GotoIf($["${lcsLastNum}" = ""]?noinfo])
exten => 7,2,macro(tagnumber,${lcsLastNum},${LASTCALL_DIR})