61 Commits

Author SHA1 Message Date
Mathieu Rene
d279dd8e5c Make max argument optional on the limit app, set the limit_usage variable with the current count after inserting the call in the db
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11955 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-12 21:19:52 +00:00
Mathieu Rene
9b95c86dfe s/^assert/switch_assert/
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11933 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-12 20:56:59 +00:00
Mathieu Rene
99e45ef41e fix leak
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11932 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-12 20:31:29 +00:00
Brian West
ae220d3341 update email
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11643 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-04 21:20:54 +00:00
Michael Jerris
6cec4cf73c fix windows build
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11624 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-03 23:16:10 +00:00
Mathieu Rene
f8d0521b65 write different channel variables per realm_id
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11608 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-03 03:46:53 +00:00
Mathieu Rene
d0490570ad Fix transfer bug, fix leak and make the channel hangup if the extension is \!hangup_cause
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11604 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-03 02:34:37 +00:00
Anthony Minessale
0463541d61 change low res sleep func api names
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11486 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-01-25 21:23:07 +00:00
Mathieu Rene
5123e1f2bc tweak
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11217 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-01-15 04:50:06 +00:00
Mathieu Rene
3b58dd8287 tweak
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11216 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-01-15 04:46:58 +00:00
Mathieu Rene
dc8d294bc9 Make max argument optional, acting as a counter only. Also set limit_usage and limit_rate channel variables upon limit_hash call.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11213 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-01-15 03:53:09 +00:00
Mathieu Rene
dd10c6c709 multi-line
testing



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11195 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-01-14 16:28:30 +00:00
Ken Rice
40114ba415 tab cleanup
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11171 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-01-13 23:58:40 +00:00
Mathieu Rene
f5194b66b0 doh
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11071 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-01-05 16:43:16 +00:00
Mathieu Rene
eebdfba586 doh
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11070 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-01-05 16:42:46 +00:00
Mathieu Rene
a30d60b9ad MODAPP-188 Cleanup the limit_realm channel variable so we re-register the state handler if limit is called again
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11003 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-30 17:08:00 +00:00
Mathieu Rene
40760653a3 Fix leak and remove extra \n
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10891 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-20 02:14:10 +00:00
Anthony Minessale
d7692bebde add patch to see limit usage
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10882 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-19 16:55:44 +00:00
Mathieu Rene
dd3c813e11 Fix counter bug
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10881 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-19 04:11:51 +00:00
Michael Jerris
6e497267ec indexes are good
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10860 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-17 21:22:33 +00:00
Michael Jerris
e671a70371 fix segfault on invalid usage
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10846 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-17 04:29:48 +00:00
Michael Jerris
c18745176d initial merge of mod_limit hash based rework from scripts/contrib/mrene
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10688 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-09 21:33:57 +00:00
Anthony Minessale
6d8d2abe48 shorten sql stmt
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10382 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-11-13 20:41:44 +00:00
Anthony Minessale
23b022fa33 add patch from MODAPP-161
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10288 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-11-07 14:34:20 +00:00
Brian West
9deca9679b tweak to mod_limit for the db_function used in the dialplan
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10175 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-10-28 02:50:18 +00:00
Brian West
f1bc3e6bb2 man am I OCD about this stuff or what
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9966 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-10-11 20:01:44 +00:00
Brian West
bc13592e0e fix the fix
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9405 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-09-02 14:56:55 +00:00
Brian West
8045d1f0a8 fix MODAPP-134
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9404 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-09-02 14:50:03 +00:00
Michael Jerris
64997c4d8e vim extendtab is bad
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8894 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-07-03 19:12:26 +00:00
Michael Jerris
f7e74f2073 add more tab completion details
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8712 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-05-28 21:36:16 +00:00
Anthony Minessale
f930eaeec7 indent pass 2
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8689 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-05-27 04:54:52 +00:00
Anthony Minessale
4b929592cc change names to protect the innocent
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8263 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-05-05 15:30:55 +00:00
Michael Jerris
1433f77281 tweak help.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7910 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-03-18 14:24:40 +00:00
Ken Rice
49c2d065b1 White space cleanup
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7765 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-02-28 16:23:20 +00:00
Anthony Minessale
cf56d9f679 MODAPP-76
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7634 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-02-15 21:25:23 +00:00
Brian West
b0ad7ab50c set tab mode properly
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7500 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-02-03 22:14:57 +00:00
Michael Jerris
482badffca code analysis, clean up asserts related to switch_core_session_get_channel.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7402 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-01-28 07:26:10 +00:00
Michael Jerris
2f6eed02c0 support no media calls
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7304 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-01-20 07:43:25 +00:00
Ken Rice
27053181e9 get rid of the arbitrary channel variable and lets put it in RDNIS in the the transfer function so its consistant on all transfers
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7258 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-01-16 21:52:07 +00:00
Ken Rice
b68396f433 contributors tweak
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7257 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-01-16 21:45:40 +00:00
Ken Rice
9075ed1c71 small mod to mod limit...
Add Optional user setable transfer destination number
example usage:

<application="limit" data="<realm> <id> <max> [transfer_destination_number]"/>
existing functionality is not changed... if limit is exceeded and 
transfer_destination_number is not specified call will still be redirected to limit_exceeded

Also add new channel variable limit_original_destination which is set to the 
destination_number before mod_limit does its thing



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7256 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-01-16 21:44:28 +00:00
Ken Rice
1121c2724e Change limit query to allow for sql wildcard in query
you can now do things like
<application="limit" data="realm id 2"/>
<application="limit" data="realm % 10"/>

this will allow both individual extension limits and realm limits



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7250 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-01-16 20:16:37 +00:00
Anthony Minessale
86da61bc8f delete repeat keys in db
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6882 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-12-18 22:06:06 +00:00
Anthony Minessale
5355075c60 blinking lights for xmas presence
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6849 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-12-18 01:12:50 +00:00
Michael Jerris
54ec86f6ce use switch_snprintf instead of snprintf becuase in insures null termination of strings.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6707 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-12-12 21:53:32 +00:00
Michael Jerris
8fd67f8779 cleanup, null checks. etc.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6695 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-12-12 03:21:14 +00:00
Michael Jerris
4110f73cf3 add msvc 2008 sln/project files
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6690 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-12-12 01:40:13 +00:00
Anthony Minessale
4bc03bb392 almost ready for b3
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6573 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-12-08 00:14:21 +00:00
Anthony Minessale
a30c635e2a fix MODENDP-35
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6275 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-11-15 16:55:46 +00:00
Anthony Minessale
94b04a0e17 fix some stuff and add set_user func
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6249 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-11-13 22:06:44 +00:00