asterisk/asterisk.git
15 years agolocalize several variables, and simplify the last part of park_exec()
Luigi Rizzo [Sun, 16 Apr 2006 20:32:14 +0000 (20:32 +0000)]
localize several variables, and simplify the last part of park_exec()

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20653 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agomore formatting cleanup including removal of a useless check
Luigi Rizzo [Sun, 16 Apr 2006 20:09:01 +0000 (20:09 +0000)]
more formatting cleanup including removal of a useless check
for f == NULL

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20652 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agorename a variable same as used in a very similar function,
Luigi Rizzo [Sun, 16 Apr 2006 19:56:08 +0000 (19:56 +0000)]
rename a variable same as used in a very similar function,
to reduce code differences.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20627 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agos/pu->chan/chan in a few places;
Luigi Rizzo [Sun, 16 Apr 2006 19:41:12 +0000 (19:41 +0000)]
s/pu->chan/chan in a few places;

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20626 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agoput some common code into functions (still more instances to be replaced)
Luigi Rizzo [Sun, 16 Apr 2006 19:26:57 +0000 (19:26 +0000)]
put some common code into functions (still more instances to be replaced)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20625 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agoproperly reindent a large block.
Luigi Rizzo [Sun, 16 Apr 2006 19:12:51 +0000 (19:12 +0000)]
properly reindent a large block.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20624 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agomore readability fixes - localize some variables and invert
Luigi Rizzo [Sun, 16 Apr 2006 19:05:19 +0000 (19:05 +0000)]
more readability fixes - localize some variables and invert
a condition in an 'if' statement to reduce the nesting depth.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20623 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agointroduce a function to set context, extension and priority
Luigi Rizzo [Sun, 16 Apr 2006 18:49:46 +0000 (18:49 +0000)]
introduce a function to set context, extension and priority
replacing some common blocks of code (there are still a few
instances where it can be used)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20598 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agominor readability fixes in preparation for more work on this file:
Luigi Rizzo [Sun, 16 Apr 2006 18:37:01 +0000 (18:37 +0000)]
minor readability fixes in preparation for more work on this file:
- replace nested 'if' with '&&'
- fix indentation
- annotate the end brace of some huge block
- remove useless parentheses

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20597 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agominor formatting fixes
Luigi Rizzo [Sun, 16 Apr 2006 18:10:10 +0000 (18:10 +0000)]
minor formatting fixes

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20596 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agomove some duplicated code outside an if/then/else block
Luigi Rizzo [Sun, 16 Apr 2006 17:59:37 +0000 (17:59 +0000)]
move some duplicated code outside an if/then/else block

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20570 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agomake sure there is [almost] only a single exit point for a very long
Luigi Rizzo [Sun, 16 Apr 2006 17:41:05 +0000 (17:41 +0000)]
make sure there is [almost] only a single exit point for a very long
function so the flow is easier to follow.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20569 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agosimplify the ast_channel walking routines.
Luigi Rizzo [Sun, 16 Apr 2006 16:58:56 +0000 (16:58 +0000)]
simplify the ast_channel walking routines.
(the previous version was mine, but this way it is definitely
more readable).

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20543 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agomove common conditions to the outside block.
Luigi Rizzo [Sun, 16 Apr 2006 16:04:24 +0000 (16:04 +0000)]
move common conditions to the outside block.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20540 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agosimplify logic in ast_generic_bridge()
Luigi Rizzo [Sun, 16 Apr 2006 15:51:53 +0000 (15:51 +0000)]
simplify logic in ast_generic_bridge()

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20514 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agomove common code in one place
Luigi Rizzo [Sun, 16 Apr 2006 15:27:58 +0000 (15:27 +0000)]
move common code in one place

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20513 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agoavoid returning in the middle of a switch() in ast_answer()
Luigi Rizzo [Sun, 16 Apr 2006 15:22:13 +0000 (15:22 +0000)]
avoid returning in the middle of a switch() in  ast_answer()

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20512 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agosimplify function __ast_request_and_dial() as follows:
Luigi Rizzo [Sun, 16 Apr 2006 15:13:39 +0000 (15:13 +0000)]
simplify function __ast_request_and_dial() as follows:
- handle immediately failures in ast_request();
  This removes the need for checking 'chan' multiple times afterwards.
- handle immediately failures in ast_call(), by moving the one-line
  case at the top of the 'if' statement;
- use ast_strlen_zero in several places instead of expanding it inline;
- make outstate always a valid pointer;
On passing mark an unclear statement and replace a magic number
with sizeof(tmp).

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20511 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agoproperly reindent a block
Luigi Rizzo [Sun, 16 Apr 2006 14:14:16 +0000 (14:14 +0000)]
properly reindent a block

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20484 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agoadd a missing ast_channel_unlock() evidenced by previous commits.
Luigi Rizzo [Sun, 16 Apr 2006 14:03:43 +0000 (14:03 +0000)]
add a missing ast_channel_unlock() evidenced by previous commits.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20477 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agoremove an extra lock.
Luigi Rizzo [Sun, 16 Apr 2006 14:00:17 +0000 (14:00 +0000)]
remove an extra lock.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20456 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years ago- replace some nested 'if' with '&&'
Luigi Rizzo [Sun, 16 Apr 2006 13:58:43 +0000 (13:58 +0000)]
- replace some nested 'if' with '&&'
- bring the short case at the top of an 'if' statement
  (also fix misformatting)
- replace several 'if' with the '?' operator;

- invert the condition on an 'if' to reduce the nesting depth
  (reindentation to be done later).

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20454 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agoLocalize some variables documenting their usage.
Luigi Rizzo [Sun, 16 Apr 2006 13:27:58 +0000 (13:27 +0000)]
Localize some variables documenting their usage.
Comment a possible problem with locking.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20453 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years ago- Fixes to ast_channel_lock functions
Olle Johansson [Sun, 16 Apr 2006 12:57:15 +0000 (12:57 +0000)]
- Fixes to ast_channel_lock functions
- New get_sip_pvt_byid function (not really used correctly yet...)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20424 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agolocalize some variables, add some comments.
Luigi Rizzo [Sun, 16 Apr 2006 08:01:10 +0000 (08:01 +0000)]
localize some variables, add some comments.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20396 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agoimplement ast_waitfordigit() and ast_readstring() in terms
Luigi Rizzo [Sun, 16 Apr 2006 07:53:25 +0000 (07:53 +0000)]
implement ast_waitfordigit() and ast_readstring() in terms
of their '_full()' version, so we can remove the replicated
implementation and, especially, the risk that they get out of sync.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20389 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agoMove a bit more stuff over to the datadir (issue #6967 reported by tzafrir patch...
Joshua Colp [Sat, 15 Apr 2006 23:37:29 +0000 (23:37 +0000)]
Move a bit more stuff over to the datadir (issue #6967 reported by tzafrir patch by north)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20358 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agoAllow the attachment format to be specified differently for different mailboxes ...
Joshua Colp [Sat, 15 Apr 2006 23:05:18 +0000 (23:05 +0000)]
Allow the attachment format to be specified differently for different mailboxes (issue #6961 reported by the ever fabulous Corydon76)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20357 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agoWe are shaking up trunk tonight! allow data dir to be specified (issue #6967 reported...
Joshua Colp [Sat, 15 Apr 2006 22:53:53 +0000 (22:53 +0000)]
We are shaking up trunk tonight! allow data dir to be specified (issue #6967 reported by tzafrir)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20330 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agoadd indications for Thailand (issue #6971)
Russell Bryant [Sat, 15 Apr 2006 22:49:45 +0000 (22:49 +0000)]
add indications for Thailand (issue #6971)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20329 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agoadd the ability to turn off the feature that allows agents to end calls
Russell Bryant [Sat, 15 Apr 2006 22:32:23 +0000 (22:32 +0000)]
add the ability to turn off the feature that allows agents to end calls
by pressing '*'.  This is still on by default. (issue #6897)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20328 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agoBig oops. I did this from my trunk directory instead of autoconf_and_menuselect ...
Russell Bryant [Sat, 15 Apr 2006 15:34:57 +0000 (15:34 +0000)]
Big oops.  I did this from my trunk directory instead of autoconf_and_menuselect ...

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20297 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agoinclude autoconfig.h (casper)
Russell Bryant [Sat, 15 Apr 2006 15:33:00 +0000 (15:33 +0000)]
include autoconfig.h (casper)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20296 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agoMore ast_channel_lock fixes
Olle Johansson [Sat, 15 Apr 2006 15:07:39 +0000 (15:07 +0000)]
More ast_channel_lock fixes
- Update lock.h with definitions of ast_channel_lock, ast_channel_unlock and ast_channel_trylock
- Convert some functions (but not all) in channel.c
- Fix some bugs in chan_sip.c
- Convert rest of chan_sip.c

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20295 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agoNew functions for locking a channel - these simplify debugging
Olle Johansson [Sat, 15 Apr 2006 08:07:50 +0000 (08:07 +0000)]
New functions for locking a channel - these simplify debugging
when you have channel locking issues.
(Part of the SIP transfer patch, where I had a *lot* of
channel locking problems)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20264 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agoapplied two of the 3 chunks in #6907, and a similar one
Luigi Rizzo [Sat, 15 Apr 2006 00:53:04 +0000 (00:53 +0000)]
applied two of the 3 chunks in #6907, and a similar one
(replace nested 'if' with '&&')
I cannot make sense of the first chunk of the proposed patch,
i think the original is correct.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20225 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years ago- use '=' to copy struct sockaddr_in
Luigi Rizzo [Sat, 15 Apr 2006 00:36:05 +0000 (00:36 +0000)]
- use '=' to copy struct sockaddr_in
- localize a variable
- replace three replicas of the same code with a much simpler construct
  removing replicated var = var->next;
- use '?' instead of 'if' for an assignment

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20224 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years ago- normalize for() loops to navigate through variables,
Luigi Rizzo [Sat, 15 Apr 2006 00:05:08 +0000 (00:05 +0000)]
- normalize for() loops to navigate through variables,
  removing replicated var = var->next;
- remove a potential infinite loop and document the problem
- remove useless checks and document why
- mark XXX a possible bug (to be investigated)
- use ast_strlen_zero() instead of expanding it inline
- fix indentation in one place
- replace a nested 'if' with '&&'

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20223 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years ago- use '?' instead of if statements for assignment;
Luigi Rizzo [Fri, 14 Apr 2006 23:30:18 +0000 (23:30 +0000)]
- use '?' instead of if statements for assignment;
- fix indentation in a few places
- use a variable to store the 'other' channel, thus removing
  the need for some duplicated code;
- use '=' instead of memcpy to copy struct sockaddr_in

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20197 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years ago- remove some unnecessary casts and braces;
Luigi Rizzo [Fri, 14 Apr 2006 23:20:29 +0000 (23:20 +0000)]
- remove some unnecessary casts and braces;
- add braces around a nested 'if'
- use S_OR and '?' to remove some duplicated function calls;
- replace nested 'if' with &&
- move out a common term in a sequence of 'if'
- add a comment on a potentially dangerous string manipulation

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20196 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agoremove some unnecessary braces
Luigi Rizzo [Fri, 14 Apr 2006 22:55:58 +0000 (22:55 +0000)]
remove some unnecessary braces

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20170 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agomisc. code cleanup
Luigi Rizzo [Fri, 14 Apr 2006 22:48:05 +0000 (22:48 +0000)]
misc. code cleanup

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20169 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agocode simplifications
Luigi Rizzo [Fri, 14 Apr 2006 22:32:13 +0000 (22:32 +0000)]
code simplifications

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20168 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agouse ast_strdup instead of strdup
Luigi Rizzo [Fri, 14 Apr 2006 22:22:13 +0000 (22:22 +0000)]
use ast_strdup instead of strdup

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20167 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agonormalize cli completion code
Luigi Rizzo [Fri, 14 Apr 2006 22:17:27 +0000 (22:17 +0000)]
normalize cli completion code

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20166 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agoconstification and code simplifications
Luigi Rizzo [Fri, 14 Apr 2006 22:02:19 +0000 (22:02 +0000)]
constification and code simplifications

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20165 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agoconstify a couple of function arguments
Luigi Rizzo [Fri, 14 Apr 2006 21:00:59 +0000 (21:00 +0000)]
constify a couple of function arguments

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20138 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agocode cleanup (for loop normalization, remove useless casts and parentheses)
Luigi Rizzo [Fri, 14 Apr 2006 20:47:06 +0000 (20:47 +0000)]
code cleanup (for loop normalization, remove useless casts and parentheses)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20132 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agopartial fix of the module API to use the new method.
Luigi Rizzo [Fri, 14 Apr 2006 19:35:37 +0000 (19:35 +0000)]
partial fix of the module API to use the new method.
Still not complete as we need to take care of the usecount stuff.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20104 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agofix another svn merge bug
Luigi Rizzo [Fri, 14 Apr 2006 18:45:08 +0000 (18:45 +0000)]
fix another svn merge bug

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20076 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agoCompatibility fixes for loader changes
Tilghman Lesher [Fri, 14 Apr 2006 18:44:24 +0000 (18:44 +0000)]
Compatibility fixes for loader changes

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20075 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agoMerged revisions 20037 via svnmerge from
Kevin P. Fleming [Fri, 14 Apr 2006 17:25:31 +0000 (17:25 +0000)]
Merged revisions 20037 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r20037 | kpfleming | 2006-04-14 12:21:09 -0500 (Fri, 14 Apr 2006) | 2 lines

uncomment files that actually do exist (oops)

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20038 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agofix a mostly harmless error introduced by svn merge.
Luigi Rizzo [Fri, 14 Apr 2006 17:19:57 +0000 (17:19 +0000)]
fix a mostly harmless error introduced by svn merge.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20036 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agoMerged revisions 20034 via svnmerge from
Kevin P. Fleming [Fri, 14 Apr 2006 17:01:07 +0000 (17:01 +0000)]
Merged revisions 20034 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r20034 | kpfleming | 2006-04-14 12:00:32 -0500 (Fri, 14 Apr 2006) | 2 lines

update text to match actual prompts being distributed (thanks to Kinsey in the support department for reviewing all the prompts!)

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20035 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agoThis rather large commit changes the way modules are loaded.
Luigi Rizzo [Fri, 14 Apr 2006 14:08:19 +0000 (14:08 +0000)]
This rather large commit changes the way modules are loaded.

As partly documented in loader.c and include/asterisk/module.h,
modules are now expected to return all of their methods and flags
into a structure 'mod_data', and are normally loaded with RTLD_NOW
| RTLD_LOCAL, so symbols are resolved immediately and conflicts
should be less likely.  Only in a small number of cases (res_*,
typically) modules are loaded RTLD_GLOBAL, so they can export
symbols.

The core of the change is only the two files loader.c and
include/asterisk/module.h, all the rest is simply adaptation of the
existing modules to the new API, a rather mechanical (but believe
me, time and finger-consuming!) process whose detail you can figure
out by svn diff'ing any single module.

Expect some minor compilation issue after this change, please
report it on mantis http://bugs.digium.com/view.php?id=6968
so we collect all the feedback in one place.

I am just sorry that this change missed SVN version number 20000!

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20003 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agotemporarily revert the way mutex are initialized on BSD systems.
Luigi Rizzo [Fri, 14 Apr 2006 13:54:53 +0000 (13:54 +0000)]
temporarily revert the way mutex are initialized on BSD systems.
This fixes the compilation on OS/X (the change exposed a wrong
assumption on mutex types on OS/X), but still leaves open the
bugs in initializing mutex on bsd systems, which you will see
reported as 'locking failures' on certain operations.
I need to investigate the issue further, but the best thing
i can do now is leave things as they have been for months.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19973 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agoBug 6927 - CLI command has 3 args, not 2.
Tilghman Lesher [Fri, 14 Apr 2006 04:59:11 +0000 (04:59 +0000)]
Bug 6927 - CLI command has 3 args, not 2.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19941 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agoMerged revisions 19891 via svnmerge from
Tilghman Lesher [Thu, 13 Apr 2006 20:40:23 +0000 (20:40 +0000)]
Merged revisions 19891 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r19891 | tilghman | 2006-04-13 15:37:50 -0500 (Thu, 13 Apr 2006) | 2 lines

Bug 6947 - Allow vm broadcasts to more than 256 characters worth of mailboxes

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19892 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agoFix format for big endian systems
Tilghman Lesher [Thu, 13 Apr 2006 20:19:02 +0000 (20:19 +0000)]
Fix format for big endian systems

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19890 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agoFix the grammar that Kevin broke
Joshua Colp [Thu, 13 Apr 2006 19:58:45 +0000 (19:58 +0000)]
Fix the grammar that Kevin broke

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19858 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agoBug 6896 - Fix for garbled wav49 format
Tilghman Lesher [Thu, 13 Apr 2006 17:46:06 +0000 (17:46 +0000)]
Bug 6896 - Fix for garbled wav49 format

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19814 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agoMerged revisions 19812 via svnmerge from
Kevin P. Fleming [Thu, 13 Apr 2006 17:41:43 +0000 (17:41 +0000)]
Merged revisions 19812 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r19812 | kpfleming | 2006-04-13 12:40:21 -0500 (Thu, 13 Apr 2006) | 2 lines

oops... let's not set a variable and then immediately overwrite it while assuming its old value will magically return

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19813 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agoUnregister format says it's already unregistered
Tilghman Lesher [Thu, 13 Apr 2006 17:22:16 +0000 (17:22 +0000)]
Unregister format says it's already unregistered

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19811 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agoTypo fix
Tilghman Lesher [Thu, 13 Apr 2006 17:20:28 +0000 (17:20 +0000)]
Typo fix

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19810 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agoBlocked revisions 19768 via svnmerge
Tilghman Lesher [Thu, 13 Apr 2006 15:58:22 +0000 (15:58 +0000)]
Blocked revisions 19768 via svnmerge

........
r19768 | tilghman | 2006-04-13 10:56:35 -0500 (Thu, 13 Apr 2006) | 2 lines

Bug 6957 - variable names beginning with CALLERID weren't substituted correctly

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19769 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agoremove extraneous warning message
Kevin P. Fleming [Thu, 13 Apr 2006 15:28:24 +0000 (15:28 +0000)]
remove extraneous warning message

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19767 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agoIssue #6951 - Show last successful registration time in "sip show registry" (ivanfm...
Olle Johansson [Thu, 13 Apr 2006 12:48:03 +0000 (12:48 +0000)]
Issue #6951 - Show last successful registration time in "sip show registry" (ivanfm) with mods for svn trunk

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19736 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agoFormatting fixes
Olle Johansson [Thu, 13 Apr 2006 07:08:44 +0000 (07:08 +0000)]
Formatting fixes

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19703 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agoDocument the MSGSM format, and fix the uncalculated number of samples
Tilghman Lesher [Thu, 13 Apr 2006 01:29:54 +0000 (01:29 +0000)]
Document the MSGSM format, and fix the uncalculated number of samples

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19673 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agoUpdates to speech recognition API and dialplan utilities. Moved to using dialplan...
Joshua Colp [Thu, 13 Apr 2006 00:18:52 +0000 (00:18 +0000)]
Updates to speech recognition API and dialplan utilities. Moved to using dialplan functions, and some other misc things.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19645 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agofix caffiene-induced typo.
Josh Roberson [Wed, 12 Apr 2006 23:57:39 +0000 (23:57 +0000)]
fix caffiene-induced typo.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19616 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agoNote that the res_speech module will need to be loaded first, and add a conveient...
Josh Roberson [Wed, 12 Apr 2006 23:47:51 +0000 (23:47 +0000)]
Note that the res_speech module will need to be loaded first, and add a conveient line to uncomment to do so for the time being.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19615 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agosimplify macro usage
Kevin P. Fleming [Wed, 12 Apr 2006 23:33:47 +0000 (23:33 +0000)]
simplify macro usage

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19614 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agomake sure uint64_t is available on mac
Russell Bryant [Wed, 12 Apr 2006 21:22:00 +0000 (21:22 +0000)]
make sure uint64_t is available on mac

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19579 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years ago- Adding some refer state definitions from the siptransfer branch
Olle Johansson [Wed, 12 Apr 2006 21:21:44 +0000 (21:21 +0000)]
- Adding some refer state definitions from the siptransfer branch
- A bit more URI conversions
- Changes to sip_dual and the SIP invite structure
- Add Supported: headers to more requests

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19578 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agoFix for Polycom bug...
Olle Johansson [Wed, 12 Apr 2006 21:00:31 +0000 (21:00 +0000)]
Fix for Polycom bug...

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19549 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agoImplement a setting for denying/allowing transfer requests. At this stage,
Olle Johansson [Wed, 12 Apr 2006 20:57:07 +0000 (20:57 +0000)]
Implement a setting for denying/allowing transfer requests. At this stage,
we only have open/closed. Well, at least you can deny transfers from unknown
callers or at least incoming calls.
(Part of the SIPtransfer branch)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19546 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agowhoops... remove an extra line.
Luigi Rizzo [Wed, 12 Apr 2006 20:42:02 +0000 (20:42 +0000)]
whoops... remove an extra line.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19545 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agoadd 'show threads' and 'show profile' commands.
Luigi Rizzo [Wed, 12 Apr 2006 20:40:46 +0000 (20:40 +0000)]
add 'show threads' and 'show profile' commands.
These are momstly debugging tools for developers,
a bit documented in the header files (utils.h),
although more documentation is definitely necessary.

The performance impact is close to zero(*) so there is no
need to compile it conditionally.
(*) not completely true - thread destruction still needs
to search a list _but_ this can be easily optimized if we
end up with hundreds of active threads (in which case, though,
the problem is clearly elsewhere).

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19544 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agofancify the sample grammar a bit
Kevin P. Fleming [Wed, 12 Apr 2006 20:39:09 +0000 (20:39 +0000)]
fancify the sample grammar a bit

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19543 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agoDoxygen docs
Olle Johansson [Wed, 12 Apr 2006 20:32:40 +0000 (20:32 +0000)]
Doxygen docs

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19542 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agoAdd ability to see if the person calling said anything or not.
Joshua Colp [Wed, 12 Apr 2006 19:57:21 +0000 (19:57 +0000)]
Add ability to see if the person calling said anything or not.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19512 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agoreindent block properly
Luigi Rizzo [Wed, 12 Apr 2006 00:17:37 +0000 (00:17 +0000)]
reindent block properly

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19466 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agolocalize some variables, remove useless parentheses
Luigi Rizzo [Wed, 12 Apr 2006 00:15:57 +0000 (00:15 +0000)]
localize some variables, remove useless parentheses

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19465 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agoremove useless \0, and fix formatting.
Luigi Rizzo [Tue, 11 Apr 2006 23:54:33 +0000 (23:54 +0000)]
remove useless \0, and fix formatting.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19437 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agoBug 6943 - transition away from using CallerID header, when we really mean CallerIDNum
Tilghman Lesher [Tue, 11 Apr 2006 23:23:16 +0000 (23:23 +0000)]
Bug 6943 - transition away from using CallerID header, when we really mean CallerIDNum

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19436 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agoMerged revisions 19397 via svnmerge from
Tilghman Lesher [Tue, 11 Apr 2006 22:51:10 +0000 (22:51 +0000)]
Merged revisions 19397 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r19397 | tilghman | 2006-04-11 17:39:59 -0500 (Tue, 11 Apr 2006) | 2 lines

Bug 6490 - telco intercept should report NOANSWER instead of CHANUNAVAIL

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19398 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agofix various bugs in the DEBUG_THREADS code including:
Luigi Rizzo [Tue, 11 Apr 2006 22:37:27 +0000 (22:37 +0000)]
fix various bugs in the DEBUG_THREADS code including:
- misspelled ast_mutex_logger() instead of __ast_mutex_logger()
- misplaced #define ast_mutex_init(pmutex)
- wrong arguments to __ast_mutex_logger() in one instance.

Clearly this code is too spaghetti!

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19396 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agoMerged revisions 19394 via svnmerge from
Tilghman Lesher [Tue, 11 Apr 2006 22:25:57 +0000 (22:25 +0000)]
Merged revisions 19394 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r19394 | tilghman | 2006-04-11 17:24:46 -0500 (Tue, 11 Apr 2006) | 2 lines

Bug 6061 - Fix ODBC storage of VM on PGSQL and MSSQL

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19395 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agofix logic error; don't test for rtcache flag unless asked to (issue #6923)
Kevin P. Fleming [Tue, 11 Apr 2006 22:07:52 +0000 (22:07 +0000)]
fix logic error; don't test for rtcache flag unless asked to (issue #6923)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19393 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agoMerged revisions 19353 via svnmerge from
Kevin P. Fleming [Tue, 11 Apr 2006 21:59:40 +0000 (21:59 +0000)]
Merged revisions 19353 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r19353 | kpfleming | 2006-04-11 16:58:47 -0500 (Tue, 11 Apr 2006) | 2 lines

don't create a 'voicemail' symlink in the sounds directory; app_voicemail has not needed it since January of 2005 (issue #6613)

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19354 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agoMerged revisions 19351 via svnmerge from
Tilghman Lesher [Tue, 11 Apr 2006 21:58:44 +0000 (21:58 +0000)]
Merged revisions 19351 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r19351 | tilghman | 2006-04-11 16:55:51 -0500 (Tue, 11 Apr 2006) | 2 lines

Bug 6097 - possible descriptor leak

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19352 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agoMerged revisions 19348 via svnmerge from
Kevin P. Fleming [Tue, 11 Apr 2006 21:51:17 +0000 (21:51 +0000)]
Merged revisions 19348 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r19348 | kpfleming | 2006-04-11 16:50:18 -0500 (Tue, 11 Apr 2006) | 2 lines

don't call the originating device as part of the Page() operation (issue #6932)

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19350 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agoMerged revisions 19347 via svnmerge from
Kevin P. Fleming [Tue, 11 Apr 2006 21:50:48 +0000 (21:50 +0000)]
Merged revisions 19347 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r19347 | kpfleming | 2006-04-11 16:35:52 -0500 (Tue, 11 Apr 2006) | 2 lines

simplify spy queue flushing logic, and always force a flush when one side gets full, even if the other side is not empty (issue #6457)

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19349 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agoMerged revisions 19345 via svnmerge from
Kevin P. Fleming [Tue, 11 Apr 2006 21:18:27 +0000 (21:18 +0000)]
Merged revisions 19345 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r19345 | kpfleming | 2006-04-11 16:14:42 -0500 (Tue, 11 Apr 2006) | 2 lines

don't destroy the entire dialplan during 'reload', just atomically replace it like 'extensions reload' does (issue #6047)

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19346 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agoremove unused variable (discovered by the compiler)
Luigi Rizzo [Tue, 11 Apr 2006 20:52:05 +0000 (20:52 +0000)]
remove unused variable (discovered by the compiler)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19306 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agoNo need to do this in here any longer since the linkedlists macro is fixed
Joshua Colp [Tue, 11 Apr 2006 20:51:45 +0000 (20:51 +0000)]
No need to do this in here any longer since the linkedlists macro is fixed

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19305 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agoMerged revisions 19303 via svnmerge from
Joshua Colp [Tue, 11 Apr 2006 20:48:57 +0000 (20:48 +0000)]
Merged revisions 19303 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r19303 | file | 2006-04-11 17:46:38 -0300 (Tue, 11 Apr 2006) | 2 lines

Minor linked lists bug fix. When you're dealing with swapping entries around a lot it can cause a seg fault.

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19304 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agoMerged revisions 19301 via svnmerge from
Kevin P. Fleming [Tue, 11 Apr 2006 20:11:36 +0000 (20:11 +0000)]
Merged revisions 19301 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r19301 | kpfleming | 2006-04-11 15:11:01 -0500 (Tue, 11 Apr 2006) | 2 lines

handle call time limit properly when warning is requested _after_ call would hae already ended (issue #6356)

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19302 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agotypo
Kevin P. Fleming [Tue, 11 Apr 2006 17:03:26 +0000 (17:03 +0000)]
typo

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19272 65c4cc65-6c06-0410-ace0-fbb531ad65f3