[asterisk-users] Automating blacklists

Jared Smith jsmith at digium.com
Thu Oct 18 09:12:31 CDT 2007


On Thu, 2007-10-18 at 16:51 +0300, Brian Hutchinson wrote:
> Is there a function to write the timestamp of the first call?

You can use the built-in channel variable ${EPOCH}, which will give you
the current time in Unix timestamp format (number of seconds since Jan
1, 1970).  Then you can do something like:

exten => 123,n,Set(DB(myblacklist/${CALLERID(num)}/lastcall)=${EPOCH}))

This obviously doesn't solve the entire problem for you, but should at
least help you get moving in the right direction.

-- 
Jared Smith
Community Relations Manager
Digium, Inc.




More information about the asterisk-users mailing list