If you only knew how much I looked at my parentheses over and over!! Thank
you so very much.

On Tue, Mar 18, 2008 at 6:02 PM, Simon P. Ditner <[EMAIL PROTECTED]> wrote:

> I believe you have an extra set of parentheses in there that are not
> needed:
>
>  exten => 6474763667,n,Set((DB(CT/${CALLERID(num)}))=$[${EPOCH} + 600])
>
> should be:
>
>  exten => 6474763667,n,Set(DB(CT/${CALLERID(num)})=$[${EPOCH} + 600])
>
> I then see:
> *CLI> database show
> /CT/6475551212                                    : 1205888932
>
> Cheers,
> spd
>
> On Tue, Mar 18, 2008 at 11:07 AM, Anastasia LePlume <[EMAIL PROTECTED]>
> wrote:
> > 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
> >
>
>
>
> --
> | It ain't what you don't know that gets you into trouble. It's what
> | you know for sure that just ain't so. -- Mark Twain
> |
> | The Toronto Asterisk Users Group
> | Join the discussion group by visiting http://taug.ca
>

Reply via email to