Commit Graph

16324 Commits

Author SHA1 Message Date
Mark Michelson
4eaa38b42b Blocked revisions 140752 via svnmerge
................
r140752 | mmichelson | 2008-09-02 18:48:25 -0500 (Tue, 02 Sep 2008) | 14 lines

Merged revisions 140751 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r140751 | mmichelson | 2008-09-02 18:47:49 -0500 (Tue, 02 Sep 2008) | 6 lines

After adding the context checking to app_voicemail
for IMAP storage, I left out a crucial place to 
copy the context to the vm_state structure. This
is the correction.


........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@140754 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-09-02 23:50:11 +00:00
Mark Michelson
6edd73586e Blocking some revision. I guess I forgot to
commit this earlier. Oh well.



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@140753 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-09-02 23:49:52 +00:00
Sean Bright
b1d895dba9 Merged revisions 140606 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r140606 | seanbright | 2008-09-02 14:15:54 -0400 (Tue, 02 Sep 2008) | 16 lines

Merged revisions 140605 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r140605 | seanbright | 2008-09-02 14:14:57 -0400 (Tue, 02 Sep 2008) | 8 lines

Make sure to use the correct length of the mohinterpret and mohsuggest
buffers when copying configuration values.

(closes issue #13336)
Reported by: decryptus_proformatique
Patches:
      chan_iax2_mohinterpret_mohsuggest_general_settings.patch uploaded by decryptus (license 555)

........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@140607 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-09-02 18:17:42 +00:00
Russell Bryant
08966a95de Merged revisions 140566 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r140566 | russell | 2008-09-02 10:11:53 -0500 (Tue, 02 Sep 2008) | 2 lines

Update instructions for getting libresample

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@140567 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-09-02 15:12:24 +00:00
Russell Bryant
a81f609617 Blocked revisions 140563 via svnmerge
........
r140563 | russell | 2008-09-02 10:09:20 -0500 (Tue, 02 Sep 2008) | 3 lines

I'm not sure how these files got to trunk (probably my fault), but they
should not be here

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@140564 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-09-02 15:09:44 +00:00
Sean Bright
8076234eb5 Blocked revisions 140559 via svnmerge
........
r140559 | seanbright | 2008-09-02 10:41:41 -0400 (Tue, 02 Sep 2008) | 4 lines

When a call is rejected because of call-limit, the channel driver is behaving
as expected, so we shouldn't report it as an error.  Change to LOG_NOTICE
instead.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@140560 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-09-02 14:42:26 +00:00
Mark Michelson
8767b7911b Blocked revisions 140433 via svnmerge
........
r140433 | mmichelson | 2008-08-29 11:24:37 -0500 (Fri, 29 Aug 2008) | 10 lines

Allow for video files to be opened as well as
audio files.

(closes issue #13372)
Reported by: epicac
Patches:
      13372.patch uploaded by putnopvut (license 60)
Tested by: epicac


........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@140434 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-08-29 16:25:17 +00:00
Mark Michelson
f5004d1681 Blocked revisions 140422 via svnmerge
................
r140422 | mmichelson | 2008-08-29 11:06:09 -0500 (Fri, 29 Aug 2008) | 20 lines

Merged revisions 140421 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r140421 | mmichelson | 2008-08-29 11:01:07 -0500 (Fri, 29 Aug 2008) | 12 lines

Add context checking when retrieving a vm_state.
This was causing a problem for people who had identically
named mailboxes in separate voicemail contexts.
This commit affects IMAP storage only.

(closes issue #13194)
Reported by: moliveras
Patches:
      13194.patch uploaded by putnopvut (license 60)
Tested by: putnopvut, moliveras


........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@140423 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-08-29 16:06:42 +00:00
Mark Michelson
eb27b67366 Blocked revisions 140418 via svnmerge
................
r140418 | mmichelson | 2008-08-29 10:32:02 -0500 (Fri, 29 Aug 2008) | 18 lines

Merged revisions 140417 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r140417 | mmichelson | 2008-08-29 10:26:52 -0500 (Fri, 29 Aug 2008) | 10 lines

Fix SIP's parsing so that if a port is specified
in a string to Dial(), it is not ignored.

(closes issue #13355)
Reported by: acunningham
Patches:
      13355v2.patch uploaded by putnopvut (license 60)
Tested by: acunningham


........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@140419 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-08-29 15:32:31 +00:00
Tilghman Lesher
eb2623b1d9 Blocked revisions 140355 via svnmerge
........
r140355 | tilghman | 2008-08-27 18:23:56 -0500 (Wed, 27 Aug 2008) | 2 lines

Oops

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@140356 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-08-27 23:24:38 +00:00
Mark Michelson
b2f6976dbc Revert commit 140302. Should not be merging
changes like that into a release-candidate branch



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@140304 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-08-27 20:15:29 +00:00
Mark Michelson
f94f437af6 Merged revisions 140301 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r140301 | mmichelson | 2008-08-27 15:11:22 -0500 (Wed, 27 Aug 2008) | 19 lines

Merged revisions 140299 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r140299 | mmichelson | 2008-08-27 14:49:20 -0500 (Wed, 27 Aug 2008) | 11 lines

Fix tag checking in get_sip_pvt_byid_locked when
in pedantic mode. The problem was that the wrong
tags would be compared depending on the direction
of the call.

(closes issue #13353)
Reported by: flefoll
Patches:
      chan_sip.c.br14.139015.patch-refer-pedantic uploaded by flefoll (license 244)


........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@140302 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-08-27 20:13:40 +00:00
Tilghman Lesher
5a8fb7cc81 Blocked revisions 140201 via svnmerge
........
r140201 | tilghman | 2008-08-26 13:46:07 -0500 (Tue, 26 Aug 2008) | 2 lines

OpenBSD compat fix (reminded by mvanbaak on #asterisk-dev)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@140202 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-08-26 18:46:54 +00:00
Russell Bryant
0a4475f66a Merged revisions 140169 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r140169 | russell | 2008-08-26 13:11:49 -0500 (Tue, 26 Aug 2008) | 4 lines

Fix building menuselect-tree with PRINT_DIR set.  We _must_ use the --quiet
flag here, or else some arbitrary text will end up in the resulting
menuselect-tree file and things will explode.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@140170 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-08-26 18:12:08 +00:00
Tilghman Lesher
878517aa7c Blocked revisions 140167 via svnmerge
........
r140167 | tilghman | 2008-08-26 13:05:58 -0500 (Tue, 26 Aug 2008) | 5 lines

Standardize the option names for consistency (but continue to work with the
existing names for backwards compatibility).
(closes issue #13370)
 Reported by: jsturtevant

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@140168 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-08-26 18:06:34 +00:00
Russell Bryant
8a03188053 Blocked revisions 140061 via svnmerge
................
r140061 | russell | 2008-08-26 11:10:06 -0500 (Tue, 26 Aug 2008) | 14 lines

Merged revisions 140060 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r140060 | russell | 2008-08-26 11:07:58 -0500 (Tue, 26 Aug 2008) | 6 lines

Fix some bogus scheduler usage in chan_sip.  This code used the return value
of a completely unrelated function to determine whether the scheduler should
be run or not.  This would have caused the scheduler to not run in cases where
it should have.  Also, leave a note about another scheduler issue that needs
to be addressed at some point.

........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@140062 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-08-26 16:10:28 +00:00
Steve Murphy
56ed3a4ce0 Blocked revisions 140057 via svnmerge
........
r140057 | murf | 2008-08-26 09:57:49 -0600 (Tue, 26 Aug 2008) | 21 lines

(closes issue #13366)
Reported by: erousseau

This was a reasonable enhancement request, which was
easy to implement. Since it's an enhancement, it 
could only be applied to trunk.

Basically, for accounting where "initiated" seconds
are billed for, if the microseconds field on the end
time is greater than the microseconds field for the
answer time, add one second to the billsec field.

The implementation was requested by erousseau, and
I've implemented it as requested. I've updated the
CHANGES, the cdr.conf.sample, and the .h files
accordingly, to accept and set a flag for the
corresponding new option. cdr.c adds in the extra
second based on the usec fields if the option is
set. Tested, seems to be working fine.


........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@140058 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-08-26 15:59:45 +00:00
Russell Bryant
5b2bb04b40 Blocked revisions 140053 via svnmerge
................
r140053 | russell | 2008-08-26 10:29:25 -0500 (Tue, 26 Aug 2008) | 23 lines

Merged revisions 140051 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r140051 | russell | 2008-08-26 10:27:23 -0500 (Tue, 26 Aug 2008) | 15 lines

Fix a race condition with the IAX scheduler thread.  A lock and condition are
used here to allow newly scheduled tasks to wake up the scheduler just in case
the new task needs to run sooner than the current wakeup time when the thread
is sleeping.  However, there was a race condition such that a newly scheduled
task would not properly wake up the scheduler or affect the wake up period.
The order of execution would have been:

  1) Scheduler thread determines wake up time of N ms.
  2) Another thread schedules a task and signals the condition, with an
     execution time of < N ms.
  3) Scheduler thread locks and goes to sleep for N ms.

By moving the sleep time determination to inside the critical section, this
possibility is avoided.

........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@140054 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-08-26 15:29:46 +00:00
Tilghman Lesher
c3845ff6b6 Blocked revisions 139981 via svnmerge
........
r139981 | tilghman | 2008-08-25 18:13:32 -0500 (Mon, 25 Aug 2008) | 7 lines

Optional light colored background, for those who use black on white terminals.
(closes issue #13306)
 Reported by: Corydon76
 Patches: 
       20080814__bug13306__3.diff.txt uploaded by Corydon76 (license 14)
 Tested by: Corydon76, pkempgen

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@139982 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-08-25 23:14:08 +00:00
Sean Bright
1b28d6f0c3 Merged revisions 139915 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r139915 | seanbright | 2008-08-25 17:32:10 -0400 (Mon, 25 Aug 2008) | 17 lines

Merged revisions 139909 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r139909 | seanbright | 2008-08-25 17:31:03 -0400 (Mon, 25 Aug 2008) | 9 lines

Some versions of awk (nawk, for example) don't like empty regular expressions
so be slightly more verbose.

(closes issue #13374)
Reported by: dougm
Patches:
      13374.diff uploaded by seanbright (license 71)
Tested by: dougm

........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@139918 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-08-25 21:33:21 +00:00
Terry Wilson
0de177bc47 Merged revisions 139870 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r139870 | twilson | 2008-08-25 15:59:58 -0500 (Mon, 25 Aug 2008) | 10 lines

Merged revisions 139869 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r139869 | twilson | 2008-08-25 15:46:10 -0500 (Mon, 25 Aug 2008) | 2 lines

Make SIPADDHEADER() propagate indefinitely

........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@139872 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-08-25 21:05:57 +00:00
Mark Michelson
7fd12fbedd Blocked revisions 139832 via svnmerge
........
r139832 | mmichelson | 2008-08-25 12:24:02 -0500 (Mon, 25 Aug 2008) | 10 lines

Add output of variables to AgentRingNoAnswer manager
event if eventwhencalled is set to "vars" in 
queues.conf. Yay for consistency.

(closes issue #13369)
Reported by: srt
Patches:
      13369_agentringnoanswer_variables.diff uploaded by srt (license 378)


........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@139833 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-08-25 17:24:36 +00:00
Tilghman Lesher
0e3107d1ff Blocked revisions 139775 via svnmerge
........
r139775 | tilghman | 2008-08-25 11:02:56 -0500 (Mon, 25 Aug 2008) | 7 lines

Realtime capabilities for the Find-Me-Follow-Me application.
(closes issue #13295)
 Reported by: Corydon76
 Patches: 
       20080813__followme_realtime_enabled.diff.txt uploaded by Corydon76 (license 14)
 Tested by: dferrer

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@139776 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-08-25 16:03:32 +00:00
Steve Murphy
ee9f8015b6 Merged revisions 139770 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r139770 | murf | 2008-08-25 09:54:18 -0600 (Mon, 25 Aug 2008) | 17 lines

Merged revisions 139764 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r139764 | murf | 2008-08-25 09:33:14 -0600 (Mon, 25 Aug 2008) | 9 lines

This patch reverts the changes made via 139347, and 139635, as users
are seeing adverse difference. 

I will un-close 13251.

Back to the drawing board/ concept/ beginning/ whatever!



........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@139774 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-08-25 16:00:03 +00:00
Mark Michelson
4629d13de9 Blocked revisions 139771 via svnmerge
................
r139771 | mmichelson | 2008-08-25 10:55:10 -0500 (Mon, 25 Aug 2008) | 19 lines

Blocked revisions 139769 via svnmerge

........
r139769 | mmichelson | 2008-08-25 10:52:59 -0500 (Mon, 25 Aug 2008) | 12 lines

Fix the logic in config_text_file_save so that if an
UpdateConfig manager action is issued and the
file specified in DstFileName does not yet exist,
an error is not returned.

(closes issue #13341)
Reported by: vadim
Patches:
      13341.patch uploaded by putnopvut (license 60)
	  (with small modification from seanbright)


........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@139772 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-08-25 15:55:35 +00:00
Tilghman Lesher
ba6a7f8c98 Merged revisions 139707 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r139707 | tilghman | 2008-08-24 11:26:48 -0500 (Sun, 24 Aug 2008) | 2 lines

Memory leak

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@139708 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-08-24 16:30:54 +00:00
Tilghman Lesher
5559f3c2fa Blocked revisions 139704 via svnmerge
........
r139704 | tilghman | 2008-08-24 11:23:15 -0500 (Sun, 24 Aug 2008) | 2 lines

Eliminate open coding of ast_str

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@139705 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-08-24 16:23:59 +00:00
Steve Murphy
41ed986072 Merged revisions 139662 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r139662 | murf | 2008-08-22 16:32:35 -0600 (Fri, 22 Aug 2008) | 14 lines

Merged revisions 139635 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r139635 | murf | 2008-08-22 16:24:02 -0600 (Fri, 22 Aug 2008) | 6 lines

I found some problems with the code I committed earlier, when
I merged them into trunk, so I'm coming back to clean up.
And, in the process, I found an error in the code I added
to trunk and 1.6.x, that I'll fix using this patch also.


........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@139671 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-08-22 22:35:14 +00:00
Steve Murphy
ee980c4a33 Merged revisions 139627 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r139627 | murf | 2008-08-22 16:03:13 -0600 (Fri, 22 Aug 2008) | 59 lines

Merged revisions 139347 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r139347 | murf | 2008-08-21 17:03:50 -0600 (Thu, 21 Aug 2008) | 47 lines


(closes issue #13251)
Reported by: sergee
Tested by: murf



THis is a bold move for a static release fix, but I wouldn't have
made it if I didn't feel confident (at least a *bit* confident)
that it wouldn't mess everyone up.

The reasoning goes something like this:

1. We simply cannot do anything with CDR's at the current point
(in pbx.c, after the __ast_pbx_run loop). It's way too late to
have any affect on the CDRs. The CDR is already posted and gone,
and the remnants have been cleared.

2. I was very much afraid that moving the running of the 'h'
extension down into the bridge code (where it would be now
practical to do it), would result in a lot more calls to the
'h' exten, so I implemented it as another exten under another
name, but found, to my pleasant surprise, that there was a 
1:1 correspondence to the running of the 'h' exten in the
pbx_run loop, and the new spot at the end of the bridge.
So, I ifdef'd out the current 'h' loop, and moved it into
the bridge code. The only difference I can see is the stuff
about the AST_PBX_KEEPALIVE, and hopefully, if this 
is still an important decision point, I can replicate it
if there are complaints. To be perfectly honest,
the KEEPALIVE situation is not totally clear to me,
and how it relates to a post-bridge situation is less
clear. I suspect the users will point out everything
in total clarity if this steps on anyone's toes!

3. I temporarily swap the bridge_cdr into the channel
before running the 'h' exten, which makes it possible
for users to edit the cdr before it goes out the door.
And, of course, with the endbeforehexten config var set,
the users can also get at the billsec/duration vals.
After the h exten finishes, the cdr is swapped back
and processing continues as normal.

Please, all who deal with CDR's, please test this version
of Asterisk, and file bug reports as appropriate!


........

I also made a little fix to the app_dial's 'e' option,
that is related to my updates.


................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@139628 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-08-22 22:09:31 +00:00
Mark Michelson
503289d053 Blocked revisions 139563 via svnmerge
........
r139563 | mmichelson | 2008-08-22 15:20:58 -0500 (Fri, 22 Aug 2008) | 15 lines

The -1 return value from incomplete or improper
headers for the SipNotify manager command was
causing the current manager session to become
disconnected. Change the return value to 0 for
these cases.

Also change a test for a NULL pointer to be
ast_strlen_zero instead.

(closes issue #13351)
Reported by: Laureano
Patches:
      sipnotify_action_fix.patch uploaded by Laureano (license 265)


........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@139564 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-08-22 20:21:22 +00:00
Mark Michelson
df90016cf2 Blocked revisions 139558 via svnmerge
........
r139558 | mmichelson | 2008-08-22 15:02:35 -0500 (Fri, 22 Aug 2008) | 9 lines

Add missing unique id to ParkedCallGiveUp and ParkedCallTimeOut
manager events

(closes issue #13358)
Reported by: srt
Patches:
      13358_parking_events.diff uploaded by srt (license 378)


........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@139559 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-08-22 20:03:31 +00:00
Mark Michelson
c9c22bc30f Merged revisions 139554 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r139554 | mmichelson | 2008-08-22 14:45:41 -0500 (Fri, 22 Aug 2008) | 16 lines

Merged revisions 139553 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r139553 | mmichelson | 2008-08-22 14:45:19 -0500 (Fri, 22 Aug 2008) | 8 lines

Fix compilation when DEBUG_THREAD_LOCALS is selected

(closes issue #13298)
Reported by: snuffy
Patches:
      bug13298_20080822.diff uploaded by snuffy (license 35)


........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@139555 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-08-22 19:46:16 +00:00
Mark Michelson
44afac9c8f Blocked revisions 139525 via svnmerge
................
r139525 | mmichelson | 2008-08-22 14:24:26 -0500 (Fri, 22 Aug 2008) | 15 lines

Blocked revisions 139521 via svnmerge

........
r139521 | mmichelson | 2008-08-22 14:23:02 -0500 (Fri, 22 Aug 2008) | 8 lines

Remove show_frame_stats_deprecated since it is not
used anywhere and causes build errors if building under
dev-mode with TRACE_FRAMES selected in menuselect.

(closes issue #13362)
Reported by: snuffy


........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@139528 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-08-22 19:25:10 +00:00
Mark Michelson
ad0ad7429e Merged revisions 139469 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r139469 | mmichelson | 2008-08-22 12:25:12 -0500 (Fri, 22 Aug 2008) | 11 lines

Merged revisions 139466 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r139466 | mmichelson | 2008-08-22 12:24:47 -0500 (Fri, 22 Aug 2008) | 3 lines

Fix the build. Thanks, mvanbaak!


........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@139471 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-08-22 17:25:34 +00:00
Mark Michelson
3c9ac8be44 Merged revisions 139457 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r139457 | mmichelson | 2008-08-22 11:58:21 -0500 (Fri, 22 Aug 2008) | 15 lines

Merged revisions 139456 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r139456 | mmichelson | 2008-08-22 11:57:38 -0500 (Fri, 22 Aug 2008) | 7 lines

Prevent a deadlock in chan_iax2 resulting from
incorrect locking order between iax2_pvt and
ast_channel structures.

AST-13


........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@139458 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-08-22 16:59:21 +00:00
Jeff Peeler
00f59da391 Merged revisions 139391 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r139391 | jpeeler | 2008-08-21 18:41:50 -0500 (Thu, 21 Aug 2008) | 11 lines

Merged revisions 139387 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r139387 | jpeeler | 2008-08-21 18:39:31 -0500 (Thu, 21 Aug 2008) | 3 lines

Fixes loop that could possibly never exit in the event of a channel never being able to be opened or specify after a restart.
(closes issue #11017)

........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@139400 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-08-21 23:46:39 +00:00
Philippe Sultan
9bd17e6a65 Merged revisions 139281 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r139281 | phsultan | 2008-08-21 11:55:31 +0200 (Thu, 21 Aug 2008) | 5 lines

Fix two memory leaks in chan_gtalk, thanks Eliel!
(closes issue #13310)
Reported by: eliel
Patches:
      chan_gtalk.c.patch uploaded by eliel (license 64)
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@139282 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-08-21 10:02:32 +00:00
Russell Bryant
7d1bda1c07 Merged revisions 139215 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r139215 | russell | 2008-08-20 17:16:36 -0500 (Wed, 20 Aug 2008) | 19 lines

Merged revisions 139213 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r139213 | russell | 2008-08-20 17:14:35 -0500 (Wed, 20 Aug 2008) | 11 lines

Fix a crash in the ChanSpy application.  The issue here is that if you call
ChanSpy and specify a spy group, and sit in the application long enough looping
through the channel list, you will eventually run out of stack space and the
application with exit with a seg fault.  The backtrace was always inside of
a harmless snprintf() call, so it was tricky to track down.  However, it turned
out that the call to snprintf() was just the biggest stack consumer in this
code path, so it would always be the first one to hit the boundary.

(closes issue #13338)
Reported by: ruddy

........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@139216 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-08-20 22:17:44 +00:00
Jason Parker
3a6e5c4acc Blocked revisions 139210 via svnmerge
........
r139210 | qwell | 2008-08-20 17:06:40 -0500 (Wed, 20 Aug 2008) | 7 lines

Fix output of sipshowpeer manager response.

(closes issue #13346)
Reported by: srt
Patches:
      13346_malformed_sip_show_peer_response.diff uploaded by srt (license 378)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@139211 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-08-20 22:07:27 +00:00
Shaun Ruffell
5a59e03452 Fix bug where the samples were not accurate when in G723 mode, which would
cause the timestamp field of the RTP header to be invalid.



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@139155 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-08-20 20:12:38 +00:00
Steve Murphy
76be7d91a9 Merged revisions 139083 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r139083 | murf | 2008-08-20 11:25:07 -0600 (Wed, 20 Aug 2008) | 20 lines

Merged revisions 139074 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r139074 | murf | 2008-08-20 11:14:55 -0600 (Wed, 20 Aug 2008) | 12 lines


(closes issue #13263)
Reported by: brainy
Tested by: murf

The specialized reset routine is tromping on the
flags field of the CDR. I made a change to not
reset the DISABLED bit. This should get rid of this
problem.



........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@139104 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-08-20 17:30:58 +00:00
Michiel van Baak
e2a327e2cc Blocked revisions 139020 via svnmerge
........
r139020 | mvanbaak | 2008-08-20 18:16:53 +0200 (Wed, 20 Aug 2008) | 4 lines

fix unholding phones after hangup on older cisco phones.

Patch by wedhorn.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@139021 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-08-20 16:18:05 +00:00
Mark Michelson
f084b49eed Merged revisions 139016 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r139016 | mmichelson | 2008-08-20 10:38:47 -0500 (Wed, 20 Aug 2008) | 14 lines

Merged revisions 139015 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r139015 | mmichelson | 2008-08-20 10:37:56 -0500 (Wed, 20 Aug 2008) | 6 lines

sip_read should properly handle a NULL return from sip_rtp_read.

(closes issue #13257)
Reported by: travishein


........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@139017 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-08-20 15:39:19 +00:00
Mark Michelson
c6c11dd423 Blocked revisions 138943 via svnmerge
................
r138943 | mmichelson | 2008-08-19 18:19:40 -0500 (Tue, 19 Aug 2008) | 19 lines

Merged revisions 138942 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r138942 | mmichelson | 2008-08-19 18:17:17 -0500 (Tue, 19 Aug 2008) | 11 lines

Reset agent_pvt variables back to the values in agents.conf
(from what the corresponding channel variables were set to)
when the agent logs out.

(closes issue #13098)
Reported by: davidw
Patches:
      20080731__issue13098_agent_ackcall_not_reset.diff uploaded by bbryant (license 36)
Tested by: davidw


........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@138944 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-08-19 23:20:50 +00:00
Mark Michelson
a63274bf29 Manually add revision 138887 from trunk to the 1.6.0
branch. I had misunderstood the policy for when to merge
to 1.6.0 since it moved to rc status.



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@138890 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-08-19 19:08:51 +00:00
Mark Michelson
502fede002 Blocked revisions 138887 via svnmerge
................
r138887 | mmichelson | 2008-08-19 13:52:04 -0500 (Tue, 19 Aug 2008) | 31 lines

Merged revisions 138886 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r138886 | mmichelson | 2008-08-19 13:50:53 -0500 (Tue, 19 Aug 2008) | 23 lines

Add a lock and unlock prior to the destruction of the chanspy_ds
lock to ensure that no other threads still have it locked. While
this should not happen under normal circumstances, it appears that
if the spyer and spyee hang up at nearly the same time, the following
may occur.

1. ast_channel_free is called on the spyee's channel.
2. The chanspy datastore is removed from the spyee's channel in 
   ast_channel_free.
3. In the spyer's thread, the spyer attempts to remove and destroy the datastore
   from the spyee channel, but the datastore has already been removed in step 2, 
   so the spyer continues in the code.
4. The spyee's thread continues and calls the datastore's destroy callback, 
   chanspy_ds_destroy. This involves locking the chanspy_ds.
5. Now the spyer attempts to destroy the chanspy_ds lock. The problem is that in step 4, 
   the spyee has locked this lock, meaning that the spyer is attempting to destroy a lock 
   which is currently locked by another thread.

The backtrace provided in issue #12969 supports the idea that this is possible
(and has even occurred). This commit does not close the issue, but should help
in preventing one type of crash associated with the use of app_chanspy.


........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@138889 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-08-19 18:54:19 +00:00
Michiel van Baak
b65c53337c Blocked revisions 138851 via svnmerge
........
r138851 | mvanbaak | 2008-08-19 18:56:50 +0200 (Tue, 19 Aug 2008) | 8 lines

chan_skinny now respects callwaiting=no

(closes issue #12691)
Reported by: sbisker
Patches:
      callwaitingv1.diff uploaded by wedhorn (license 30)
Tested by: wedhorn on old skinny phones, mvanbaak on 7960 and 7905 with latest firmware

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@138852 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-08-19 16:58:06 +00:00
Steve Murphy
1ea8431ada Merged revisions 138845 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r138845 | murf | 2008-08-19 10:31:24 -0600 (Tue, 19 Aug 2008) | 1 line

Oops. put a decl in a generated file. My bad, but fixed now.
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@138847 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-08-19 16:38:21 +00:00
Steve Murphy
1f651e547e Merged revisions 138815 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r138815 | murf | 2008-08-19 09:59:12 -0600 (Tue, 19 Aug 2008) | 19 lines

These changes are in regards to bug 13249, where users are being surprised by the changes made
to the Set app in trunk/1.6.x, as they come from the 1.4 world. They are only bitten if
they write their AEL dialplan in the 1.4 world, and then carry it over to a trunk/1.6.x 
installation where a "make samples" was executed, or where they hand-edited the 
asterisk.conf file and added the [compat] category with app_set = 1.6 (or higher).

(this commit does not totally solve 13249, at least not yet)

The change involves issueing a single warning while the AEL file is loading, if:
 1. app_set is present in the config file, and set to 1.6 or higher.
 2. there are double quotes in an assignment statement (eg x = "hi there";)
 3. the warning was not already issued.

The standalone app, aelparse, does not (yet) issue this warning. I'd have to
have it read in the asterisk.conf file, and that's a bit of hassle. I'll add
it if users request it, tho.



........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@138846 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-08-19 16:36:22 +00:00
Sean Bright
fe6ed321c8 Merged revisions 138778-138780 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r138778 | seanbright | 2008-08-18 20:08:27 -0400 (Mon, 18 Aug 2008) | 1 line

While we're at it, make this machine parseable too.
........
r138779 | seanbright | 2008-08-18 20:09:38 -0400 (Mon, 18 Aug 2008) | 1 line

And remove code we don't need anymore.
........
r138780 | seanbright | 2008-08-18 20:10:56 -0400 (Mon, 18 Aug 2008) | 1 line

Let it compile now, too (woops)
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@138781 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-08-19 00:15:28 +00:00