Hello,
I read a thread on the asterisk dev list (call file handling suggestion)
May i have some comment/opinion on these two ways below to place a call file in
the future ? (from the wiki and the asterisk book but added typos and stupidity
come from me)
The best is ? (and should work ?)
tmsp = the delay in future.. say 100 seconds
exten=> ra,n,System(NOW='date %S')
exten=> ra,n,System(let NOW=$NOW+$tmsp)
exten=> ra,n,System(TOUCH_TMSP='date -d "1970-01-01 $NOW sec GMT+1"
+%Y%m%d%H%M. %S)
*********
or this way ?
exten=> ra,n,Set(touchtime=$[${EPOCH} + ${tmsp}])
exten=> ra,n,Set(TOUCH_TMSP=${STRFM(${touchtime},GMT+1,%C%y%m%d%H%M%S)
*********
next step:
exten=> ra,n,System(touch -t $TOUCH_TMSP /tmp/${idclient}.call))
exten=> ra,n,System(mv /tmp/${idclient}.call /var/spool/asterisk/outgoing)
Thanks for your attention, happy 2009..... and perhaps a reply ?
_______________________________________________
-- 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