Commit Graph

13891 Commits

Author SHA1 Message Date
Leif Madsen
cf8c62efdf Revert mistaken summary update.
git-svn-id: https://origsvn.digium.com/svn/asterisk/tags/1.4.30-rc1@250706 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.4.30-rc1
2010-03-04 17:27:20 +00:00
Leif Madsen
ba08a7612b Importing release summary for 1.4.30-rc1 release.
git-svn-id: https://origsvn.digium.com/svn/asterisk/tags/1.4.30-rc1@250705 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-03-04 17:23:07 +00:00
Leif Madsen
e1678cf240 Use autotagged externals
git-svn-id: https://origsvn.digium.com/svn/asterisk/tags/1.4.30-rc1@244872 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-02-05 01:54:07 +00:00
Leif Madsen
f6a45533e3 Importing release summary for 1.4.30-rc1 release.
git-svn-id: https://origsvn.digium.com/svn/asterisk/tags/1.4.30-rc1@244871 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-02-05 01:54:02 +00:00
Leif Madsen
f66ff2cc1d Importing files for 1.4.30-rc1 release.
git-svn-id: https://origsvn.digium.com/svn/asterisk/tags/1.4.30-rc1@244870 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-02-05 01:53:58 +00:00
Leif Madsen
149788e3b5 Creating tag for the release of asterisk-1.4.30-rc1
git-svn-id: https://origsvn.digium.com/svn/asterisk/tags/1.4.30-rc1@244869 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-02-05 01:52:33 +00:00
Leif Madsen
ce7f8682e6 Use autotagged externals
git-svn-id: https://origsvn.digium.com/svn/asterisk/tags/1.4.30-rc1@244864 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-02-05 01:38:40 +00:00
Leif Madsen
c576fff4c7 Importing release summary for 1.4.30-rc1 release.
git-svn-id: https://origsvn.digium.com/svn/asterisk/tags/1.4.30-rc1@244863 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-02-05 01:38:36 +00:00
Leif Madsen
8c121aac28 Importing files for 1.4.30-rc1 release.
git-svn-id: https://origsvn.digium.com/svn/asterisk/tags/1.4.30-rc1@244862 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-02-05 01:38:33 +00:00
Leif Madsen
1a25bf2680 Creating tag for the release of asterisk-1.4.30-rc1
git-svn-id: https://origsvn.digium.com/svn/asterisk/tags/1.4.30-rc1@244861 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-02-05 01:37:28 +00:00
Jeff Peeler
735485effc Change channel state on local channels for busy,answer,ring.
Previously local channels channel state never changed. This became problematic
when the state of the other side of the local channel was lost, for example
during a masquerade. Changing the state of the local channel allows for the
scenario to be detected when the channel state is set to ringing, but the peer
isn't ringing. The specific problem scenario is described in 164201. Although
this was noted on one of the issues, here is the tested dialplan verified to
work:

exten => 9700,1,Dial(Local/*9700@default&Local/#9700@default)

exten => *9700,1,Set(GLOBAL(TESTCHAN)=${CHANNEL:0:${MATH(${LEN(${CHANNEL})}-1):0:2}}1)
exten => *9700,n,wait(3) ;3 works, 1 did not
exten => *9700,n,Dial(SIP/5001)

exten => #9700,1,Wait(1) ;1 works, 3 did not
exten => #9700,n,ChannelRedirect(${TESTCHAN},parkedcalls,701,1)

(closes issue #14992)
Reported by: davidw


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@244785 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-02-04 23:20:21 +00:00
Tilghman Lesher
277db8b69d Backup and restore original textfile, for prosthesis (gerund of prepend).
Also, fix menuselect such that changing voicemail build options correctly
causes rebuild.

(closes issue #16415)
 Reported by: tomo1657
 Patches: 
       prepention.patch uploaded by tomo1657 (license 484)
       (with modifications by me to backport to 1.4)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@244242 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-02-01 23:13:44 +00:00
Tilghman Lesher
bad37b9a69 When a transferer hangs up during an attended transfer BEFORE the transfer is answered, don't stop playing MOH.
(closes issue #16513)
 Reported by: litnimax
 Patches: 
       atxfer_moh_16513.patch uploaded by gknispel proformatique (license 261)
 Tested by: litnimax


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@244151 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-02-01 18:38:37 +00:00
Tilghman Lesher
72af53a885 Revert previous chan_local fix (r236981) and fix instead by destroying expired frames in the queue.
(closes issue #16525)
 Reported by: kobaz
 Patches: 
       20100126__issue16525.diff.txt uploaded by tilghman (license 14)
       20100129__issue16525__1.6.0.diff.txt uploaded by tilghman (license 14)
 Tested by: kobaz, atis

(closes issue #16581)
 Reported by: ZX81

(closes issue #16681)
 Reported by: alexr1



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@244070 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-02-01 17:46:31 +00:00
Leif Madsen
a5722e173c Oops, correct wrong link (https vs. http) in previous commit.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@243863 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-01-28 18:48:24 +00:00
Leif Madsen
d4b45b2dab Update location of bug tracker in documentation.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@243862 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-01-28 18:46:20 +00:00
Russell Bryant
fe49526a56 Fix a bogus third argument to ast_copy_string().
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@243779 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-01-28 15:03:17 +00:00
Jeff Peeler
e0704019cc Revert 243570, I should have looked at this closer. Will reopen the issue, but
am leaving the review closed as the change was pointless.

(issue #16488)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@243691 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-01-27 20:35:56 +00:00
Jeff Peeler
d889f4c191 Extend announcement URL used with Queue from 80 chars to PATH_MAX.
(closes issue #16488)
Reported by: syspert
Patches: 
      soundfilelen.pacth-2 uploaded by syspert (license 938)

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@243570 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-01-27 18:47:34 +00:00
Mark Michelson
c3db30de46 Use a safe list traversal while checking for duplicate vars in pbx_builtin_setvar_helper.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@243486 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-01-27 18:06:43 +00:00
David Vossel
fb0cf432f1 fixes bug with channel receiving wrong privileges after call parking
(closes issue #16429)
Reported by: Yasuhiro Konishi
Patches:
      features.c.diff uploaded by Yasuhiro Konishi (license 947)
Tested by: dvossel



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@243390 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-01-26 23:55:49 +00:00
Jeff Peeler
b024a9452d Remove unnecessary code in ast_read as issue 16058 has been fully solved now.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@243258 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-01-26 18:19:10 +00:00
Tilghman Lesher
82b871e683 Err, and use the new menuselect define, too.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@242969 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-01-25 21:50:22 +00:00
Tilghman Lesher
af31dd313c Only rebuild parsers by an option in menuselect
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@242966 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-01-25 21:36:33 +00:00
Tilghman Lesher
567afe6154 Restore FreeBSD to able-to-compile-ish-mode
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@242852 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-01-25 20:15:45 +00:00
Olle Johansson
80c7326a6c Remove debugging that indeed should have been gone before commit. Sorry.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@242851 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-01-25 20:08:32 +00:00
Olle Johansson
3bf13e6d9c Report error when writing to functions returns error in AMI setvar action
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@242850 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-01-25 20:03:38 +00:00
Tilghman Lesher
74cbaac8ad Buildbot pointed out an error (thanks, buildbot!)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@242728 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-01-25 05:42:22 +00:00
Tilghman Lesher
ae335a79b2 Oops, should have used CMD_PREFIX, not ECHO_PREFIX, for the commands.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@242723 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-01-25 05:33:37 +00:00
Tilghman Lesher
f4e9f1a724 Make the build of the Asterisk expression parser match that of the AEL parser.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@242683 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-01-25 05:13:28 +00:00
Tilghman Lesher
012c6fc5e2 Only rebuild bison and flex source files on demand, if bison and flex are detected by the configure script.
Changed after discussion on the -dev list about possible unnecessary build
failures, due to checkouts/untars causing these special source files to
possibly be newer than their resulting C files.  This should additionally
ensure that nobody need learn about extra Makefile arguments to ensure the
proper files get rebuilt when changes are made to these special source files.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@242520 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-01-24 06:33:01 +00:00
Tilghman Lesher
8983b03623 Rebuild from flex, bison sources when necessary.
(issue #14629)
 Reported by: Marquis
 Patches: 
       20100121__issue14629.diff.txt uploaded by tilghman (license 14)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@242423 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-01-22 21:44:18 +00:00
Olle Johansson
abc434d772 Initialize notify_types to NULL
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@242226 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-01-22 09:19:30 +00:00
Alec L Davis
8760ab77f9 Add Dialed Number Identifier (DNID) field to cdr.
Branch support, retains ABI, if backend CDR collector is adaptive then database
requires 'dnid' field to be added, otherwise no functional changes.

  Reported by: alecdavis
  Tested by: alecdavis
  Patch
	 cdr_dnid.diff2.txt uploaded by alecdavis (license 585)

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@242142 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-01-22 01:48:10 +00:00
Sean Bright
68f261cc9d Fix configure check for PTHREAD_ONCE_INIT when manually adding -Wall to CFLAGS.
(closes issue #16666)
Reported by: romain_proformatique


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@241932 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-01-21 15:25:46 +00:00
Tilghman Lesher
df56d04848 Guard against division by zero.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@241765 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-01-21 05:53:17 +00:00
David Vossel
3cb482a4a6 fixes parsing error in Makefile.
Some echo lines were missing "; . Thanks to jparker for pointing out
the problem. 



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@241626 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-01-20 20:00:04 +00:00
Sean Bright
fd6b867c14 Modify fix for issue 16554 to be more inline with what is already in trunk.
I should have taken a closer look at trunk/1.6.x, as this bug has already been
fixed in a much more simple manner, by just settings o->vars to NULL after the
ast_pbx_outgoing_* calls.

(issue #16554)
Reported by: mav3rick


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@241544 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-01-20 14:12:45 +00:00
Sean Bright
0f6892b1a8 Fix a memory leak in pbx_spool when using SetVar in a call file.
In pbx_spool, when we are freeing our 'outgoing' struct, we weren't deallocating
the ast_variable list we had built from SetVars in a call file.  Adding a call to
ast_variables_destroy in our deallocation routine works, but only if the variables
have not already been passed into ast_pbx_outgoing_app() or _exten(), both of
which take care of destroying the variable list for us.

(closes issue #16554)
Reported by: mav3rick
Patches:
      issue16554_20100119.patch uploaded by seanbright (license 71)
Tested by: mav3rick


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@241543 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-01-20 14:06:49 +00:00
Alec L Davis
8f672dd98b Update CDR variables as pbx starts
Allows CDR variables added in cdr.c:set_one_cid to become visable during the call,
by executing ast_cdr_update() early in __ast_pbx_run.

Based on cdr_update.diff3.txt

(issue #16638)
Reported by: alecdavis
Patches: 
      cdr_update.diff3.txt uploaded by alecdavis (license 585)
Tested by: alecdavis



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@241458 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-01-20 09:38:09 +00:00
Jason Parker
0b536b5632 Allow parallel make (-j) to work properly.
1.4 changes are quite different from the others.

(issue #16489)
Reported by: Chainsaw
Tested by: qwell


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@241228 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-01-19 17:41:00 +00:00
Jeff Peeler
68e271504f Fix deadlock in agent_read by removing call to agent_logoff.
One must always lock the agents list lock before the agent private. agent_read
locks the private immediately, so locking the agents list lock is not an
option (which is what agent_logoff requires). Because agent_read already 
has access to the agent private all that is necessary is to do the required
hanging up that agent_logoff performed.

(closes issue #16321)
Reported by: valon24
Patches: 
      bug16321.patch uploaded by jpeeler (license 325)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@241227 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-01-19 17:22:18 +00:00
Sean Bright
1926da52e7 Plug a memory leak when reading configs with their comments.
While reading through configuration files with the intent of returning their
full contents (comments specifically) we allocated some memory and then forgot
to free it.  This doesn't fix 16554 but clears up a leak I had in the lab.

(issue #16554)
Reported by: mav3rick
Patches:
      issue16554_20100118.patch uploaded by seanbright (license 71)
Tested by: seanbright


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@241015 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-01-18 19:54:19 +00:00
David Vossel
7e7e6da09e updated transmit_silence option documentation in asterisk.conf
This patch updates the transmit_silence option to better document
why the option exists, and what it affects.  Thanks to russell
for providing the verbage for this update.



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@240891 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-01-18 16:51:35 +00:00
Olle Johansson
1899d58b60 Fix muted compilation in 1.4 only
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@240768 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-01-18 13:27:22 +00:00
Russell Bryant
e2a237c4a5 Fix a spelling error in the asterisk.conf sample.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@240547 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-01-15 23:06:11 +00:00
Tilghman Lesher
fab5527451 Disallow leaving more than maxmsg voicemails.
This is a possibility because our previous method assumed that no messages are
left in parallel, which is not a safe assumption.  Due to the vmu structure
duplication, it was necessary to track in-process messages via a separate
structure.  If at some point, we switch vmu to an ao2-reference-counted
structure, which would eliminate the prior noted duplication of structures,
then we could incorporate this new in-process structure directly into vmu.
(closes issue #16271)
 Reported by: sohosys
 Patches: 
       20100108__issue16271.diff.txt uploaded by tilghman (license 14)
       20100108__issue16271__trunk.diff.txt uploaded by tilghman (license 14)
       20100108__issue16271__1.6.0.diff.txt uploaded by tilghman (license 14)
 Tested by: jsutton


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@240414 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-01-15 20:52:27 +00:00
Jeff Peeler
40fed194b6 Fix regression for timed out parked call returning to caller
This issue seems to have been exposed by the fix in 160390 whereby using a
masquerade prevented a crash. The new channel used in the masquerade was
not copying the macro information from the old channel.

(closes issue #15459)
Reported by: djrodman
Patches: 
      patch_15459.txt uploaded by mnick (license )


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@239838 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-01-13 19:43:33 +00:00
David Vossel
6c6a857e1c add silence gen to wait apps
asterisk.conf's 'transmit_silence' option existed before
this patch, but was limited to only generating silence
while recording and sending DTMF. Now enabling the
transmit_silence option generates silence during wait
times as well.
  
To achieve this, ast_safe_sleep has been modified to
generate silence anytime no other generators are present
and transmit_silence is enabled. Wait apps not using
ast_safe_sleep now generate silence when transmit_silence
is enabled as well.

(closes issue 0016524)
Reported by: kobaz

(closes issue 0016523)
Reported by: kobaz
Tested by: dvossel
  
Review: https://reviewboard.asterisk.org/r/456/


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@239718 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-01-13 17:16:12 +00:00
Tilghman Lesher
88929fe7ba Portability and other fixes for the safe_asterisk script
(closes issue #16416)
 Reported by: bklang
 Patches: 
       safe_asterisk-compat-1.patch uploaded by bklang (license 919)
       20100106__issue16416__trunk.diff.txt uploaded by tilghman (license 14)
 Tested by: bklang


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@239307 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-01-12 03:18:36 +00:00