Archived
14
0
Fork 0
Commit graph

14373 commits

Author SHA1 Message Date
russell
aaeb664e0c Merged revisions 98946 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r98946 | russell | 2008-01-15 17:50:10 -0600 (Tue, 15 Jan 2008) | 11 lines

Change a buffer in check_auth() to be a thread local dynamically allocated
buffer, instead of a massive buffer on the stack.  This fixes a crash reported
by Qwell due to running out of stack space when building with LOW_MEMORY defined.

On a very related note, the usage of BUFSIZ in various places in chan_sip is
arbitrary and careless.  BUFSIZ is a system specific define.  On my machine,
it is 8192, but by definition (according to google) could be as small as 256.  
So, this buffer in check_auth was 16 kB.  We don't even support SIP messages 
larger than 4 kB!  Further usage of this define should be avoided, unless it 
is used in the proper context.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@98948 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-15 23:53:28 +00:00
tilghman
01335bddee Add the "filter" keyword
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@98947 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-15 23:52:11 +00:00
russell
f3a4d7c8f4 Clean up something I did for ABI compatability in 1.4
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@98945 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-15 23:35:29 +00:00
russell
b61a98675c Merged revisions 98943 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r98943 | russell | 2008-01-15 17:26:52 -0600 (Tue, 15 Jan 2008) | 25 lines

Commit a fix for some memory access errors pointed out by the valgrind2.txt
output on issue #11698.

The issue here is that it is possible for an instance of a translator to get
destroyed while the frame allocated as a part of the translator is still being
processed.  Specifically, this is possible anywhere between a call to ast_read()
and ast_frame_free(), which is _a lot_ of places in the code.  The reason this
happens is that the channel might get masqueraded during this time.  During a
masquerade, existing translation paths get destroyed.

So, this patch fixes the issue in an API and ABI compatible way.  (This one is
 for you, paravoid!)

It changes an int in ast_frame to be used as flag bits.  The 1 bit is still used
to indicate that the frame contains timing information.  Also, a second flag has
been added to indicate that the frame came from a translator.  When a frame with
this flag gets released and has this flag, a function is called in translate.c to
let it know that this frame is doing being processed.  At this point, the flag gets
cleared.  Also, if the translator was requested to be destroyed while its internal
frame still had this flag set, its destruction has been deffered until it finds out
that the frame is no longer being processed.

Admittedly, this feels like a hack.  But, it does fix the issue, and I was not able 
to think of a better solution ...

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@98944 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-15 23:31:53 +00:00
file
7f80506a26 Merged revisions 98934 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r98934 | file | 2008-01-15 16:08:43 -0400 (Tue, 15 Jan 2008) | 4 lines

Based on the boundary found move over the correct amount.
(closes issue #11750)
Reported by: tasker

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@98935 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-15 20:10:20 +00:00
file
af75311776 Merged revisions 98894 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r98894 | file | 2008-01-14 18:41:55 -0400 (Mon, 14 Jan 2008) | 4 lines

Accept "; boundary=" not just ";boundary=" in the multipart mixed content type.
(closes issue #11750)
Reported by: tasker

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@98895 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-14 22:44:20 +00:00
qwell
880ddb7103 Add backupdeleted option to app_voicemail
(closes issue #10740)
Reported by: ruffle
Patches:
      app_voicemail.diff uploaded by ruffle (license 201)
      10740-voicemail.diff uploaded by qwell (license 4)
      20080113_bug10740.diff.txt uploaded by mvanbaak (license 7)
Tested by: blitzrage, mvanbaak, qwell


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@98889 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-14 22:19:40 +00:00
mmichelson
3cb76d8bde Big improvement for app_directory. This patch breaks the do_directory function up
so that it is more easily parsed by the human brain. It also fixes some errors. I'll quote
dimas from the original bug description:

"app_directory contained some duplicate code even before addition of 'm' option. Addition of that option doubled amount of that code. Worst of all, there are minor differences between these code block and bugs caused by these differences.

1. There is a memory leak. In the 'menu' mode, result of the convert(pos) function is not freed while it should be.
2. In the 'menu' mode check for OPT_LISTBYFIRSTNAME flag ('f' option) is not negated as result, application works in the mode opposite to what user expect (checking last name when user wants the first nd vice versa).
3. select_item function plays message for user using res = func1() || func2() || func3()... construct. This construct loses the actual value returned by ast_waitstream() for example so at the end, res does not contain digit user dialed while listening to the message.
4. (also in 1.4) application announces entries from voicemail.conf/realtime separately from entries from users.conf. I see no reason why doing so instead of building combined list.
5. Alot of duplicated code as already mentioned."

This was tested by dimas and I (I tested under valgrind). A word of caution: any bug fixes that happen
in app_directory in 1.4 will almost certainly not merge cleanly into trunk as a result of this, but it is
well worth it. 

Huge thanks to dimas for this wonderful submission.

(closes issue #11744)
Reported by: dimas
Patches:
      dir3.patch uploaded by dimas (license 88)
	  Tested by: putnopvut, dimas


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@98888 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-14 22:11:50 +00:00
mmichelson
04a2e444d4 Blocked revisions 98849 via svnmerge
........
r98849 | mmichelson | 2008-01-14 14:59:26 -0600 (Mon, 14 Jan 2008) | 4 lines

Adding in appropriate unlocks for the locks I added. Thanks to joetester on IRC
for pointing this out.


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@98850 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-14 21:01:56 +00:00
file
b562c95259 Make sure the user's manager secret exists, even if it is blank.
(closes issue #11749)
Reported by: srt


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@98830 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-14 20:01:19 +00:00
twilson
2cdb1993af Add description of TOUPPER and TOLOWER dialplan functions to CHANGES.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@98811 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-14 18:42:16 +00:00
qwell
a71a1aa9a5 Add proper call forwarding (all and busy) support for chan_skinny.
Note: NoAnswer support is currently not implemented, as it would take a
 significant amount of work to figure out how to do correctly.

Closes issue #11310, patches, testing, and support by DEA, mvanbaak, and myself.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@98776 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-14 17:40:36 +00:00
russell
008ca3dde8 Merged revisions 98774 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r98774 | russell | 2008-01-14 11:38:38 -0600 (Mon, 14 Jan 2008) | 3 lines

Revert a change that introduces an unacceptable performance hit and is causing
memory leaks ... (from rev 97973)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@98775 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-14 17:39:31 +00:00
qwell
96d9426050 Fix for potential crash with vmexten
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@98773 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-14 17:18:35 +00:00
mmichelson
24624f4f51 Merged revisions 98737 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r98737 | mmichelson | 2008-01-14 10:35:12 -0600 (Mon, 14 Jan 2008) | 3 lines

Fixing another compilation error. I'm a bit off today :(


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@98738 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-14 16:36:41 +00:00
mmichelson
ac8941efa5 Blocked revisions 98734 via svnmerge
........
r98734 | mmichelson | 2008-01-14 10:30:33 -0600 (Mon, 14 Jan 2008) | 3 lines

Oops. Last commit had compilation error.


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@98736 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-14 16:34:00 +00:00
mmichelson
6483a12b94 Merged revisions 98733 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r98733 | mmichelson | 2008-01-14 10:21:28 -0600 (Mon, 14 Jan 2008) | 8 lines

Adding explicit defaults for missing options to init_queue. This is necessary because
if a user either removes or comments one of these options and reloads their queues, the
option will not reset to its default, instead maintaining the value from prior to the 
reload. 

Thanks to John Bigelow for pointing this error out to me.


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@98735 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-14 16:33:06 +00:00
file
3c9cd5c5b5 Print out a warning when spaces are used in the variable name in Set and MSet. It is extremely hard to debug this issue so this should make it easier.
(closes issue #11759)
Reported by: caio1982
Patches:
      setvar_space_warning1.diff uploaded by caio1982 (license 22)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@98714 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-14 15:07:30 +00:00
file
b43ac58b68 Update documentation.
(closes issue #11763)
Reported by: IgorG
Patches:
      docupd.v1.diff uploaded by IgorG (license 20)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@98695 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-14 14:33:17 +00:00
russell
0dadde31e9 Add another small option for the JACK app and JACK_HOOK function. The 'n'
option tells JACK not to start jackd automatically if it is not already
running.  Otherwise, the default is that jackd will get started for you if
it isn't running already.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@98676 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-14 04:53:08 +00:00
russell
0c6b474f15 - Break up the Misc. section a bit with a new section for Misc. New Modules
- Change spacing a bit in some places for consistent indentation


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@98656 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-13 23:43:06 +00:00
russell
02a222b4cc Bring in the code from team/russell/jack/.
Add a new module, app_jack, which provides interfaces to JACK, the Jack
Audio Connection Kit (http://www.jackaudio.org/).  Two interfaces are
provided; there is a JACK() application, and a JACK_HOOK() function.  Both
interfaces create an input and output JACK port.  The application makes
these ports the endpoint of the call.  The audio coming from the channel
goes out the output port and whatever comes back in on the input port is
what gets sent to the channel.  The JACK_HOOK() function turns on a JACK
audiohook on the channel.  This lets you run the audio coming from a
channel through JACK, and whatever comes back in is what gets forwarded
on as the channel's audio.  This is very useful for building custom
vocoders or doing recording or analysis of the channel's audio in another
application.

In case anyone is curious, the platform that inspired me to write this is
PureData (http://puredata.info/).  I wrote these JACK interfaces so that I
could use Pd to do interesting things with the audio of phone calls ...


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@98628 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-13 19:19:57 +00:00
russell
c03eb69155 Add configure script check for JACK.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@98605 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-13 18:08:50 +00:00
russell
9b358fbda8 Remove KDE configure script check that isn't used
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@98604 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-13 18:01:56 +00:00
russell
518c8b5d76 Remove a duplicate lock of the audiohook lock when destroying manipulate
audiohooks.  This causes an error when we attempt to destroy the lock later
when freeing the audiohook.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@98581 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-13 00:10:00 +00:00
russell
8e7cfc7450 Add a new CLI command, "core set chanvar", which allows you to set a channel
variable (or function) on an active channel from the CLI.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@98558 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-12 19:34:38 +00:00
tilghman
0b178b776f Conversion to load manager.conf into memory did not convert the password
functions correctly.  (Closes issue #11749)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@98536 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-12 18:12:56 +00:00
pari
82ef5c6d36 merging a comment added in 1.4
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@98514 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-12 05:13:04 +00:00
kpfleming
cdf9ce4cb9 Add 'zap set dnd' CLI command, and ensure that the AMI DNDState event always gets generated.
(closes issue #11212)
Reported by: tzafrir
Patches:
      zap_dnd.diff uploaded by tzafrir (modified by me) (license 46)



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@98488 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-12 00:20:55 +00:00
tilghman
7b0ce5ebec Merged revisions 98467 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r98467 | tilghman | 2008-01-11 18:05:08 -0600 (Fri, 11 Jan 2008) | 4 lines

Add a connection timeout attribute, as that was what was intended with the
login timeout, but ODBC divides it up into 2 different timeouts.
(Closes issue #11745)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@98487 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-12 00:17:26 +00:00
russell
397f602159 Add some extra checking to help out with a potential error when trying to
run "make asterisk.pdf" when not all of the right packages are installed.

(closes issue #10763)
Reported by: Corydon76
Patches:
      20070919__bug10763.diff.txt uploaded by Corydon76 (license 14)
Tested by: Corydon76


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@98454 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-11 23:57:01 +00:00
kpfleming
e63414ec96 Add 'auto' signalling mode for Zaptel channels.
(closes issue #11690)
Reported by: tzafrir
Patches:
      signaling_to_signalling.diff uploaded by tzafrir (license 46)
      signalling_cleanup.diff uploaded by tzafrir (license 46)
      zap_auto_default.diff uploaded by tzafrir (license 46)
      zap_no_default_sig.diff uploaded by tzafrir (license 46)
      zap_signal_auto.diff uploaded by tzafrir (license 46)



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@98436 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-11 23:10:57 +00:00
file
0898d1a9f3 Goodbye again drumkilla.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@98435 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-11 23:09:31 +00:00
file
3a29ee26cc drumkilla ftw.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@98434 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-11 23:00:21 +00:00
file
11c857dd8f I am no longer Rockin'
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@98432 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-11 22:59:13 +00:00
file
924019ba01 Testing something...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@98424 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-11 22:57:39 +00:00
russell
f001e3f2ec Merged revisions 98390 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r98390 | russell | 2008-01-11 16:46:21 -0600 (Fri, 11 Jan 2008) | 9 lines

Fix up setting the EID on BSD based systems.

(closes issue #11646)
Reported by: caio1982
Patches:
      dundi_osx_eid6.diff.txt uploaded by caio1982 (license 22)
      dundi_osx_eid6-1.4.diff uploaded by caio1982 (license 22)
Tested by: caio1982, mvanbaak

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@98400 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-11 22:52:41 +00:00
file
82a225c787 Merged revisions 98325 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r98325 | file | 2008-01-11 15:51:10 -0400 (Fri, 11 Jan 2008) | 6 lines

If the incoming RTP stream changes codec force the bridge to break if the other side does not support it.
(closes issue #11729)
Reported by: tsearle
Patches:
      new_codec_patch_udiff.patch uploaded by tsearle (license 373)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@98334 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-11 19:53:01 +00:00
file
4086c0e337 Merged revisions 98317 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r98317 | file | 2008-01-11 15:28:30 -0400 (Fri, 11 Jan 2008) | 6 lines

If the channel is hungup during RECORD FILE send a result code of -1 to be uniform with everything else.
(closes issue #11743)
Reported by: davevg
Patches:
      res_agi.diff uploaded by davevg (license 209)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@98318 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-11 19:30:34 +00:00
mmichelson
bd79260890 Merged revisions 98315 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r98315 | mmichelson | 2008-01-11 13:10:57 -0600 (Fri, 11 Jan 2008) | 5 lines

Properly report the hangup cause as no answer when someone does not answer

(closes issue #10574, reported by boch, patched by moy)


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@98316 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-11 19:12:05 +00:00
russell
9c1c46c009 Kevin noted that the thing that I _actually_ changed here was that I converted
a value from a double, to a float, back to a double.  Sure enough, when I changed
my interim variable back to a double, it still blows up.  Switching all of these
to a float fixes the problem.  This seems like a compiler bug where a double passed
as an argument isn't getting properly aligned, so I'll have to see if I can replicate
it with a small test program.

(related to issue #11725)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@98308 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-11 19:05:24 +00:00
russell
ccce263b5c Fix a bus error that happened when asterisk was built with optimizations on
with platforms that explode on unaligned access.  I'm not exactly sure why
this fixes it, but it fixed it on the machine I was testing on.  If it makes
sense to you, feel free to enlighten me.  :)

(closes issue #11725, patched by me)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@98270 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-11 18:48:07 +00:00
tilghman
69d71a14de Port Nick Gorham's timestamp patch to adaptive_odbc, too
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@98269 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-11 18:35:30 +00:00
tilghman
bcc664ccd5 Commit Nick Gorham's suggestion for timestamp fix
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@98268 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-11 18:30:00 +00:00
russell
236f2de7b1 Blocked revisions 98265 via svnmerge
........
r98265 | russell | 2008-01-11 12:25:30 -0600 (Fri, 11 Jan 2008) | 11 lines

Backport the ability to set the ToS bits on Linux when not running as root.
Normally, we would not backport features into 1.4, but, I was convinced by the
justification supplied by the supplier of this patch.  He pointed out that this
patch removes a requirement for running as root, thus reducing the potential
impacts of security issues.

(closes issue #11742)
Reported by: paravoid
Patches:
      libcap.diff uploaded by paravoid (license 200)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@98267 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-11 18:26:32 +00:00
file
49d571c3e9 Merged revisions 98219 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r98219 | file | 2008-01-11 13:22:53 -0400 (Fri, 11 Jan 2008) | 4 lines

Ensure the return value of ast_bridge_call is passed back up as the application return value. This is needed for transfers to function so the PBX core knows to continue execution.
(closes issue #10327)
Reported by: kkiely

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@98220 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-11 17:27:58 +00:00
russell
2f83bcc869 At one point during working on this module, I had the lin/lin16 versions of the
framein callbacks different.  However, they are now the same again, so remove
the duplicate code and use the same functions for the lin/lin16 versions.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@98218 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-11 17:17:54 +00:00
tilghman
abdb54a569 Merged revisions 98164 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r98164 | tilghman | 2008-01-11 09:52:31 -0600 (Fri, 11 Jan 2008) | 2 lines

Back out changes from revision 97077, since it wasn't perfect

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@98193 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-11 16:08:43 +00:00
tilghman
56dc662118 Documentation updates
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@98152 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-11 15:12:33 +00:00
kpfleming
da2462e46b Ascom phones send Flash events as SIP INFO using '!' as the 'digit'
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@98124 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-11 12:51:21 +00:00