Archived
14
0
Fork 0
Commit graph

12665 commits

Author SHA1 Message Date
russell
2e08c0f969 Store custom device states in astdb so that they will persist a restart. As a
side benefit, this simplifies the code a bit, too.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@79098 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-10 20:48:49 +00:00
file
cb993f31ec Bring up to date with poll changes.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@79074 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-10 18:37:32 +00:00
murf
43577177e7 Merged revisions 79049 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r79049 | murf | 2007-08-10 12:25:51 -0600 (Fri, 10 Aug 2007) | 1 line

Re bug behavior mentioned in #asterisk, made this tweak to code, to prevent hundreds of log messages from being generated
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@79068 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-10 18:35:15 +00:00
murf
a81456c8dd oops. forgot to commit the prop change on .
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@79063 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-10 18:33:03 +00:00
murf
0c621cb7b2 Merged revisions 79044 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r79044 | murf | 2007-08-10 11:43:49 -0600 (Fri, 10 Aug 2007) | 1 line

This will help debug; from a question asked on #asterisk
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@79045 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-10 17:48:19 +00:00
russell
58d5edca86 Merge a set of device state improvements from team/russell/events.
The way a device state change propagates is kind of silly, in my opinion.  A
device state provider calls a function that indicates that the state of a
device has changed.  Then, another thread goes back and calls a callback for
the device state provider to find out what the new state is before it can go
send it off to whoever cares.

I have changed it so that you can include the state that the device has changed
to in the first function call from the device state provider.  This removes the
need to have to call the callback, which locks up critical containers to go find
out what the state changed to.

This change set changes the "simple" device state providers to use the new method.
This includes parking, meetme, and SLA.

I have also mostly converted chan_agent in my branch, but still have some more
things to think through before presenting the plan for converting channel drivers
to ensure all of the right events get generated ...


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@79027 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-10 16:24:11 +00:00
russell
09a83ce0a8 Merged revisions 78995 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r78995 | russell | 2007-08-10 10:20:09 -0500 (Fri, 10 Aug 2007) | 4 lines

The last set of changes that I made to "core show locks" made it not able to
track mutexes unless they were declared using AST_MUTEX_DEFINE_STATIC.  Locks
initialized with ast_mutex_init() were not tracked.  It should work now.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@79005 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-10 15:29:31 +00:00
file
772405cdf0 Merged revisions 78955 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r78955 | file | 2007-08-10 11:15:53 -0300 (Fri, 10 Aug 2007) | 2 lines

Don't bother having the core pass through or emulate begin DTMF frames when in an ast_waitstream. It only cares about the end of DTMF.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78956 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-10 14:17:42 +00:00
file
d7dbf9a8e4 Merged revisions 78951 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r78951 | file | 2007-08-10 10:49:19 -0300 (Fri, 10 Aug 2007) | 4 lines

(closes issue #10422)
Reported by: bhowell
Add note to sample configuration about module load order and how it can cause perfectly good queue members to be marked as invalid.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78952 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-10 13:50:58 +00:00
mmichelson
8f488cee8f Merged revisions 78907 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r78907 | mmichelson | 2007-08-09 18:47:00 -0500 (Thu, 09 Aug 2007) | 4 lines

Improved a bit of logic regarding comma-separated mailboxes in has_voicemail. Also added some braces to some compound if statements
since unbraced if statements scare me in general.


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78908 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-09 23:49:05 +00:00
murf
75d18809fa Merged revisions 78891 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r78891 | murf | 2007-08-09 17:10:46 -0600 (Thu, 09 Aug 2007) | 1 line

This fixes bug 10416; thanks to mvanbaak for the pretty output
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78906 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-09 23:32:23 +00:00
mmichelson
7ba7aeb52b Blocked revisions 78860 via svnmerge
........
r78860 | mmichelson | 2007-08-09 17:03:48 -0500 (Thu, 09 Aug 2007) | 3 lines

Removing some extra debug code I left in my last commit


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78862 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-09 22:19:45 +00:00
mmichelson
f4989d587d Merged revisions 78859 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r78859 | mmichelson | 2007-08-09 16:51:17 -0500 (Thu, 09 Aug 2007) | 9 lines

Quite a few changes regarding IMAP storage.

1. instead of using inboxcount as the core message counting function, we use messagecount instead. This makes it possible to count messages in folders besides just INBOX and Old.
2. inboxcount and hasvoicemail now use messagecount as their means of determining return values.
3. Added a copy_message function for IMAP storage. Unfortunately I don't have the means to test it, but it seems like a pretty straightforward function.
4. Removed a #ifndef IMAP_STORAGE and matching #endif from leave_voicemail for a couple of reasons. One, we want to support copying mail to multiple IMAP boxes, and two, IMAP was
   broken because a STORE macro had been moved into this section of code.


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78861 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-09 22:18:23 +00:00
russell
ba8c937c7e Don't use strncpy for moving a chunk of memory to another that is overlapping.
This was found by running Asterisk under valgrind.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78829 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-09 20:07:59 +00:00
mmichelson
053dc62d16 Blocked revisions 78826 via svnmerge
........
r78826 | mmichelson | 2007-08-09 14:52:43 -0500 (Thu, 09 Aug 2007) | 3 lines

I broke canreinvite...Now I'm fixing it. I put some new code in the wrong place and so I've reverted the canreinvite section to how it was and put my new code where it should be.


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78828 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-09 20:07:32 +00:00
russell
24aa12a370 When looking up a mailbox, use the default context if not specified as something else
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78824 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-09 19:35:07 +00:00
russell
633c98f1bc Restore the ability to have multiple mailboxes listed for the mailbox option
in sip.conf.  chan_sip now maintains separate internal MWI subscriptions for
each one.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78807 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-09 19:11:53 +00:00
russell
255bc22905 Merged revisions 78778 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r78778 | russell | 2007-08-09 12:58:31 -0500 (Thu, 09 Aug 2007) | 1 line

add a comment to indicate that inboxcount for ODBC_STORAGE needs to be fixed to support multiple mailboxes
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78779 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-09 17:59:06 +00:00
russell
c2466b2ad2 Merged revisions 78749 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r78749 | russell | 2007-08-09 12:24:40 -0500 (Thu, 09 Aug 2007) | 9 lines

Fix subscriptions to multiple mailboxes for ODBC_STORAGE.  Also, leave a
comment for this to be fixed for IMAP_STORAGE, as well.  I left IMAP alone
since I know MarkM was working on this code right now for another reason.

This is broken even worse in trunk, but for a different reason.  The fact
that the mailbox option supported multiple mailboxes is completely not obvious
from the code in the channel drivers.  Anyway, I will fix that in another
commit ...

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78750 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-09 17:25:09 +00:00
russell
5448fa9f9e Fix a problem that I had introduced into MWI handling. I had ignored
the mailbox context.  Now, all related MWI event dealings pay attention
to the context as well.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78747 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-09 17:07:36 +00:00
russell
91b102ecad Merged revisions 78717 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r78717 | russell | 2007-08-09 11:12:57 -0500 (Thu, 09 Aug 2007) | 7 lines

Fix a problem with the combination of the 'F' option to pass DTMF through a
conference and options that use DTMF to activate various features.  The problem
was that the BEGIN frame would be passed through, but the END frame would get
intercepted to activate a feature.  Then, the other conference members would hear
DTMF for forever, which they didn't seem to like very much.
(closes issue #10400, reported by stevefeinstein, fixed by me)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78718 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-09 16:13:26 +00:00
file
0b76ea599a Regenerate configure script. This actually just updated the revision number... since my last merge changed it to an older number, while it was in fact generated from a much newer revision.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78686 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-08 22:05:45 +00:00
file
30a230172d Minor fix for building under dev mode when byteswapping macro header files are not available.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78685 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-08 21:58:12 +00:00
file
a4803d15a2 Add support for using epoll instead of poll. This should increase scalability and is done in such a way that we should be able to add support for other poll() replacements.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78683 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-08 21:44:58 +00:00
file
21b3ffbe75 HAVEL_SS7 should be HAVE_SS7. Reported by kwallace.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78679 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-08 20:49:07 +00:00
file
ce30d7306b Merge audiohooks branch into trunk. This is a new API for developers to listen and manipulate the audio going through a channel.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78649 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-08 19:30:52 +00:00
qwell
3472e5897e Merged revisions 78646 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r78646 | qwell | 2007-08-08 14:29:42 -0500 (Wed, 08 Aug 2007) | 2 lines

Fix mogs email address.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78648 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-08 19:30:33 +00:00
file
ef6eae917d Correct spelling. s/threaads/threads/
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78637 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-08 19:03:46 +00:00
mmichelson
ff6d50d6e7 Blocked revisions 78620 via svnmerge
........
r78620 | mmichelson | 2007-08-08 13:16:49 -0500 (Wed, 08 Aug 2007) | 4 lines

Fixed some compiler warnings so that compiling with dev-mode and IMAP storage would not have any errors.
This section of code may get changed again shortly since my change uncovers a rather silly bit of logic.


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78635 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-08 18:34:16 +00:00
mmichelson
880dd4fc79 Merged revisions 78575 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r78575 | mmichelson | 2007-08-08 09:26:36 -0500 (Wed, 08 Aug 2007) | 4 lines

Changing a bit of logic so that someone will NEVER exit the queue on timeout unless they have enabled the 'n' option.
This commit relates to issue #10320. Thanks to jfitzgibbon for detailing the idea behind this code change.


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78590 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-08 14:34:10 +00:00
file
74bdec43b2 Merged revisions 78569 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r78569 | file | 2007-08-08 10:51:01 -0300 (Wed, 08 Aug 2007) | 4 lines

(closes issue #10335)
Reported by: adamgundy
Update sip.conf to include another scenario where directrtpsetup will fail.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78570 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-08 13:52:13 +00:00
russell
595d13f876 Add another big set of doxygen documentation improvements from snuffy.
(closes issue #9892)
(closes issue #10395)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78541 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-07 23:04:01 +00:00
file
9d14a34591 Use the linkedlists.h macros for the manager action list.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78521 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-07 22:13:40 +00:00
russell
a1906a3e95 Merged revisions 78488 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r78488 | russell | 2007-08-07 15:57:54 -0500 (Tue, 07 Aug 2007) | 2 lines

Fix the build of this module on 64-bit platforms

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78489 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-07 21:00:10 +00:00
mmichelson
6959a3e059 Merged revisions 78450 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r78450 | mmichelson | 2007-08-07 14:43:57 -0500 (Tue, 07 Aug 2007) | 5 lines

The logic behind inboxcount's return value was reversed in has_voicemail and message_count.

(closes issue #10401, reported by st1710, patched by me)


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78451 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-07 19:44:46 +00:00
tilghman
dd628b516c Merged revisions 78437 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r78437 | tilghman | 2007-08-07 14:34:25 -0500 (Tue, 07 Aug 2007) | 2 lines

Don't free the environment handle when the connection fails, because other connections might be depending upon it

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78442 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-07 19:36:17 +00:00
qwell
e319e469fb Blocked revisions 78416 via svnmerge
........
r78416 | qwell | 2007-08-07 14:11:50 -0500 (Tue, 07 Aug 2007) | 1 line

Allow chan_sip to build in devmode
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78418 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-07 19:17:02 +00:00
tilghman
be78d8745c Merged revisions 78415 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r78415 | tilghman | 2007-08-07 14:09:38 -0500 (Tue, 07 Aug 2007) | 2 lines

Reconnection doesn't happen automatically when a DB goes down (fixes issue #9389)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78417 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-07 19:14:45 +00:00
qwell
12fd31de8b Merged revisions 78375 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r78375 | qwell | 2007-08-07 13:25:15 -0500 (Tue, 07 Aug 2007) | 3 lines

Properly check the capabilities count to avoid a segfault.
(ASA-2007-019)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78378 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-07 18:26:19 +00:00
russell
a4b09e8d28 Merged revisions 78371 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r78371 | russell | 2007-08-07 12:45:30 -0500 (Tue, 07 Aug 2007) | 12 lines

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

........
r78370 | russell | 2007-08-07 12:44:04 -0500 (Tue, 07 Aug 2007) | 4 lines

Revert patch committed for issue #9660.  It broke E&M trunks.
(closes issue #10360)
(closes issue #10364)

........

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


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78372 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-07 17:46:00 +00:00
file
5c63d5ac16 Can't forget outsignaling!
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78347 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-07 16:17:08 +00:00
file
4d4645bc66 Just for jsmith... make signaling a valid option that acts like signalling.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78346 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-07 16:09:27 +00:00
russell
879a7bfa16 Remove some test code from trunk as it doesn't need to be here. I'm just
going to keep it with a bunch of other changes i have sitting in a branch.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78342 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-07 16:04:03 +00:00
file
c91b9c0d2a (closes issue #10225)
Reported by: klaus3000
Clean up AST_FORMAT_LIST list. It may have mattered in the old days to have undefined entries but these days it does not.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78338 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-07 15:40:43 +00:00
qwell
91a236213c Add a TalkingToChan to the response of the "agents" manager action.
This is similar to the existing "talking to" that you see what using the "agent show" CLI command.

Closes issue #10102


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78312 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-06 23:00:35 +00:00
file
16644dc35c Fix bug where a NULL timeout would make things explode if SendDTMF was called with it.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78279 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-06 21:59:32 +00:00
file
e8820a0491 Extend the ast_senddigit and ast_dtmf_stream API calls to allow the duration of the DTMF digit(s) to be specified and make the SendDTMF application have the capability to use it.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78278 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-06 21:52:30 +00:00
file
6f3cf2396f Merged revisions 78275 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r78275 | file | 2007-08-06 18:41:13 -0300 (Mon, 06 Aug 2007) | 2 lines

Add additional DTMF log messages to help when debugging issues.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78276 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-06 21:43:09 +00:00
russell
858fd60436 Merged revisions 78242 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r78242 | russell | 2007-08-06 15:44:09 -0500 (Mon, 06 Aug 2007) | 4 lines

Fix an issue where dynamic threads can get free'd, but still exist in the 
dynamic thread list.
(closes issue #10392, patch from Mihai, with credit to his colleague, Pete)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78243 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-06 20:45:09 +00:00
dbailey
aea3c1d33f Change the fsk filter used in CID and TDD decode to an integer based implementation
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78227 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-06 19:52:40 +00:00