VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
anatoliy at kounitskiy... Guest
|
Posted: Mon Aug 31, 2009 4:23 am Post subject: [Freeswitch-users] Question about mod_limit |
|
|
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: anatoliy@kounitskiy.com
Mobile: +359898913540
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org |
|
Back to top |
|
|
anatoliy at kounitskiy... Guest
|
Posted: Mon Aug 31, 2009 9:42 am Post subject: [Freeswitch-users] Question about mod_limit |
|
|
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<anatoliy@kounitskiy.com> wrote:
Quote: | 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: anatoliy@kounitskiy.com
Mobile: +359898913540
|
--
Anatoliy Kounitskiy
-------------------------
E-mail: anatoliy@kounitskiy.com
Mobile: +359898913540
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org |
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|