Below I have written a script that assigns a value to every caller ID which
calls into the Asterisk (Elastix) server I proudly configured :). Only
problem is that the value seem to change by themselves! It seems impossible
though because they are given values that Im sure I never gave to the
specific caller ID's. Is there a way for values to just change on their own?
exten => 6474763667,1,Set(__FROM_DID=${EXTEN})
exten => 6474763667,n,GotoIf($[ "${CALLERID(name)}" != "" ] ?cidok)
exten => 6474763667,n,Set(CALLERID(name)=${CALLERID(num)})
exten => 6474763667,n(cidok),Noop(CallerID is ${CALLERID(all)})
;exten => 6474763667,n,Goto(callme,3,1)
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} + 604800]) ;I
want this line to set the current date plus one week to the caller ID
exten => 6474763667,n,Goto(callme,3,1)
exten => 6474763667,n(continue),NoOp()
exten => 6474763667,n,GotoIf($[${EPOCH} >
${EXPIRYDATEVALUE}]?cutoff:callout)
exten => 6474763667,n(callout),Goto(callme,3,1) ; refer to the transfer
script
exten => 6474763667,n(cutoff),Goto(callme,4,1) ; Here Id refer to the
cutoffivr script
This problem keeps happening and ill change the values and they just keep
changing back or changing to something else. Oh another thing... the values
seem to sometimes change to values I know I have entered but NOT EVER for
the caller ID which will have it.
Is someone cracking my system?