Summary: | ASTERISK-05385: DBPut replacement Set(DB(family/key)=value) not working with variables | ||
Reporter: | Max (tintin) | Labels: | |
Date Opened: | 2005-10-28 10:27:44 | Date Closed: | 2011-06-07 14:02:59 |
Priority: | Major | Regression? | No |
Status: | Closed/Complete | Components: | Functions/General |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ||
Description: | Set(DB(family/key)=2) works fine, but when using a variable, for instance: Set(DB(family/key)=${variable}), key isn't assigned the new value. ****** ADDITIONAL INFORMATION ****** I looked for this bug everywhere, but couldn't find it being mentioned yet. | ||
Comments: | By: Roy Sigurd Karlsbakk (rkarlsba) 2005-10-28 10:45:32 I just tried with latest CVS (from 10:15 this morning CEST), this works fine... dialplan: exten => 0000974797623,1,NoOp(call from ${CALLERIDNUM} to ${EXTEN}) exten => 0000974797623,2,Set(TESTVAR=123) exten => 0000974797623,3,Set(DB(test/val)=${TESTVAR}) exten => 0000974797623,4,Verbose(DB(test/val) is ${DB(test/val)}) exten => 0000974797623,5,DBDel(test/val) exten => 0000974797623,6,Hangup output: -- Executing NoOp("SIP/006-cd8c", "call from 74797623 to 0000974797623") in new stack -- Executing Set("SIP/006-cd8c", "TESTVAR=123") in new stack -- Executing Set("SIP/006-cd8c", "DB(test/val)=123") in new stack -- Executing Verbose("SIP/006-cd8c", "DB(test/val) is 123") in new stack DB(test/val) is 123 -- Executing DBdel("SIP/006-cd8c", "test/val") in new stack -- DBdel: family=test, key=val -- Executing Hangup("SIP/006-cd8c", "") in new stack By: Max (tintin) 2005-10-28 11:24:31 Very strange - I finally tried using a different family/key pair and it worked - also the other existing family/key pair is =now= correctly updated again. I don't get it - temporary corruption of the database!? Thanks for trying it out! |