Archived
14
0
Fork 0
Commit graph

13990 commits

Author SHA1 Message Date
mmichelson
3838d4b2c6 Changed VERBOSITY_LEVEL to VERBOSITY_ATLEAST to be more accurate.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@93063 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-14 18:54:48 +00:00
mmichelson
0fecfb254c After reading Russell's e-mail to the dev list stating that checking option_verbose is not
equivalent to the check done by ast_verb, I wrote a macro, VERBOSITY_LEVEL, which does this
check. I did a quick look in the source and used this macro in some places where option_verbose
was used.

I also converted some verbose messages in logger.c to use ast_verb instead of ast_verbose.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@93042 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-14 18:47:44 +00:00
tilghman
6af365b47c gcc 4.1.3 wants a union used here.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@93041 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-14 18:24:12 +00:00
russell
db90e46f52 Print an error message if a #included file does not exist
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@93004 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-14 17:49:28 +00:00
russell
b493b7c9fe Blocked revisions 93000 via svnmerge
........
r93000 | russell | 2007-12-14 11:36:08 -0600 (Fri, 14 Dec 2007) | 7 lines

There are a lot of existing systems that #include non-existent files.  So, to
make the transition to treating this as an error a bit less painless, just issue
a huge error message for now.  Then, later, we can reinstate the code that treats
it as a failure.

(Thanks to philippel for the feedback)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@93001 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-14 17:38:11 +00:00
tilghman
cc8c8c385c Publish the AGI events to manager.
Reported by: moy
Patch by: moy,tilghman
(Closes issue #11337)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@92999 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-14 17:29:27 +00:00
mmichelson
06927ebe43 Reintroduce an optimization that was lost when converting trunk to use ast_verb.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@92976 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-14 15:59:09 +00:00
tilghman
f63b3a6c9d If malloc.h is included in a Solaris build, the compilation breaks.
Reported by: snuffy
Patch by: snuffy
(Closes issue #11313)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@92939 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-14 15:49:14 +00:00
file
eb38362562 Merged revisions 92937 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r92937 | file | 2007-12-14 11:16:15 -0400 (Fri, 14 Dec 2007) | 4 lines

Up the length of the format on the SIP channel since it can now be rather long.
(closes issue #11552)
Reported by: francesco_r

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@92938 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-14 15:18:10 +00:00
tilghman
9142fb96da Merged revisions 92933 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r92933 | tilghman | 2007-12-14 09:01:10 -0600 (Fri, 14 Dec 2007) | 5 lines

Change help documentation to match actual behavior (FAILURE vs FAILED).
Reported by: angeloxx-sir
Patch by: tilghman
(Closes issue #11548)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@92936 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-14 15:14:24 +00:00
crichter
09f87ba822 Merged revisions 92934 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r92934 | crichter | 2007-12-14 16:05:28 +0100 (Fr, 14 Dez 2007) | 1 line

fixed the sequencing of WAITING_4DIGS state setting and overlap_task thread starting.
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@92935 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-14 15:08:09 +00:00
tilghman
35d428bcca Convert ast_verbose to ast_verb.
Reported by: snuffy
Patch by: snuffy
(Closes issue #11547)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@92913 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-14 14:48:38 +00:00
mmichelson
3b2aaf7646 Merged revisions 92875 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r92875 | mmichelson | 2007-12-13 19:24:06 -0600 (Thu, 13 Dec 2007) | 7 lines

When compiling with DETECT_DEADLOCKS, don't spam the CLI with messages
about possible deadlocks. Instead just print the intended single message every
five seconds.

(closes issue 11537, reported and patched by dimas)


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@92876 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-14 01:25:36 +00:00
tilghman
6876fa7e1d When working with dates, use numeric form whenever possible, as it's faster.
Also, a bunch of coding guidelines fixes.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@92855 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-13 23:10:42 +00:00
tilghman
efde89dea6 Merged revisions 92815 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r92815 | tilghman | 2007-12-13 15:28:39 -0600 (Thu, 13 Dec 2007) | 5 lines

Properly initialize polarity statuses, so that they are detected properly.
Reported by: julianjm
Patch by: julianjm
(Closes issue #10238)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@92816 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-13 21:42:33 +00:00
file
0345153cc7 Move usage of the old LOCAL_USER_* macros to the new ast_module_user_* functions in a few documentation places.
(closes issue #11533)
Reported by: IgorG
Patches:
      oldmacroclean.v1.diff uploaded by IgorG (license 20)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@92811 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-13 20:23:48 +00:00
qwell
67b0bc3f95 Merged revisions 92809 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r92809 | qwell | 2007-12-13 14:13:48 -0600 (Thu, 13 Dec 2007) | 1 line

Make application help text a little more clear about the use of extensions in a filename.
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@92810 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-13 20:14:26 +00:00
mmichelson
42b7cba60f Merged revisions 92807 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r92807 | mmichelson | 2007-12-13 14:03:20 -0600 (Thu, 13 Dec 2007) | 3 lines

Prevent another potential fd leak


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@92808 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-13 20:12:37 +00:00
mmichelson
9933ae09ce Merged revisions 92803 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r92803 | mmichelson | 2007-12-13 13:49:55 -0600 (Thu, 13 Dec 2007) | 3 lines

Prevent a possible fd leak. 


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@92806 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-13 19:53:21 +00:00
tilghman
958387bc2e Don't use backslash as an escape character, unless it really is an escape character.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@92779 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-13 17:46:04 +00:00
qwell
10fce374f2 Remove remnants of a poorly merged commit. (92697)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@92758 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-13 16:23:50 +00:00
dbailey
7ea42fc475 Tag voicemails with UTC time as opposed to local time zone
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@92737 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-13 15:40:19 +00:00
qwell
fa4043b087 Merged revisions 92696 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

(closes issue #10690)
........
r92696 | qwell | 2007-12-12 18:11:09 -0600 (Wed, 12 Dec 2007) | 7 lines

If a typo is found in a config file, we previous continued on with what was already loaded.
We do not want to do this (see bug below for details).

This makes it so that if a [ is found without a ], the entire config will fail, and nothing in it will be loaded.

Issue 10690.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@92697 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-13 00:18:04 +00:00
russell
6132c7f541 Revert an "optimization" that I added in revision 89887, as the user who reported
issue #11449 has demonstrated that it actually was a performance hit on his
machine.  I think that it is possible that it could still be a benefit on systems
under higher load, especially SMP systems, but I don't have enough time or interest
to find out at the moment.
(closes issue #11449)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@92676 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-12 23:44:26 +00:00
qwell
44d836c02e Merged revisions 92617 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

(closes issue #11048)
........
r92617 | qwell | 2007-12-12 15:15:45 -0600 (Wed, 12 Dec 2007) | 4 lines

Don't increment user count until after name has been recorded (if enabled).

Issue 11048, tested by pep.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@92618 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-12 21:22:58 +00:00
tilghman
8a1ce32239 Conversions of free to ast_free, where applicable, and several other formatting fixes.
Reported by: eliel
Patch by: eliel,tilghman
(Closes issue #11209)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@92594 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-12 20:05:13 +00:00
russell
15dae4e598 Merged revisions 92556 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r92556 | russell | 2007-12-12 13:40:02 -0600 (Wed, 12 Dec 2007) | 1 line

resolve compiler warning
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@92562 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-12 19:50:32 +00:00
mmichelson
7be9ad3faf Same change to trunk as revision 92510. I'm not sure why I merged
this way, but I did.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@92526 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-12 17:51:50 +00:00
mmichelson
8fade4d969 Blocked revisions 92510 via svnmerge
........
r92510 | mmichelson | 2007-12-12 11:46:14 -0600 (Wed, 12 Dec 2007) | 7 lines

Correctly detect where a dynamic feature was activated. Before this patch,
the channel which initiated the bridge was always assumed to have been the one
which activated the dynamic feature. This patch corrects this.

(closes issue #11529, reported and patched by nic_bellamy)


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@92511 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-12 17:48:34 +00:00
tilghman
12ebe404df Correctly handle possible memory allocation failure
Reported by: eliel
Patch by: eliel
(Closes issue #11512)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@92507 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-12 17:15:56 +00:00
tilghman
ae8659d7ba Merged revisions 92463 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r92463 | tilghman | 2007-12-12 10:52:56 -0600 (Wed, 12 Dec 2007) | 4 lines

Test directly for the API that fixed AST-2007-026, to ensure that older
versions of PostgreSQL are no longer acceptable.
(Closes issue #11526)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@92476 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-12 16:56:12 +00:00
mmichelson
968223cb5a Merged revisions 92443 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r92443 | mmichelson | 2007-12-12 10:08:55 -0600 (Wed, 12 Dec 2007) | 3 lines

Removing an unused variable.


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@92444 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-12 16:11:13 +00:00
oej
c7aed6ea2b Doxygen updates, formatting.
misdn stuff needs a lot of doxygenification

(Hello, Qwell :-) )


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@92423 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-11 22:20:22 +00:00
mmichelson
bf3d4cdd5e Trunk build would fail due to the nonexistence of zaptel hwgain
structures missing. Patched configure to check for this stuff and
put a #ifdef around the offending code in chan_zap. Thanks to file
for overseeing this.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@92422 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-11 22:10:43 +00:00
qwell
3ef79ca4be We need to set the address we want to match against before we actually do the match..
Closes issue #11518.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@92421 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-11 21:58:26 +00:00
mmichelson
7ee12372f0 Removing a pointless memset. The memory was just calloc'd, so the
memory is already zeroed out



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@92402 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-11 21:46:16 +00:00
qwell
bc610bd471 Add variable to show which key was pressed to stop playback.
Issue #11377, initial patch by johan.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@92401 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-11 21:17:37 +00:00
file
c79944aab8 Only look to see if options are set if some have been provided.
(closes issue #11505)
Reported by: Mike Anikienko


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@92365 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-11 20:06:43 +00:00
file
fb79f2259a Merged revisions 92363 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r92363 | file | 2007-12-11 15:51:40 -0400 (Tue, 11 Dec 2007) | 6 lines

Fix potential memory leak with the dialed interfaces list if another memory allocation fails.
(closes issue #11507)
Reported by: eliel
Patches:
      global_datastores.c.patch uploaded by eliel (license 64)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@92364 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-11 19:52:37 +00:00
mmichelson
e8509b016f Merged revisions 92323 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r92323 | mmichelson | 2007-12-11 11:42:25 -0600 (Tue, 11 Dec 2007) | 10 lines

Fixing autofill to be more accurate. Specifically, if calls ahead of the current
caller were ringing members (but not yet bridged) there could be available members
and waiting callers who would not get matched up. The member availability checker
was correctly determining the number of available members in this scenario, but
the queue itself did not parallelly reflect this status on the pending calls. This
commit corrects the issue.

(closes issue #11459, reported by equissoftware, patched by me)


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@92324 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-11 17:44:42 +00:00
russell
3e1330a03a * In unaligned.h, remove some unnecessary casts and mark the arg of the
get_unaligned functions as const
* In event.c, use get_unaligned_uint32() in a couple of places to fix issues on
  architectures that don't allow unaligned access


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@92305 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-11 16:29:29 +00:00
oej
2020d20797 A lot of doxygen updates
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@92285 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-11 14:17:29 +00:00
oej
19b0b54055 Doxygen updates
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@92267 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-11 09:26:25 +00:00
dbailey
23e1e5c3fb Add CLI commands to dynamically set hw and sw gains
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@92243 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-10 20:18:25 +00:00
file
985bcbeb23 Add ast_atomic_fetchadd_int_slow to check_expr for platforms that need it.
(closes issue #11484)
Reported by: snuffy


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@92206 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-10 16:48:18 +00:00
file
d734235a7a Merged revisions 92204 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r92204 | file | 2007-12-10 12:36:15 -0400 (Mon, 10 Dec 2007) | 6 lines

Add G729A as another possible payload name for G729. Some devices use this instead of G729, which is perfectly normal since the payload number itself is defined and can't be used by anything else so the name doesn't matter that much.
(closes issue #11483)
Reported by: revolution
Patches:
      rtp.diff uploaded by revolution (license 346)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@92205 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-10 16:37:35 +00:00
mmichelson
71e1a364c8 Merged revisions 92202 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r92202 | mmichelson | 2007-12-10 10:29:44 -0600 (Mon, 10 Dec 2007) | 7 lines

If there are no members in a queue, then the loop where the datastore for detecting
duplicate dialed numbers will be skipped, meaning the datastore isn't created. This means
that when we try to free it, there's a crash. This stops that crash from occurring.

(closes issue #11499, reported by slavon, patched by eliel)


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@92203 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-10 16:30:46 +00:00
file
07e6ddf14f Blocked revisions 92200 via svnmerge
........
r92200 | file | 2007-12-10 12:13:43 -0400 (Mon, 10 Dec 2007) | 4 lines

It is possible for nativeformats to contain more then one codec, so print out multiple ones.
(closes issue #11366)
Reported by: ovi

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@92201 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-10 16:15:06 +00:00
file
2234c364d9 Only send a SIGHUP if the pid is greater than -1, otherwise all PIDs greater than -1 will get the SIGHUP... and that is bad.
(closes issue #11453)
Reported by: alanmcmillan


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@92199 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-10 16:07:33 +00:00
oej
c08c9c7a7d Removing some LOG_DEBUG items
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@92160 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-10 14:18:21 +00:00