dicko
(dicko)
14
Particularly "How do I do X on every outbound call?"
I would start with
[macro-dialout-trunk-predial-hook]
exten => s,1,NoOp(Entering user defined context macro-dialout-trunk-predial-hook in extensions_custom.conf)
exten => s,n,DumpChan()
exten => s,n,Set(DB(whitelist/${DIAL_NUMBER:-10}/date)=${EPOCH})
exten => s,n,Set(DB(whitelist/${DIAL_NUMBER:-10}/destination)=We_called
; additional lines here
exten => s,n,MacroExit
which will show all the channel variables you can read (and sometimes re-write ) in your agi script.
1 Like