asterisk/asterisk.git
10 years agoFix crash during attended transfer over PRI.
Jeff Peeler [Thu, 10 Sep 2009 20:52:57 +0000 (20:52 +0000)]
Fix crash during attended transfer over PRI.

The owner pointers in the sig_pri_chan structure were not getting updated
in dahdi_fixup.

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

10 years agoStop caller id transmission when offhook event detected.
Jeff Peeler [Thu, 10 Sep 2009 20:18:30 +0000 (20:18 +0000)]
Stop caller id transmission when offhook event detected.

This fixes the problem that would occur if an analog phone was picked up while
the caller id was being sent. The caller id before sent the whole spill even
after pickup and is now corrected.

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

10 years agoBlocked revisions 217735 via svnmerge
Olle Johansson [Thu, 10 Sep 2009 19:55:16 +0000 (19:55 +0000)]
Blocked revisions 217735 via svnmerge

........
r217735 | oej | 2009-09-10 21:52:19 +0200 (Tor, 10 Sep 2009) | 4 lines

Reinstate muted that was removed by mistake.

muted doesn't compile any more on os/x, so I have to disable it in order to testcompile other code...

........

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

10 years agoSets the correct musicclass after an announcement
Matthias Nick [Thu, 10 Sep 2009 19:39:41 +0000 (19:39 +0000)]
Sets the correct musicclass after an announcement

(closes issue #15279)
Reported by: mbeckwell
Patches:
      patch.txt uploaded by mnick (license )
Tested by: mnick

(closes issue #15832)
Reported by: mbeckwell
Patches:
      patch.txt uploaded by mnick (license 874)
Tested by: mnick

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

10 years agoBlocked revisions 217668 via svnmerge
Olle Johansson [Thu, 10 Sep 2009 19:09:02 +0000 (19:09 +0000)]
Blocked revisions 217668 via svnmerge

........
r217668 | oej | 2009-09-10 21:07:24 +0200 (Tor, 10 Sep 2009) | 9 lines

Remove harmful code that causes endless loops.
Remove code that causes loops in registrations.

We have agreed that the patch that this code was part of was bad. I am ripping out the code that causes
the issue. putnopvut needs to check the rest of the patch, if it needs to be changed as well.

This solves the issue reported in #15540, but needs more work before we close it (as described above).

........

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

10 years agoDon't assign UINT_MAX to an INT.
Olle Johansson [Thu, 10 Sep 2009 18:29:21 +0000 (18:29 +0000)]
Don't assign UINT_MAX to an INT.

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

10 years agoVerify support for wide ODBC character types before using them.
Tilghman Lesher [Thu, 10 Sep 2009 18:17:14 +0000 (18:17 +0000)]
Verify support for wide ODBC character types before using them.
(closes issue #15870)
 Reported by: nic_bellamy

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

10 years agoInclude ActionID in all events that are responsed to AMI Action SIPShowRegistry
Olle Johansson [Thu, 10 Sep 2009 12:06:55 +0000 (12:06 +0000)]
Include ActionID in all events that are responsed to AMI Action SIPShowRegistry

(closes issue #15868)
Reported by: nic_bellamy
Patches:
      manager_SIPshowregistry_actionid.patch uploaded by nic bellamy (license 299)

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

10 years agoFix available() for SS7, MFC/R2, and pseudo channels.
Richard Mudgett [Thu, 10 Sep 2009 00:35:30 +0000 (00:35 +0000)]
Fix available() for SS7, MFC/R2, and pseudo channels.

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

10 years agoast_log replaced for ast_verbose in MFCR2 event notifications
Moises Silva [Wed, 9 Sep 2009 21:48:04 +0000 (21:48 +0000)]
ast_log replaced for ast_verbose in MFCR2 event notifications

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

10 years agoDon't report transfer success until we actually know. 1xx messages are not final.
Olle Johansson [Wed, 9 Sep 2009 20:09:31 +0000 (20:09 +0000)]
Don't report transfer success until we actually know. 1xx messages are not final.

Related to #12713

Patch by oej

A big thank you to file for finally fixing the transfer() dialplan application.
I've been waiting for years for this. Great work!

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

10 years agogcc 4.4 fix: union instead of cast
Tzafrir Cohen [Wed, 9 Sep 2009 18:52:48 +0000 (18:52 +0000)]
gcc 4.4 fix: union instead of cast

gcc 4.4 has more strict rules for aliasing. It doesn't like a
struct sockaddr_in pointer pointing to a struct sockaddr. So we make it
a union.

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

10 years agoProperly terminate the response to the manager Ping action.
Sean Bright [Wed, 9 Sep 2009 12:11:12 +0000 (12:11 +0000)]
Properly terminate the response to the manager Ping action.

In passing, correct the formatting of the Timestamp attribute so that there is a
space after the colon and before the value.

(closes issue #15861)
Reported by: Ivan

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

10 years agoNot having any TLS session to write to is a serious XMIT_ERROR.
Olle Johansson [Wed, 9 Sep 2009 10:39:43 +0000 (10:39 +0000)]
Not having any TLS session to write to is a serious XMIT_ERROR.

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

10 years agoFormatting and doxygen updates
Olle Johansson [Wed, 9 Sep 2009 10:38:45 +0000 (10:38 +0000)]
Formatting and doxygen updates

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

10 years agoFix memory leak of sig_xxx private structures.
Richard Mudgett [Tue, 8 Sep 2009 23:37:57 +0000 (23:37 +0000)]
Fix memory leak of sig_xxx private structures.

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

10 years agoMiscellaneous minor code cleanup in mkintf().
Richard Mudgett [Tue, 8 Sep 2009 23:31:27 +0000 (23:31 +0000)]
Miscellaneous minor code cleanup in mkintf().

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

10 years agoFix compilation of app_meetme.
Sean Bright [Tue, 8 Sep 2009 22:17:08 +0000 (22:17 +0000)]
Fix compilation of app_meetme.

Reported by ebroad in #asterisk-bugs

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

10 years agoRemove duplicate entry in the sig_pri_pri private pointer array.
Richard Mudgett [Tue, 8 Sep 2009 21:17:16 +0000 (21:17 +0000)]
Remove duplicate entry in the sig_pri_pri private pointer array.

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

10 years agoMerged revisions 217156 via svnmerge from
Tilghman Lesher [Tue, 8 Sep 2009 20:28:41 +0000 (20:28 +0000)]
Merged revisions 217156 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r217156 | tilghman | 2009-09-08 15:01:45 -0500 (Tue, 08 Sep 2009) | 7 lines

  When MOH is playing on the channel, announcements sent through the conference are not heard.
  (closes issue #14588)
   Reported by: voipas
   Patches:
         20090716__issue14588__2.diff.txt uploaded by tilghman (license 14)
   Tested by: lmadsen, twisted, tilghman
........

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

10 years agoAdd doxygen to ast_event_subscribe for the description.
Mark Michelson [Tue, 8 Sep 2009 20:06:15 +0000 (20:06 +0000)]
Add doxygen to ast_event_subscribe for the description.

Most importantly, note that a NULL description will cause a
crash, as I just experienced that firsthand.

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

10 years agoFix audio problems with format_mp3.
Russell Bryant [Tue, 8 Sep 2009 18:06:57 +0000 (18:06 +0000)]
Fix audio problems with format_mp3.

This problem was introduced when the AST_FRIENDLY_OFFSET patch was merged.
I'm surprised that nobody noticed any trouble when testing that patch, but this
fixes the code that fills in the buffer to start filling in after the offset
portion of the buffer.

(closes issue #15850)
Reported by: 99gixxer
Patches:
      issue15850.diff1.txt uploaded by russell (license 2)
Tested by: 99gixxer

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

10 years agoEnsure that the default autoconf CFLAGS are not used.
Kevin P. Fleming [Tue, 8 Sep 2009 16:37:28 +0000 (16:37 +0000)]
Ensure that the default autoconf CFLAGS are not used.

A recent change to the configure script that allows the user to specify
CFLAGS and/or LDFLAGS to the script had the unfortunate side effect of
letting autoconf's default CFLAGS (-g -O2) feed in to the rest of the build
system, thereby overriding the DONT_OPTIMIZE setting in menuselect. That
problem is now corrected.

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

10 years agoRemove what appears to be an unnecessary define.
Tilghman Lesher [Tue, 8 Sep 2009 15:30:18 +0000 (15:30 +0000)]
Remove what appears to be an unnecessary define.
(closes issue #15851)
 Reported by: tzafrir

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

10 years agolive_ast: Fix asterisk.conf instead of regenerating it
Tzafrir Cohen [Tue, 8 Sep 2009 15:23:04 +0000 (15:23 +0000)]
live_ast: Fix asterisk.conf instead of regenerating it

* Don't write asterisk.conf from scratch. Fix the existing one.
* Pass extra 'make' command-line arguments to 'install' and 'samples'.
* Fix some extra typos.

closes issue #15019 .

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

10 years agocaller id number empty
David Vossel [Tue, 8 Sep 2009 14:26:30 +0000 (14:26 +0000)]
caller id number empty

parse_uri was not being given the correct scheme's, as
a result, uri parsing did not parse the username correctly.
One of the side effects of this is an empty caller id.

(closes issue #15839)
Reported by: ebroad
Patches:
      blank_cidv2.patch uploaded by ebroad (license 878)
      parse_uri_fix.diff uploaded by dvossel (license 671)
Tested by: ebroad, dvossel

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

10 years agoFixing formatting
Olle Johansson [Mon, 7 Sep 2009 20:23:19 +0000 (20:23 +0000)]
Fixing formatting

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

10 years agoAdd new actions under "new actions" and not in the top of the document
Olle Johansson [Mon, 7 Sep 2009 20:19:37 +0000 (20:19 +0000)]
Add new actions under "new actions" and not in the top of the document

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

10 years agoMoving another function declared in the middle of forward declarations.
Olle Johansson [Mon, 7 Sep 2009 18:29:45 +0000 (18:29 +0000)]
Moving another function declared in the middle of forward declarations.

Please follow the structure of the source code, thanks. Chan_sip is messy enough as it is :-)

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

10 years agoMove "deprecated_username" to a flag like the others - unsigned int blah:1
Olle Johansson [Mon, 7 Sep 2009 18:26:37 +0000 (18:26 +0000)]
Move "deprecated_username" to a flag like the others - unsigned int blah:1

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

10 years ago- Doxygen additions
Olle Johansson [Mon, 7 Sep 2009 18:24:04 +0000 (18:24 +0000)]
- Doxygen additions
- Remove unused string in sip_registry -- "random"
- Someone added a function in the middle of all forward declarations... Weird. Moved it out of that
  section.

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

10 years agoClean up the "offered_media" code
Olle Johansson [Mon, 7 Sep 2009 18:00:48 +0000 (18:00 +0000)]
Clean up the "offered_media" code
- Add variable for number of known media streams instead of hardcoding in definition of sip_pvt
- Rename "text" to "codecs" - beacuse it's what it is
- Add documentation for future developers so that we make sure that we define new sdp media types
  for SRTP-variants

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

10 years agoAllow multiple rows to be fetched within the normal mode of operation.
Tilghman Lesher [Mon, 7 Sep 2009 17:15:37 +0000 (17:15 +0000)]
Allow multiple rows to be fetched within the normal mode of operation.

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

10 years agoMake sure we reset global_exclude_static at channel reload
Olle Johansson [Mon, 7 Sep 2009 16:35:12 +0000 (16:35 +0000)]
Make sure we reset global_exclude_static at channel reload

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

10 years agoMove capability into sip_cfg. While at it, make sure we reset it at channel reload.
Olle Johansson [Mon, 7 Sep 2009 16:31:36 +0000 (16:31 +0000)]
Move capability into sip_cfg. While at it, make sure we reset it at channel reload.

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

10 years agoMove global_regcontext into the sip_cfg structure
Olle Johansson [Mon, 7 Sep 2009 16:26:04 +0000 (16:26 +0000)]
Move global_regcontext into the sip_cfg structure

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

10 years agoMove contact_ha to sip_cfg structure
Olle Johansson [Mon, 7 Sep 2009 16:23:39 +0000 (16:23 +0000)]
Move contact_ha to sip_cfg structure

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

10 years agoDoxygen updates
Olle Johansson [Mon, 7 Sep 2009 16:16:58 +0000 (16:16 +0000)]
Doxygen updates

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

10 years agoSince it's possible to have more than 999 calls, I'm changing the call counter roof...
Olle Johansson [Mon, 7 Sep 2009 16:08:08 +0000 (16:08 +0000)]
Since it's possible to have more than 999 calls, I'm changing the call counter roof to something higher.

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

10 years agoadd doxygen and remove duplicate declaration of variable
Olle Johansson [Mon, 7 Sep 2009 16:00:41 +0000 (16:00 +0000)]
add doxygen and remove duplicate declaration of variable

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

10 years agoAfter many years, remove VOCAL_DATA_HACK definition
Olle Johansson [Mon, 7 Sep 2009 15:48:41 +0000 (15:48 +0000)]
After many years, remove VOCAL_DATA_HACK definition

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

10 years agoRemove unneeded header files (tested on Linux and OS/X)
Olle Johansson [Mon, 7 Sep 2009 15:47:40 +0000 (15:47 +0000)]
Remove unneeded header files (tested on Linux and OS/X)

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

10 years agoDon't send MESSAGE with sendtext() if recepient doesn't allow MESSAGE requests
Olle Johansson [Mon, 7 Sep 2009 14:54:14 +0000 (14:54 +0000)]
Don't send MESSAGE with sendtext() if recepient doesn't allow MESSAGE requests

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

10 years agoAdd some doxygen
Olle Johansson [Mon, 7 Sep 2009 14:21:01 +0000 (14:21 +0000)]
Add some doxygen

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

10 years agoFix typo
Olle Johansson [Mon, 7 Sep 2009 14:04:40 +0000 (14:04 +0000)]
Fix typo

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

10 years agoIf there is no session timer in the INVITE, set it to default value (not unset minimu...
Olle Johansson [Mon, 7 Sep 2009 13:06:19 +0000 (13:06 +0000)]
If there is no session timer in the INVITE, set it to default value (not unset minimum = -1)

Patch by oej

closes issue #15621
Reported by: fnordian
Tested by: atis

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

10 years agoUpdate sip.conf.sample documentation, reorganize a bit
Olle Johansson [Mon, 7 Sep 2009 12:41:08 +0000 (12:41 +0000)]
Update sip.conf.sample documentation, reorganize a bit

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

10 years agoSimplify the code in this function
Olle Johansson [Mon, 7 Sep 2009 11:31:19 +0000 (11:31 +0000)]
Simplify the code in this function

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

10 years agosip peer matching by address only with TCP/TLS
David Vossel [Fri, 4 Sep 2009 19:32:07 +0000 (19:32 +0000)]
sip peer matching by address only with TCP/TLS

This patch removes the contact header matching logic and
adds logic to match all tcp/tls connections by ip only.
Thanks to oej for finding the issue and suggesting solutions.

Review: https://reviewboard.asterisk.org/r/354/

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

10 years agoUse ast_free() instead of free().
Sean Bright [Fri, 4 Sep 2009 19:29:02 +0000 (19:29 +0000)]
Use ast_free() instead of free().

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

10 years agoFix trunk breakage.
Tilghman Lesher [Fri, 4 Sep 2009 17:50:21 +0000 (17:50 +0000)]
Fix trunk breakage.

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

10 years agoEnable turning off the application delimiter warning with the 'dontwarn' option.
Tilghman Lesher [Fri, 4 Sep 2009 17:31:44 +0000 (17:31 +0000)]
Enable turning off the application delimiter warning with the 'dontwarn' option.
Suggested on the -dev list, and implemented in an alternate way by me.

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

10 years agoMerged revisions 216435 via svnmerge from
Michiel van Baak [Fri, 4 Sep 2009 15:05:05 +0000 (15:05 +0000)]
Merged revisions 216435 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r216435 | mvanbaak | 2009-09-04 15:56:10 +0200 (Fri, 04 Sep 2009) | 2 lines

  make asterisk compile under devmode with DEBUG_THREADS enabled on OpenBSD
........

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

10 years agoMerged revisions 216430 via svnmerge from
Olle Johansson [Fri, 4 Sep 2009 14:02:34 +0000 (14:02 +0000)]
Merged revisions 216430 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r216430 | oej | 2009-09-04 15:45:48 +0200 (Fre, 04 Sep 2009) | 27 lines

Make apps send PROGRESS control frame for early media and fix too early media issue in SIP

The issue at hand is that some legacy (dying) PBX systems send empty media frames on PRI
links *before* any call progress. The SIP channel receives these frames and by default
signals 183 Session progress and starts sending media. This will cause phones to
play silence and ignore the later 180 ringing message. A bad user experience.

The fix is twofold:
- We discovered that asterisk apps that support early media ("noanswer") did not send
  any PROGRESS frame to indicate early media. Fixed.
- We introduce a setting in chan_sip so that users can disable any relay of media frames
  before the outbound channel actually indicates any sort of call progress.
  In 1.4, 1.6.0 and 1.6.1, this will be disabled for backward compatibility. In later versions
  of Asterisk, this will be enabled. We don't assume that it will change your Asterisk
  phone experience - only for the better.

We encourage third-party application developers to make sure that if they have applications
that wants to send early media, add a PROGRESS control frame transmission to make sure that
all channel drivers actually will start sending early media. This has not been the default
in Asterisk previous to this patch, so if you got inspiration from our code, you need to
update accordingly. Sorry for the trouble and thanks for your support.

This code has been running for a few months in a large scale installation (over 250
servers with PRI and/or BRI links to old PBX systems).
That's no proof that this is an excellent patch, but, well, it's tested :-)

........

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

10 years agomake sure canlog is set so we can compile with DEBUG_THREADS enabled on OpenBSD
Michiel van Baak [Fri, 4 Sep 2009 14:00:38 +0000 (14:00 +0000)]
make sure canlog is set so we can compile with DEBUG_THREADS enabled on OpenBSD

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

10 years agoRecorded merge of revisions 216432 via svnmerge from
Michiel van Baak [Fri, 4 Sep 2009 13:54:25 +0000 (13:54 +0000)]
Recorded merge of revisions 216432 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r216432 | mvanbaak | 2009-09-04 15:53:09 +0200 (Fri, 04 Sep 2009) | 2 lines

  make chan_sip compile under devmode again
........

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

10 years agoRecorded merge of revisions 216369 via svnmerge from
Michiel van Baak [Fri, 4 Sep 2009 13:46:59 +0000 (13:46 +0000)]
Recorded merge of revisions 216369 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r216369 | mvanbaak | 2009-09-04 15:16:29 +0200 (Fri, 04 Sep 2009) | 4 lines

  Make sure 'start' is always initialized.

  This is the same as rev 216222 in trunk but 1.4 is affected as well
........

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

10 years agoDo not treat every SIP peer as if they were configured with insecure=port.
Russell Bryant [Fri, 4 Sep 2009 13:14:25 +0000 (13:14 +0000)]
Do not treat every SIP peer as if they were configured with insecure=port.

There was a problem in the function responsible for doing peer matching by
IP address and port number such that during the second pass for checking for
a peer configured with insecure=port, it would end up treating every peer as
if it had been configured that way.  These changes fix the logic in the peer
IP and port comparison callback to handle insecure=port checking properly.

This problem was introduced when SIP peers were converted to astobj2.  Many
thanks to dvossel for noticing this while working on another peer matching
issue.

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

10 years agoAdding to the janitor list.
Olle Johansson [Fri, 4 Sep 2009 12:05:46 +0000 (12:05 +0000)]
Adding to the janitor list.

For new readers: The janitor list is a list of tasks we need help with in the Asterisk project. Taking up
one of these is often a good way to get into Asterisk development and getting a lot of developers in
the project to be grateful. It's stuff we could spend time on when the bug tracker is empty, when our
employers hasn't filled our task lists and our servers is running bugfree and happily without any issues.

If you want to start working on one of these small projects, feel free to ask for help in the #asterisk-dev
channel on IRC or asterisk-dev mailing list. We'll be more than happy to help you to start and reach
goal.

Thank you for your help.

</end of long commit message>

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

10 years agoMerged revisions 216263 via svnmerge from
Russell Bryant [Fri, 4 Sep 2009 10:48:44 +0000 (10:48 +0000)]
Merged revisions 216263 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
  r216263 | russell | 2009-09-04 05:48:00 -0500 (Fri, 04 Sep 2009) | 9 lines

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

  ........
    r216262 | russell | 2009-09-04 05:47:37 -0500 (Fri, 04 Sep 2009) | 2 lines

    Add a plain text version of the IAX2 security document.
  ........
................

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

10 years agomake sure 'start' is always initialized.
Michiel van Baak [Fri, 4 Sep 2009 06:08:33 +0000 (06:08 +0000)]
make sure 'start' is always initialized.
Makes asterisk compile with --enable-dev-mode

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

10 years agoLets try not to use C++ keywords for variable names.
Richard Mudgett [Thu, 3 Sep 2009 21:09:46 +0000 (21:09 +0000)]
Lets try not to use C++ keywords for variable names.

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

10 years agoAdded detection DTMF CID without polarity change alert.
Doug Bailey [Thu, 3 Sep 2009 19:40:37 +0000 (19:40 +0000)]
Added detection DTMF CID without polarity change alert.

Added detection of DTMF tone energy levels on FXO channels in chan_dahdi
monitoring loop so DTMF CID can be detected without the need of a polarity
change precursor.

(closes issue #9096)
Reported by: fleed
Patches:
      9096-chan_dahdi-trunk.diff uploaded by dbailey (license 819)
Tested by: cyberplant, sum, maturs

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

10 years agoMerged revisions 216085 via svnmerge from
Russell Bryant [Thu, 3 Sep 2009 19:38:35 +0000 (19:38 +0000)]
Merged revisions 216085 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
  r216085 | russell | 2009-09-03 14:36:46 -0500 (Thu, 03 Sep 2009) | 9 lines

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

  ........
    r216080 | russell | 2009-09-03 14:35:23 -0500 (Thu, 03 Sep 2009) | 2 lines

    Add a note about IAX2 to UPGRADE.txt.
  ........
................

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

10 years agoMerged revisions 216008 via svnmerge from
Russell Bryant [Thu, 3 Sep 2009 18:45:54 +0000 (18:45 +0000)]
Merged revisions 216008 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
  r216008 | russell | 2009-09-03 13:44:58 -0500 (Thu, 03 Sep 2009) | 9 lines

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

  ........
    r216005 | russell | 2009-09-03 13:42:24 -0500 (Thu, 03 Sep 2009) | 2 lines

    Add IAX2 security document related to AST-2009-006.
  ........
................

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

10 years agoDocument language prompt submission process.
Kevin P. Fleming [Thu, 3 Sep 2009 18:42:38 +0000 (18:42 +0000)]
Document language prompt submission process.

This patch adds a document describing the language prompt submission process,
licensing terms and other issues related to that process. In addition, it
modifies the sound file searching process to support language codes with
any number of suffices (not limited to just "xx" or "xx_YY"), so that prompts
can be named with gender, customer/company, etc. suffices as well.

(closes issue #15771)
Reported by: jtodd
Patches:
      language-criteria.txt uploaded by jtodd

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

10 years agoBlocked revisions 216000 via svnmerge
David Vossel [Thu, 3 Sep 2009 18:33:52 +0000 (18:33 +0000)]
Blocked revisions 216000 via svnmerge

........
  r216000 | dvossel | 2009-09-03 13:32:32 -0500 (Thu, 03 Sep 2009) | 7 lines

  Merge code associated with AST-2009-006

  (closes issue #12912)
  Reported by: rathaus
  Tested by: tilghman, russell, dvossel, dbrooks
........

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

10 years agoMerge code associated with AST-2009-006
David Vossel [Thu, 3 Sep 2009 16:31:54 +0000 (16:31 +0000)]
Merge code associated with AST-2009-006

(closes issue #12912)
Reported by: rathaus
Tested by: tilghman, russell, dvossel, dbrooks

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

10 years agoAdd known internal IP address when autodomain=yes
Olle Johansson [Thu, 3 Sep 2009 13:02:41 +0000 (13:02 +0000)]
Add known internal IP address when autodomain=yes

(closes issue #14573)
Reported by: pj
Patches:
      sip-internip-autodomain1.diff uploaded by mnicholson (license 96)
modified by oej
Tested by: pj

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

10 years agoDocument that SIPshowpeer and SKINNYshowline now include
Michiel van Baak [Thu, 3 Sep 2009 05:57:23 +0000 (05:57 +0000)]
Document that SIPshowpeer and SKINNYshowline now include
the configured parkinglot in their response.

Prodded by snuff-work on #asterisk-dev IRC channel

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

10 years agoDefault the callback extension to "s". This is a regression.
Tilghman Lesher [Thu, 3 Sep 2009 03:43:51 +0000 (03:43 +0000)]
Default the callback extension to "s".  This is a regression.
(closes issue #15764)
 Reported by: elguero
 Change-type: bugfix

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

10 years agoRevert attempt to standardize with _POSIX_C_SOURCE.
Tilghman Lesher [Thu, 3 Sep 2009 03:30:42 +0000 (03:30 +0000)]
Revert attempt to standardize with _POSIX_C_SOURCE.
This did not function in the way that was intended, causing more compatibility
issues than it solved.  It is best, therefore, that it be simply removed.
(Discussed with kpfleming; agreement to remove was reached.)

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

10 years agoMerged revisions 215682 via svnmerge from
Terry Wilson [Wed, 2 Sep 2009 23:31:04 +0000 (23:31 +0000)]
Merged revisions 215682 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r215682 | twilson | 2009-09-02 16:41:22 -0500 (Wed, 02 Sep 2009) | 18 lines

  Re-send non-100 provisional responses to prevent cancellation

  From section 13.3.1.1 of RFC 3261:

     If the UAS desires an extended period of time to answer the INVITE,
     it will need to ask for an "extension" in order to prevent proxies
     from canceling the transaction. A proxy has the option of canceling
     a transaction when there is a gap of 3 minutes between responses in a
     transaction. To prevent cancellation, the UAS MUST send a non-100
     provisional response at every minute, to handle the possibility of
     lost provisional responses.

  (closes issue #11157)
  Reported by: rjain
  Tested by: twilson

  Review: https://reviewboard.asterisk.org/r/315/
........

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

10 years agoMade chan_dahdi able to ignore incoming calls that are not in a MSN list for ISDN...
Richard Mudgett [Wed, 2 Sep 2009 23:25:33 +0000 (23:25 +0000)]
Made chan_dahdi able to ignore incoming calls that are not in a MSN list for ISDN PTMP CPE spans.

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

10 years agoport string to int conversion using sscanf
David Vossel [Wed, 2 Sep 2009 21:39:31 +0000 (21:39 +0000)]
port string to int conversion using sscanf

There are several instances where a port is parsed
from a uri or some other source and converted to
an int value using atoi(), if for some reason the
port string is empty, then a standard port is used.
This logic is used over and over, so I created a function
to handle it in a safer way using sscanf().

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

10 years agoadd Parkinglot info to sip show peer <foo> and skinny show line <foo>
Michiel van Baak [Wed, 2 Sep 2009 21:23:17 +0000 (21:23 +0000)]
add Parkinglot info to sip show peer <foo> and skinny show line <foo>

If we had this from the start, debugging the 'parking not using configured parkinglot'
bug would have been easier.

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

10 years ago- lock channel before looking for a channel variable
Michiel van Baak [Wed, 2 Sep 2009 20:21:51 +0000 (20:21 +0000)]
- lock channel before looking for a channel variable
- Init the parkings list member of struct parkinglot.
Thanks Sean for the explanation why this should be here.

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

10 years agoFix issue where DTMF CID detect was placing channels into signed linear mode
Doug Bailey [Wed, 2 Sep 2009 19:49:43 +0000 (19:49 +0000)]
Fix issue where DTMF CID detect was placing channels into signed linear mode
made analog_set_linear_mode return back the mode that was being overwritten
so it could be restored later.

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

10 years agoClose up to the soft open file limit (same on Linux, but varies drastically on OS X).
Tilghman Lesher [Wed, 2 Sep 2009 18:37:25 +0000 (18:37 +0000)]
Close up to the soft open file limit (same on Linux, but varies drastically on OS X).
Also, a Makefile fix for Darwin (OS X).
(closes issue #14542)
 Reported by: jtodd
 Patches:
       20090901__issue14542.diff.txt uploaded by tilghman (license 14)
 Tested by: jtodd, tilghman
 Change-type: bugfix

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

10 years agoSIP uri parsing cleanup
David Vossel [Wed, 2 Sep 2009 17:26:40 +0000 (17:26 +0000)]
SIP uri parsing cleanup

Now, the scheme passed to parse_uri can either be a
single scheme, or a list of schemes ',' delimited.
This gets rid of the whole problem of having to create
two buffers and calling parse_uri twice to check for
separate schemes.

Review: https://reviewboard.asterisk.org/r/343/

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

10 years agolike in chan_sip's sip_new skinny should copy the configured parkinglot from a line...
Michiel van Baak [Wed, 2 Sep 2009 16:20:23 +0000 (16:20 +0000)]
like in chan_sip's sip_new skinny should copy the configured parkinglot from a line to the newly created channel.
This makes callparking honor the configured parkinglot for skinny lines as well.

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

10 years agoSIP support for keep-alive event
David Vossel [Wed, 2 Sep 2009 16:08:00 +0000 (16:08 +0000)]
SIP support for keep-alive event

keep-alive events are used by Sipura/Linksys for NAT keepalive.
There currently don't appear to be any problems with NAT, but
everytime a keep-alive event is received, Asterisk responds with a
"489 Bad event".  This error may indicate to a user that NAT
problems exist just because this even is not supported.  Now,
rather than respond with an error, the packet is consumed and
a "200 ok" is sent just to indicate we received the packet.

(issue #15084)
Patches:
      chan_sip.keepalive.v1.diff uploaded by IgorG (license 20)

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

10 years agoHonor configured parkinglot when parking and retrieving parked calls
Michiel van Baak [Wed, 2 Sep 2009 15:56:46 +0000 (15:56 +0000)]
Honor configured parkinglot when parking and retrieving parked calls

Thank oej for pointing out the fact that sip_new did not copy parkinglot from the peer
into the newly created channel.

(closes issue #15538)
Reported by: gracedman
Patches:
      2009090100_sipnewparkinglot-161.diff.txt uploaded by mvanbaak (license 7)
  With mod by me to also fix callparking as well (this uploaded patch only fixed retrieving a parked call)
Tested by: gracedman, mvanbaak

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

10 years agoLet's compile again on OpenBSD
Michiel van Baak [Wed, 2 Sep 2009 10:50:49 +0000 (10:50 +0000)]
Let's compile again on OpenBSD

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

10 years agoAdding MUTEAUDIO() dialplan function and MuteAudio AMI action (pinepeach)
Olle Johansson [Wed, 2 Sep 2009 06:23:05 +0000 (06:23 +0000)]
Adding MUTEAUDIO() dialplan function and MuteAudio AMI action (pinepeach)

Review: https://reviewboard.asterisk.org/r/345/

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

10 years agoMerged revisions 215270 via svnmerge from
Dwayne M. Hubbard [Wed, 2 Sep 2009 01:16:59 +0000 (01:16 +0000)]
Merged revisions 215270 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r215270 | dhubbard | 2009-09-01 18:04:52 -0500 (Tue, 01 Sep 2009) | 12 lines

  Use strrchr() so SoftHangup will correctly truncate multi-hyphen channel names

  In general channel names are in the form Foo/Bar-Z, but the channel name
  could have multiple hyphens and look like Foo/B-a-r-Z.  Use strrchr to
  truncate the channel name at the last hyphen.

  (closes issue #15810)
  Reported by: dhubbard
  Patches:
        dw-softhangup-1.4.patch uploaded by dhubbard (license 733)
........

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

10 years agoAdd MASTER_CHANNEL() dialplan function, as well as a useful usage.
Tilghman Lesher [Tue, 1 Sep 2009 23:41:06 +0000 (23:41 +0000)]
Add MASTER_CHANNEL() dialplan function, as well as a useful usage.
(closes issue #13140)
 Reported by: cpina
 Patches:
       20090807__issue13140.diff.txt uploaded by tilghman (license 14)
 Tested by: lmadsen
 Change-type: feature

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

10 years agoFix register such that lines with a transport string, but without an authuser, parse...
Tilghman Lesher [Tue, 1 Sep 2009 21:19:40 +0000 (21:19 +0000)]
Fix register such that lines with a transport string, but without an authuser, parse correctly.
(AST-228)

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

10 years agoFix memory corruption caused by format_mp3.
Russell Bryant [Tue, 1 Sep 2009 20:44:13 +0000 (20:44 +0000)]
Fix memory corruption caused by format_mp3.

format_mp3 claimed that it provided AST_FRIENDLY_OFFSET in frames returned by
read().  However, it lied.  This means that other parts of the code that
attempted to make use of the offset buffer would end up corrupting the fields
in the ast_filestream structure.  This resulted in quite a few crashes due to
unexpected values for fields in ast_filestream.

This patch closes out quite a few bugs.  However, some of these bugs have been
open for a while and have been an area where more than one bug has been
discussed.  So with that said, anyone that is following one of the issues
closed here, if you still have a problem, please open a new bug report for the
specific problem you are still having.  If you do, please ensure that the bug
report is based on the newest version of Asterisk, and that this patch is
applied if format_mp3 is in use.  Thanks!

(closes issue #15109)
Reported by: jvandal
Tested by: aragon, russell, zerohalo, marhbere, rgj

(closes issue #14958)
Reported by: aragon

(closes issue #15123)
Reported by: axisinternet

(closes issue #15041)
Reported by: maxnuv

(closes issue #15396)
Reported by: aragon

(closes issue #15195)
Reported by: amorsen
Tested by: amorsen

(closes issue #15781)
Reported by: jensvb

(closes issue #15735)
Reported by: thom4fun

(closes issue #15460)
Reported by: marhbere

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

10 years agoEnsure that frame dumps of AST_CONTROL_T38_PARAMETERS frames are properly
Kevin P. Fleming [Tue, 1 Sep 2009 19:50:48 +0000 (19:50 +0000)]
Ensure that frame dumps of AST_CONTROL_T38_PARAMETERS frames are properly
decoded.

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

10 years agoRemoving whitespace that causes red dots in reviewboard
Olle Johansson [Tue, 1 Sep 2009 14:40:42 +0000 (14:40 +0000)]
Removing whitespace that causes red dots in reviewboard

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

10 years agoFix a trunk compilation warning.
Tilghman Lesher [Mon, 31 Aug 2009 22:02:24 +0000 (22:02 +0000)]
Fix a trunk compilation warning.

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

10 years agoProperly initialize the session to prevent a crash.
Tilghman Lesher [Mon, 31 Aug 2009 21:45:00 +0000 (21:45 +0000)]
Properly initialize the session to prevent a crash.
(closes issue #15774)
 Reported by: lasko
 Patches:
       20090831__issue15774.diff.txt uploaded by tilghman (license 14)
 Tested by: lasko

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

10 years agoBy copying this code I got bad comments in reviewboard... Better fix the original.
Olle Johansson [Mon, 31 Aug 2009 18:17:38 +0000 (18:17 +0000)]
By copying this code I got bad comments in reviewboard... Better fix the original.

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

10 years agoMerged revisions 214940 via svnmerge from
Tilghman Lesher [Mon, 31 Aug 2009 16:18:33 +0000 (16:18 +0000)]
Merged revisions 214940 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r214940 | tilghman | 2009-08-31 11:16:52 -0500 (Mon, 31 Aug 2009) | 7 lines

  Also unlock the "other" channel, when returning, due to glare.
  (closes issue #15787)
   Reported by: tim_ringenbach
   Patches:
         chan_local.diff uploaded by tim ringenbach (license 540)
   Tested by: tim_ringenbach
........

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

10 years agoForce Darwin on ppc platforms to compile with a target level that supports aliasing.
Tilghman Lesher [Sun, 30 Aug 2009 22:10:35 +0000 (22:10 +0000)]
Force Darwin on ppc platforms to compile with a target level that supports aliasing.

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

10 years agoVarious patches, to enable Asterisk to once again compile on Mac OS X.
Tilghman Lesher [Sun, 30 Aug 2009 18:37:17 +0000 (18:37 +0000)]
Various patches, to enable Asterisk to once again compile on Mac OS X.

One note on defining _POSIX_C_SOURCE:  while this feature test macro
works to require certain behaviors on Linux, it works differently on *BSD
platforms to REMOVE certain API calls that are not in the POSIX specification,
such as vasprintf(3).  Thus, defining it while depending upon vasprintf (and
other extensions to the POSIX standard) to be defined is a recipe to ensure
that Asterisk is only buildable on Linux.

Hence, this define which was meant to INCREASE portability, effectively
ensures the opposite.

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

10 years agoIf lua is detected with the lua5.1 prefix (or not), adjust the include path accordingly.
Tilghman Lesher [Sun, 30 Aug 2009 06:43:04 +0000 (06:43 +0000)]
If lua is detected with the lua5.1 prefix (or not), adjust the include path accordingly.
Based upon feedback to a release announcement on the -users list.  See
http://lists.digium.com/pipermail/asterisk-users/2009-August/236954.html

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

10 years agoUpdate configure script so that CONFIG_CFLAGS and CONFIG_LDFLAGS doesn't break the...
Russell Bryant [Fri, 28 Aug 2009 22:44:44 +0000 (22:44 +0000)]
Update configure script so that CONFIG_CFLAGS and CONFIG_LDFLAGS doesn't break the build.

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

10 years agoMerged revisions 214701 via svnmerge from
Tilghman Lesher [Fri, 28 Aug 2009 20:14:39 +0000 (20:14 +0000)]
Merged revisions 214701 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r214701 | tilghman | 2009-08-28 15:13:32 -0500 (Fri, 28 Aug 2009) | 8 lines

  Modify comment to be a bit more accurate.
  We have kept this comment around long enough, that it's pretty clear that we're
  keeping the code, because changing the code would require a pretty fundamental
  architectural shift.  We've also taken criticism in some quarters, because it
  was believed that it was referring to the code being nasty.  No, the code isn't
  nasty, just the operation itself is rather odd.  Fixed for eternity (probably
  not).
........

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