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.


_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to