dect
/
asterisk
Archived
13
0
Fork 0
Commit Graph

420 Commits

Author SHA1 Message Date
tilghman 42d036b2d1 Deprecate SetGlobalVar, replacing it with a dialplan function
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@30677 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-28 15:10:19 +00:00
file 08fc2908d3 Merge in branch which gives you the ability to set the hangup causecode using the Hangup application. (issue #7160 reported by kmilitzer branch by jcollie)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@30390 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-25 20:51:27 +00:00
oej d151a56839 Typo fix. Thanks Peter!
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@30010 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-24 18:17:50 +00:00
markster 75cd5c6a83 Handle ringing (early) state properly on SIP
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@29619 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-23 04:49:31 +00:00
file b474b62f4a Fix tab completion when you just do a plain tab without entering anything, and also fix show application tab completion. (issue #7089 reported by blitzrage)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@28792 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-19 19:35:16 +00:00
russell da3cf563ba - The recent change to linklists.h broke the build on linux for some reason.
So, I have removed all of the uses of AST_LIST_HEAD_INIT and replaced them
   with the equivalent static initializations.
 - On passing, fix a memory leak in the unload_module() function of chan_agent.
   The agents list mutex was never destroyed, and the elements in the agents
   list were not freed.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@26990 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-11 20:07:44 +00:00
rizzo d681ea8598 oops, missing ! in matchcid...
this should fix bug #7142



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@26989 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-11 20:03:52 +00:00
rizzo d0d0c79cb4 normalize the code to navigate through extensions and priorities
(use the walk_*() routines so we don't use the link fields
directly, and slightly restructure the blocks to reduce
the nesting depth).



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@26723 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-11 08:00:35 +00:00
rizzo 5bf6a9a740 fix behaviour for earlymatch and matchmore.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@26719 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-11 07:49:12 +00:00
rizzo 07e5f31499 replace a macro with actual code;
mark dubious code with XXX.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@26686 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-10 22:14:56 +00:00
rizzo 5bd154a13c lock conlock before accessing the list.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@26625 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-10 20:44:28 +00:00
rizzo 17c63393f0 lots of comments trying to document the agreed behaviour of
E_MATCHMORE and '!'.
If the comments are correct, the code must be slightly changed
(simplified).



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@26624 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-10 20:34:18 +00:00
russell d99b677f35 remove almost all of the checks of the result from ast_strdupa() or alloca().
As it turns out, all of these checks were useless, because alloca will never
return NULL.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@26451 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-10 13:22:15 +00:00
rizzo c400f24164 document special character interpretation.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@26283 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-10 07:45:14 +00:00
rizzo 2b62b68b9a indentation fixes
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@26282 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-10 07:19:29 +00:00
rizzo be88618acd prevent a warning for uninitialized variable.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@26281 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-10 07:13:23 +00:00
rizzo 80e253cea6 implement the new sorting algorithm for extensions,
see the documentation near functions ext_cmp1() and ext_cmp().

All sorting decisions are now in one place so it is easy
to revise them.

NOTE
the major change is that now most specific patterns come first,
so there might be differences in how diaplans behave.
If you really really really need to revert to the old sorting order
while you adapt your dialplan, you can uncomment the '#if 0' line
in ext_cmp().



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@26216 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-09 18:34:30 +00:00
kpfleming f1898a71f1 various doxygen fixes
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@26170 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-09 16:24:07 +00:00
rizzo a23fd896f0 remove duplicate atof() invokation
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@26055 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-09 13:55:33 +00:00
rizzo e67287e712 normalize code, remove some useless casts
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@26054 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-09 13:52:01 +00:00
rizzo faf703671d change some log_warning into log_debug
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@26017 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-09 11:29:34 +00:00
rizzo 5617675f5a large rewrite of the extension matching code,
prerequisite to implement the specification defined yesterday.

While I have been using this code for months now, the change is large
so expect some instability.

Also the new specification (sorting extension by match length etc.)
is not implemented yet.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@25928 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-09 08:31:42 +00:00
rizzo 8758cc1de5 misc fixups
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@25925 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-09 08:16:07 +00:00
rizzo e55f3c48a4 remove trailing whitespace
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@25914 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-09 08:03:52 +00:00
rizzo 30357417c9 more code simplifications.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@25892 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-09 07:49:17 +00:00
rizzo 1b2ea5bc93 simplify matchcid()
define struct pbx_find_info for later use



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@25861 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-09 06:17:42 +00:00
rizzo bacddfcf51 more small simplifications
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@25856 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-09 06:04:45 +00:00
rizzo d9807d12a7 another function restructured
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@25749 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-08 22:53:57 +00:00
rizzo 18c192bf9a more code restructuring
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@25748 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-08 22:47:03 +00:00
rizzo 4bed039734 remove some common code in parsing function calls
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@25747 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-08 22:15:31 +00:00
rizzo cd9ab535b1 more code restructuring
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@25746 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-08 22:06:50 +00:00
rizzo 9f07b13786 restructure a function reducing nesting depth.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@25717 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-08 21:49:22 +00:00
rizzo bc2bfb8f31 fix indentation of a large block.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@25715 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-08 21:09:03 +00:00
rizzo ceede344d8 minor code restructuring in preparation for more work.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@25683 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-08 20:49:30 +00:00
rizzo 682e9ff019 localize some variables
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@25652 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-08 16:14:29 +00:00
rizzo 313398d5d9 document th way extensions are sorted
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@25613 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-08 15:32:53 +00:00
russell 6dcc6fb75e - convert the lists of switches to use the linked list macros
- remove some checks of the result of ast_mutex_lock, since it is not necessary
   (this would be a good project to add to the janitor projects list).


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@25443 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-08 11:20:19 +00:00
russell 2cb0bcd416 remove an XXX comment
- we can't use ast_true here because non-empty strings would no longer be
   evaluated as true
document the return values of pbx_checkcondition() in doxygen format


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@25411 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-08 10:08:20 +00:00
russell 1765f1195c constify the argument to pbx_checkcondition
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@24878 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-05 16:36:43 +00:00
russell 0d37c9585d staticize the list heads from my recent conversions to list macros
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@24139 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-02 04:40:09 +00:00
russell f4e8696f01 - convert the list of dialplan function to the list macros
- add missing locking of the functions list in the "show functions" CLI command


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23950 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-01 15:09:51 +00:00
russell eacc98d018 convert the applications list to the list macros
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23853 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-01 03:14:21 +00:00
russell 06fbbd1989 a bunch of conversion to ast_channel_*lock (issue #7058)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23355 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-29 14:50:18 +00:00
rizzo 8ebf64bddd simplify pbx_builtin_execiftime
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21906 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-21 13:44:15 +00:00
rizzo 00c7615742 simplify a function
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21879 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-21 12:58:39 +00:00
rizzo d8d540470f minor cleanup
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21878 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-21 12:12:42 +00:00
rizzo 78de33e15b one more client for find_context_locked()
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21851 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-21 11:30:02 +00:00
rizzo ee68112134 localize a variable, and make a minor code rearrangement.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21850 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-21 11:19:48 +00:00
rizzo 45d0c2be63 one more client for find_context_locked(),
plus a few minor fixes.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21393 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-19 09:31:41 +00:00
rizzo c8c4bc662e use a function, set_ext_pri(), to assign extension and priority.
On passing, fix a bug in __ast_pbx_run() where the wrong priority
was used in a call to ast_exists_extension() (see comment in the code).



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21392 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-19 09:18:30 +00:00