Yair,
When you have an older version you can try to use DBput/DBget (if still
working, because set will replace it in CVS)
Set(DB(CFIM/${CALLERIDNUM})=u${CALLERIDNUM})
will be;
DBput(CFIM/${CALLERIDNUM}=u${CALLERIDNUM})
Set(CFIM=${DB(CFIM/${ARG1})})
will be;
DBGet(${DB(CFIM/${ARG1})
normaly a database entry looks like:
CFIM/999 : 999
What is the line you use to fill the database with: /DB(CFIM/999) : 999 ?
What is the version of asterisk your machine runs?
Regards,
/* Ferdy */
http://asterisk.nsec.nl
info(AT)nsec(DOT)nl
Yair Hakak wrote:> hi ferdy,
> i did check your first post to the list, and i really appreciate your
help.
> however, when i run your code i get an error because the "set"
> application is not recognized - perhaps it is a CVS-head thing?
>
> thanks,
> yair
>
> On 7/3/05, Ferdy Riphagen <f.riphagen@tiscali.nl> wrote:
>
>>Yair,
>>
>>Check my first post to the list, about your other question (call
>>forwarding, most basic case)
>>SetVar will be removed (I heard)
>>
>>Greetz,
>>
>>/* Ferdy */
>>
>>Yair Hakak wrote:
>>
>>>Hi list,
>>>another question for you all, and i apologize in advance if it is
>>>basic, the syntax is making me crazy and the documentation is no
help:
>>>
>>>when i do "database show" in the console, i get the
following:
>>>
>>>/DB(CFIM/999) : 999
>>>
>>>and when i run the following statement:
>>>
>>>exten => s,1,SetVar(CFIM=${DBGet(CFIM/${ARG1})})
>>>
>>>i get the following:
>>>
>>>Executing SetVar("Local/999@mycontext-ed16,2",
"CFIM=") in new stack
>>>
>>>any ideas why the CFIM variable is not getting the 999 value?
>>>
>>>thanks for any help,
>>> yair
>>>_______________________________________________
>>>Asterisk-Users mailing list
>>>Asterisk-Users@lists.digium.com
>>>http://lists.digium.com/mailman/listinfo/asterisk-users
>>>To UNSUBSCRIBE or update options visit:
>>> http://lists.digium.com/mailman/listinfo/asterisk-users
>>>
>>
>