Commit Graph

5054 Commits

Author SHA1 Message Date
Mark Michelson
5f1b7ecd09 Merged revisions 113682 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r113682 | mmichelson | 2008-04-09 09:41:58 -0500 (Wed, 09 Apr 2008) | 17 lines

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

........
r113681 | mmichelson | 2008-04-09 09:40:05 -0500 (Wed, 09 Apr 2008) | 9 lines

If Asterisk receives a 488 on an INVITE (not a reinvite), then
we should not send a BYE.

(closes issue #12392)
Reported by: fnordian
Patches:
      chan_sip.patch uploaded by fnordian (license 110) with small modification from me


........

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@113683 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-09 14:42:48 +00:00
Terry Wilson
de98ac9a6c Merged revisions 113597 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r113597 | twilson | 2008-04-08 20:36:58 -0500 (Tue, 08 Apr 2008) | 10 lines

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

........
r113596 | twilson | 2008-04-08 20:34:25 -0500 (Tue, 08 Apr 2008) | 2 lines

Initialize fr->cacheable to make valgrind happy

........

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@113598 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-09 01:40:50 +00:00
Jason Parker
5e7a6ce8a3 Merged revisions 113505 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r113505 | qwell | 2008-04-08 13:49:21 -0500 (Tue, 08 Apr 2008) | 9 lines

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

........
r113504 | qwell | 2008-04-08 13:48:55 -0500 (Tue, 08 Apr 2008) | 1 line

Add a little more that is required for previously added devices.
........

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@113506 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-08 18:49:36 +00:00
Jason Parker
da72762cb6 Merged revisions 113455 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r113455 | qwell | 2008-04-08 13:08:35 -0500 (Tue, 08 Apr 2008) | 12 lines

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

........
r113454 | qwell | 2008-04-08 13:07:49 -0500 (Tue, 08 Apr 2008) | 4 lines

Add support for several new(ish) devices - most notably, 7942/7945, 7962/7965, 7975.

Thanks to Greg Oliver for providing me the required information.

........

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@113456 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-08 18:09:09 +00:00
Tilghman Lesher
b22b4bb40c Merged revisions 113349 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r113349 | tilghman | 2008-04-08 10:48:58 -0500 (Tue, 08 Apr 2008) | 15 lines

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

........
r113348 | tilghman | 2008-04-08 10:39:16 -0500 (Tue, 08 Apr 2008) | 7 lines

Move check for still-bridged channels out a little further, to avoid possible
deadlocks.  (Closes issue #12252)
Reported by: callguy
 Patches: 
       20080319__bug12252.diff.txt uploaded by Corydon76 (license 14)
 Tested by: callguy

........

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@113350 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-08 15:50:52 +00:00
Jeff Peeler
b9935ade93 Merged revisions 113241 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r113241 | jpeeler | 2008-04-07 16:35:48 -0500 (Mon, 07 Apr 2008) | 23 lines

Merged revisions 113013 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

................
r113013 | jpeeler | 2008-04-07 10:18:10 -0500 (Mon, 07 Apr 2008) | 15 lines

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

........
r113012 | jpeeler | 2008-04-07 10:16:44 -0500 (Mon, 07 Apr 2008) | 7 lines

(closes issue #12362)
(closes issue #12372)
Reported by: vinsik
Tested by: tecnoxarxa

This one line change makes an if inside a for loop (in realtime_peer) check all the ast_variables the loop was intending to test rather than just the first one.

........

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

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@113242 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-07 21:36:47 +00:00
Jason Parker
bb9fa0affd Merged revisions 113119 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r113119 | qwell | 2008-04-07 13:02:51 -0500 (Mon, 07 Apr 2008) | 16 lines

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

........
r113118 | qwell | 2008-04-07 13:00:09 -0500 (Mon, 07 Apr 2008) | 8 lines

Allow playback with noanswer (and add earlyrtp option).

(closes issue #9077)
Reported by: pj
Patches:
      earlyrtp.diff uploaded by wedhorn (license 30)
Tested by: pj, qwell, DEA, wedhorn

........

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@113174 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-07 19:10:45 +00:00
Jeff Peeler
d3b67ac906 Merged revisions 113013 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r113013 | jpeeler | 2008-04-07 10:18:10 -0500 (Mon, 07 Apr 2008) | 15 lines

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

........
r113012 | jpeeler | 2008-04-07 10:16:44 -0500 (Mon, 07 Apr 2008) | 7 lines

(closes issue #12362)
(closes issue #12372)
Reported by: vinsik
Tested by: tecnoxarxa

This one line change makes an if inside a for loop (in realtime_peer) check all the ast_variables the loop was intending to test rather than just the first one.

........

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@113042 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-07 15:28:23 +00:00
Philippe Sultan
8205252c82 Merged revisions 112821 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r112821 | phsultan | 2008-04-04 21:28:49 +0200 (Fri, 04 Apr 2008) | 9 lines

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

........
r112820 | phsultan | 2008-04-04 21:26:15 +0200 (Fri, 04 Apr 2008) | 1 line

Free newly allocated channel before returning
........

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@112822 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-04 19:30:35 +00:00
Philippe Sultan
acf6ac5a7f Merged revisions 112785 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r112785 | phsultan | 2008-04-04 19:32:46 +0200 (Fri, 04 Apr 2008) | 15 lines

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

........
r112766 | phsultan | 2008-04-04 19:16:59 +0200 (Fri, 04 Apr 2008) | 7 lines

Prevent call connections when codecs don't match.

(closes issue #10604)
Reported by: keepitcool
Patches:
      branch-1.4-10604-2.diff uploaded by phsultan (license 73)
Tested by: phsultan
........

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@112786 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-04 17:43:01 +00:00
Mark Michelson
472c4a22dd Merged revisions 112600 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r112600 | mmichelson | 2008-04-03 09:35:47 -0500 (Thu, 03 Apr 2008) | 17 lines

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

........
r112599 | mmichelson | 2008-04-03 09:32:20 -0500 (Thu, 03 Apr 2008) | 9 lines

Fix the testing of the "res" variable so that it is more logically correct and 
makes the correct warning and debug messages print.

(closes issue #12361)
Reported by: one47
Patches:
      chan_zap_deferred_digit.patch uploaded by one47 (license 23)


........

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@112601 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-03 14:42:58 +00:00
Joshua Colp
b928d453af Merged revisions 112431 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r112431 | file | 2008-04-02 12:26:51 -0300 (Wed, 02 Apr 2008) | 7 lines

Since the SIP request structure gets reused multiple times with TCP handling we have to clear the debug state or else we will keep spitting out debug even after it has been turned off.
(closes issue #12169)
Reported by: pj
Patches:
      12169-debugoff-2.diff uploaded by qwell (license 4)
Tested by: pj

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@112436 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-02 15:27:56 +00:00
Joshua Colp
2dfca4e149 Merged revisions 112205 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r112205 | file | 2008-04-01 14:48:52 -0300 (Tue, 01 Apr 2008) | 12 lines

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

........
r112204 | file | 2008-04-01 14:43:46 -0300 (Tue, 01 Apr 2008) | 4 lines

Do not pass audio until the remote side has indicated they are providing early media, or if the channel has been answered.
(closes issue #11823)
Reported by: SDamm

........

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@112206 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-01 17:52:44 +00:00
Jason Parker
1b23f850e9 Merged revisions 111721 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r111721 | qwell | 2008-03-28 12:57:12 -0500 (Fri, 28 Mar 2008) | 9 lines

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

........
r111720 | qwell | 2008-03-28 12:55:05 -0500 (Fri, 28 Mar 2008) | 1 line

Remove unimplemented softkeys.  Prompted by issue #12325.
........

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@111722 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-03-28 17:57:31 +00:00
Joshua Colp
6506b05636 Merged revisions 111021 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r111021 | file | 2008-03-26 16:05:42 -0300 (Wed, 26 Mar 2008) | 12 lines

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

........
r111020 | file | 2008-03-26 16:04:35 -0300 (Wed, 26 Mar 2008) | 4 lines

If we are requested to authenticate a reinvite make sure that it contains T38 SDP if need be.
(closes issue #11995)
Reported by: fall

........

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@111023 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-03-26 19:06:49 +00:00
Joshua Colp
838e70cdfa Merged revisions 111017 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r111017 | file | 2008-03-26 15:42:52 -0300 (Wed, 26 Mar 2008) | 12 lines

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

........
r110628 | file | 2008-03-25 11:37:35 -0300 (Tue, 25 Mar 2008) | 4 lines

Add an option (transmit_silence) which transmits silence during both Record() and DTMF generation. The reason this is an option is that in order to transmit silence we have to setup a translation path. This may not be needed/wanted in all cases.
(closes issue #10058)
Reported by: tracinet

........

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@111018 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-03-26 18:44:32 +00:00
Jeff Peeler
e9f4445378 This one line change makes an if inside a for loop (in realtime_peer) check all the ast_variables the loop was intending to test rather than just the first one.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@110778 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-03-25 22:11:03 +00:00
Mark Michelson
913e19eb60 Oops.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@110638 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-03-25 15:43:24 +00:00
Mark Michelson
6f5612a7b0 Merged revisions 110636 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r110636 | mmichelson | 2008-03-25 10:41:33 -0500 (Tue, 25 Mar 2008) | 15 lines

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

........
r110635 | mmichelson | 2008-03-25 10:40:33 -0500 (Tue, 25 Mar 2008) | 7 lines

When reverting a commit, I accidentally left in this bit which was an experiment
to see what would happen. It passed the compile test, and I didn't notice I had
left this change in too.

So this is a revert of a revert...sort of.


........

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@110637 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-03-25 15:42:50 +00:00
Mark Michelson
1a433add7a Merged revisions 110619 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r110619 | mmichelson | 2008-03-24 14:19:37 -0500 (Mon, 24 Mar 2008) | 23 lines

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

........
r110618 | mmichelson | 2008-03-24 14:17:41 -0500 (Mon, 24 Mar 2008) | 15 lines

This is a revert for revision 108288. The reason is that that revision
was not for an actual bug fix per se, and so it really should not have been in 1.4 in
the first place. Plus, people who compile with DO_CRASH are more likely
to encounter a crash due to this change. While I think the usage of DO_CRASH
in ast_sched_del is a bit absurd, this sort of change is beyond the scope of 1.4
and should be done instead in a developer branch based on trunk 
so that all scheduler functions are fixed at once.

I also am reverting the change to trunk and 1.6 since they also suffer from
the DO_CRASH potential.

(closes issue #12272)
Reported by: qq12345


........

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@110620 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-03-24 19:20:30 +00:00
Russell Bryant
1ed7dc48f3 Merged revisions 110615 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r110615 | russell | 2008-03-24 12:36:04 -0500 (Mon, 24 Mar 2008) | 10 lines

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

........
r110614 | russell | 2008-03-24 12:34:56 -0500 (Mon, 24 Mar 2008) | 2 lines

Turn a NOTICE into a DEBUG message.

........

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@110616 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-03-24 17:36:23 +00:00
Joshua Colp
00bf34e216 Merged revisions 110610 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r110610 | file | 2008-03-24 12:28:25 -0300 (Mon, 24 Mar 2008) | 6 lines

Only print out the set_address_from_contact host verbose message if debugging is enabled on the dialog.
(closes issue #12280)
Reported by: rjain
Patches:
      chan_sip.c.diff uploaded by rjain (license 226)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@110611 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-03-24 15:29:38 +00:00
Russell Bryant
573e35bba1 Merged revisions 110337 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r110337 | russell | 2008-03-20 16:55:50 -0500 (Thu, 20 Mar 2008) | 22 lines

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

................
r110336 | russell | 2008-03-20 16:54:58 -0500 (Thu, 20 Mar 2008) | 14 lines

Merged revisions 110335 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r110335 | russell | 2008-03-20 16:53:27 -0500 (Thu, 20 Mar 2008) | 6 lines

Fix some very broken code that was introduced in 1.2.26 as a part of the security
fix.  The dnsmgr is not appropriate here.  The dnsmgr takes a pointer to an address
structure that a background thread continuously updates.  However, in these cases,
a stack variable was passed.  That means that the dnsmgr thread would be continuously
writing to bogus memory.

........

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

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@110338 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-03-20 21:56:22 +00:00
Mark Michelson
7783cbdafa Merged revisions 109576 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r109576 | mmichelson | 2008-03-18 12:59:18 -0500 (Tue, 18 Mar 2008) | 14 lines

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

........
r109575 | mmichelson | 2008-03-18 12:58:11 -0500 (Tue, 18 Mar 2008) | 6 lines

Make sure an agent doesn't try to send dtmf to a NULL channel

closes issue #12242
Reported by Yourname


........

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@109577 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-03-18 17:59:49 +00:00
Kevin P. Fleming
26ea819943 Merged revisions 109475 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r109475 | kpfleming | 2008-03-18 11:23:05 -0500 (Tue, 18 Mar 2008) | 2 lines

fix up various warnings found via the addition of format string checking... some of these were really, really bad code

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@109487 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-03-18 16:26:59 +00:00
Russell Bryant
4af367c3a9 Merged revisions 109447 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r109447 | twilson | 2008-03-18 10:43:34 -0500 (Tue, 18 Mar 2008) | 3 lines

Go through and fix a bunch of places where character strings were being interpreted as format strings. Most of these changes are solely to make compiling with -Wsecurity and -Wformat=2 happy, and were not
actual problems, per se.  I also added format attributes to any printf wrapper functions I found that didn't have them.  -Wsecurity and -Wmissing-format-attribute added to --enable-dev-mode.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@109459 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-03-18 15:58:50 +00:00
Jason Parker
5996a61f4b Merged revisions 109389 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r109389 | qwell | 2008-03-18 10:07:04 -0500 (Tue, 18 Mar 2008) | 3 lines

Do not return with a successful authentication if the From header ends up empty.
(AST-2008-003)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@109395 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-03-18 15:11:25 +00:00
Joshua Colp
627d3f04d4 Merged revisions 109390 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r109390 | file | 2008-03-18 12:08:09 -0300 (Tue, 18 Mar 2008) | 11 lines

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

........
r109386 | file | 2008-03-18 11:58:39 -0300 (Tue, 18 Mar 2008) | 3 lines

Put a maximum limit on the number of payloads accepted, and also make sure a given payload does not exceed our maximum value.
(AST-2008-002)

........

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@109392 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-03-18 15:09:39 +00:00
Michiel van Baak
f58d1ed4c3 Merged revisions 109168 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r109168 | mvanbaak | 2008-03-17 18:43:46 +0100 (Mon, 17 Mar 2008) | 11 lines

Update the directory of placed calls on skinny phones
when dialing a channel that does not provide progress (analog ZAP lines)

The phone does handle the double update on calls to channels that do
provide progress and wont insert duplicate items

(closes issue #12239)
Reported by: DEA
Patches:
      chan_skinny-call-log.txt uploaded by DEA (license 3)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@109175 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-03-17 18:11:19 +00:00
Joshua Colp
2d567f7434 Merged revisions 109108 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r109108 | file | 2008-03-17 13:26:36 -0300 (Mon, 17 Mar 2008) | 12 lines

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

........
r109107 | file | 2008-03-17 13:24:29 -0300 (Mon, 17 Mar 2008) | 4 lines

200 OKs in response to a reinvite need to be sent reliably. If the remote side does not receive one the dialog will be torn down.
(closes issue #12208)
Reported by: atrash

........

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@109109 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-03-17 16:28:01 +00:00
Russell Bryant
3120fe50ba Merged revisions 108797 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r108797 | russell | 2008-03-14 15:09:37 -0500 (Fri, 14 Mar 2008) | 13 lines

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

........
r108796 | russell | 2008-03-14 15:09:22 -0500 (Fri, 14 Mar 2008) | 5 lines

Fix a channel name issue.  chan_oss registers the "Console" channel type,
but it created channels with an "OSS" prefix.

(closes issue #12194, reported by davidw, patched by me)

........

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@108798 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-03-14 20:09:53 +00:00
Mark Michelson
2c71d8fa63 Merged revisions 108738 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r108738 | mmichelson | 2008-03-14 11:52:51 -0500 (Fri, 14 Mar 2008) | 41 lines

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

........
r108737 | mmichelson | 2008-03-14 11:44:08 -0500 (Fri, 14 Mar 2008) | 33 lines

Fix a race condition in the SIP packet scheduler which could cause a crash.

chan_sip uses the scheduler API in order to schedule retransmission of reliable
packets (such as INVITES). If a retransmission of a packet is occurring, then the
packet is removed from the scheduler and retrans_pkt is called. Meanwhile, if
a response is received from the packet as previously transmitted, then when we 
ACK the response, we will remove the packet from the scheduler and free the packet.

The problem is that both the ACK function and retrans_pkt attempt to acquire the
same lock at the beginning of the function call. This means that if the ACK function
acquires the lock first, then it will free the packet which retrans_pkt is about to
read from and write to. The result is a crash.

The solution:

1. If the ACK function fails to remove the packet from the scheduler and the retransmit
   id of the packet is not -1 (meaning that we have not reached the maximum number of 
   retransmissions) then release the lock and yield so that retrans_pkt may acquire the
   lock and operate.

2. Make absolutely certain that the ACK function does not recursively lock the lock in
   question. If it does, then releasing the lock will do no good, since retrans_pkt will
   still be unable to acquire the lock.

(closes issue #12098)
Reported by: wegbert
(closes issue #12089)
Reported by: PTorres
Patches:
      12098-putnopvutv3.patch uploaded by putnopvut (license 60)
Tested by: jvandal


........

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@108739 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-03-14 16:54:36 +00:00
Russell Bryant
bcdaa03501 Merged revisions 108531 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r108531 | russell | 2008-03-13 16:06:52 -0500 (Thu, 13 Mar 2008) | 18 lines

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

........
r108530 | russell | 2008-03-13 16:06:33 -0500 (Thu, 13 Mar 2008) | 10 lines

Make a tweak that gets the LEDs on polycom phones to blink when an extension that
has been subscribed to goes on hold.  Otherwise, they just stay on like it does
when an extension is in use.

(closes issue #11263)
Reported by: russell
Patches:
      notify_hold.rev1.txt uploaded by russell (license 2)
Tested by: russell

........

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@108532 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-03-13 21:07:14 +00:00
Russell Bryant
82922e116c Merged revisions 107157 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r107157 | file | 2008-03-10 15:00:21 -0500 (Mon, 10 Mar 2008) | 4 lines

If we receive a 488 on a T38 request reinvite back to audio. As well reinvite across a bridge back to audio if one side doesn't negotiate to T38.
(closes issue #8677)
Reported by: alex-911

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@108354 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-03-12 22:52:58 +00:00
Russell Bryant
967d9d2c40 Merged revisions 108295 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r108295 | russell | 2008-03-12 17:13:18 -0500 (Wed, 12 Mar 2008) | 3 lines

Rename ast_tcptls_server_instance to session_instance, since this pertains to
server and client usage.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@108348 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-03-12 22:50:14 +00:00
Mark Michelson
78e9f784f1 Merged revisions 108293 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r108293 | mmichelson | 2008-03-12 17:09:52 -0500 (Wed, 12 Mar 2008) | 3 lines

Let's get this to compile


........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@108294 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-03-12 22:10:20 +00:00
Mark Michelson
e3af4b3632 Merged revisions 108289 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r108289 | mmichelson | 2008-03-12 16:57:41 -0500 (Wed, 12 Mar 2008) | 22 lines

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

........
r108288 | mmichelson | 2008-03-12 16:53:46 -0500 (Wed, 12 Mar 2008) | 14 lines

Change AST_SCHED_DEL use to ast_sched_del for autocongestion in chan_sip.

The scheduler callback will always return 0. This means that this id 
is never rescheduled, so it makes no sense to loop trying to delete
the id from the scheduler queue. If we fail to remove the item from the
queue once, it will fail every single time.

(Yes I realize that in this case, the macro would exit early because the
id is set to -1 in the callback, but it still makes no sense to use
that macro in favor of calling ast_sched_del once and being done with it)

This is the first of potentially several such fixes.


........

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@108290 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-03-12 21:58:29 +00:00
Kevin P. Fleming
3592c06d29 Merged revisions 108191 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r108191 | kpfleming | 2008-03-12 15:27:01 -0500 (Wed, 12 Mar 2008) | 14 lines

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

........
r108086 | kpfleming | 2008-03-12 14:16:07 -0500 (Wed, 12 Mar 2008) | 6 lines

if we receive an INVITE with a Content-Length that is not a valid number, or is zero, then don't process the rest of the message body looking for an SDP

closes issue #11475
Reported by: andrebarbosa


........

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@108205 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-03-12 20:29:50 +00:00
Tilghman Lesher
a92dc508ec Merged revisions 107998 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r107998 | tilghman | 2008-03-12 02:43:03 -0500 (Wed, 12 Mar 2008) | 7 lines

Deadlock fixes
(closes issue #12143)
 Reported by: kactus
 Patches: 
       20080312__bug12143__2.diff.txt uploaded by Corydon76 (license 14)
 Tested by: kactus

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@107999 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-03-12 07:44:28 +00:00
Jason Parker
2b1b649a97 Merged revisions 107718 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r107718 | qwell | 2008-03-11 15:53:48 -0500 (Tue, 11 Mar 2008) | 13 lines

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

........
r107714 | qwell | 2008-03-11 15:49:56 -0500 (Tue, 11 Mar 2008) | 5 lines

Copy voicemail dependency logic for res_adsi to chan_gtalk and chan_jingle (for jabber).

(closes issue #12014)
Reported by: junky

........

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@107720 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-03-11 20:54:38 +00:00
Kevin P. Fleming
2ada3e4bba Merged revisions 107715 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r107715 | kpfleming | 2008-03-11 15:50:57 -0500 (Tue, 11 Mar 2008) | 10 lines

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

........
r107713 | kpfleming | 2008-03-11 15:48:58 -0500 (Tue, 11 Mar 2008) | 2 lines

get chan_vpb to build properly in dev mode

........

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@107716 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-03-11 20:51:18 +00:00
Kevin P. Fleming
2932ac2f59 Merged revisions 107525 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r107525 | kpfleming | 2008-03-11 10:39:37 -0500 (Tue, 11 Mar 2008) | 2 lines

fix another potential bug found by gcc 4.3

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@107526 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-03-11 15:39:53 +00:00
Kevin P. Fleming
19ca2892c0 Merged revisions 107466 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r107466 | kpfleming | 2008-03-11 10:13:38 -0500 (Tue, 11 Mar 2008) | 10 lines

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

........
r107464 | kpfleming | 2008-03-11 09:53:03 -0500 (Tue, 11 Mar 2008) | 2 lines

fix various other problems found by gcc 4.3

........

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@107467 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-03-11 15:13:54 +00:00
Terry Wilson
c9411643ea Merged revisions 107292 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r107292 | twilson | 2008-03-10 20:09:46 -0500 (Mon, 10 Mar 2008) | 10 lines

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

........
r107290 | twilson | 2008-03-10 19:59:18 -0500 (Mon, 10 Mar 2008) | 2 lines

If we fail to alloc a channel, we should re-lock the pvt structure before returning.

........

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@107336 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-03-11 01:27:23 +00:00
Jason Parker
3d33906019 Merged revisions 107177 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r107177 | qwell | 2008-03-10 15:28:33 -0500 (Mon, 10 Mar 2008) | 13 lines

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

........
r107173 | qwell | 2008-03-10 15:27:08 -0500 (Mon, 10 Mar 2008) | 5 lines

Make sure to reenable echo can after a "failed" (canceled, etc) three-way call.

(closes issue #11335)
Reported by: rebuild

........

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@107180 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-03-10 20:29:21 +00:00
Matthew Fredrickson
3be8b59e7c Make sure we don't start a call on a channel that has already started a call
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@106997 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-03-08 17:54:59 +00:00
Kevin P. Fleming
0eea9ee544 Merged revisions 106946 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r106946 | kpfleming | 2008-03-08 10:03:48 -0600 (Sat, 08 Mar 2008) | 10 lines

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

........
r106945 | kpfleming | 2008-03-08 09:59:42 -0600 (Sat, 08 Mar 2008) | 2 lines

don't generate D-Channel "up" and "down" messages unless the channel state is actually changing; also, generate the "up" message when an implicit "up" occurs due to reception of a normal event when we thought the channel was "down"

........

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@106947 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-03-08 16:14:57 +00:00
Tilghman Lesher
fd382738e3 Merged revisions 106553 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r106553 | tilghman | 2008-03-07 00:54:47 -0600 (Fri, 07 Mar 2008) | 14 lines

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

........
r106552 | tilghman | 2008-03-07 00:36:33 -0600 (Fri, 07 Mar 2008) | 6 lines

Safely use the strncat() function.
(closes issue #11958)
 Reported by: norman
 Patches: 
       20080209__bug11958.diff.txt uploaded by Corydon76 (license 14)

........

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@106554 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-03-07 06:57:44 +00:00
Russell Bryant
90046983f7 Merged revisions 106239 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r106239 | file | 2008-03-05 16:43:22 -0600 (Wed, 05 Mar 2008) | 12 lines

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

........
r106235 | file | 2008-03-05 18:32:10 -0400 (Wed, 05 Mar 2008) | 4 lines

Add a control frame to indicate the source of media has changed. Depending on the underlying technology it may need to change some things.
(closes issue #12148)
Reported by: jcomellas

........

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@106318 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-03-06 00:22:20 +00:00
Russell Bryant
16456f61f6 Merged revisions 106238 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r106238 | russell | 2008-03-05 16:40:58 -0600 (Wed, 05 Mar 2008) | 11 lines

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

........
r106237 | russell | 2008-03-05 16:37:09 -0600 (Wed, 05 Mar 2008) | 3 lines

Fix a potential deadlock and a few different potential crashes.
(closes issue #12145, reported by thiagarcia, patched by me)

........

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@106317 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-03-06 00:21:24 +00:00