asterisk/asterisk.git
12 years agoAdd the annotation for the textarea used for messages,
Luigi Rizzo [Tue, 8 Jan 2008 23:14:48 +0000 (23:14 +0000)]
Add the annotation for the textarea used for messages,
and also change the background from white to something
different to show that we can make use of fonts with transparent
background.

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

12 years agoadd a font suitable for use with the console GUI.
Luigi Rizzo [Tue, 8 Jan 2008 23:11:25 +0000 (23:11 +0000)]
add a font suitable for use with the console GUI.
The background of this particular image is transparent so we
can preserve the original background when we draw strings.

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

12 years agoadd support for textareas, used for various dialog windows on the gui.
Luigi Rizzo [Tue, 8 Jan 2008 23:09:44 +0000 (23:09 +0000)]
add support for textareas, used for various dialog windows on the gui.
The main code to implement the textarea is in console_board.c,
and uses a simple png image with the font, blitting characters
on the designated areas of the main screen.
Additionally we provide some annotations in the image used
as a skin to indicate which areas are used for text messages.
(images will be committed separately).
At the moment the dialog area is only used to display a running
counter, just as a proof of concept.

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

12 years agoInitialize new variable to NULL
Terry Wilson [Tue, 8 Jan 2008 21:56:57 +0000 (21:56 +0000)]
Initialize new variable to NULL

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

12 years agoBlocked revisions 97206 via svnmerge
Mark Michelson [Tue, 8 Jan 2008 21:28:04 +0000 (21:28 +0000)]
Blocked revisions 97206 via svnmerge

........
r97206 | mmichelson | 2008-01-08 15:24:48 -0600 (Tue, 08 Jan 2008) | 3 lines

Some coding guidelines-related cleanup

........

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

12 years agoAdding the option of specifying a second interface in a member definition for a queue...
Mark Michelson [Tue, 8 Jan 2008 21:18:32 +0000 (21:18 +0000)]
Adding the option of specifying a second interface in a member definition for a queue. app_queue
will monitor this second device's state for the member, even though it actually calls the first
interface. This ability has been added for statically defined queue members, realtime queue members,
and dynamic queue members added through the CLI, dialplan, or manager.

(closes issue #11603, reported by acidv)

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

12 years agoChange reference to external library so it appears on the extref listing
Olle Johansson [Tue, 8 Jan 2008 21:01:46 +0000 (21:01 +0000)]
Change reference to external library so it appears on the extref listing
http://www.asterisk.org/doxygen/trunk/extref.html

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

12 years agoIksemel is alive in a new home. Release 1.3 is out with bug fixes.
Olle Johansson [Tue, 8 Jan 2008 20:58:56 +0000 (20:58 +0000)]
Iksemel is alive in a new home. Release 1.3 is out with bug fixes.

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

12 years agoMerged revisions 97194 via svnmerge from
Tilghman Lesher [Tue, 8 Jan 2008 20:56:38 +0000 (20:56 +0000)]
Merged revisions 97194 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r97194 | tilghman | 2008-01-08 14:47:07 -0600 (Tue, 08 Jan 2008) | 3 lines

Increase constants to where we're less likely to hit them while debugging.
(Closes issue #11694)

........

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

12 years agoOne line documentation ftw!
Joshua Colp [Tue, 8 Jan 2008 20:52:07 +0000 (20:52 +0000)]
One line documentation ftw!

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

12 years agoMerged revisions 97195 via svnmerge from
Joshua Colp [Tue, 8 Jan 2008 20:50:57 +0000 (20:50 +0000)]
Merged revisions 97195 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r97195 | file | 2008-01-08 16:48:20 -0400 (Tue, 08 Jan 2008) | 6 lines

Fix various DTMF issues in chan_mgcp.
(closes issue #11443)
Reported by: eferro
Patches:
      dtmf_control_hybrid-inband-mode.patch uploaded by eferro (license 337)

........

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

12 years agoMerged revisions 97192 via svnmerge from
Mark Michelson [Tue, 8 Jan 2008 20:45:59 +0000 (20:45 +0000)]
Merged revisions 97192 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r97192 | mmichelson | 2008-01-08 14:42:07 -0600 (Tue, 08 Jan 2008) | 9 lines

Making some changes designed to not allow for a corrupted mailstream for a vm_state.

1. Add locking to the vm_state retrieval functions so that no linked list corruption occurs.
2. Make sure to always grab the persistent vm_state when mailstream access is necessary.
3. Correct an incorrect return value in the init_mailstream function.

(closes issue #11304, reported by dwhite)

........

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

12 years agoMove common code for setting T38 capabilities and fix a bug with fax detection in...
Joshua Colp [Tue, 8 Jan 2008 20:06:52 +0000 (20:06 +0000)]
Move common code for setting T38 capabilities and fix a bug with fax detection in the SIP RTP read callback. It's still sort of silly... but more on that later.
(closes issue #11239)
Reported by: dimas
Patches:
      sipt38prop.patch uploaded by dimas (license 88)

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

12 years agoMerged revisions 97152 via svnmerge from
Joshua Colp [Tue, 8 Jan 2008 19:55:56 +0000 (19:55 +0000)]
Merged revisions 97152 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r97152 | file | 2008-01-08 15:53:52 -0400 (Tue, 08 Jan 2008) | 4 lines

If no group has been provided to the GROUP_COUNT dialplan function then use the first one specific to the channel.
(closes issue #11077)
Reported by: m4him

........

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

12 years agoMerged revisions 97077 via svnmerge from
Tilghman Lesher [Tue, 8 Jan 2008 19:06:27 +0000 (19:06 +0000)]
Merged revisions 97077 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r97077 | tilghman | 2008-01-08 12:02:13 -0600 (Tue, 08 Jan 2008) | 3 lines

Apply multiple crash fixes, found in issue #11386, but not completely
closing that issue.

........

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

12 years agoMerged revisions 97093 via svnmerge from
Joshua Colp [Tue, 8 Jan 2008 18:42:39 +0000 (18:42 +0000)]
Merged revisions 97093 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r97093 | file | 2008-01-08 14:36:40 -0400 (Tue, 08 Jan 2008) | 4 lines

Make app_queue calls work with directed pickup.
(closes issue #11700)
Reported by: jbauer

........

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

12 years agoMake ast_atomic_fetchadd_int_slow magically appear in extconf.
Joshua Colp [Tue, 8 Jan 2008 15:26:50 +0000 (15:26 +0000)]
Make ast_atomic_fetchadd_int_slow magically appear in extconf.
(closes issue #11703)
Reported by: dmartin

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

12 years agoadd support for cropping the keypad image while displaying it.
Luigi Rizzo [Mon, 7 Jan 2008 23:03:11 +0000 (23:03 +0000)]
add support for cropping the keypad image while displaying it.
This way it can contain additional elements (e.g. fonts, buttons,
widgets) without having to use a zillion files to store them.

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

12 years agoExplicitly make literal constants long where they are expected to be.
Mark Michelson [Mon, 7 Jan 2008 22:31:03 +0000 (22:31 +0000)]
Explicitly make literal constants long where they are expected to be.

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

12 years agoDisplay a message if no config mappings are found with "core show config mappings".
Jason Parker [Mon, 7 Jan 2008 21:12:33 +0000 (21:12 +0000)]
Display a message if no config mappings are found with "core show config mappings".

Closes issue #11704, patch by kshumard.

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

12 years agoDocument some weird casting magic that's necessary to interface
Mark Michelson [Mon, 7 Jan 2008 21:10:59 +0000 (21:10 +0000)]
Document some weird casting magic that's necessary to interface
with the c-client

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

12 years agoAdding user-configurable TCP timeout settings to IMAP voicemail. This could
Mark Michelson [Mon, 7 Jan 2008 21:04:09 +0000 (21:04 +0000)]
Adding user-configurable TCP timeout settings to IMAP voicemail. This could
go a long way towards preventing unexplainable hangs experienced by people. In the
case of MWI hangs, this also will mean that the SIP port isn't blocked anymore.

(closes issue #11665, reported by yehavi)

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

12 years agoMerged revisions 96932 via svnmerge from
Russell Bryant [Mon, 7 Jan 2008 20:48:23 +0000 (20:48 +0000)]
Merged revisions 96932 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r96932 | russell | 2008-01-07 14:47:52 -0600 (Mon, 07 Jan 2008) | 10 lines

Merged revisions 96931 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r96931 | russell | 2008-01-07 14:46:22 -0600 (Mon, 07 Jan 2008) | 2 lines

Change misery.digium.com to pbx.digium.com

........

................

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

12 years agoAdd a note about viewing the default set of documentation using the built-in http...
Russell Bryant [Mon, 7 Jan 2008 17:15:11 +0000 (17:15 +0000)]
Add a note about viewing the default set of documentation using the built-in http server

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

12 years agoIf the HTML documentation exists, install it in the static-http/docs directory
Russell Bryant [Mon, 7 Jan 2008 17:09:23 +0000 (17:09 +0000)]
If the HTML documentation exists, install it in the static-http/docs directory
so that it can be viewed through the Asterisk http server if it is turned on.

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

12 years agoBuild the HTML version of the doc files for tarballs, as well
Russell Bryant [Mon, 7 Jan 2008 16:59:04 +0000 (16:59 +0000)]
Build the HTML version of the doc files for tarballs, as well

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

12 years agoMerged revisions 96884 via svnmerge from
Russell Bryant [Mon, 7 Jan 2008 16:42:42 +0000 (16:42 +0000)]
Merged revisions 96884 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r96884 | russell | 2008-01-07 10:39:23 -0600 (Mon, 07 Jan 2008) | 3 lines

Don't crash if something happens when setting up an SMDI interface and it gets
destroyed before the SMDI port handling thread gets created.

........

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

12 years agoadd a file-format driver for 16KHz signed linear... which may or may not work
Kevin P. Fleming [Mon, 7 Jan 2008 16:17:31 +0000 (16:17 +0000)]
add a file-format driver for 16KHz signed linear... which may or may not work

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

12 years agoMove ModuleLoad and ModuleCheck manager commands from loader.c to manager.c. Previous...
Joshua Colp [Mon, 7 Jan 2008 15:52:55 +0000 (15:52 +0000)]
Move ModuleLoad and ModuleCheck manager commands from loader.c to manager.c. Previously they would get registered twice because of the way manager.c operates.
(closes issue #11699)
Reported by: caio1982
Patches:
      manager_module_commands1.diff uploaded by caio1982 (license 22)

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

12 years agoupdate comments to reflect reality (or at least planned behaviour).
Luigi Rizzo [Mon, 7 Jan 2008 15:06:54 +0000 (15:06 +0000)]
update comments to reflect reality (or at least planned behaviour).
minor code cleanups

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

12 years agoresolve a load-time problem avoiding a call to console_do_answer.
Luigi Rizzo [Mon, 7 Jan 2008 11:22:01 +0000 (11:22 +0000)]
resolve a load-time problem avoiding a call to console_do_answer.
On passing, fix dialling from the keypad.

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

12 years agoConvert this file over the new method of getting the Asterisk version.
Russell Bryant [Sat, 5 Jan 2008 23:05:35 +0000 (23:05 +0000)]
Convert this file over the new method of getting the Asterisk version.
(I don't have this building on this machine, so caio1982 on IRC is going to
 test it for me.  :) )

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

12 years agoNow that the version.h file was getting properly regenerated every time the svn
Russell Bryant [Sat, 5 Jan 2008 22:09:06 +0000 (22:09 +0000)]
Now that the version.h file was getting properly regenerated every time the svn
revision changed, every module that used the version was getting rebuilt after
every svn update.  This severly annoyed me pretty quickly, so I have improved
the situation.

Now, instead of generating version.h, main/version.c is generated.  version.c
includes the version information, as well as a couple of API calls for modules
to retrieve the version.  So now, only version.c will get rebuilt, and the main
asterisk binary relinked, which is must faster than rebuilding http.c, manager.c,
asterisk.c, relinking the asterisk binary, chan_sip.c, func_version.c, res_agi ...

The only minor change in behavior here is that the version information reported by
chan_sip, for example, is the version of the Asterisk core, and not necessarily the
Asterisk version that the chan_sip module came from.

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

12 years agoPrint out the name of a function being registered in color, just like the name
Russell Bryant [Sat, 5 Jan 2008 22:04:08 +0000 (22:04 +0000)]
Print out the name of a function being registered in color, just like the name
of applications when they get registered.

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

12 years agoAdd a note about changing modules.conf since another console channel driver is
Russell Bryant [Sat, 5 Jan 2008 21:35:54 +0000 (21:35 +0000)]
Add a note about changing modules.conf since another console channel driver is
now present that can not be used at the same time as chan_alsa or chan_oss.

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

12 years agoAdd the URL to the home page for portaudio. Also add the location of the
Russell Bryant [Sat, 5 Jan 2008 21:25:45 +0000 (21:25 +0000)]
Add the URL to the home page for portaudio.  Also add the location of the
svn repository to check out portaudio v19.

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

12 years agoMerged revisions 96644 via svnmerge from
Russell Bryant [Sat, 5 Jan 2008 02:12:10 +0000 (02:12 +0000)]
Merged revisions 96644 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r96644 | russell | 2008-01-04 20:09:19 -0600 (Fri, 04 Jan 2008) | 2 lines

Don't pass an empty string as the device name.

........

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

12 years agoimprove chan_usbradio to use indications just like chan_alsa/chan_oss do now
Kevin P. Fleming [Sat, 5 Jan 2008 01:05:50 +0000 (01:05 +0000)]
improve chan_usbradio to use indications just like chan_alsa/chan_oss do now

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

12 years agoMerged revisions 96575 via svnmerge from
Tilghman Lesher [Fri, 4 Jan 2008 23:12:43 +0000 (23:12 +0000)]
Merged revisions 96575 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r96575 | tilghman | 2008-01-04 17:03:40 -0600 (Fri, 04 Jan 2008) | 7 lines

Fix the problem of notification of a device state change to a device with a '-'
in the name.  Could probably do with a better fix in trunk, but this bug has
been open way too long without a better solution.
Reported by: stevedavies
Patch by: tilghman
(Closes issue #9668)

........

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

12 years agoMerged revisions 96573 via svnmerge from
Jason Parker [Fri, 4 Jan 2008 22:57:56 +0000 (22:57 +0000)]
Merged revisions 96573 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

(Closes issue #11237)
........
r96573 | qwell | 2008-01-04 16:55:56 -0600 (Fri, 04 Jan 2008) | 4 lines

Properly continue in the dialplan if using PARKINGEXTEN and the slot is full.

Issue 11237, patch by me.

........

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

12 years agoMerged revisions 96525 via svnmerge from
Tilghman Lesher [Fri, 4 Jan 2008 19:35:00 +0000 (19:35 +0000)]
Merged revisions 96525 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r96525 | tilghman | 2008-01-04 13:27:25 -0600 (Fri, 04 Jan 2008) | 4 lines

If you change the bindaddr in sip.conf to a non-bound address and reload, sip goes kablooie.
Reported and patched by: one47
(Closes issue #11535)

........

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

12 years ago[commit message]
Kevin P. Fleming [Fri, 4 Jan 2008 17:21:25 +0000 (17:21 +0000)]
[commit message]

(closes issue #10393)
Reported by: tzafrir
Patches:
      chan_alarm_asterisk.diff uploaded by tzafrir (license 46) (modified by me and added configure script support)

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

12 years agoUse SASL DIGEST-MD5 authentication over unsecured network connections only.
Philippe Sultan [Fri, 4 Jan 2008 17:19:25 +0000 (17:19 +0000)]
Use SASL DIGEST-MD5 authentication over unsecured network connections only.

This authentication mechanism is implemented under the iksemel API, which
makes use of GnuTLS, whereas we use OpenSSL. Note : there's ongoing
dicsussion at the SASL IETF WG in order to deprecate SASL DIGEST-MD5, see
http://ietfreport.isoc.org/ids-wg-sasl.html.

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

12 years agoMerged revisions 96449 via svnmerge from
Russell Bryant [Fri, 4 Jan 2008 16:21:08 +0000 (16:21 +0000)]
Merged revisions 96449 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r96449 | russell | 2008-01-04 10:19:22 -0600 (Fri, 04 Jan 2008) | 7 lines

Make use of the temporary channel pointer while the pvt is unlocked.

(closes issue #11675)
Reported by: flefoll
Patches:
      chan_zap.c.patch-store-owner-before-unlock uploaded by flefoll (license 244)

........

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

12 years agowe have to *always* use a completely silent 'make' invocation for generating the...
Kevin P. Fleming [Thu, 3 Jan 2008 23:14:15 +0000 (23:14 +0000)]
we have to *always* use a completely silent 'make' invocation for generating the module embedding rules

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

12 years agothere was no reason to add this define for non-Solaris platforms
Kevin P. Fleming [Thu, 3 Jan 2008 23:01:53 +0000 (23:01 +0000)]
there was no reason to add this define for non-Solaris platforms

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

12 years agoMerged revisions 96394 via svnmerge from
Russell Bryant [Thu, 3 Jan 2008 22:46:37 +0000 (22:46 +0000)]
Merged revisions 96394 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r96394 | russell | 2008-01-03 16:44:22 -0600 (Thu, 03 Jan 2008) | 3 lines

Don't crash if the iax2 pvt structure has been destroyed before we get to this point
(closes issue #11672, reported by snuffy, patched by me)

........

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

12 years agoDocument recent API addition
Tilghman Lesher [Thu, 3 Jan 2008 21:58:52 +0000 (21:58 +0000)]
Document recent API addition

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

12 years agoMerged revisions 96318 via svnmerge from
Tilghman Lesher [Thu, 3 Jan 2008 21:43:58 +0000 (21:43 +0000)]
Merged revisions 96318 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r96318 | tilghman | 2008-01-03 15:37:02 -0600 (Thu, 03 Jan 2008) | 4 lines

Missed initialization caused crash.
Reported and fixed by: tiziano
(Closes issue #11671)

........

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

12 years agoAllow the uniqueid to be used for searching for a channel in the list.
Tilghman Lesher [Thu, 3 Jan 2008 21:27:57 +0000 (21:27 +0000)]
Allow the uniqueid to be used for searching for a channel in the list.
Reported and initially patched by: michael-fig
(Closes issue #11340)

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

12 years agoadd some simple infrastructure for modules to be used for testing parts of Asterisk
Kevin P. Fleming [Thu, 3 Jan 2008 20:04:30 +0000 (20:04 +0000)]
add some simple infrastructure for modules to be used for testing parts of Asterisk

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

12 years agoeliminiate sound_thread() and other stuff from chan_oss since Asterisk indications...
Kevin P. Fleming [Thu, 3 Jan 2008 19:56:29 +0000 (19:56 +0000)]
eliminiate sound_thread() and other stuff from chan_oss since Asterisk indications can handle it
remove gentone and all the headers containing tones that are no longer needed

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

12 years agocoding guidelines cleanup
Kevin P. Fleming [Thu, 3 Jan 2008 18:10:13 +0000 (18:10 +0000)]
coding guidelines cleanup
remove background thread and all sound generation mechanisms, as the built-in indications can handle everything that is needed

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

12 years agoMerged revisions 96198 via svnmerge from
Christian Richter [Thu, 3 Jan 2008 14:47:30 +0000 (14:47 +0000)]
Merged revisions 96198 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r96198 | crichter | 2008-01-03 13:08:40 +0100 (Do, 03 Jan 2008) | 1 line

when overlapdial was used and no number was dialed, the call was dropped, now we just jump into the s extension, which makes a lot more sense.
........

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

12 years agoAdd coordination between AMI and AGI applications, with an asyncagi method
Tilghman Lesher [Thu, 3 Jan 2008 06:16:48 +0000 (06:16 +0000)]
Add coordination between AMI and AGI applications, with an asyncagi method
Feature proposed and patched by: moy
(Closes issue #11282)

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

12 years agoCompatibility fix for OpenBSD
Tilghman Lesher [Thu, 3 Jan 2008 01:59:27 +0000 (01:59 +0000)]
Compatibility fix for OpenBSD
Report and fix by: mvanbaak
(Closes issue #11669)

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

12 years agoMerged revisions 96102 via svnmerge from
Mark Michelson [Wed, 2 Jan 2008 23:48:43 +0000 (23:48 +0000)]
Merged revisions 96102 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r96102 | mmichelson | 2008-01-02 17:46:02 -0600 (Wed, 02 Jan 2008) | 4 lines

We need to reset the membername to NULL on each iteration of this loop, otherwise the result is that
multiple members can have the same name, since the variable was not reset on each iteration of the loop.

........

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

12 years agoAdd support for generating a ringing sound on an incoming call. This is a bit
Russell Bryant [Wed, 2 Jan 2008 23:22:25 +0000 (23:22 +0000)]
Add support for generating a ringing sound on an incoming call.  This is a bit
of a hack.  It just asks the core to generate the same tone that it would when
you hear ringback when making an outbound call.  But hey, it works, and you get
the localized ring tone for the appropriate language set on the channel.

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

12 years agoNote that this module doesn't actually play a ringing sound for an incoming call
Russell Bryant [Wed, 2 Jan 2008 22:52:13 +0000 (22:52 +0000)]
Note that this module doesn't actually play a ringing sound for an incoming call
... oops

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

12 years agoShow the correct CLI command to answer the call
Russell Bryant [Wed, 2 Jan 2008 22:50:09 +0000 (22:50 +0000)]
Show the correct CLI command to answer the call

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

12 years agoactually parse and store echocan parameters from zapata.conf... this *should* work <G>
Kevin P. Fleming [Wed, 2 Jan 2008 22:41:23 +0000 (22:41 +0000)]
actually parse and store echocan parameters from zapata.conf... this *should* work <G>

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

12 years agoDon't use AST_C_DEFINE_CHECK for the two pthread things that may not actually be...
Joshua Colp [Wed, 2 Jan 2008 22:40:55 +0000 (22:40 +0000)]
Don't use AST_C_DEFINE_CHECK for the two pthread things that may not actually be definitions, they could be enums for example.

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

12 years agoAdd curly braces around a compound if statement so that trunk will build properly
Mark Michelson [Wed, 2 Jan 2008 22:29:15 +0000 (22:29 +0000)]
Add curly braces around a compound if statement so that trunk will build properly

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

12 years agoBlocked revisions 96024 via svnmerge
Russell Bryant [Wed, 2 Jan 2008 22:15:58 +0000 (22:15 +0000)]
Blocked revisions 96024 via svnmerge

........
r96024 | russell | 2008-01-02 16:14:28 -0600 (Wed, 02 Jan 2008) | 2 lines

Convert locks of the contexts list in pbx_config to the appropriate rdlock or wrlock

........

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

12 years agoBlocked revisions 96022 via svnmerge
Russell Bryant [Wed, 2 Jan 2008 22:05:31 +0000 (22:05 +0000)]
Blocked revisions 96022 via svnmerge

........
r96022 | russell | 2008-01-02 16:04:47 -0600 (Wed, 02 Jan 2008) | 2 lines

pbx_dundi only needs a rdlock on the contexts list.

........

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

12 years agoBlocked revisions 96020 via svnmerge
Russell Bryant [Wed, 2 Jan 2008 22:00:50 +0000 (22:00 +0000)]
Blocked revisions 96020 via svnmerge

........
r96020 | russell | 2008-01-02 16:00:21 -0600 (Wed, 02 Jan 2008) | 2 lines

app_macro only needs a rdlock on the contexts list.

........

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

12 years agoanother checkpoint... chan_zap can now use the new ZT_ECHOCAN_PARAMS ioctl if it...
Kevin P. Fleming [Wed, 2 Jan 2008 21:51:37 +0000 (21:51 +0000)]
another checkpoint... chan_zap can now use the new ZT_ECHOCAN_PARAMS ioctl if it is present, but doesn't parse any supplied parameters yet

(this implementation is not very memory efficient as the parameters and their values will be duplicated for each channel that has the same settings, but we can worry about that later once it is working)

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

12 years agoAdd doxygen documentation to libresample.h while it's still fresh on my mind
Russell Bryant [Wed, 2 Jan 2008 21:49:44 +0000 (21:49 +0000)]
Add doxygen documentation to libresample.h while it's still fresh on my mind

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

12 years agoChange instances of AST_NONSTANDARD_APP_ARGS(foo, bar, ',') to AST_STANDARD_APP_ARGS...
Mark Michelson [Wed, 2 Jan 2008 21:08:33 +0000 (21:08 +0000)]
Change instances of AST_NONSTANDARD_APP_ARGS(foo, bar, ',') to AST_STANDARD_APP_ARGS(foo, bar)

(closes issue #11668, reported and patched by mvanbaak)

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

12 years agoMerged revisions 95946 via svnmerge from
Joshua Colp [Wed, 2 Jan 2008 20:26:25 +0000 (20:26 +0000)]
Merged revisions 95946 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r95946 | file | 2008-01-02 16:24:09 -0400 (Wed, 02 Jan 2008) | 4 lines

Allocate a SIP refer structure when performing a transfer using BYE with Also so that the transfer information is properly stored. (AST-2008-001)
(closes issue #11637)
Reported by: greyvoip

........

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

12 years agoSince ',' is the standard argument separator in trunk, change app_queue
Mark Michelson [Wed, 2 Jan 2008 20:23:23 +0000 (20:23 +0000)]
Since ',' is the standard argument separator in trunk, change app_queue
to use AST_STANDARD_APP_ARGS instead of AST_NONSTANDARD_APP_ARGS for determining
member data.

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

12 years agoFix a typo in a comment. AST_STANDARD_APP_ARGS uses ',' as the separator,
Mark Michelson [Wed, 2 Jan 2008 20:19:40 +0000 (20:19 +0000)]
Fix a typo in a comment. AST_STANDARD_APP_ARGS uses ',' as the separator,
not '|'.

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

12 years agoclean up hwgain CLI command and improve docs for swgain CLI command
Kevin P. Fleming [Wed, 2 Jan 2008 19:47:25 +0000 (19:47 +0000)]
clean up hwgain CLI command and improve docs for swgain CLI command

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

12 years agoimprove AC_C_DEFINE_CHECK to not try to evaluate the macro being checked for, but...
Kevin P. Fleming [Wed, 2 Jan 2008 19:34:33 +0000 (19:34 +0000)]
improve AC_C_DEFINE_CHECK to not try to evaluate the macro being checked for, but just check for its existence
finish implementation of check for Zaptel HWGAIN support
add check for Zaptel ECHOCANCEL_PARAMS support

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

12 years agoand now just to keep the libresample party going... if the functions from libresample...
Kevin P. Fleming [Wed, 2 Jan 2008 18:21:04 +0000 (18:21 +0000)]
and now just to keep the libresample party going... if the functions from libresample are going to be in the main Asterisk binary, it makes sense for the header that defines them to be available without any special CFLAGS and to out-of-tree modules building against /usr/include/asterisk

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

12 years agoumm... this did not compile on x86-64, and could not possibly have worked on any...
Kevin P. Fleming [Wed, 2 Jan 2008 18:17:15 +0000 (18:17 +0000)]
umm... this did not compile on x86-64, and could not possibly have worked on any platform as it was passing string pointers to a function expecting ints

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

12 years agoMerged revisions 95890 via svnmerge from
Mark Michelson [Wed, 2 Jan 2008 18:05:57 +0000 (18:05 +0000)]
Merged revisions 95890 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r95890 | mmichelson | 2008-01-02 11:51:22 -0600 (Wed, 02 Jan 2008) | 9 lines

A change to improve the accuracy of queue logging in the case where a member does not
answer during the specified timeout period. Prior to this change, there was a small chance
that the member name recorded in this case would be blank. Also prior to this change, if using
the ringall strategy, if no one answered the call during the specified timeout, the member name
listed in the queue log would randomly be one of the members that was rung.

(closes issue #11498, reported and tested by hloubser, patched by me)

........

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

12 years agoUpdate osplookup documentation to use commas instead of pipes.
Jason Parker [Wed, 2 Jan 2008 17:38:02 +0000 (17:38 +0000)]
Update osplookup documentation to use commas instead of pipes.

Closes issue #11666, patch by Laureano.

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

12 years agoFor some odd reason, the last set of libresample build changes from Kevin did
Russell Bryant [Wed, 2 Jan 2008 16:20:26 +0000 (16:20 +0000)]
For some odd reason, the last set of libresample build changes from Kevin did
not work for everyone, but it did for some.  This set of changes makes trunk
start again for those having problems.  Instead of building libresample as a
static library, it just links the object files in directly with the asterisk
binary.

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

12 years agofix some long-time breakage that kept chan_misdn from being embedded
Kevin P. Fleming [Wed, 2 Jan 2008 14:53:26 +0000 (14:53 +0000)]
fix some long-time breakage that kept chan_misdn from being embedded

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

12 years agouse the proper technique for including submodules so that embedding will work
Kevin P. Fleming [Wed, 2 Jan 2008 14:50:46 +0000 (14:50 +0000)]
use the proper technique for including submodules so that embedding will work

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

12 years agonote that chan_console requires portaudio v19
Kevin P. Fleming [Wed, 2 Jan 2008 14:37:50 +0000 (14:37 +0000)]
note that chan_console requires portaudio v19

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

12 years agoactually check for a function present in libiconv (don't know how this test could...
Kevin P. Fleming [Wed, 2 Jan 2008 14:20:46 +0000 (14:20 +0000)]
actually check for a function present in libiconv (don't know how this test could have worked before) and don't do the check on Linux/GNU systems because libiconv is not present there and attempting to link with '-liconv' always fails (it's not necessary as the iconv functionality is always available)

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

12 years agogo back to including libresample in the main Asterisk binary, but this time including...
Kevin P. Fleming [Wed, 2 Jan 2008 14:05:30 +0000 (14:05 +0000)]
go back to including libresample in the main Asterisk binary, but this time including a small hack to ensure that it does get linked in (and also modify the strip_nonapi script to leave the resample_<foo> symbols alone)

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

12 years agoSet stream flags to zero upon initialization.
Philippe Sultan [Wed, 2 Jan 2008 11:34:26 +0000 (11:34 +0000)]
Set stream flags to zero upon initialization.

When the XMPP over TLS/SSL connection resets for some reason, it is
wrongly believed as being secured, which makes the re-connection
process endlessly fail. This was reported by mvanbaak in issue #11644.

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

12 years agosome cleanup of this code while I am trying to debug a problem with
Luigi Rizzo [Wed, 2 Jan 2008 09:16:17 +0000 (09:16 +0000)]
some cleanup of this code while I am trying to debug a problem with
gdb dying while debugging asterisk. The problem seems to be related
with a race in the handling of module_list, which in turn is triggeded
by calling dlopen() on a system which uses initializers to create
locks.

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

12 years agoThere are three instances of the module definition macros,
Luigi Rizzo [Wed, 2 Jan 2008 08:53:16 +0000 (08:53 +0000)]
There are three instances of the module definition macros,
which make maintaining this file very error prone.

This commit merges the embedded and !embedded versions,
and fixes the C++ version. Eventually we should move to
a single version of the macro.

Too bad C++ doesn't like the C-style struct initializers
    .foo = some_value

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

12 years agoDon't make libresample print out debugging output
Russell Bryant [Wed, 2 Jan 2008 04:33:53 +0000 (04:33 +0000)]
Don't make libresample print out debugging output

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

12 years agoMake the translation table show slin16
Russell Bryant [Wed, 2 Jan 2008 04:31:23 +0000 (04:31 +0000)]
Make the translation table show slin16

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

12 years agofix a spacing issue introduced in revision 95443.
Russell Bryant [Wed, 2 Jan 2008 03:36:39 +0000 (03:36 +0000)]
fix a spacing issue introduced in revision 95443.

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

12 years agoInstead of linking libresample into the main Asterisk binary, build it as
Russell Bryant [Wed, 2 Jan 2008 01:00:44 +0000 (01:00 +0000)]
Instead of linking libresample into the main Asterisk binary, build it as
res_resample, and mark codec_resample as dependent upon res_resample.  This
prevents the linker from optimizing away libresample, and also makes it so the
libresample code isn't linked in to multiple places.  (I have another module
in a branch that needs it, too.)

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

12 years agocall directly the cli command to implement hangup.
Luigi Rizzo [Tue, 1 Jan 2008 23:55:19 +0000 (23:55 +0000)]
call directly the cli command to implement hangup.

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

12 years agoprevent a panic when destroying a channel with no incoming video.
Luigi Rizzo [Tue, 1 Jan 2008 23:54:40 +0000 (23:54 +0000)]
prevent a panic when destroying a channel with no incoming video.

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

12 years agoremove a leftover sleep(1) used for debugging
Luigi Rizzo [Tue, 1 Jan 2008 23:53:43 +0000 (23:53 +0000)]
remove a leftover sleep(1) used for debugging

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

12 years agoFix building of codec_resample on platforms other then Cygwin. On everything else...
Joshua Colp [Tue, 1 Jan 2008 23:09:32 +0000 (23:09 +0000)]
Fix building of codec_resample on platforms other then Cygwin. On everything else it actually gets built after codec_resample, so you can't exactly link it in since it doesn't exist.

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

12 years agomake codec_resample build on __CYGWIN__, and make it load on FreeBSD
Luigi Rizzo [Tue, 1 Jan 2008 22:21:39 +0000 (22:21 +0000)]
make codec_resample build on __CYGWIN__, and make it load on FreeBSD
(and probably other systems as well).
Both need libresample.a to be specified in the linking phase,
and cygwin needs <float.h> as other BSD.

The checks for OS-specific headers should really be moved to some
common header though.

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

12 years agoimplement "configure" checks for libiconv, and add the
Luigi Rizzo [Tue, 1 Jan 2008 22:08:32 +0000 (22:08 +0000)]
implement "configure" checks for libiconv, and add the
iconv dependency for func_iconv.
This fixes some build issues on CYGWIN and FreeBSD and probably
other platforms where libiconv is not there by default

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

12 years agoMerged revisions 95577 via svnmerge from
Mark Michelson [Mon, 31 Dec 2007 23:44:45 +0000 (23:44 +0000)]
Merged revisions 95577 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r95577 | mmichelson | 2007-12-31 17:43:13 -0600 (Mon, 31 Dec 2007) | 9 lines

Avoiding a potentially bad locking situation. ast_merge_contexts_and_delete writelocks the conlock, then
calls ast_hint_extension, which attempts to readlock the same lock. Recursion with read-write locks is
dangerous, so the inner lock needs to be removed. I did this by copying the "guts" of ast_hint_extension
into ast_merge_contexts_and_delete (sans the extra lock).

(this change is inspired by the locking problems seen in issue #11080, but I have no idea if this is the
problematic area experienced by the reporters of that issue)

........

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

12 years agoUse float.h to fix the build on FreeBSD. Also, add some other platforms as
Russell Bryant [Mon, 31 Dec 2007 22:41:39 +0000 (22:41 +0000)]
Use float.h to fix the build on FreeBSD.  Also, add some other platforms as
they are likely the same.

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

12 years agoUpdate chan_console to natively use a 16 kHz sample rate. If it is talking
Russell Bryant [Mon, 31 Dec 2007 21:33:45 +0000 (21:33 +0000)]
Update chan_console to natively use a 16 kHz sample rate.  If it is talking
to an 8 kHz endpoint, then codec_resample will automatically be used to properly
resample the audio before sending it to/from chan_console.

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