]> git.ipfire.org Git - thirdparty/asterisk.git/log
thirdparty/asterisk.git
16 years agoUpdate URL to Reviewboard
Kevin P. Fleming [Thu, 14 May 2009 22:23:49 +0000 (22:23 +0000)] 
Update URL to Reviewboard

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

16 years agoFix a race condition where a reinvite could trigger a 482 response.
Mark Michelson [Thu, 14 May 2009 22:17:55 +0000 (22:17 +0000)] 
Fix a race condition where a reinvite could trigger a 482 response.

The loop detection/spiral detection code in chan_sip used the owner
channel's state as a criterion for determining if the incoming INVITE
is a looped request. The problem with this is that the INVITE-handling
code happens in a different thread than the thread that marks the owner
channel as being up. As a result, if a reinvite were to come in very quickly,
say from another Asterisk on the same LAN, it was possible for the reinvite
to arrive before the owner channel had been set to the up state.

This patch corrects the problem by using the invitestate of the sip_pvt
instead, since that can be guaranteed to be set correctly by the time
the reinvite arrives. Since there is a switch statement further in the
INVITE-handling code, the AST_STATE_RINGING state also checks the invitestate
of the sip_pvt in case we should actually be treating the channel as if it were
up already.

(closes issue #12215)
Reported by: jpyle
Patches:
      12215_confirmed.patch uploaded by mmichelson (license 60)
Tested by: lmadsen

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

16 years agoRemove an extraneous unlocking operation from ast_channel_free.
Mark Michelson [Wed, 13 May 2009 19:41:44 +0000 (19:41 +0000)] 
Remove an extraneous unlocking operation from ast_channel_free.

In the case that we could not remove the desired channel from the
list of channels, there was an extra call to unlock the channel list.
Since we unlock the list later on in the function anyway, this results
in the list being unlocked twice yet only being locked once.

(closes issue #15098)
Reported by: tim_ringenbach
Patches:
      remove_extra_unlock.diff uploaded by tim (license 540)

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

16 years agoPull in a piece of murf's 88166 patch that makes it safe to call
Doug Bailey [Wed, 13 May 2009 16:18:36 +0000 (16:18 +0000)] 
Pull in a piece of murf's 88166 patch that makes it safe to call
pbx_substitute_variables_helper_full with a non-zero'd buffer

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

16 years agoFix RFC2833 issues with DTMF getting duplicated and with duration wrapping over.
Joshua Colp [Wed, 13 May 2009 13:38:01 +0000 (13:38 +0000)] 
Fix RFC2833 issues with DTMF getting duplicated and with duration wrapping over.

(closes issue #14815)
Reported by: geoff2010
Patches:
      v1-14815.patch uploaded by dimas (license 88)
Tested by: geoff2010, file, dimas, ZX81, moliveras
(closes issue #14460)
Reported by: moliveras
Tested by: moliveras

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

16 years agoFix logic for how to proceed with a single digit extension.
Tilghman Lesher [Wed, 13 May 2009 00:52:03 +0000 (00:52 +0000)] 
Fix logic for how to proceed with a single digit extension.
(closes issue #15091)
 Reported by: andrew
 Patches:
       20090512__issue15091.diff.txt uploaded by tilghman (license 14)
 Tested by: andrew

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

16 years agoThis change modifies app_queue to properly generate CDR records in failure
Matthew Nicholson [Tue, 12 May 2009 22:15:45 +0000 (22:15 +0000)] 
This change modifies app_queue to properly generate CDR records in failure
situations.

This involves setting a proper cdr disposition coresponding to the given
failure condition and ensuring the proper information is stored in the cdr
record.

(closes issue #13691)
Reported by: dferrer
Tested by: mnicholson

(closes issue #13637)
Reported by: atis
Tested by: atis

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

16 years agoAvoid initializing routines if the authentication fails. Fixes a crash (RR) issue.
Tilghman Lesher [Tue, 12 May 2009 20:39:21 +0000 (20:39 +0000)] 
Avoid initializing routines if the authentication fails.  Fixes a crash (RR) issue.
(closes issue #14508)
 Reported by: tiziano
 Patches:
       20090221_2_wrongmailbox.diff.txt uploaded by tiziano (license 377)

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

16 years agoSet the invitestate to INV_CANCELLED only if we are actually sending a SIP CANCEL.
Mark Michelson [Tue, 12 May 2009 18:18:44 +0000 (18:18 +0000)] 
Set the invitestate to INV_CANCELLED only if we are actually sending a SIP CANCEL.

The problem was that the hangup code was setting the invitestate too early. The result of
this was that we would always send a CANCEL request, even if it was not an appropriate
time to do so (e.g. we have not yet received a provisional response for our INVITE).

Note that this same fix had been applied to trunk and the 1.6.X branches starting with
revision 155467. This is why you will see this revision being blocked from those places.

AST-216

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

16 years agoMove 300 bytes around on the stack, to make more room for an extension buffer.
Tilghman Lesher [Mon, 11 May 2009 22:48:20 +0000 (22:48 +0000)] 
Move 300 bytes around on the stack, to make more room for an extension buffer.
This allows more concurrent extensions to be copied for a single voicemail,
without creating a possibility of upsetting existing users, where a dialplan
could run out of stack space where it had run fine before.  Alternatively,
we could have allocated off the heap, but that is a larger change and would
have increased the chance for instability introduced by this change.

This is really solved starting in 1.6.0.11, as the use of an ast_str buffer
allows an unlimited number of extensions (up to available memory).  We
additionally create a new warning message when the buffer length is exceeded,
permitting administrators to see an issue after the fact, whereas previously
the list was silently truncated.
(closes issue #14739)
 Reported by: p_lindheimer
 Patches:
       20090417__bug14739.diff.txt uploaded by tilghman (license 14)
 Tested by: p_lindheimer

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

16 years agoSent wrong message to clear a call we started if the other end has not responed yet.
Richard Mudgett [Mon, 11 May 2009 19:09:00 +0000 (19:09 +0000)] 
Sent wrong message to clear a call we started if the other end has not responed yet.

In the state MISDN_CALLING (i.e. SETUP was sent but no answer has arrived yet),
it is not allowed to clear the call with RELEASE_COMPLETE.  It must be
cleared with DISCONNECT.  A RELEASE_COMPLETE is only allowed as an answer
to a SETUP.  (See Q.931 ch. 5.3.2, 5.3.2.a, 5.3.2.b)

Patches:
    chan-misdn-ccstate7.patch uploaded by customer.

JIRA ABE-1862

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

16 years agoDocument CHANNEL(transfercapability) in CLI documentation.
Leif Madsen [Mon, 11 May 2009 17:35:17 +0000 (17:35 +0000)] 
Document CHANNEL(transfercapability) in CLI documentation.

(issue #15073)
Reported by: pkempgen
Patches:
      20090511__issue15073.diff.txt uploaded by tilghman (license 14)

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

16 years agoSet the proper disposition on originated calls.
Matthew Nicholson [Fri, 8 May 2009 21:01:25 +0000 (21:01 +0000)] 
Set the proper disposition on originated calls.

(closes issue #14167)
Reported by: jpt
Patches:
      call-file-missing-cdr2.diff uploaded by mnicholson (license 96)
Tested by: dlotina, rmartinez, mnicholson

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

16 years ago"misdn show config" segfaults asterisk, if no MSN lists
David Vossel [Fri, 8 May 2009 14:51:09 +0000 (14:51 +0000)] 
"misdn show config" segfaults asterisk, if no MSN lists

(closes issue #14976)
Reported by: alecdavis
Patches:
      misdn_config.diff.txt uploaded by alecdavis (license 585)
Tested by: alecdavis, FabienToune

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

16 years agoMake absolute paths for logger channels work properly
Kevin P. Fleming [Fri, 8 May 2009 14:03:28 +0000 (14:03 +0000)] 
Make absolute paths for logger channels work properly

(Note: This is not a new feature, it was previously undocumented and broken.)

The Asterisk logger has a feature to support absolute pathnames for logger channels, but the code implementing the feature was broken. This has been fixed, and the absolute path feature is now documented in the sample logger.conf.

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

16 years agoFix Background within a Macro for FreePBX.
Tilghman Lesher [Thu, 7 May 2009 23:41:11 +0000 (23:41 +0000)] 
Fix Background within a Macro for FreePBX.
If the single digit DTMF is an extension in the specified context, then
go there and signal no DTMF.  Otherwise, we should exit with that DTMF.
If we're in Macro, we'll exit and seek that DTMF as the beginning of an
extension in the Macro's calling context.  If we're not in Macro, then
we'll simply seek that extension in the calling context.  Previously,
someone complained about the behavior as it related to the interior of a
Gosub routine, and the fix (#14011) inadvertently broke FreePBX
(#14940).  This change should fix both of these situations, but with the
possible incompatibility that if a single digit extension does not exist
(but a longer extension COULD have matched), it would have previously
gone immediately to the "i" extension, but will now need to wait for a
timeout.
(closes issue #14940)
 Reported by: p_lindheimer
 Patches:
       20090420__bug14940.diff.txt uploaded by tilghman (license 14)
 Tested by: p_lindheimer

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

16 years agoGive a more helpful message when an incoming call's dialed extension does not match.
Richard Mudgett [Thu, 7 May 2009 22:17:06 +0000 (22:17 +0000)] 
Give a more helpful message when an incoming call's dialed extension does not match.

Added the dialed extension and context to the chan_misdn messages warning
that the dialed number cannot be matched in the dialplan.

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

16 years agoEliminate repetition of fullcontact during reconstruction.
Tilghman Lesher [Thu, 7 May 2009 16:29:08 +0000 (16:29 +0000)] 
Eliminate repetition of fullcontact during reconstruction.
If the fullcontact field appears in both the sippeers and the
sipregs table, then during reconstruction of the field, it will
otherwise be doubled.
(closes issue #14754)
 Reported by: Alexei Gradinari
 Patches:
       20090506__bug14754.diff.txt uploaded by tilghman (license 14)
 Tested by: lmadsen

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

16 years agoMake ParkedCall application stop execution of the dialplan after hang up
Jeff Peeler [Wed, 6 May 2009 22:15:19 +0000 (22:15 +0000)] 
Make ParkedCall application stop execution of the dialplan after hang up

Just changed park_exec to always return non-zero. I really wasn't entirely sure
at first if this was a bug. Decided it was since it would be surprising when
not using ParkedCall in the dialplan to hang up and have dialplan execution
continue.

(closes issue #14555)
Reported by: francesco_r

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

16 years agoUpdate some old logic to stop both begin and end DTMF frames from reaching the core...
Joshua Colp [Wed, 6 May 2009 13:30:51 +0000 (13:30 +0000)] 
Update some old logic to stop both begin and end DTMF frames from reaching the core if rfc2833 is not enabled.

(closes issue #15036)
Reported by: dimas
Patches:
      v1-15036.patch uploaded by dimas (license 88)

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

16 years agoFix Javascript error when using astman.js in Internet Explorer.
Sean Bright [Tue, 5 May 2009 19:56:11 +0000 (19:56 +0000)] 
Fix Javascript error when using astman.js in Internet Explorer.

Internet Explorer (tested with 7.0) does not like trailing commas on constructs
like object initializers, so get rid of them to avoid some errors.

(closes issue #15026)
Reported by: rajnishgiri
Patches:
      bug15026.patch uploaded by seanbright (license 71)
Tested by: seanbright

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

16 years agoFix an incorrect assumption that certain values on the channel will always exist...
Joshua Colp [Tue, 5 May 2009 18:22:27 +0000 (18:22 +0000)] 
Fix an incorrect assumption that certain values on the channel will always exist when they may not.

The CDR code involved with bridges wrongly assumed that the currently executing application and data
values will always exist. It is possible for this to be false when call forwarding is involved.

(closes issue #14984)
Reported by: gincantalupo

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

16 years agoFix a bug where the followme application would continue trying numbers after the...
Joshua Colp [Tue, 5 May 2009 17:43:30 +0000 (17:43 +0000)] 
Fix a bug where the followme application would continue trying numbers after the caller hung up.

(closes issue #13624)
Reported by: sgenyuk

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

16 years agoglobal mohinterpret setting is ignored
David Vossel [Mon, 4 May 2009 22:37:31 +0000 (22:37 +0000)] 
global mohinterpret setting is ignored

mohinterpret and mohsuggest global variables were not copied over during build_users and build_peers.

(closes issue #14728)
Reported by: dimas
Patches:
      v1-14728.patch uploaded by dimas (license 88)
Tested by: dimas, dvossel

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

16 years agoFix a bug which resulted from the Hebrew voicemail commit.
Mark Michelson [Sat, 2 May 2009 18:48:20 +0000 (18:48 +0000)] 
Fix a bug which resulted from the Hebrew voicemail commit.

This fixes a case where a certain message could get played twice.

(closes issue #13155)
Reported by: greenfieldtech
Patches:
      app_voicemail.c.multi-lang-patch uploaded by greenfieldtech (license 369)
Tested by: greenfieldtech

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

16 years agoKevin has informed me that thi sort of thing is not necessary.
Mark Michelson [Sat, 2 May 2009 10:45:24 +0000 (10:45 +0000)] 
Kevin has informed me that thi sort of thing is not necessary.

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

16 years agoMove static buffers to outside for loops in app_chanspy.
Mark Michelson [Sat, 2 May 2009 10:21:00 +0000 (10:21 +0000)] 
Move static buffers to outside for loops in app_chanspy.

Similar to seanbright's commit 191422, this moves some static buffers
to be defined outside of for loops since it is undefined if memory
will be re-used or if the stack will grow with each iteration of the
loop.

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

16 years agoSIP Response 410 maps to cause code 22 (or 23), not 1.
Tilghman Lesher [Fri, 1 May 2009 20:00:23 +0000 (20:00 +0000)] 
SIP Response 410 maps to cause code 22 (or 23), not 1.
(closes issue #14993)
 Reported by: BigJimmy
 Patches:
       causepatch uploaded by BigJimmy (license 371)

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

16 years agoFix DTMF not being sent to other side after a partial feature match
Jeff Peeler [Fri, 1 May 2009 17:40:46 +0000 (17:40 +0000)] 
Fix DTMF not being sent to other side after a partial feature match

This fixes a regression from commit 176701. The issue was that
ast_generic_bridge never exited after the feature digit timeout had elapsed,
which prevented the queued DTMF from being sent to the other side.

This issue was reported to me directly.

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

16 years agoMove the defintion of the a couple arrays out of loops.
Sean Bright [Fri, 1 May 2009 15:42:48 +0000 (15:42 +0000)] 
Move the defintion of the a couple arrays out of loops.

According to Kevin, it is unspecified as to whether a variable defined inside
a block is allocated once by the compiler or for each pass through the block
(loops being the only interesting case), so just define these before we get
into our loop to be sure.

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

16 years agoAllow H.323 to compile with FDLEAK checking enabled.
Tilghman Lesher [Wed, 29 Apr 2009 23:10:54 +0000 (23:10 +0000)] 
Allow H.323 to compile with FDLEAK checking enabled.

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

16 years agoPatch to fix tab-completion crash on "remove extension"
David Brooks [Wed, 29 Apr 2009 18:07:59 +0000 (18:07 +0000)] 
Patch to fix tab-completion crash on "remove extension"

This patch simply removes some old code back before Asterisk used editline.
This fixes the crash that occurred when tab-completing "remove extension".

(closes issue #14689)
Reported by: isaacgal

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

16 years agoFix a crash in app_queue with very long member lists.
Sean Bright [Wed, 29 Apr 2009 15:23:07 +0000 (15:23 +0000)] 
Fix a crash in app_queue with very long member lists.

A user reported via #asterisk that with very long lists of members, a crash
occurs in ast_strdupa, so just use a single buffer and ast_copy_string instead
of stack allocating copys of each interface name.

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

16 years agoFix 'inconsistent line endings' when autoconf 2.63 is used
Kevin P. Fleming [Mon, 27 Apr 2009 19:29:46 +0000 (19:29 +0000)] 
Fix 'inconsistent line endings' when autoconf 2.63 is used

Attempt to make configure script regeneration 'safe' using autoconf 2.63, which embeds a bare CR into the script, thus making Subversion complain about inconsistent line endings

This commit changes the MIME type of the configure script to be 'binary' thus making Subversion no longer inspect line endings, and as a bonus 'svn diff' will no longer try to generate diff output for it, which is not generally useful anyway.

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

16 years agoFix a typo from 190661.
Russell Bryant [Mon, 27 Apr 2009 19:03:59 +0000 (19:03 +0000)] 
Fix a typo from 190661.

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

16 years agoResolve a crash in res_smdi when used with chan_dahdi.
Russell Bryant [Mon, 27 Apr 2009 19:00:54 +0000 (19:00 +0000)] 
Resolve a crash in res_smdi when used with chan_dahdi.

When chan_dahdi goes to get an SMDI message, it provides no search criteria.
It just grabs the next message that arrives.  This code was written with the
SMDI dialplan functions in mind, since that is now the preferred method of
using SMDI.  However, this broke support of it being used from chan_dahdi.

(closes AST-212)

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

16 years agoRemove a bogus ast_channel_unlock().
Russell Bryant [Thu, 23 Apr 2009 21:07:07 +0000 (21:07 +0000)] 
Remove a bogus ast_channel_unlock().

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

16 years agoFix a bug in chan_local glare hangup detection.
Joshua Colp [Thu, 23 Apr 2009 19:13:18 +0000 (19:13 +0000)] 
Fix a bug in chan_local glare hangup detection.

If both sides of a Local channel were hung up at around the same time it was
possible for one thread to destroy the local private structure and have the other thread
immediately try to remove the already freed structure from the local channel list.

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

16 years agounistd.h is required for usleep() on Darwin. It will not hurt to include it always
Olle Johansson [Thu, 23 Apr 2009 10:07:26 +0000 (10:07 +0000)] 
unistd.h is required for usleep() on Darwin. It will not hurt to include it always
on other platforms either.

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

16 years agoDetect availability of pthread_rwlock_timedwrlock() before using it.
Tilghman Lesher [Wed, 22 Apr 2009 21:35:03 +0000 (21:35 +0000)] 
Detect availability of pthread_rwlock_timedwrlock() before using it.
(closes issue #14930)
 Reported by: tilghman
 Patches:
       20090420__bug14930.diff.txt uploaded by tilghman (license 14)
 Tested by: mvanbaak, tilghman

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

16 years agoMake chan_h323 respect packetization settings
Jeff Peeler [Wed, 22 Apr 2009 19:20:53 +0000 (19:20 +0000)] 
Make chan_h323 respect packetization settings

Previously, packetization settings were ignored and now they are not. A new
config option 'autoframing' has been added to mirror the way chan_sip handles
it. Turning on the autoframing option (available both as a global option or per
peer) overrides the local settings with the remote packetization settings.
Testing was performed with varying packetization levels with the following
codecs: ulaw, alaw, gsm, and g729.

(closes issue #12415)
Reported by: pj
Patches:
      2009012200_h323packetization.diff.txt uploaded by mvanbaak (license 7),
      modified by me

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

16 years agoreplace sed with tr to remove \r from downloaded file
Michiel van Baak [Wed, 22 Apr 2009 14:29:28 +0000 (14:29 +0000)] 
replace sed with tr to remove \r from downloaded file

On some systems, sed does not recognize \r in the pattern the way it
was used here.
Use tr instead because this works the same across systems.

(closes issue #14936)
Reported by: leobrown
Patches:
      2009042201_14936.diff.txt uploaded by mvanbaak (license 7)
  Tested by: leobrown, mvanbaak

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

16 years agoRemove daemon call on systems that do not support forking.
Doug Bailey [Tue, 21 Apr 2009 15:52:13 +0000 (15:52 +0000)] 
Remove daemon call on systems that do not support forking.

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

16 years agoAdd check in configure script to check for GLOB_NOMAGIC and GLOB_BRACE in glob.h
Doug Bailey [Tue, 21 Apr 2009 14:00:55 +0000 (14:00 +0000)] 
Add check in configure script to check for GLOB_NOMAGIC and GLOB_BRACE in glob.h
This allows config.c to compile when linked against uclibc that does not support these parameters

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

16 years agoAdd a workaround for func_odbc/ARRAY() for problems that occur with certain special...
Tilghman Lesher [Mon, 20 Apr 2009 22:02:16 +0000 (22:02 +0000)] 
Add a workaround for func_odbc/ARRAY() for problems that occur with certain special characters.
In certain cases, due to the way Set() works in 1.4, values may not get set
properly.  This is a workaround for 1.4 only that corrects for these issues,
without making func_odbc more difficult to use properly.
(closes issue #14614)
 Reported by: wdoekes
 Patches:
       20090309__bug14614__2.diff.txt uploaded by tilghman (license 14)
       double_set_unescape_workaround_for_func_odbc.osso-and-tilghman-1.diff uploaded by wdoekes (license 717)
 Tested by: wdoekes, tilghman

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

16 years agoUpdate CDR appropriately when AST_CAUSE_NO_ANSWER is set
Terry Wilson [Mon, 20 Apr 2009 21:10:27 +0000 (21:10 +0000)] 
Update CDR appropriately when AST_CAUSE_NO_ANSWER is set

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

16 years agoDon't treat a NOANSWER like a CHANUNAVAIL
Terry Wilson [Mon, 20 Apr 2009 21:00:52 +0000 (21:00 +0000)] 
Don't treat a NOANSWER like a CHANUNAVAIL

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

16 years agoProperly handle @s within hints in AEL.
Sean Bright [Mon, 20 Apr 2009 20:58:39 +0000 (20:58 +0000)] 
Properly handle @s within hints in AEL.

AEL was not handling the case of a device hint containing an @ symbol, which
caused parking hints (e.g. hint(park:exten@context)) to error out the parser.
This patch makes AEL treat the @ the same way it treats colon and ampersand
now, meaning the characters are included in verbatim.

(closes issue #14941)
Reported by: bpgoldsb
Patches:
      bug14941.patch uploaded by seanbright (license 71)
Tested by: bpgoldsb

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

16 years agoClean up problem with manager implementation of mmap where it was not testing against...
Doug Bailey [Mon, 20 Apr 2009 19:10:56 +0000 (19:10 +0000)] 
Clean up problem with manager implementation of mmap where it was not testing against MAP_FAILED response.
Got rid of shadowed variable used in processign the mmap results.
Change test of mmap results to compare against MAP_FAILED

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

16 years agoMove the check for chan->fdno == -1 to after the zombie/hangup check.
Mark Michelson [Mon, 20 Apr 2009 14:04:41 +0000 (14:04 +0000)] 
Move the check for chan->fdno == -1 to after the zombie/hangup check.

Many users were finding that their hung up channels were staying up and
causing 100% CPU usage.

(issue #14723)
Reported by: seadweller
Patches:
      14723_1-4-tip.patch uploaded by mmichelson (license 60)
Tested by: falves11, bamby

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

16 years agoFixed autologoff in agents.conf not working when agent logs in via AgentLogin app
David Vossel [Sat, 18 Apr 2009 01:27:19 +0000 (01:27 +0000)] 
Fixed autologoff in agents.conf not working when agent logs in via AgentLogin app

An agent logs in by calling an extension that calls the AgentLogin app.  In agents.conf ackcall=always is set, so when they get a call they have the choice to either acknowledge it or ignore it.  autologoff=10 is set as well, so if the agent ignores the call over 10sec one may assume that the agent should be logged out (and in this case hungup on as well), but this was not happening.

(closes issue #14091)
Reported by: evandro
Patches:
      autologoff.diff uploaded by dvossel (license 671)

Review: http://reviewboard.digium.com/r/225/

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

16 years agoModifed/added some debug messages.
Richard Mudgett [Fri, 17 Apr 2009 21:27:55 +0000 (21:27 +0000)] 
Modifed/added some debug messages.

JIRA ABE-1835

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

16 years agoMake Busy() application set the CDR disposition to BUSY.
Matthew Nicholson [Fri, 17 Apr 2009 15:43:09 +0000 (15:43 +0000)] 
Make Busy() application set the CDR disposition to BUSY.

(closes issue #14306)
Reported by: cristiandimache

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

16 years agoFix a bug where a value used to create the channel name was bogus.
Joshua Colp [Fri, 17 Apr 2009 14:41:25 +0000 (14:41 +0000)] 
Fix a bug where a value used to create the channel name was bogus.

This commit fixes the scenario where an incoming call is authenticated
using a peer entry. Previously the channel name was created using either
the username setting from the sip.conf entry or the IP address that the
call came from. Now the channel name will be created using the peer name
itself. This commit will not change the way the channel name is generated
for users or friends.

(closes issue #14256)
Reported by: Nick_Lewis
Patches:
      chan_sip.c-chname.patch uploaded by Nick (license 657)
Tested by: Nick_Lewis, file

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

16 years agoFix a situation where the DAHDI channel private structure lock was not unlocked when...
Joshua Colp [Fri, 17 Apr 2009 14:25:57 +0000 (14:25 +0000)] 
Fix a situation where the DAHDI channel private structure lock was not unlocked when it should have been.

(issue AST-210)

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

16 years agoOnly update realtime, if global option rtupdate != false
Tilghman Lesher [Thu, 16 Apr 2009 21:41:13 +0000 (21:41 +0000)] 
Only update realtime, if global option rtupdate != false
(closes issue #14885)
 Reported by: deepesh
 Patches:
       20090413__bug14885.diff.txt uploaded by tilghman (license 14)
 Tested by: deepesh

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

16 years agoOnly disable mISDN DSP if Asterisk DSP is enabled. Leave jitter setting alone.
Richard Mudgett [Thu, 16 Apr 2009 21:37:58 +0000 (21:37 +0000)] 
Only disable mISDN DSP if Asterisk DSP is enabled. Leave jitter setting alone.

JIRA ABE-1835

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

16 years agoUmask should not be exported into global namespace.
Tilghman Lesher [Thu, 16 Apr 2009 21:02:29 +0000 (21:02 +0000)] 
Umask should not be exported into global namespace.
(closes issue #14912)
 Reported by: jcapp

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

16 years agoNational prefix inserted even when caller ID not available
David Vossel [Wed, 15 Apr 2009 22:08:40 +0000 (22:08 +0000)] 
National prefix inserted even when caller ID not available

When the caller ID is restricted, the expected behavior is for the caller id to be blank.  In chan_dahdi, the national prefix is placed onto the callers number even if its restricted (empty) causing the caller id to be the national prefix rather than blank.

(closes issue #13207)
Reported by: shawkris
Patches:
      national_prefix.diff uploaded by dvossel (license 671)

Review: http://reviewboard.digium.com/r/220/

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

16 years agoUpdate ast_readvideo_callback to match ast_readaudio_callback.
Mark Michelson [Wed, 15 Apr 2009 20:04:20 +0000 (20:04 +0000)] 
Update ast_readvideo_callback to match ast_readaudio_callback.

This fixes potential refcount errors that may occur on ast_filestreams.

AST-208

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

16 years agoaudio_audiohook_write_list() does not correctly update sample size after ast_translate.
David Vossel [Tue, 14 Apr 2009 15:02:04 +0000 (15:02 +0000)] 
audio_audiohook_write_list() does not correctly update sample size after ast_translate.

audio_audiohook_write_list() does not take into account that the sample size may change after translation depending on if the original frame is is 8khz or 16khz.  While no 16kz codecs are supported in 1.4 at the moment, this will save headaches in the future if they ever are.  the sample size is now updated after translating to reflect this possibility.  Thanks to jcolp and mmichelson for helping me work this out.

(issue AST-197)

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

16 years agoIf fileconfig limit exceeds our maximum, then set the limit to the maximum.
Tilghman Lesher [Mon, 13 Apr 2009 23:04:15 +0000 (23:04 +0000)] 
If fileconfig limit exceeds our maximum, then set the limit to the maximum.
(Closes issue #14888)
Reported by: falves11

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

16 years agoFix module embedding for chan_h323.
Jeff Peeler [Fri, 10 Apr 2009 22:16:13 +0000 (22:16 +0000)] 
Fix module embedding for chan_h323.

Include libchanh323.a in the modules.link file so that all the symbols can be
resolved at link time.

(closes issue #11966)
Reported by: dome

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

16 years agoSupport "signaling" in addition to "signalling".
Russell Bryant [Fri, 10 Apr 2009 19:26:40 +0000 (19:26 +0000)] 
Support "signaling" in addition to "signalling".

The sample configuration file has references to both spellings.

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

16 years agoAdd lastms column to the contributed table designs
Tilghman Lesher [Fri, 10 Apr 2009 17:28:46 +0000 (17:28 +0000)] 
Add lastms column to the contributed table designs

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

16 years agoHandle a SIP race condition (reinvite before an ACK) properly.
Mark Michelson [Thu, 9 Apr 2009 18:51:20 +0000 (18:51 +0000)] 
Handle a SIP race condition (reinvite before an ACK) properly.

RFC 5047 explains the proper course of action to take if a
reINVITE is received before the ACK from a previous invite
transaction. What we are to do is to treat the reINVITE as
if it were both an ACK and a reINVITE and process it normally.

Later, when we receive the ACK we had been expecting, we will
ignore it since its CSeq is less than the current iseqno of
the sip_pvt representing this dialog.

(closes issue #13849)
Reported by: klaus3000
Patches:
      13849_v2.patch uploaded by mmichelson (license 60)
Tested by: mmichelson, klaus3000

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

16 years agoOops, typo
Tilghman Lesher [Thu, 9 Apr 2009 18:39:07 +0000 (18:39 +0000)] 
Oops, typo

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

16 years agoRace condition between ast_cli_command() and 'module unload' could cause a deadlock.
Tilghman Lesher [Thu, 9 Apr 2009 18:08:20 +0000 (18:08 +0000)] 
Race condition between ast_cli_command() and 'module unload' could cause a deadlock.
Add lock timeouts to avoid this potential deadlock.
(closes issue #14705)
 Reported by: jamessan
 Patches:
       20090320__bug14705.diff.txt uploaded by tilghman (license 14)
 Tested by: jamessan

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

16 years agoPermit zero-length text messages in SIP.
Tilghman Lesher [Thu, 9 Apr 2009 16:38:37 +0000 (16:38 +0000)] 
Permit zero-length text messages in SIP.
(Related to an issue posted to the -users list, subject "AEL2, BASE64_DECODE and hexadecimal")

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

16 years agoOops, missed this file in the last commit.
Tilghman Lesher [Thu, 9 Apr 2009 04:32:40 +0000 (04:32 +0000)] 
Oops, missed this file in the last commit.

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

16 years agoAdd debugging mode for diagnosing file descriptor leaks.
Tilghman Lesher [Thu, 9 Apr 2009 04:31:38 +0000 (04:31 +0000)] 
Add debugging mode for diagnosing file descriptor leaks.
(Related to issue #14625)

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

16 years agoBackport resolution for file descriptor leak in 1.6.0 to 1.4.
Tilghman Lesher [Wed, 8 Apr 2009 20:39:13 +0000 (20:39 +0000)] 
Backport resolution for file descriptor leak in 1.6.0 to 1.4.
This fixes short reads in http manager sessions, such as those done by the
ast-gui branch.  (Fixes AST-198)

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

16 years agoFix a crash due to too few arguments to RetryDial.
Mark Michelson [Wed, 8 Apr 2009 19:16:49 +0000 (19:16 +0000)] 
Fix a crash due to too few arguments to RetryDial.

(closes issue #14852)
Reported by: junky
Patches:
      retry_fix.diff uploaded by junky (license 177)

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

16 years agoFix a small logical error when loading moh classes.
Mark Michelson [Wed, 8 Apr 2009 16:52:03 +0000 (16:52 +0000)] 
Fix a small logical error when loading moh classes.

We were unconditionally incrementing the number of mohclasses
registered. However, we should actually only increment if the
call to moh_register was successful.

While this probably has never caused problems, I noticed it
and decided to fix it anyway.

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

16 years agoMake a couple of changes with regards to a new message printed in ast_read().
Mark Michelson [Wed, 8 Apr 2009 15:26:46 +0000 (15:26 +0000)] 
Make a couple of changes with regards to a new message printed in ast_read().

"ast_read() called with no recorded file descriptor" is a new message added
after a bug was discovered. Unfortunately, it seems there are a bunch of places
that potentially make such calls to ast_read() and trigger this error message
to be displayed. This commit does two things to help to make this message appear
less.

First, the message has been downgraded to a debug level message if dev mode is
not enabled. The message means a lot more to developers than it does to end users,
and so developers should take an effort to be sure to call ast_read only when
a channel is ready to be read from. However, since this doesn't actually cause an
error in operation and is not something a user can easily fix, we should not spam
their console with these messages.

Second, the message has been moved to after the check for any pending masquerades.
ast_read() being called with no recorded file descriptor should not interfere with
a masquerade taking place.

This could be seen as a simple way of resolving issue #14723. However, I still want
to try to clear out the existing ways of triggering this message, since I feel that
would be a better resolution for the issue.

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

16 years agoFix a few typos of the word "frequency."
Mark Michelson [Wed, 8 Apr 2009 00:09:04 +0000 (00:09 +0000)] 
Fix a few typos of the word "frequency."

(closes issue #14842)
Reported by: jvandal
Patches:
      frequency-typo.diff uploaded by jvandal (license 413)

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

16 years agoSet the AST_FEATURE_WARNING_ACTIVE flag when a p2p bridge returns AST_BRIDGE_RETRY.
Mark Michelson [Tue, 7 Apr 2009 23:49:49 +0000 (23:49 +0000)] 
Set the AST_FEATURE_WARNING_ACTIVE flag when a p2p bridge returns AST_BRIDGE_RETRY.

Without this flag set, warning sounds will not be properly played to either party
of the bridge.

(closes issue #14845)
Reported by: adomjan

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

16 years agoFix Macro documentation to match current (and intended) behavior.
Tilghman Lesher [Tue, 7 Apr 2009 22:16:50 +0000 (22:16 +0000)] 
Fix Macro documentation to match current (and intended) behavior.
(See -dev mailing list)

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

16 years agoEnsure that \r\n is printed after the ActionID in an OriginateResponse.
Mark Michelson [Tue, 7 Apr 2009 20:43:49 +0000 (20:43 +0000)] 
Ensure that \r\n is printed after the ActionID in an OriginateResponse.

(closes issue #14847)
Reported by: kobaz

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

16 years agoRevert commit 186445 because it causes the build to fail when IMAP_STORAGE is used.
Mark Michelson [Mon, 6 Apr 2009 13:54:41 +0000 (13:54 +0000)] 
Revert commit 186445 because it causes the build to fail when IMAP_STORAGE is used.

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

16 years agoFix a bug where DAHDI/Zaptel channels would not properly switch formats when requested
Kevin P. Fleming [Fri, 3 Apr 2009 20:19:20 +0000 (20:19 +0000)] 
Fix a bug where DAHDI/Zaptel channels would not properly switch formats when requested

Don't offer AST_FORMAT_SLINEAR on DAHDI/Zaptel channels... while it could provide a slight performance benefit, the translation core in Asterisk has some flaws when a channel driver offers multiple raw formats. this fix is much simpler than fixing the translation core to solve that issue (although that will be done later).

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

16 years agoFound a conflict in the last commit, due to multiple targets
Tilghman Lesher [Fri, 3 Apr 2009 19:56:48 +0000 (19:56 +0000)] 
Found a conflict in the last commit, due to multiple targets

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

16 years agoDistinguish in a sent email between simple sends and forwards.
Tilghman Lesher [Fri, 3 Apr 2009 19:06:58 +0000 (19:06 +0000)] 
Distinguish in a sent email between simple sends and forwards.
(closes issue #11678)
 Reported by: jamessan
 Patches:
       20090330__bug11678.diff.txt uploaded by tilghman (license 14)
 Tested by: tilghman, lmadsen

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

16 years agoFix a problem with the crypto variable definitions not actually being defined properly.
Joshua Colp [Fri, 3 Apr 2009 15:48:56 +0000 (15:48 +0000)] 
Fix a problem with the crypto variable definitions not actually being defined properly.

(closes issue #14804)
Reported by: jvandal

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

16 years agoFix a memory leak in cdr_radius.
Russell Bryant [Fri, 3 Apr 2009 01:57:44 +0000 (01:57 +0000)] 
Fix a memory leak in cdr_radius.

I came across this while doing some testing of my ast_channel_ao2 branch.
After running a test overnight that generated over 5 million calls, Asterisk
had taken up about 1 GB of my system memory.  So, I re-ran the test with
MALLOC_DEBUG turned on.  However, it showed no leaks in Asterisk during the
test, even though Asterisk was still consuming it somehow.

Instead, I turned to valgrind, which when run with --leak-check=full, told
me exactly where the leak came from, which was from allocations inside the
radiusclient-ng library.  This explains why MALLOC_DEBUG did not report it.

After a bit of analysis, I found that we were leaking a little bit of memory
every time a CDR record was passed to cdr_radius.

I don't actually have a radius server set up to receive CDR records.  However,
I always have my development systems compile and install all modules.  In
addition to making sure there are not build errors across modules, always
loading modules helps find bugs like this, too, so it is strongly recommend for
all developers.

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

16 years agoFix instructions in one-step parking comment to make more sense.
Mark Michelson [Thu, 2 Apr 2009 21:55:34 +0000 (21:55 +0000)] 
Fix instructions in one-step parking comment to make more sense.

Changed a capital K to a lowercase k.

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

16 years agoensure that the buffer passed to DAHDI_SET_BUFINFO is fully initialized
Kevin P. Fleming [Thu, 2 Apr 2009 17:21:29 +0000 (17:21 +0000)] 
ensure that the buffer passed to DAHDI_SET_BUFINFO is fully initialized

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

16 years agoMerged revisions 186056 via svnmerge from
Tilghman Lesher [Thu, 2 Apr 2009 17:09:13 +0000 (17:09 +0000)] 
Merged revisions 186056 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
  r186056 | tilghman | 2009-04-02 12:02:18 -0500 (Thu, 02 Apr 2009) | 2 lines

  Fix for AST-2009-003
........

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

16 years agoAvoid multiple warning messages in SIP, due to this column not existing
Tilghman Lesher [Thu, 2 Apr 2009 17:03:59 +0000 (17:03 +0000)] 
Avoid multiple warning messages in SIP, due to this column not existing

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

16 years agothe DAHDI_GETCONF, DAHDI_SETCONF and DAHDI_GET_PARAMS ioctls were recently corrected...
Kevin P. Fleming [Thu, 2 Apr 2009 13:43:43 +0000 (13:43 +0000)] 
the DAHDI_GETCONF, DAHDI_SETCONF and DAHDI_GET_PARAMS ioctls were recently corrected to show that they do, in fact, read data from userspace as part of their work. due to this fix, valgrind now reports a number of cases where chan_dahdi passed an uninitialized (or partially) buffer to these ioctls, which could lead to unexpected behavior.

this patch corrects chan_dahdi to ensure that buffers passed to these ioctls are always fully initialized.

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

16 years agoFixes issue with dropped calles due to re-Invite glare and re-Invites never executing...
David Vossel [Wed, 1 Apr 2009 19:02:00 +0000 (19:02 +0000)] 
Fixes issue with dropped calles due to re-Invite glare and re-Invites never executing after a 491

Acknowledgement for 491 responses were never being processed because it didn't match our pending invite's seqno.  Since the ACK was never processed, the 491 frame would continue to be retransmitted until eventually the call was dropped due to max retries.  Now during a pending invite, if we receive another invite, we send an 491 and hold on to that glare invite's seqno in the "glareinvite" variable for that sip_pvt struct.  When ACK's are received, we first check to see if it is in response to our pending invite, if not we check to see if it is in response to a glare invite.  In this case, it is in response to the glare invite and must be dealt with or the call is dropped.  I've changed the wait time for resending the re-Invite after receving a 491 response to comply with RFC 3261.  Before this patch the scheduled re-Invite would only change a flag indicating that the re-Invite should be sent out, now it actually sends it out as well.

(closes issue #12013)
Reported by: alx

Review: http://reviewboard.digium.com/r/213/

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

16 years agoFix a case where DTMF could bypass audiohooks.
Russell Bryant [Wed, 1 Apr 2009 13:47:30 +0000 (13:47 +0000)] 
Fix a case where DTMF could bypass audiohooks.

This change fixes a situation where an audiohook that wants DTMF would not
actually get it.  This is in the code path where we end DTMF digit length
emulation while handling a NULL frame.

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

16 years agoFix crash that would occur if an empty member was specified in queues.conf.
Mark Michelson [Tue, 31 Mar 2009 22:00:01 +0000 (22:00 +0000)] 
Fix crash that would occur if an empty member was specified in queues.conf.

(closes issue #14796)
Reported by: pida

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

16 years agoUse AST_SCHED_DEL_SPINLOCK instead of manually using the logic.
Mark Michelson [Tue, 31 Mar 2009 20:55:47 +0000 (20:55 +0000)] 
Use AST_SCHED_DEL_SPINLOCK instead of manually using the logic.

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

16 years agoFix Russian voicemail intro to say the word "messages" properly.
Mark Michelson [Tue, 31 Mar 2009 19:45:30 +0000 (19:45 +0000)] 
Fix Russian voicemail intro to say the word "messages" properly.

(closes issue #14736)
Reported by: chappell
Patches:
      voicemail_no_messages.diff uploaded by chappell (license 8)

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

16 years agoFix incorrect parsing in chan_gtalk when xmpp contains extra whitespaces
David Brooks [Tue, 31 Mar 2009 16:37:12 +0000 (16:37 +0000)] 
Fix incorrect parsing in chan_gtalk when xmpp contains extra whitespaces

To drill into the xmpp to find the capabilities between channels, chan_gtalk
calls iks_child() and iks_next(). iks_child() and iks_next() are functions in
the iksemel xml parsing library that traverse xml nodes. The bug here is that
both iks_child() and iks_next() will return the next iks_struct node
*regardless* of type. chan_gtalk expects the next node to be of type IKS_TAG,
which in most cases, it is, but in this case (a call being made from the
Empathy IM client), there exists iks_struct nodes which are not IKS_TAG data
(they are extraneous whitespaces), and chan_gtalk doesn't handle that case,
so capabilities don't match, and a call cannot be made.

iks_first_tag() and iks_next_tag(), on the other hand, will not return the
very next iks_struct, but will check to see if the next iks_struct is of
type IKS_TAG. If it isn't, it will be skipped, and the next struct of type
IKS_TAG it finds will be returned. This assures that chan_gtalk will find
the iks_struct it is looking for.

This fix simply changes all calls to iks_child() and iks_next() to become
calls to iks_first_tag() and iks_next_tag(), which resolves the capability
matching.

The following is a payload listing from Empathy, which, due to the extraneous
whitespace, will not be parsed correctly by iksemel:

<iq from='dbrooksjab@235-22-24-10/Telepathy' to='astjab@235-22-24-10/asterisk' type='set' id='542757715704'> <session xmlns='http://www.google.com/session' initiator='dbrooksjab@235-22-24-10/Telepathy' type='initiate' id='1837267342'> <description xmlns='http://www.google.com/session/phone'> <payload-type clockrate='16000' name='speex' id='96'/>
 <payload-type clockrate='8000' name='PCMA' id='8'/>
 <payload-type clockrate='8000' name='PCMU' id='0'/>
 <payload-type clockrate='90000' name='MPA' id='97'/>
 <payload-type clockrate='16000' name='SIREN' id='98'/>
 <payload-type clockrate='8000' name='telephone-event' id='99'/>
</description>
</session>
</iq>

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

16 years agoFix some state_interface stuff that was in trunk but not in the backport to 1.4.
Mark Michelson [Tue, 31 Mar 2009 15:34:05 +0000 (15:34 +0000)] 
Fix some state_interface stuff that was in trunk but not in the backport to 1.4.

Issue #14359 was fixed between the time that I posted the review of the backport
of the state interface change for 1.4. This merges the changes from that issue
back into 1.4.

(closes issue #14359)
Reported by: francesco_r

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

16 years agoFix crash when moving audiohooks between channels.
Joshua Colp [Tue, 31 Mar 2009 14:06:39 +0000 (14:06 +0000)] 
Fix crash when moving audiohooks between channels.

Handle the scenario where we are called to move audiohooks between channels
and the source channel does not actually have any on it.

(closes issue #14734)
Reported by: corruptor

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

16 years agoUpdate the channel allocation method documentation.
Richard Mudgett [Mon, 30 Mar 2009 20:40:11 +0000 (20:40 +0000)] 
Update the channel allocation method documentation.

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

16 years agoMake chan_misdn BRI TE side normally defer channel selection to the NT side.
Richard Mudgett [Mon, 30 Mar 2009 20:38:11 +0000 (20:38 +0000)] 
Make chan_misdn BRI TE side normally defer channel selection to the NT side.

Channel allocation collisions are not handled by chan_misdn very well.
This patch simply avoids the problem for BRI only.

For PRI, allocation collisions are still possible but less likely since
there are simply more channels available and each end could use a different
allocation strategy.

misdn.conf options available:
te_choose_channel - Use to force the TE side to allocate channels.
method - Specify the channel allocation strategy.

(closes issue #13488)
Reported by: Christian_Pinedo
Patches:
      isdn_lib.patch.txt uploaded by crich
Tested by: crich, siepkes, festr

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