Jaco Kroon
d847f7e8f8
func_odbc: Introduce minargs config and expose ARGC in addition to ARGn.
...
minargs enables enforcing of minimum count of arguments to pass to
func_odbc, so if you're unconditionally using ARG1 through ARG4 then
this should be set to 4. func_odbc will generate an error in this case,
so for example
[FOO]
minargs = 4
and ODBC_FOO(a,b,c) in dialplan will now error out instead of using a
potentially leaked ARG4 from Gosub().
ARGC is needed if you're using optional argument, to verify whether or
not an argument has been passed, else it's possible to use a leaked ARGn
from Gosub (app_stack). So now you can safely do
${IF($[${ARGC}>3]?${ARGV}:default value)} kind of thing.
Change-Id: I6ca0b137d90b03f6aa9c496991f6cbf1518f6c24
Signed-off-by: Jaco Kroon <jaco@uls.co.za >
2021-02-23 12:18:00 -06:00
..
2017-12-22 09:23:22 -05:00
2015-12-21 16:02:09 -08:00
2017-12-22 09:23:22 -05:00
2018-05-24 12:59:37 -06:00
2017-12-22 09:23:22 -05:00
2020-12-09 13:06:27 -06:00
2017-12-22 09:23:22 -05:00
2016-09-02 13:01:13 -05:00
2017-12-22 09:23:22 -05:00
2017-12-22 09:23:22 -05:00
2017-12-22 09:23:22 -05:00
2015-04-27 09:38:15 -05:00
2017-05-25 10:02:42 +02:00
2017-12-22 09:23:22 -05:00
2017-06-19 12:28:18 -04:00
2017-11-16 09:47:10 -06:00
2015-05-05 07:59:12 -04:00
2017-05-25 10:02:42 +02:00
2017-12-22 09:23:22 -05:00
2018-05-03 10:34:12 -05:00
2017-12-22 09:23:22 -05:00
2014-10-17 22:45:27 +00:00
2019-01-25 14:31:53 -06:00
2020-10-01 08:01:17 -05:00
2017-07-13 11:44:14 -04:00
2016-09-02 13:01:13 -05:00
2017-12-22 09:23:22 -05:00
2017-12-22 09:23:22 -05:00
2019-06-05 11:56:22 -06:00
2019-09-18 14:07:37 -05:00
2017-12-22 09:23:22 -05:00
2017-04-08 03:16:26 -05:00
2017-12-22 09:23:22 -05:00
2020-10-22 11:23:46 -05:00
2017-12-22 09:23:22 -05:00
2018-01-17 12:08:59 -06:00
2021-02-23 12:18:00 -06:00
2017-05-09 05:38:59 -05:00
2020-01-22 10:09:54 -06:00
2021-02-09 09:15:28 -06:00
2017-12-22 09:23:22 -05:00
2020-03-06 08:41:52 -06:00
2020-10-16 07:10:24 -05:00
2017-12-22 09:23:22 -05:00
2017-12-22 09:23:22 -05:00
2017-08-30 18:43:38 +00:00
2016-09-02 13:01:13 -05:00
2020-11-16 11:38:04 +01:00
2020-09-28 13:20:12 -05:00
2017-12-22 09:23:22 -05:00
2017-12-22 09:23:22 -05:00
2017-12-22 09:23:22 -05:00
2018-02-28 11:41:30 -06:00
2018-07-31 11:29:15 -05:00
2020-10-06 09:07:51 -05:00
2017-12-22 09:23:22 -05:00
2017-12-22 09:23:22 -05:00
2017-12-22 09:23:22 -05:00
2017-05-25 10:02:42 +02:00
2017-10-09 08:16:44 -05:00
2020-11-06 11:47:16 -06:00
2017-12-22 09:23:22 -05:00
2017-12-22 09:23:22 -05:00
2019-02-07 08:23:04 -06:00
2018-10-18 14:57:58 -05:00
2017-12-22 09:23:22 -05:00
2017-12-22 09:23:22 -05:00
2017-12-22 09:23:22 -05:00
2021-02-18 10:36:25 -06:00
2017-12-22 09:23:22 -05:00
2020-02-05 06:27:06 -06:00
2017-12-22 09:23:22 -05:00
2017-12-22 09:23:22 -05:00
2017-04-07 08:44:49 -05:00
2021-02-18 17:17:00 -06:00
2020-10-06 09:07:51 -05:00
2016-09-02 13:01:13 -05:00
2017-12-22 09:23:22 -05:00
2019-01-22 13:32:00 -06:00
2016-09-02 13:01:13 -05:00
2017-12-22 09:23:22 -05:00