Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] Question about mod_limit


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
anatoliy at kounitskiy...
Guest





PostPosted: Mon Aug 31, 2009 4:23 am    Post subject: [Freeswitch-users] Question about mod_limit Reply with 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

_______________________________________________
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





PostPosted: Mon Aug 31, 2009 9:42 am    Post subject: [Freeswitch-users] Question about mod_limit Reply with quote

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 Smile

Bear in mind that I'm newbie in the FreeSwitch Smile


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
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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

VoiceMeUp - Corporate & Wholesale VoIP Services