OK, I was able to answer one of the questions: if I want to use the function db - i can insert and delete: <action application="db" data="insert/test/${username}/${dialed_extension:3}"/> <action application="db" data="delete/test/${username}/${dialed_extension:3}"/> but if i want to select i have to use the API function db: <action application="set" data="test=${db(select/test/${username})}"/>
Probably there is a reason, that the dialplan application db can't do select - someone input here? I was looking something like this: <action application="db" data="test=select/test/${username}/${dialed_extension:3}"/> but at the end i found a solution. I'm just searching for a reason :) Bear in mind that I'm newbie in the FreeSwitch :) On Mon, Aug 31, 2009 at 12:15 PM, Anatoliy Kounitskiy<anato...@kounitskiy.com> wrote: > I have question about mod_limit: is there a reason to have difference > between the api applications and the dialplan? I mean when you use db > function from the cli you can use insert/select/delete but when you > use it from the dialplan you can only use insert/delete. > > #define DB_USAGE "[insert|delete]/<realm>/<key>/<val>" > #define DB_DESC "save data" > > SWITCH_STANDARD_APP(db_function) > > but in the > SWITCH_STANDARD_API(db_api_function) > i have three options insert,delete and select > > What i try to accomplish is to be able to insert values from the > dialplan and after that to be able to use them ( to select and use the > result) from another extension. > > Thank you in advanced, > -- > Anatoliy Kounitskiy > ------------------------- > E-mail: anato...@kounitskiy.com > Mobile: +359898913540 > -- Anatoliy Kounitskiy ------------------------- E-mail: anato...@kounitskiy.com Mobile: +359898913540 _______________________________________________ FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org