Commit Graph

21366 Commits

Author SHA1 Message Date
Jason Parker
01099f06c8 Create tag for Asterisk 1.8.6.0-rc3.
git-svn-id: https://origsvn.digium.com/svn/asterisk/tags/1.8.6.0-rc3@333205 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-08-25 15:34:06 +00:00
Asterisk Autobuilder
af477dedda Importing release summary for 1.8.6.0-rc2 release.
git-svn-id: https://origsvn.digium.com/svn/asterisk/tags/1.8.6.0-rc2@332937 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.8.6.0-rc2
2011-08-22 20:36:30 +00:00
Jason Parker
90c1e457d3 Update .version, ChangeLog
git-svn-id: https://origsvn.digium.com/svn/asterisk/tags/1.8.6.0-rc2@332936 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-08-22 20:34:42 +00:00
Jason Parker
7e870a556a ------------------------------------------------------------------------
r331575 | rmudgett | 2011-08-11 16:39:58 -0500 (Thu, 11 Aug 2011) | 9 lines

Segfault in shell_helper in func_shell.c.

The return value of popen() was not checked for failure to open.

(closes issue ASTERISK-18109)
JIRA SWP-3633
Reported by: Michael Myles
Tested by: rmudgett

------------------------------------------------------------------------
r332355 | tilghman | 2011-08-17 14:21:36 -0500 (Wed, 17 Aug 2011) | 13 lines

Re-add support for spaces in pathnames, including now spaces in DESTDIR.

This was initially added to 1.8 prior to release, primarily to support the
standard paths on Mac OS X, but was partially reverted recently in Subversion,
due to the lack of support for spaces in DESTDIR.  This commit restores support
for the standard paths on Mac OS X, and also includes support for spaces in
DESTDIR.

(closes issue ASTERISK-18290)
Reported by: pabelanger

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

------------------------------------------------------------------------
r332559 | twilson | 2011-08-18 16:26:01 -0500 (Thu, 18 Aug 2011) | 7 lines

Fix possible error on stringification of IPv4-mapped addrs

The FreeBSD netsock2 test has been failing for a while. We were
pasing sa->len to getnameinfo instead of sa_tmp->len.

ASTERISK-18289

------------------------------------------------------------------------


git-svn-id: https://origsvn.digium.com/svn/asterisk/tags/1.8.6.0-rc2@332928 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-08-22 20:28:22 +00:00
Jason Parker
c46b070b3f Creating tag for the release of asterisk-1.8.6.0-rc2
git-svn-id: https://origsvn.digium.com/svn/asterisk/tags/1.8.6.0-rc2@332893 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-08-22 20:20:00 +00:00
Asterisk Autobuilder
7fec4bd0a7 Importing release summary for 1.8.6.0-rc1 release.
git-svn-id: https://origsvn.digium.com/svn/asterisk/tags/1.8.6.0-rc1@331416 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.8.6.0-rc1
2011-08-10 16:44:55 +00:00
Asterisk Autobuilder
0b831bd7a3 Importing files for 1.8.6.0-rc1 release.
git-svn-id: https://origsvn.digium.com/svn/asterisk/tags/1.8.6.0-rc1@331415 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-08-10 16:44:53 +00:00
Asterisk Autobuilder
dcead470d5 Creating tag for the release of asterisk-1.8.6.0-rc1
git-svn-id: https://origsvn.digium.com/svn/asterisk/tags/1.8.6.0-rc1@331414 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-08-10 16:44:03 +00:00
Asterisk Autobuilder
1819228cf9 Importing release summary for 1.8.6.0-rc1 release.
git-svn-id: https://origsvn.digium.com/svn/asterisk/tags/1.8.6.0-rc1@331375 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-08-10 16:09:51 +00:00
Asterisk Autobuilder
d1d0b0a152 Importing files for 1.8.6.0-rc1 release.
git-svn-id: https://origsvn.digium.com/svn/asterisk/tags/1.8.6.0-rc1@331374 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-08-10 16:09:49 +00:00
Asterisk Autobuilder
d2cd89a4a6 Creating tag for the release of asterisk-1.8.6.0-rc1
git-svn-id: https://origsvn.digium.com/svn/asterisk/tags/1.8.6.0-rc1@331373 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-08-10 16:08:30 +00:00
Kinsey Moore
43a5273659 AMI action ModuleReload returns Error if Module: missing or empty
An empty string was not being checked for properly causing identification of
the module to be reloaded to fail and return an Error with message
"No such module."

(closes issue AST-616)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@331315 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-08-10 13:47:46 +00:00
Asterisk Autobuilder
e00cacadbd Importing release summary for 1.8.6.0-rc1 release.
git-svn-id: https://origsvn.digium.com/svn/asterisk/tags/1.8.6.0-rc1@331314 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-08-10 13:03:57 +00:00
Asterisk Autobuilder
783a728281 Importing files for 1.8.6.0-rc1 release.
git-svn-id: https://origsvn.digium.com/svn/asterisk/tags/1.8.6.0-rc1@331313 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-08-10 13:03:54 +00:00
Asterisk Autobuilder
492f0139f2 Creating tag for the release of asterisk-1.8.6.0-rc1
git-svn-id: https://origsvn.digium.com/svn/asterisk/tags/1.8.6.0-rc1@331312 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-08-10 13:02:55 +00:00
Richard Mudgett
42b5040b71 Misc minor items found in code.
* Add some reentrancy protection in pbx.c when creating the contexts_table
hash table.

* Fix inverted test in chan_sip.c conditional code.

* Fix uninitialized variable and use of the wrong variable in chan_iax2.c.

* Fix test of return value in app_parkandannounce.c.  Explicitly testing
for -1 is bad if the function does not actually return that value when it
fails.

* Fixup some comments and add some curly braces in features.c.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@331248 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-08-09 22:12:59 +00:00
Alexandr Anikin
8f37bc12c4 move ast_cond_signal for admitted call after all data filled/freed
clear all log channels by pointed number not only first
free allocated callToken in ooh323_answer


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@331146 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-08-09 16:13:09 +00:00
Jason Parker
3a64b3427f Regenerate asterisk man page from sgml.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@331142 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-08-09 15:58:16 +00:00
Kinsey Moore
4d628c21ca In-queue MOH stops after a periodic announcement
If the seek value is past the end of file when resuming G.722 MOH, MOH will
cease to function for the duration of the MOH session through all starts and
stops until saved state is cleared.  Adjusting the code to guarantee a single
valid read (which is already assumed) fixes the bug.

(closes issue ASTERISK-18077)
Review: https://reviewboard.asterisk.org/r/1328/
Tested-by: Jonathan Rose <jrose@digium.com>


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@331038 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-08-08 20:52:45 +00:00
Terry Wilson
d8d8e74181 Make libsrtp instructions more explicit when linking fails
(closes issue ASTERISK-18139)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@330843 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-08-04 20:29:19 +00:00
Alexandr Anikin
65a7f1b205 change gk client behaivour on rrq/grq failures to setup timers
and next tries after timeout instead of complete failure in the ooh323
stack


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@330827 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-08-04 19:37:16 +00:00
Kinsey Moore
d0619b1217 editing files in main/editline does not ensure rebuild of libedit.a
When editing a source file in main/editline, the build system does not rebuild
libedit.a and uses the already existing one instead.  Adding a PHONY to
CHECK_SUBDIR fixes this problem.

(closes issue ASTERISK-16221)
Patch-by: Walter Doekes


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@330762 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-08-03 15:14:36 +00:00
Kinsey Moore
00c0f7d5b9 Call pickup broken for DAHDI channels when beginning with #
The call pickup feature did not work on DAHDI devices for anything other than
feature codes beginning with * since all feature codes in chan_dahdi were
originally hard-coded to begin with *.  This patch is also applied to
chan_dahdi.c to fix this bug with radio modes.

(closes issue AST-621)
Review: https://reviewboard.asterisk.org/r/1336/


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@330705 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-08-03 13:38:17 +00:00
Kevin P. Fleming
27a0e8dfe4 Convert an error message to actually be helpful.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@330648 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-08-02 20:51:56 +00:00
David Vossel
3a0faafc26 Fixes crash in chan_iax2.
Fixes crash in chan_iax2 resulting from an edge case in the
way control frames are queued during calltoken negotiation is complete.

(closes issue ASTERISK-17610)
Reported by: mgrobecker


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@330581 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-08-02 16:15:08 +00:00
David Vossel
c2a197cf91 Optimization to buffer initialization fix.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@330578 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-08-02 16:07:02 +00:00
David Vossel
2ad3c61a2e Fixes uninitialized string buffer in log message.
(closes issue ASTERISK-17200)
Reported by: lmadsen


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@330575 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-08-02 15:53:21 +00:00
Jonathan Rose
6a22e2a0a2 Blocked revisions 330505 via svnmerge
........
  r330505 | jrose | 2011-08-01 16:19:47 -0500 (Mon, 01 Aug 2011) | 3 lines
  
  fixes reference leak pointed out by rmudgett in https://reviewboard.asterisk.org/r/1337/
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@330510 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-08-01 21:20:40 +00:00
Jonathan Rose
8531283b33 Blocked revisions 330490 via svnmerge
........
  r330490 | jrose | 2011-08-01 16:08:10 -0500 (Mon, 01 Aug 2011) | 12 lines
  
  Asterisk 18103 - Fix reload crash caused by destroying default parking lot
  
  Default parking lot was being destroyed in reload and was not being rebuilt properly.
  This patch keeps features.c reload from destroying the default parking lot in 1.6.2.
  Bug was caused by a hasty backport which didn't test reload enough times to catch the
  problem.
  
  (Closes Issue ASTERISK-18103)
  Reported by: 808blogger
  
  Review: https://reviewboard.asterisk.org/r/1337/
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@330491 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-08-01 21:09:15 +00:00
Kinsey Moore
ba0c95e491 Incorrect playback for Spanish in some circumstances
When you say the time in spanish and it is 01:00 - 01:59 or 13:00 - 13:59 you
must use female pronunciation "1F". The function "say_date_with_format_es" does
not take this in account.

(closes ASTERISK-15016)
Patch-by: Luis Jimenez


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@330433 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-08-01 15:22:10 +00:00
Richard Mudgett
4bd9b75724 Remove some redundant locking code in ast_do_masquerade().
Also updated some comments.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@330368 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-07-30 23:56:29 +00:00
Gregory Nietsky
842ab32ecc prevent double masqurading channels when one is been hung up and deadlock avoidance is used.
There is a race condition in ast_do_masquerade / ast_hangup (at least)

Reported by me signed off by schmidts with input from David Vossel

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@330311 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-07-30 15:25:16 +00:00
Sean Bright
41e6e3ab55 Correct the check for O_RDONLY.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@330213 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-07-29 17:18:56 +00:00
Sean Bright
525bdd1429 Only write to wav files that were opened to be written to.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@330203 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-07-29 16:58:08 +00:00
Terry Wilson
659c320f5d Make console colors work for TERM=xterm-256color
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@330107 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-07-28 21:42:41 +00:00
Richard Mudgett
c4afd498c0 Merged revisions 330033 from
https://origsvn.digium.com/svn/asterisk/be/branches/C.3-bier

..........
  r330033 | rmudgett | 2011-07-28 11:26:38 -0500 (Thu, 28 Jul 2011) | 15 lines

  Datacalls with B410P fail.

  Incoming and outgoing call legs of a data call are using different
  formats: a-law, u-law.  When the call is bridged, the media stream is run
  through translation to convert the media formats.  The translation is bad
  for data calls.

  * Make incoming call that does not explicitly specify u-law or a-law use
  the DAHDI channel's default law.  The outgoing call always uses the
  default law from the DAHDI channel.

  (closes issue ABE-2800)
  Patches:
	jira_abe_2800_companding.patch (license #5621) patch uploaded by rmudgett
..........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@330050 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-07-28 17:04:24 +00:00
Jason Parker
31bc8710d7 Fix a SIP transfer deadlock.
The locking in this function is very scary.  There are like 6 structs involved.

(closes issue AST-470)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@329994 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-07-28 15:45:24 +00:00
Matthew Nicholson
1067b58cd3 check for CONFIG_STATUS_FILE_INVALID when loading the res_fax config file
Patch by: tzafrir
Reported by: tzafrir
(closes issue ASTERISK-18161)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@329991 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-07-28 15:26:56 +00:00
Sean Bright
7ccd191255 Make the output of Externhost in 'sip show settings' more consistent.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@329895 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-07-28 11:34:33 +00:00
Leif Madsen
ae2e5eea83 Change support for ConfBridge() in 1.8 to Extended.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@329782 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-07-27 19:27:14 +00:00
Sean Bright
113b0378c0 Explicitly sort the module list so that the menuselect lists are sorted.
(closes issue ASTERISK-18141)
Reported by: Richard Miller
Patches:
		sort-order.diff uploaded by seanbright (License #5060)
Tested by: leifmadsen


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@329767 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-07-27 19:17:46 +00:00
Jonathan Rose
b1a1cd5e57 Fix New Zealand indications profile based on http://www.telepermit.co.nz/TNA102.pdf
(closes issue ASTERISK-16263)
Reported by: richardf
Patches: 
      nz-indications.patch uploaded by richardf (License #6015)



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@329709 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-07-27 18:10:30 +00:00
Tilghman Lesher
441e8b7426 Duration and billsec are swapped in high resolution time.
Closes ASTERISK-18024
Patches:
	20110726__ASTERISK-18024.diff by Tilghman Lesher (License 5003)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@329613 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-07-27 04:23:46 +00:00
Jonathan Rose
3b50c5a387 Changes sound file for prepend "then-press-pound" to "vm-then-pound" which is the same
prompt, only it turned out "then-press-pound" was part of extra sounds. Also, vm is more
appropriate anyway.



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@329529 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-07-26 14:04:55 +00:00
Jonathan Rose
31a1b94622 Fixes some voicemail forwarding behavior based around prepend mode.
Formerly, prepend forwarding would have the user record a message with no useful prompt
and an expectation for the user to push a button on the phone when finished recording.
If a length of silence was detected instead, the recording would be canceled and the user
would re-enter the voicemail forwarding menu. Subsequent time-outs in prepend recording
would also bug out in the sense that they would write over the original message and get
sent to the recipient regardless of whether they timed out or were accepted. This patch
fixes this issue and adds a prompt which will be played after a timeout informing the
user that they needed to press a button. Currently, the sound files that we have are
somewhat inadquate for this, so after the call we simply have Allison say "Please try
again. Then press pound." which actually relies on two separate sound files. Just one
would be more appropriate.

reporter: Vlad Povorozniuc
Review: https://reviewboard.asterisk.org/r/1327/ 


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@329527 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-07-26 13:25:35 +00:00
Paul Belanger
ba4e50a28a Decrease verbose messages to debug, to help clean up CLI.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@329471 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-07-25 19:49:40 +00:00
Richard Mudgett
a55804ffda Fix memory leak in an allocation error path of handle_statechange().
* Make use buffer accessor function in handle_statechange() rather than
directly accessing the struct member.

* Make use less redundant loop construct for iterating over hints.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@329333 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-07-22 21:10:40 +00:00
Richard Mudgett
a97d03e34a Deadlocks dealing with dialplan hints during reload.
There are two remaining different deadlocks reported dealing with dialplan
hints.

The deadlock in ASTERISK-17666 is caused by invalid locking order in
ast_remove_hint().  The hints container must be locked before the hint
object.

The deadlock in ASTERISK-17760 is caused by a catch-22 situation in
handle_statechange().  The deadlock is caused by not having the conlock
before calling the watcher callbacks.  Unfortunately, having that lock
causes a different deadlock as reported in ASTERISK-16961.

* Fixed ast_remove_hint() locking order.

* Made handle_statechange() no longer call the watcher callbacks holding
any locks that matter.

* Made hint ao2 destructor do the watcher callbacks for extension
deactivation to guarantee that they get called.

* Fixed hint reference leak in ast_add_hint() if the callback container
constructor failed.

* Fixed hint reference leak in complete_core_show_hint() for every hint it
found for CLI tab completion.

* Adjusted locking in ast_merge_contexts_and_delete() for safety.

* Added context_merge_lock to prevent ast_merge_contexts_and_delete() and
handle_statechange() from interfering with each other.

* Fixed ast_change_hint() not taking into account that the extension is
used for the hash key.

(closes issue ASTERISK-17666)
Reported by: irroot
Tested by: irroot
JIRA SWP-3318

(closes issue ASTERISK-17760)
Reported by: Byron Clark
Tested by: irroot
JIRA SWP-3393

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@329299 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-07-22 15:44:58 +00:00
Richard Mudgett
b111b763cd Document parkinglot in chan_dahdi.conf.sample.
* Document existing feature in chan_dahdi.conf.sample.

* Remove some dead code related to the parkinglot option.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@329203 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-07-21 18:04:09 +00:00
Richard Mudgett
5c06d1dbb0 Update PickupChan documentation.
The PickupChan uses the ampersand as the argument separator.
Was documented as:
PickupChan(channel[,channel2[,...][,options]])

Fixed documentation to:
PickupChan(Technology/Resource[&Technology2/Resource2[&...]][,options])

This is a continuation of ASTERISK-17494 for v1.8 and later.

(closes issue ASTERISK-18144)
Reported by: Erik Smith
Patches:
      pickupchan_ducumentation-v2.patch (License #6263) patch uploaded by Erik Smith
Tested by: Erik Smith


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@329199 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-07-21 17:30:57 +00:00