Archived
14
0
Fork 0
Commit graph

12200 commits

Author SHA1 Message Date
rizzo
86416cfc91 move variable declarations to the beginning of the block
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@72456 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-28 19:01:43 +00:00
rizzo
0fbdb5844c move variable declarations to the beginning of a block.
Not applicable to previous branches



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@72455 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-28 18:59:19 +00:00
rizzo
82bc0c30cc 72453 was already applied to trunk some time ago
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@72454 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-28 18:42:30 +00:00
rizzo
4be5924a94 Add -Wdeclaration-after-statement to AST_DEVMODE
to detect declarations in the middle of a block.

Approved by: Russel, Kevin

The fallout will be fixed in separate commits.

I am doing this only on trunk only for the time being, because 1.4
still requires a bit more polishing to give a clean compile
(at least on FreeBSD).



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@72452 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-28 18:34:07 +00:00
mattf
6e0e033e94 Fix bug where point code gets corrupted on CPG
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@72437 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-28 16:35:38 +00:00
bbryant
0762695732 Merged revisions 72383 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r72383 | bbryant | 2007-06-27 18:29:14 -0500 (Wed, 27 Jun 2007) | 11 lines

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

........
r72373 | bbryant | 2007-06-27 18:22:13 -0500 (Wed, 27 Jun 2007) | 3 lines

Reinstating patch. This actually fixes the problem, however I was running a development branch without it and mistakenly thought it wasn't fixed. 
Fixes issue #10010, and #9654: 100% CPU usage caused by an asterisk console losing it's controlling terminal.

........

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


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@72384 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-27 23:30:31 +00:00
file
b663e2cc3f Merged revisions 72381 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r72381 | file | 2007-06-27 19:25:12 -0400 (Wed, 27 Jun 2007) | 10 lines

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

........
r72378 | file | 2007-06-27 19:24:01 -0400 (Wed, 27 Jun 2007) | 2 lines

Update documentation to clarify variable usage with MixMonitor. (issue #9494 reported by netoguy)

........

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


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@72382 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-27 23:26:46 +00:00
file
d2aea5fe95 Silly jingle...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@72358 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-27 23:14:39 +00:00
file
0b3770075d Add SIPREFERRINGCONTEXT and SIPREFERREDBYHDR variables when a transfer takes place. (issue #8378 reported by jcovert)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@72354 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-27 23:13:09 +00:00
bbryant
38b61b488e Merged revisions 72335 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r72335 | bbryant | 2007-06-27 18:03:01 -0500 (Wed, 27 Jun 2007) | 10 lines

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

........
r72333 | bbryant | 2007-06-27 17:58:53 -0500 (Wed, 27 Jun 2007) | 2 lines

Reverted changes for earlier revisions 72259 to 72261. Issue #9654, #10010

........

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


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@72337 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-27 23:04:06 +00:00
file
a3bf60df13 Merged revisions 72331 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r72331 | file | 2007-06-27 18:58:02 -0400 (Wed, 27 Jun 2007) | 2 lines

Make payload IDs for iLBC/Speex match to our list. Since these are dynamic payloads the other side shouldn't care. (issue #9426 reported by irroot)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@72332 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-27 22:58:53 +00:00
file
bdebd277b9 Merged revisions 72328 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r72328 | file | 2007-06-27 18:45:49 -0400 (Wed, 27 Jun 2007) | 10 lines

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

........
r72327 | file | 2007-06-27 18:43:11 -0400 (Wed, 27 Jun 2007) | 2 lines

Fix issue where queue log events might be missing. (issue #7765 reported by mtryfoss)

........

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


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@72330 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-27 22:48:15 +00:00
mmichelson
ca45e84ceb Added ability to customize which buttons control forward, reverse, pause, and stop during message playback.
(closes issue 9474, reported and patched by jaroth with modifications by me)



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@72329 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-27 22:47:08 +00:00
qwell
99cf00120f Fix a segfault when trying to tab complete the "core show uptime" command.
Reported in #asterisk-dev on IRC by jcmoore, fixed by me.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@72326 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-27 22:27:09 +00:00
qwell
bdf1afb5af Add support for Thai language in say.c
Issue 9417, patch by dome, with some cleanup done by me.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@72325 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-27 22:17:59 +00:00
mattf
cab774c60a Let's NOT create a deadlock scenario here
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@72304 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-27 21:44:13 +00:00
russell
12c0a35ca5 Merged revisions 72272 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r72272 | russell | 2007-06-27 16:08:34 -0500 (Wed, 27 Jun 2007) | 13 lines

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

........
r72267 | russell | 2007-06-27 16:06:45 -0500 (Wed, 27 Jun 2007) | 5 lines

Fix a minor issue with parsing the priority number.  You could have as much
whitespace as you want around a numeric priority, but you couldn't have any
whitespace around a special priority like "n" or "hint".
(issue #10039, reported by mitheloc, fixed by me)

........

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


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@72274 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-27 21:09:24 +00:00
bbryant
9367a00b38 Merged revisions 72260 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r72260 | bbryant | 2007-06-27 15:46:12 -0500 (Wed, 27 Jun 2007) | 12 lines

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

........
r72259 | bbryant | 2007-06-27 15:43:53 -0500 (Wed, 27 Jun 2007) | 4 lines

Fixes 100% load when controlling terminal disappears.

Issue #9654, #10010

........

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


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@72261 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-27 20:47:45 +00:00
file
500ed391c5 Merged revisions 72257 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r72257 | file | 2007-06-27 16:25:24 -0400 (Wed, 27 Jun 2007) | 10 lines

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

........
r72256 | file | 2007-06-27 16:23:24 -0400 (Wed, 27 Jun 2007) | 2 lines

I may possibly get shot for doing this... but... defer CDR processing until after the channel has been dealt with. This should eliminate all of the issues with channels going funky (SIP/PRI) when you are posting CDRs to a database that is either slow or unavailable and do not want to enable batching.

........

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


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@72258 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-27 20:26:53 +00:00
file
5bdb43d3e8 Fix up properties.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@72241 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-27 20:07:46 +00:00
file
acb998b38d Fix -T option. (issue #10073 reported by xylome)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@72233 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-27 19:57:36 +00:00
mmichelson
d69f3f4446 Adding feature to support the storage and retrieval of voicemail greetings using IMAP storage.
This feature may be turned on by adding imapgreetings=yes to the general section of voicemail.conf
voicemail.conf.sample has details on the options added.

As a result, IMAP storage now has RETRIEVE and DISPOSE macros defined.

In addition to the IMAP greeting changes, I also have added an enum for the voicemail folders
and so now the code should be easier to understand and maintain when it comes to this area.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@72232 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-27 19:50:21 +00:00
kpfleming
9ca6486a2f Merged revisions 72205 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r72205 | kpfleming | 2007-06-27 14:13:21 -0500 (Wed, 27 Jun 2007) | 2 lines

use the proper type for storing group number bits so that if someone specifies 'group=42' it will actually work instead of being silently ignored

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@72207 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-27 19:13:54 +00:00
qwell
148c7d5cca Merged revisions 72182 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r72182 | qwell | 2007-06-27 13:36:56 -0500 (Wed, 27 Jun 2007) | 4 lines

Fix another problem in voicemail with missing symbols.

Issue 10074, patch by kryptolus, extended to include #if 0'd blocks (just in case)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@72183 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-27 18:37:44 +00:00
file
fbe7def026 Merged revisions 72148 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r72148 | file | 2007-06-27 13:31:50 -0400 (Wed, 27 Jun 2007) | 2 lines

Make the ast_read_noaudio API call behave better under circumstances where DTMF emulation was happening and a generator was setup. (issue #10065 reported by stevefeinstein)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@72149 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-27 17:34:26 +00:00
qwell
c7c4b670f7 Merged revisions 72125 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r72125 | qwell | 2007-06-27 12:10:32 -0500 (Wed, 27 Jun 2007) | 4 lines

Don't modify a variable that we don't want modified.  Make a copy of it instead.

Issue 10029, patch by phsultan with slight modifications by me (to remove needless casts).

Note: chan_jingle in trunk does not appear to have the same bug.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@72134 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-27 17:14:31 +00:00
russell
6e96b01e27 Merged revisions 72112 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r72112 | russell | 2007-06-27 11:34:24 -0500 (Wed, 27 Jun 2007) | 3 lines

Only output debug information related to RTCP timestamps when RTCP debug
is turned on (issue #10066, patch by me)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@72113 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-27 16:38:12 +00:00
crichter
bfa7331627 Merged revisions 72042 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r72042 | crichter | 2007-06-27 09:58:06 +0200 (Mi, 27 Jun 2007) | 13 lines

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

........
r72040 | crichter | 2007-06-27 09:49:27 +0200 (Mi, 27 Jun 2007) | 1 line

for inbound TE calls, we setup the bchannel when we get the CONNECT_ACKNOWLEDGE, to make sure mISDN has everything ready. removed some #if 0 areas which weren't used anymore.
........
r72041 | crichter | 2007-06-27 09:54:30 +0200 (Mi, 27 Jun 2007) | 1 line

isdn_lib.c didn't compile
........

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


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@72052 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-27 08:08:58 +00:00
file
8093c0eaf9 Merged revisions 72006 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r72006 | file | 2007-06-26 20:58:35 -0400 (Tue, 26 Jun 2007) | 2 lines

Make unloading of pbx_dundi actually work.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@72007 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-27 01:00:47 +00:00
file
b401a5b5e5 Add rtpdest option to SIP CHANNEL() dialplan function to return the IP address and port that RTP (be it audio/video/text) is going to.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@71988 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-26 23:31:23 +00:00
mmichelson
d806540826 Merged revisions 71953 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r71953 | mmichelson | 2007-06-26 18:02:09 -0500 (Tue, 26 Jun 2007) | 4 lines

Removing a pointless line. This variable was already set earlier and between then and this
line, there is no way that the values on the right side of the assignment could have changed.


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@71954 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-26 23:03:09 +00:00
mmichelson
c96db6fb9f The variable msgnum was being overwritten if IMAP storage was enabled.
Put necessary #ifndef's around the line which would overwrite.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@71952 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-26 22:45:16 +00:00
qwell
cad3826385 Merged revisions 71915 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r71915 | qwell | 2007-06-26 15:36:09 -0500 (Tue, 26 Jun 2007) | 4 lines

Don't dereference a pointer that may be NULL here.

Issue 10017.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@71916 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-26 20:36:50 +00:00
mmichelson
2ebf1e8b73 Create directory if it does not exist.
(Closes issue 10061, Reported and patched by eliel)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@71914 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-26 20:34:46 +00:00
mmichelson
8c8f06edc1 Merged revisions 71877 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r71877 | mmichelson | 2007-06-26 14:00:05 -0500 (Tue, 26 Jun 2007) | 11 lines

A few changes, the ultimate goal of which is to keep better track of the number of messages
that a mailbox currently has. A description of the changes:

1. Changed the "updated" field of the vm_state struct to act more as a binary semaphore than a
   counting semaphore, since its current implementation made the inboxcount function not work properly.
   This change falls in line with a change made by UPenn with their IMAP setup and helps to sync our changes with theirs.
2. Eliminated some redundant calls to get_vm_state_by_mailbox inside leave_voicemail
3. Use the play_folder variable to keep track of the number of old and new messages in a mailbox as the messages are deleted
4. Added an increment to the number of new messages that was not there previously in the leave_voicemail function


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@71883 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-26 19:06:47 +00:00
qwell
93ada9c29b Simplify some code in res_jabber relating to SASL support.
Issue 9988, patch by phsultan.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@71830 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-26 16:39:22 +00:00
mmichelson
6fa9826c8b Merged revisions 71796 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r71796 | mmichelson | 2007-06-26 10:47:31 -0500 (Tue, 26 Jun 2007) | 5 lines

Fixing bug where the authuser was mistakenly pulled from the mailbox string instead
of the IMAP user.
(closes issue 10054, reported and patched by jaroth)


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@71797 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-26 15:50:11 +00:00
tilghman
7c5dab51d4 Merged revisions 71751 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r71751 | tilghman | 2007-06-26 07:27:47 -0500 (Tue, 26 Jun 2007) | 10 lines

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

........
r71750 | tilghman | 2007-06-26 07:25:58 -0500 (Tue, 26 Jun 2007) | 2 lines

Issue 10062 - Trying to move a message without selecting one first results in memory corruption

........

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


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@71752 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-26 12:30:59 +00:00
mmichelson
5f4c0aa103 Fixes a problem where Asterisk would not compile if IMAP_STORAGE was enabled.
Needed to add a space between file name and options.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@71732 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-26 00:10:09 +00:00
mmichelson
b6a5b5ea29 In my commit earlier today, I accidentally left a prototype that isn't defined.
This gets rid of that prototype.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@71721 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-25 23:18:19 +00:00
russell
9a940a47bc Allow compilation off app_voicemail with IMAP_STORAE against a system installed
version of the c-client library.  (issue #10047, jcollie)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@71688 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-25 19:20:07 +00:00
tilghman
e42ecf03f2 Merged revisions 71657 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r71657 | tilghman | 2007-06-25 13:14:59 -0500 (Mon, 25 Jun 2007) | 10 lines

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

........
r71656 | tilghman | 2007-06-25 13:12:37 -0500 (Mon, 25 Jun 2007) | 2 lines

Issue 10035 - handle_exec returns a result inconsistent with all of the other AGI commands

........

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


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@71658 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-25 18:20:18 +00:00
murf
65df373635 Luigi's suggestion to move the llfrom decl was a good one. Done.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@71637 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-25 16:43:33 +00:00
mmichelson
7b0a8a9e73 Using inboxcount instead of countmessages.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@71630 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-25 16:13:26 +00:00
file
f8bdb914c3 Tweak CLI command completion and some help text. (issue #10049 reported by IgorG)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@71613 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-25 15:35:10 +00:00
file
dfd569c434 Merged revisions 71576 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r71576 | file | 2007-06-25 10:13:45 -0400 (Mon, 25 Jun 2007) | 2 lines

Build a peer as well when hash323 is enabled in users.conf (issue #9599 reported by asagage)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@71577 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-25 14:15:05 +00:00
russell
6116c57c53 Convert so more logging to ast_debug (issue #10045, dimas)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@71557 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-25 13:42:51 +00:00
file
0d58f906de Merged revisions 71522 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r71522 | file | 2007-06-25 09:03:03 -0400 (Mon, 25 Jun 2007) | 2 lines

Minor tweak for queueing up the unhold frame... this will teach me to do bugs while half asleep. (issue #10046 reported by dimas)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@71525 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-25 13:04:36 +00:00
file
3fed670793 Minor header inclusion tweak for new usage of stat()
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@71521 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-25 13:00:49 +00:00
russell
f756583bda Merged revisions 71519 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r71519 | russell | 2007-06-25 07:40:06 -0500 (Mon, 25 Jun 2007) | 2 lines

Fix a typo in the Asterisk mib.  (issue #10048, Matti)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@71520 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-25 12:40:41 +00:00