asterisk/asterisk.git
13 years agoFixing trunk in a way so that it compiles again.
Olle Johansson [Fri, 13 Nov 2009 10:53:14 +0000 (10:53 +0000)]
Fixing trunk in a way so that it compiles again.

Thanks, Philippe :-)

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

13 years agoIf CDR logging is disabled, it's considered a FAILURE
Olle Johansson [Fri, 13 Nov 2009 09:22:04 +0000 (09:22 +0000)]
If CDR logging is disabled, it's considered a FAILURE

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

13 years agoAdd the capability to require a module to be loaded, or else Asterisk exits.
Olle Johansson [Fri, 13 Nov 2009 08:52:28 +0000 (08:52 +0000)]
Add the capability to require a module to be loaded, or else Asterisk exits.

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

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

13 years agoAdded full number portability parameter support.
TransNexus OSP Development [Fri, 13 Nov 2009 03:16:39 +0000 (03:16 +0000)]
Added full number portability parameter support.

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

13 years agoUpdate sample config for ALSA mute and noaudiocapture
Jason Parker [Thu, 12 Nov 2009 23:43:28 +0000 (23:43 +0000)]
Update sample config for ALSA mute and noaudiocapture

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

13 years agoAdd mute functionality. Add config option to not try to open capture device.
Jason Parker [Thu, 12 Nov 2009 23:37:36 +0000 (23:37 +0000)]
Add mute functionality.  Add config option to not try to open capture device.

Adds "console {mute|unmute}" CLI command.
Adds mute and noaudiocapture config options (will update sample configs shortly).

(closes issue #14673)
Reported by: Nick_Lewis
Patches:
      chan_alsa.c-oneway3.patch uploaded by Nick Lewis (license 657)
Tested by: qwell

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

13 years agoFix mute toggling on OSS channels.
Jason Parker [Thu, 12 Nov 2009 23:30:10 +0000 (23:30 +0000)]
Fix mute toggling on OSS channels.

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

13 years agoMerged revisions 229669 via svnmerge from
David Vossel [Thu, 12 Nov 2009 16:44:39 +0000 (16:44 +0000)]
Merged revisions 229669 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r229669 | dvossel | 2009-11-12 10:41:49 -0600 (Thu, 12 Nov 2009) | 6 lines

  fixes merging error, datastore was being freed in the wrong function.

  (closes issue #16219)
  Reported by: aragon
........

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

13 years agoUpdate sip.conf.sample.
Leif Madsen [Thu, 12 Nov 2009 13:54:45 +0000 (13:54 +0000)]
Update sip.conf.sample.
Just updating a spelling error and some capitalization in a
documentation update that Olle added. May the Swenglish be
with you.

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

13 years agoClarification
Olle Johansson [Thu, 12 Nov 2009 10:24:20 +0000 (10:24 +0000)]
Clarification

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

13 years agoClarify some security issues early in the sample configuration
Olle Johansson [Thu, 12 Nov 2009 10:22:30 +0000 (10:22 +0000)]
Clarify some security issues early in the sample configuration

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

13 years agoRemove non-functional feature from ExternalIVR documentation
David Ruggles [Wed, 11 Nov 2009 20:47:06 +0000 (20:47 +0000)]
Remove non-functional feature from ExternalIVR documentation

Remove non-functional socket implementation of ExternalIVR from documentation

(closes issue #16225)
Reported by: thedavidfactor
Patches:
      externalivr.txt.20091111.1542.patch uploaded by thedavidfactor (license 903)

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

13 years agoMerged revisions 229498 via svnmerge from
David Brooks [Wed, 11 Nov 2009 19:48:18 +0000 (19:48 +0000)]
Merged revisions 229498 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r229498 | dbrooks | 2009-11-11 13:46:19 -0600 (Wed, 11 Nov 2009) | 8 lines

  Solaris doesn't like NULL going to ast_log

  Solaris will crash if NULL is passed to ast_log. This simple patch simply uses S_OR to
  get around this.

  (closes issue #15392)
  Reported by: yrashk
........

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

13 years agoFlags not initialized in app_softhangup.c, causing undefined behavior
David Brooks [Wed, 11 Nov 2009 18:13:56 +0000 (18:13 +0000)]
Flags not initialized in app_softhangup.c, causing undefined behavior

Trivial patch [kobaz] to initialize an ast_flags = {0}

(closes issue #16129)
Reported by: kobaz

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

13 years agoUpdate CHANGES file.
Leif Madsen [Wed, 11 Nov 2009 14:30:04 +0000 (14:30 +0000)]
Update CHANGES file.
Updating the CHANGES file after noticing an email on the asterisk-dev mailing
list from Russell.

(issue #15874)

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

13 years agoMerged revisions 229360 via svnmerge from
Tilghman Lesher [Tue, 10 Nov 2009 22:14:22 +0000 (22:14 +0000)]
Merged revisions 229360 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r229360 | tilghman | 2009-11-10 16:09:16 -0600 (Tue, 10 Nov 2009) | 12 lines

  If two pattern classes start with the same digit and have the same number of characters, they will compare equal.
  The example given in the issue report is that of [234] and [246], which have
  these characteristics, yet they are clearly not equivalent.  The code still
  uses these two characteristics, yet when the two scores compare equal, an
  additional check will be done to compare all characters within the class to
  verify equality.
  (closes issue #15421)
   Reported by: jsmith
   Patches:
         20091109__issue15421__2.diff.txt uploaded by tilghman (license 14)
   Tested by: jsmith, thedavidfactor
........

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

13 years agoMerged revisions 229355 via svnmerge from
David Ruggles [Tue, 10 Nov 2009 22:01:50 +0000 (22:01 +0000)]
Merged revisions 229355 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r229355 | diruggles | 2009-11-10 16:45:15 -0500 (Tue, 10 Nov 2009) | 9 lines

  Fix ExternalIVR Documentation

  Remove documentation for event that doesn't function

  (closes issue #16220)
  Reported by: thedavidfactor
  Patches:
        externalivr.txt.20091110.1622.patch uploaded by thedavidfactor (license 903)
........

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

13 years agoWhen GOSUB is invoked within an AGI, it may not exit correctly.
Tilghman Lesher [Tue, 10 Nov 2009 21:22:50 +0000 (21:22 +0000)]
When GOSUB is invoked within an AGI, it may not exit correctly.
(closes issue #16216)
 Reported by: atis
 Patches:
       20091110__atis_work.diff.txt uploaded by tilghman (license 14)
 Tested by: atis

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

13 years agoMerged revisions 229281 via svnmerge from
Joshua Colp [Tue, 10 Nov 2009 20:06:13 +0000 (20:06 +0000)]
Merged revisions 229281 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r229281 | file | 2009-11-10 16:03:14 -0400 (Tue, 10 Nov 2009) | 8 lines

  Remove broken support for direct transcoding between G.726 RFC3551 and G.726 AAL2.

  On some systems the translation core would actually consider g726aal2 -> g726 -> signed linear
  to be a quicker path then g726aal2 -> signed linear which exposed this problem.

  (closes issue #15504)
  Reported by: globalnetinc
........

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

13 years agoMerged revisions 229191 via svnmerge from
David Ruggles [Tue, 10 Nov 2009 17:33:47 +0000 (17:33 +0000)]
Merged revisions 229191 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r229191 | diruggles | 2009-11-10 12:23:59 -0500 (Tue, 10 Nov 2009) | 11 lines

  Document ExternalIVR event tag collision

  ExternalIVR uses the D tag for two different event types. This documents that
  behavior and how to differentiate between the two cases. Also includes a minor
  spelling fix and clarification

  (closes issue #16211)
  Reported by: thedavidfactor
  Patches:
        externalivr.txt.20091109.1507.patch uploaded by thedavidfactor (license 903)
........

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

13 years agoMerged revisions 229167 via svnmerge from
David Vossel [Tue, 10 Nov 2009 17:16:49 +0000 (17:16 +0000)]
Merged revisions 229167 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r229167 | dvossel | 2009-11-10 11:15:57 -0600 (Tue, 10 Nov 2009) | 9 lines

  don't crash on log message in solaris

  AST-2009-006

  (closes issue #16206)
  Reported by: bklang
  Tested by: bklang
........

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

13 years agoReverted revision 201717.
Matthew Nicholson [Tue, 10 Nov 2009 15:53:52 +0000 (15:53 +0000)]
Reverted revision 201717.

(closes issue 0016175)
Reported by: paul-tg

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

13 years agofixes pgsql double free of threadstorage
David Vossel [Tue, 10 Nov 2009 15:27:45 +0000 (15:27 +0000)]
fixes pgsql double free of threadstorage

A thread storage variable was being freed incorrectly, which
resulted in a double free if two queries were made in the same thread.

(closes issue #16011)
Reported by: cristiandimache
Patches:
      issue16011.diff uploaded by dvossel (license 671)

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

13 years agoSchema file additions
Gavin Henry [Tue, 10 Nov 2009 11:16:10 +0000 (11:16 +0000)]
Schema file additions

* Added AsteriskDialplan, AsteriskAccount and AsteriskMailbox  objectClasses
  to allow standalone dialplan, account and mailbox entries (STRUCTURAL)
* Added new Fields:
- AstAccountLanguage, AstAccountTransport, AstAccountPromiscRedir,
- AstAccountAccountCode, AstAccountSetVar, AstAccountAllowOverlap,
- AstAccountVideoSupport, AstAccountIgnoreSDPVersion
* Removed redundant IPaddr (there's already IPAddress)
- Gives more configuration Flags for SIP-Users available (tested)
- Allows to create Asterisk Attributes in defined Asterisk ObjectClasses
  without extensibleObject (which really should be the last resort); gives
  also additional possibilities for LDAP-filter

(closes issue #15874)
Reported by: Medozas
Patches:
      asterisk.ldap-schema.patch uploaded by Medozas (license 41)
Tested by: Medozas, suretec

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

13 years agoDon't crash when bridge->tech_pvt == NULL
Terry Wilson [Mon, 9 Nov 2009 22:50:22 +0000 (22:50 +0000)]
Don't crash when bridge->tech_pvt == NULL

This is a similar solution to what is in place for chan_agent

(closes issue #16003)
Reported by: atis
Tested by: twilson

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

13 years agoDon't try to convert a 64-bit integer, where only a 32-bit integer is stored.
Tilghman Lesher [Mon, 9 Nov 2009 17:17:29 +0000 (17:17 +0000)]
Don't try to convert a 64-bit integer, where only a 32-bit integer is stored.
(closes issue #16194)
 Reported by: habile

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

13 years agoAdd the 'relative-periodic-announce' option to app_queue to allow for calculating...
Matthew Nicholson [Mon, 9 Nov 2009 16:28:31 +0000 (16:28 +0000)]
Add the 'relative-periodic-announce' option to app_queue to allow for calculating the time of announcments from the end of the previous announcment rather than from the beginning.

(closes issue #15260)
Reported by: tonils

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

13 years agoMerged revisions 228896 via svnmerge from
Leif Madsen [Mon, 9 Nov 2009 15:38:38 +0000 (15:38 +0000)]
Merged revisions 228896 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r228896 | lmadsen | 2009-11-09 09:37:43 -0600 (Mon, 09 Nov 2009) | 6 lines

  Update WARNING message.
  Update a WARNING message to give a suggested fix when encountered.

  (closes issue #16198)
  Reported by: atis
  Tested by: atis
........

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

13 years agoMerged revisions 228827 via svnmerge from
Matthew Nicholson [Mon, 9 Nov 2009 14:37:07 +0000 (14:37 +0000)]
Merged revisions 228827 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r228827 | mnicholson | 2009-11-09 08:16:03 -0600 (Mon, 09 Nov 2009) | 8 lines

  Perform limited bounds checking when destroying ast_mutex_t structures to make sure we don't try to use negative indices.

  (closes issue #15588)
  Reported by: zerohalo
  Patches:
        20090820__issue15588.diff.txt uploaded by tilghman (license 14)
  Tested by: zerohalo
........

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

13 years agoFix various problems detected with Valgrind.
Tilghman Lesher [Mon, 9 Nov 2009 07:37:52 +0000 (07:37 +0000)]
Fix various problems detected with Valgrind.
 * chan_console accessed pvts after deallocation.
 * cdr_mysql stored a pointer that was freed by realloc()
 * The module loader did not check usecount on shutdown, which led to chan_iax2
 reading a timer that was already unloaded.
 * The event subsystem sometimes creates an event with no IEs.  Due to a corner
 condition, the code would read beyond the memory boundary.
 * res_pktccops did not correctly check whether its monitor thread was started.
(closes issue #16062)
 Reported by: alexanderheinz
 Patches:
       20091109__issue16062.diff.txt uploaded by tilghman (license 14)
 Tested by: tilghman

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

13 years agoAdd LSB headers to the Debian init.d script
Tzafrir Cohen [Sat, 7 Nov 2009 17:02:38 +0000 (17:02 +0000)]
Add LSB headers to the Debian init.d script

See also issue #14864 .

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

13 years agoMerged revisions 228692 via svnmerge from
David Vossel [Fri, 6 Nov 2009 22:35:44 +0000 (22:35 +0000)]
Merged revisions 228692 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r228692 | dvossel | 2009-11-06 16:33:27 -0600 (Fri, 06 Nov 2009) | 9 lines

  fixes audiohook write crash occuring in chan_spy whisper mode.

  After writing to the audiohook list in ast_write(), frames
  were being freed incorrectly.  Under certain conditions this
  resulted in a double free crash.

  (closes issue #16133)
  Reported by: wetwired

  (closes issue #16045)
  Reported by: bluecrow76
  Patches:
        issue16045.diff uploaded by dvossel (license 671)
  Tested by: bluecrow76, dvossel, habile
........

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

13 years agoCreated standard location to add options to chan_dahdi for ISDN dialing.
Richard Mudgett [Fri, 6 Nov 2009 22:32:17 +0000 (22:32 +0000)]
Created standard location to add options to chan_dahdi for ISDN dialing.

Dial(DAHDI/g1[/extension[/options]])
Current options:
K(<keypad_digits>)
R Reverse charging indication (Collect calls)

The earlier Dial(DAHDI/g1[/K<keypad_digits>][/extension] format was
variable and did not allow for the easy addition of more options.

The earlier 'C' prefix character for reverse charge indiation would
conflict with the a-d DTMF digits if ISDN uses them.

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

13 years agoami_testhooks.c automatically registers hook
David Brooks [Fri, 6 Nov 2009 22:07:22 +0000 (22:07 +0000)]
ami_testhooks.c automatically registers hook

ami_testhooks.c was registering for AMI events upon module load. Moved the registration
to its own CLI command. Added CLI command for unregistering the hook. Changed some of
the wording, removed unnecessary arguments/parameters.

Reported by: rmudgett

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

13 years agoMake compilation of chan_ooh323 disabled by default.
Mark Michelson [Fri, 6 Nov 2009 22:02:36 +0000 (22:02 +0000)]
Make compilation of chan_ooh323 disabled by default.

All addons modules should be disabled by default, requiring the
user to turn them on if desired. After all, these are addons we're
talking about here.

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

13 years agoGet chan_ooh323 to compile with gcc 4.2.
Mark Michelson [Fri, 6 Nov 2009 22:00:12 +0000 (22:00 +0000)]
Get chan_ooh323 to compile with gcc 4.2.

For some reason, the code compiles just fine with later versions
of GCC, but this one requires some weird double casting in order
to get rid of all warnings. Whatever.

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

13 years agoFix compiler warning gcc 4.2.4 found
Richard Mudgett [Fri, 6 Nov 2009 19:53:08 +0000 (19:53 +0000)]
Fix compiler warning gcc 4.2.4 found

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

13 years agoMerged revisions 228378 via svnmerge from
Matthew Nicholson [Fri, 6 Nov 2009 19:47:11 +0000 (19:47 +0000)]
Merged revisions 228378 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r228378 | mnicholson | 2009-11-06 10:26:59 -0600 (Fri, 06 Nov 2009) | 8 lines

  Properly handle '=' while decoding base64 messages and null terminate strings returned from BASE64_DECODE.

  (closes issue #15271)
  Reported by: chappell
  Patches:
        base64_fix.patch uploaded by chappell (license 8)
  Tested by: kobaz
........

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

13 years agoMissed these two channel drivers on the codec_bits merge
Tilghman Lesher [Fri, 6 Nov 2009 19:38:33 +0000 (19:38 +0000)]
Missed these two channel drivers on the codec_bits merge

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

13 years agoMerged revisions 228547 via svnmerge from
Joshua Colp [Fri, 6 Nov 2009 18:37:59 +0000 (18:37 +0000)]
Merged revisions 228547 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r228547 | file | 2009-11-06 14:32:58 -0400 (Fri, 06 Nov 2009) | 4 lines

  Don't overwrite caller ID name on a trunk with the configured fullname when using users.conf

  (issue ABE-1989)
........

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

13 years agoFix the localchannel.tex file.
Joshua Colp [Fri, 6 Nov 2009 17:52:00 +0000 (17:52 +0000)]
Fix the localchannel.tex file.

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

13 years agoFixes merging issue from 1.4, frame data is held in data.ptr in trunk
David Vossel [Fri, 6 Nov 2009 17:22:31 +0000 (17:22 +0000)]
Fixes merging issue from 1.4, frame data is held in data.ptr in trunk

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

13 years agoMerged revisions 228418 via svnmerge from
David Vossel [Fri, 6 Nov 2009 17:09:01 +0000 (17:09 +0000)]
Merged revisions 228418 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r228418 | dvossel | 2009-11-06 11:07:13 -0600 (Fri, 06 Nov 2009) | 13 lines

  fixes segfault in iLBC

  For reasons not yet known, it appears possible for an ast_frame
  to have a datalen greater than zero while the actual data is NULL
  during Packet Loss Concealment.  Most codecs don't support PLC so
  this doesn't affect them.  This patch catches the malformed frame
  and prevents the crash from occuring.  Additional efforts to determine
  why it is possible for a frame to look like this are still being
  investigated.

  (issue #16979)
........

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

13 years agoMerged revisions 228409 via svnmerge from
Joshua Colp [Fri, 6 Nov 2009 16:42:23 +0000 (16:42 +0000)]
Merged revisions 228409 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r228409 | file | 2009-11-06 12:41:20 -0400 (Fri, 06 Nov 2009) | 7 lines

  Fix a bug caused by a partially invalid frame (from the jitterbuffer) passing through the Asterisk core.

  (closes issue #15560)
  Reported by: jvandal
  (closes issue #15709)
  Reported by: covici
........

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

13 years agoMerged revisions 228338 via svnmerge from
David Vossel [Fri, 6 Nov 2009 15:42:46 +0000 (15:42 +0000)]
Merged revisions 228338 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r228338 | dvossel | 2009-11-06 09:41:41 -0600 (Fri, 06 Nov 2009) | 5 lines

  fixes crash in astfd.c

  (closes issue #15981)
  Reported by: slavon
........

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

13 years agoBlocked revisions 228272 via svnmerge
David Vossel [Fri, 6 Nov 2009 15:08:04 +0000 (15:08 +0000)]
Blocked revisions 228272 via svnmerge

........
  r228272 | dvossel | 2009-11-06 09:07:31 -0600 (Fri, 06 Nov 2009) | 9 lines

  fixes memory leak in func_audiohookinherit.c

  (closes issue 0015394)
  Reported by: boroda
  Patches:
        bug15394_memoryleak_diff2.txt uploaded by dbrooks (license 790)
  Tested by: dbrooks, boroda
........

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

13 years agofixes memory leak in func_audiohookinherit.c
David Vossel [Fri, 6 Nov 2009 15:04:24 +0000 (15:04 +0000)]
fixes memory leak in func_audiohookinherit.c

(closes issue #15394)
Reported by: boroda
Patches:
      bug15394_memoryleak_diff2.txt uploaded by dbrooks (license 790)
Tested by: dbrooks, boroda

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

13 years agoFix XML in func_cdr.c
Mark Michelson [Thu, 5 Nov 2009 22:59:02 +0000 (22:59 +0000)]
Fix XML in func_cdr.c

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

13 years agoYet another error message in the dialplan (thanks, rmudgett/russellb)
Tilghman Lesher [Thu, 5 Nov 2009 22:12:45 +0000 (22:12 +0000)]
Yet another error message in the dialplan (thanks, rmudgett/russellb)

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

13 years agoMEETME_INFO should not return a literal error message to the dialplan.
Tilghman Lesher [Thu, 5 Nov 2009 21:24:21 +0000 (21:24 +0000)]
MEETME_INFO should not return a literal error message to the dialplan.
(closes issue #15450)
 Reported by: JimVanM
 Patches:
       meetmeinfopatch.diff.txt uploaded by dbrooks (license 790)
 Tested by: JimVanM

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

13 years agoFix the fix for chanspy option o
Jeff Peeler [Thu, 5 Nov 2009 21:23:06 +0000 (21:23 +0000)]
Fix the fix for chanspy option o

In 224178, I assumed the uploaded patch was correct as it had received positive
feedback. The flags were being checked in the incorrect location. Upon testing
the fix this time it was also found that the flags from the dialplan weren't
being copied to the chanspy_translation_helper.

(closes issue #16167)
Reported by: marhbere

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

13 years agoMerged revisions 228078 via svnmerge from
David Brooks [Thu, 5 Nov 2009 19:34:50 +0000 (19:34 +0000)]
Merged revisions 228078 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r228078 | dbrooks | 2009-11-05 12:59:41 -0600 (Thu, 05 Nov 2009) | 9 lines

  chan_misdn Asterisk 1.4.27-rc2 crash

  Crash related to chan_misdn connection. Patch submitted by gknispel_proformatique, tested
  by francesco_r. "I have many crash since i have upgraded to Asterisk 1.4.27-rc2. Attached
  a full bt." This patch zeros out an ast_frame.

  (closes issue #16041)
  Reported by: francesco_r
........

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

13 years agoMerged revisions 228079 via svnmerge from
Jason Parker [Thu, 5 Nov 2009 19:16:29 +0000 (19:16 +0000)]
Merged revisions 228079 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r228079 | qwell | 2009-11-05 13:14:25 -0600 (Thu, 05 Nov 2009) | 8 lines

  Fix crash on VPB exception when no hardware is present.

  (closes issue #14970)
  Reported by: tzafrir
  Patches:
        vpb_exception.diff uploaded by tzafrir (license 46)
  Tested by: markwaters
........

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

13 years agoRework codecs command to comply with the 64-bit scheme
Tilghman Lesher [Thu, 5 Nov 2009 17:26:55 +0000 (17:26 +0000)]
Rework codecs command to comply with the 64-bit scheme

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

13 years agoDon't crash if no arguments are passed.
Tilghman Lesher [Thu, 5 Nov 2009 17:08:02 +0000 (17:08 +0000)]
Don't crash if no arguments are passed.
(closes issue #16119)
 Reported by: thedavidfactor

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

13 years agoMerged revisions 227944 via svnmerge from
Jeff Peeler [Wed, 4 Nov 2009 23:50:59 +0000 (23:50 +0000)]
Merged revisions 227944 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r227944 | jpeeler | 2009-11-04 17:47:08 -0600 (Wed, 04 Nov 2009) | 14 lines

  Fix incorrect filename comparsion after monitor file change

  The logic to detect if a requested file is indeed a different file from the
  current file was incorrect. The main issue being confusion of the use of
  filename_base which was previously set without pathing information and then
  compared to another full path. Robust file comparison logic has been added
  to properly check if two files are the same even if symlinks are used.

  (closes issue #15313)
  Reported by: caspy
  Patches:
        20091103__issue15313__1.4.diff.txt uploaded by jpeeler (license 325)
        but mostly tilghman's work
........

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

13 years agoUpdate chan_ooh323 to support the expanded codec bitfield from 227580.
Jeff Peeler [Wed, 4 Nov 2009 22:22:51 +0000 (22:22 +0000)]
Update chan_ooh323 to support the expanded codec bitfield from 227580.

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

13 years agoReworked chan_ooh323 channel module.
Alexandr Anikin [Wed, 4 Nov 2009 22:10:44 +0000 (22:10 +0000)]
Reworked chan_ooh323 channel module.

Many architectural and functional changes.
Main changes are threading model chanes (many thread in ooh323 stack
instead of one), modifications and improvements in signalling part,
additional codecs support (726, speex), t38 mode support.
This module tested and used in production environment.

(closes issue #15285)
Reported by: may213
Tested by: sles, c0w, OrNix

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

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

13 years agoAdded the 'a' option to app dial and modified app_dial to set the answertime when...
Matthew Nicholson [Wed, 4 Nov 2009 21:39:33 +0000 (21:39 +0000)]
Added the 'a' option to app dial and modified app_dial to set the answertime when the called channel answers.

This change causes answertime to be correct even if the called channel hangs up during an announcement triggered by the A() option.

(closes issue #15936)
Reported by: falves11
Patches:
      dial-macro-billsec-fix1.diff uploaded by mnicholson (license 96)
      dial-caller-answer1.diff uploaded by mnicholson (license 96)
Tested by: falves11, mnicholson

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

13 years agoMerged revisions 227827 via svnmerge from
Matthew Nicholson [Wed, 4 Nov 2009 21:03:33 +0000 (21:03 +0000)]
Merged revisions 227827 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r227827 | mnicholson | 2009-11-04 14:52:27 -0600 (Wed, 04 Nov 2009) | 10 lines

  This patch modifies the Dial application to monitor the calling channel for hangups while playing back announcements.

  (closes issue #16005)
  Reported by: falves11
  Patches:
        dial-announce-hangup-fix1.diff uploaded by mnicholson (license 96)
  Tested by: mnicholson, falves11

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

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

13 years agoFixes for gcc 4.4
Tilghman Lesher [Wed, 4 Nov 2009 20:35:24 +0000 (20:35 +0000)]
Fixes for gcc 4.4

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

13 years agoModify the SDP parsing code to parse session and media level items separately.
Matthew Nicholson [Wed, 4 Nov 2009 20:13:50 +0000 (20:13 +0000)]
Modify the SDP parsing code to parse session and media level items separately.

With the new code, media level proprieties should no longer be confused with session level proprieties. This change also reorganizes some of the SDP parsing code which should make it easier to manage in the future.

(closes issue #14994)
Reported by: frawd
Tested by: frawd, mnicholson, file

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

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

13 years agoMerged revisions 227735 via svnmerge from
Joshua Colp [Wed, 4 Nov 2009 19:26:19 +0000 (19:26 +0000)]
Merged revisions 227735 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r227735 | file | 2009-11-04 15:25:37 -0400 (Wed, 04 Nov 2009) | 5 lines

  Fix a security issue where it may be possible for someone to execute a cross-site
  AJAX request exploit.

  (AST-2009-009)
........

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

13 years agoMerged revisions 227700 via svnmerge from
Joshua Colp [Wed, 4 Nov 2009 19:20:46 +0000 (19:20 +0000)]
Merged revisions 227700 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r227700 | file | 2009-11-04 15:17:39 -0400 (Wed, 04 Nov 2009) | 5 lines

  Fix a security issue where sending a REGISTER with a differing username in the From
  URI and Authorization header would reveal whether it was valid or not.

  (AST-2009-008)
........

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

13 years agoAdd a couple more casts so that code compiles correctly.
Mark Michelson [Wed, 4 Nov 2009 16:41:02 +0000 (16:41 +0000)]
Add a couple more casts so that code compiles correctly.

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

13 years agommichelson reported a compilation error related to codec bit expansion that should...
Tilghman Lesher [Wed, 4 Nov 2009 16:35:27 +0000 (16:35 +0000)]
mmichelson reported a compilation error related to codec bit expansion that should be resolved with a simple include of frame_defs.h

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

13 years agofix trunk building
Jeff Peeler [Wed, 4 Nov 2009 16:25:15 +0000 (16:25 +0000)]
fix trunk building

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

13 years agoTwo other trunk build fixes (reported by seanbright on #asterisk-dev)
Tilghman Lesher [Wed, 4 Nov 2009 16:17:18 +0000 (16:17 +0000)]
Two other trunk build fixes (reported by seanbright on #asterisk-dev)

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

13 years agoFix trunk building
Tilghman Lesher [Wed, 4 Nov 2009 16:13:50 +0000 (16:13 +0000)]
Fix trunk building

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

13 years agoExpand codec bitfield from 32 bits to 64 bits.
Tilghman Lesher [Wed, 4 Nov 2009 14:05:12 +0000 (14:05 +0000)]
Expand codec bitfield from 32 bits to 64 bits.
Reviewboard: https://reviewboard.asterisk.org/r/416/

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

13 years agochan_misdn will fail to compile if the redirect_dn member is missing
Tilghman Lesher [Wed, 4 Nov 2009 13:57:09 +0000 (13:57 +0000)]
chan_misdn will fail to compile if the redirect_dn member is missing

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

13 years agoAdd destruction of iterators to avoid problems with refcounters
Olle Johansson [Wed, 4 Nov 2009 08:22:00 +0000 (08:22 +0000)]
Add destruction of iterators to avoid problems with refcounters

(per Russell's review of another patch)

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

13 years agoDon't crash when state_interface is NULL.
Tilghman Lesher [Wed, 4 Nov 2009 03:15:10 +0000 (03:15 +0000)]
Don't crash when state_interface is NULL.

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

13 years agoResolve another warning.
Russell Bryant [Tue, 3 Nov 2009 22:13:25 +0000 (22:13 +0000)]
Resolve another warning.

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

13 years agoResolve a warning from gcc 4.4.1.
Russell Bryant [Tue, 3 Nov 2009 22:08:46 +0000 (22:08 +0000)]
Resolve a warning from gcc 4.4.1.

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

13 years agoResolve some dev-mode warnings.
Russell Bryant [Tue, 3 Nov 2009 22:05:31 +0000 (22:05 +0000)]
Resolve some dev-mode warnings.

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

13 years agoAMI hook interface
David Brooks [Tue, 3 Nov 2009 21:26:28 +0000 (21:26 +0000)]
AMI hook interface

This patch, originally submitted by jozza, enables custom modules to send actions to AMI
and receive messages from AMI via a hook interface. Included is a simple test module to
illustrate the interface.

(closes issue #14635)
Reported by: jozza

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

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

13 years agoThis patch adds a sequence field to CDRs that can be combined with the linkedid or...
Matthew Nicholson [Tue, 3 Nov 2009 21:21:09 +0000 (21:21 +0000)]
This patch adds a sequence field to CDRs that can be combined with the linkedid or uniqueid field to uniquely identify a CDR.

(closes issue #15180)
Reported by: Nick_Lewis
Patches:
      cdr-sequence10.diff uploaded by mnicholson (license 96)
Tested by: mnicholson

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

13 years agoAdd support for using a hint when configuring a state interface using the format...
Joshua Colp [Tue, 3 Nov 2009 21:16:14 +0000 (21:16 +0000)]
Add support for using a hint when configuring a state interface using the format hint:<extension>@<context>.

(closes issue #15168)
Reported by: p_lindheimer
Patches:
      queue_extenstate5_1.4.svn.patch uploaded by GameGamer43 (license 894)

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

13 years agoFix some build issues on Solaris.
Jason Parker [Tue, 3 Nov 2009 19:59:46 +0000 (19:59 +0000)]
Fix some build issues on Solaris.

(closes issue #14517)
(SWP-109)
Reported by: asgaroth
Patches:
      bug_14517.diff uploaded by snuffy (license 35)
Tested by: asgaroth, snuffy, dougm, qwell

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

13 years agoChange warning message to debug message.
Leif Madsen [Tue, 3 Nov 2009 19:48:53 +0000 (19:48 +0000)]
Change warning message to debug message.

app_controlplayback outputs a warning, when in fact it is normal.

(closes issue #16071)
Reported by: atis
Patches:
      controlplayback_warning.patch uploaded by atis (license 242)

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

13 years agoAdditional fixes to the extensions.conf.sample file.
Leif Madsen [Tue, 3 Nov 2009 19:25:18 +0000 (19:25 +0000)]
Additional fixes to the extensions.conf.sample file.

Update the extensions.conf.sample [stdexten] context so that we use the
variable instead of requiring it to be passed explicitly. Also updated uses of
the [stdexten] context throughout.

(closes issue #15858)
Reported by: pprindeville
Patches:
      stdexten-context-update.txt uploaded by lmadsen (license 10)
Tested by: pprindeville

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

13 years agoFixed a spelling error in the q850 reason header option in the output of sip show...
Matthew Nicholson [Tue, 3 Nov 2009 18:22:28 +0000 (18:22 +0000)]
Fixed a spelling error in the q850 reason header option in the output of sip show settings.

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

13 years agoRecorded merge of revisions 227275 via svnmerge from
Richard Mudgett [Tue, 3 Nov 2009 17:58:38 +0000 (17:58 +0000)]
Recorded merge of revisions 227275 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r227275 | rmudgett | 2009-11-03 11:55:47 -0600 (Tue, 03 Nov 2009) | 4 lines

  Make sure the outgoing flag is cleared if a new channel fails to get created for outgoing calls.

  This is the relevant portion of asterisk/trunk -r226648
........

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

13 years agoCode guidelines fixes only
Tilghman Lesher [Tue, 3 Nov 2009 17:56:41 +0000 (17:56 +0000)]
Code guidelines fixes only

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

13 years agouser.conf entries in SIP were not having their peer type set.
David Vossel [Tue, 3 Nov 2009 17:12:52 +0000 (17:12 +0000)]
user.conf entries in SIP were not having their peer type set.

(closes issue #16120)
Reported by: jsmith

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

13 years agoAdding some clarifications to func_speex doxygen docs.
Olle Johansson [Tue, 3 Nov 2009 16:56:48 +0000 (16:56 +0000)]
Adding some clarifications to func_speex doxygen docs.

The functions needed doesn't exist in Speex 1.05 which is what a lot of distros use.
1.2 seems to have been in beta status for years, and does include the sexy functions needed for func_speex to work.

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

13 years agoMerged revisions 227166 via svnmerge from
Joshua Colp [Tue, 3 Nov 2009 15:37:08 +0000 (15:37 +0000)]
Merged revisions 227166 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r227166 | file | 2009-11-03 11:36:16 -0400 (Tue, 03 Nov 2009) | 5 lines

  Fix a bug where an RPID header could be generated with a blank username in the URI.

  (closes issue #15909)
  Reported by: kobaz
........

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

13 years agoUpdate extensions.conf.sample file to fix incorrect extensions.
Leif Madsen [Tue, 3 Nov 2009 15:19:47 +0000 (15:19 +0000)]
Update extensions.conf.sample file to fix incorrect extensions.

(closes issue #15857)
Reported by: pprindeville
Patches:
      stdexten.patch#2 uploaded by pprindeville (license 347)
Tested by: pprindeville

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

13 years agoMerged revisions 227088 via svnmerge from
Olle Johansson [Tue, 3 Nov 2009 11:11:15 +0000 (11:11 +0000)]
Merged revisions 227088 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r227088 | oej | 2009-11-03 11:29:59 +0100 (Tis, 03 Nov 2009) | 7 lines

Use proper response code when violating Contact ACL's.

https://reviewboard.asterisk.org/r/415/

Thanks kpfleming for a quick review.
(EDVX-003)

........

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

13 years agoAdd PacketCable NCS 1.0 support for Docsis/Eurodocsis networks
Tilghman Lesher [Mon, 2 Nov 2009 22:29:19 +0000 (22:29 +0000)]
Add PacketCable NCS 1.0 support for Docsis/Eurodocsis networks
(closes issue #12950)
 Reported by: alea-soluciones
 Patches:
       ncs-pktccops-12950-r206803.patch uploaded by alea-soluciones (license 514)
 Tested by: alea-soluciones, adomjan, urtho, nahuelgreco

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

13 years agoSIP channel name uniqueness
David Brooks [Mon, 2 Nov 2009 20:59:37 +0000 (20:59 +0000)]
SIP channel name uniqueness

SIP channel names were supposed to be unique by way of a name suffix derived from the
pointer to the channel's private data. Uniqueness was preserved on 32-bit systems, but
not on 64-bit systems. This patch, as suggested by kpfleming, replaces this suffix with
a simple incremented unsigned int.

(closes issue #15152)
Reported by: palbrecht

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

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

13 years agoSIP channel name uniqueness
David Brooks [Mon, 2 Nov 2009 20:57:45 +0000 (20:57 +0000)]
SIP channel name uniqueness

SIP channel names were supposed to be unique by way of a name suffix derived from the
pointer to the channel's private data. Uniqueness was preserved on 32-bit systems, but
not on 64-bit systems. This patch, as suggested by kpfleming, replaces this suffix with
a simple incremented unsigned int.

(closes issue #15152)
Reported by: palbrecht

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

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

13 years agoAdding external reference for doxygen
Olle Johansson [Mon, 2 Nov 2009 20:43:52 +0000 (20:43 +0000)]
Adding external reference for doxygen

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

13 years agoMerged revisions 226889 via svnmerge from
Joshua Colp [Mon, 2 Nov 2009 18:08:54 +0000 (18:08 +0000)]
Merged revisions 226889 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r226889 | file | 2009-11-02 14:08:11 -0400 (Mon, 02 Nov 2009) | 11 lines

  Fix a bug where the recorded privacy introduction file would not get removed if the caller hung up
  while the called party had not yet answered.

  This was fixed by introducing an argument to the 'n' option which, when enabled, removes the introduction
  file under all scenarios. This was done to preserve the behavior that has existed for quite some time.

  (closes issue #14674)
  Reported by: ulogic
  Patches:
        bug14674.patch uploaded by jpeeler (license 325)
........

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

13 years agoDAHDI ISDN channel names will not allow device state to work. (Interim solution.)
Richard Mudgett [Mon, 2 Nov 2009 17:34:22 +0000 (17:34 +0000)]
DAHDI ISDN channel names will not allow device state to work.  (Interim solution.)

Since ISDN works like SIP and not analog ports in regard to devices, the
device state based on the ISDN channel number could not work.  This has
not been an issue until the advent of PTMP NT mode.  Previously, ISDN
lines were used as trunks and did not have to keep track of specific
devices.

As an interim solution until device states are properly implemented, the
channel name is being changed to the following format to use the generic
device state support:
DAHDI/i<span>/<number>[:<subaddress>]-<sequence-number>

Dialplan hints would thus be:
exten => xxx,hint,DAHDI/i2/5551212

This will work with the following restrictions:
*  The number of devices/phones cannot exceed the number of B channels.
(i.e., BRI has 2)
*  Each device/phone can only have one number.  No shared MSN's.
*  The phones/devices probably should not use subaddressing.

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

13 years agoMerged revisions 226811 via svnmerge from
Tilghman Lesher [Mon, 2 Nov 2009 17:15:31 +0000 (17:15 +0000)]
Merged revisions 226811 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r226811 | tilghman | 2009-11-02 11:14:20 -0600 (Mon, 02 Nov 2009) | 8 lines

  Don't allow two separate instances of safe_asterisk when restarting from the init script.
  (closes issue #14562)
   Reported by: davidw
   Patches:
         Initially 20091022__issue14562.diff.txt uploaded by tilghman (license 14)
         Modified to 20091030__Issue14562_diff.txt uploaded by davidw (license 780)
   Tested by: davidw
........

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

13 years agoBlocked revisions 226736 via svnmerge
David Vossel [Mon, 2 Nov 2009 15:34:37 +0000 (15:34 +0000)]
Blocked revisions 226736 via svnmerge

........
  r226736 | dvossel | 2009-11-02 09:31:02 -0600 (Mon, 02 Nov 2009) | 5 lines

  fixes crash on iterator_destroy on uninitialized iterator

  (closes issue #16162)
  Reported by: krn
........

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

13 years agoBlocked revisions 226688 via svnmerge
David Vossel [Mon, 2 Nov 2009 15:17:04 +0000 (15:17 +0000)]
Blocked revisions 226688 via svnmerge

........
  r226688 | dvossel | 2009-11-02 09:16:30 -0600 (Mon, 02 Nov 2009) | 5 lines

  changes calltoken debug messages from LOG_NOTICE to LOG_DEBUG like they are supposed to be

  (closes issue #16144)
  Reported by: aragon
........

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

13 years agoThis patch adds support for a draft proposal for adding Q.850 reason headers to sip...
Matthew Nicholson [Mon, 2 Nov 2009 14:57:11 +0000 (14:57 +0000)]
This patch adds support for a draft proposal for adding Q.850 reason headers to sip messages.

(closes issue #13385)
Reported by: adomjan
Patches:
      sip.conf.sample-trunk20090929-reason_q850.patch uploaded by adomjan (license 487)
      CHANGES-trunk20090929-reason_q850.patch uploaded by adomjan (license 487)
      chan_sip.c-trunk20090929-reason_q850_atoi_fix.patch uploaded by adomjan (license 487)
      sip-q850-hangupcause1.diff uploaded by mnicholson (license 96)
Tested by: adomjan

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