Hey guys

I get so much satisfaction from figuring things out for myself but it has
gotten to the point where I need help with a simple problem again. Here is
an exerpt from a script I have:


exten => 6474763667,n,Set(EXPIRYDATEVALUE=${DB(CT/${CALLERID(num)})}) ;finds
expiry date for the current caller ID
exten => 6474763667,n,GotoIf($[${ISNULL(${EXPIRYDATEVALUE})}]?:continue) ;
checks to see if a value for expiry date exists
exten => 6474763667,n,Set((DB(CT/${CALLERID(num)}))=$[${EPOCH} + 600]) ;I
want this line to set the current date plus 600 seconds to the caller ID

This is what happens when I executed the former by calling my server

    -- Executing [EMAIL PROTECTED]:5] Set("SIP/1119635486-b76034c0",
"EXPIRYDATEVALUE=") in new stack

It doesn't seem to calculate the value for EXPIRYDATEVALUE from the DB key I
specify
    -- Executing [EMAIL PROTECTED]:6] GotoIf("SIP/1119635486-b76034c0",
"1?:continue") in new stack

    -- Executing [EMAIL PROTECTED]:7] Set("SIP/1119635486-b76034c0",
"(DB(CT/4165551234))=1205839409") in new stack
Appears to be storing a value in the database but when I type the
command *database
show* it isnt there!!


Also when I call back with the same Caller ID EXPIRYDATEVALUE is null. Ive
read everything and I cant sleep. Please I'm almost there!

Anna

Reply via email to