asterisk/asterisk.git
12 years agomvanbaak asks: why did you include that twice? Answer: dunno. removed redundant include
Steve Murphy [Thu, 16 Aug 2007 17:34:50 +0000 (17:34 +0000)]
mvanbaak asks: why did you include that twice? Answer: dunno. removed redundant include

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@79719 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agosvn did me dirty for some reason. Left 5 files out of the commit; Tilghman copied...
Steve Murphy [Thu, 16 Aug 2007 16:50:58 +0000 (16:50 +0000)]
svn did me dirty for some reason. Left 5 files out of the commit; Tilghman copied them in from the branch, but I had made changes to these. Here they are.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@79714 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 79690 via svnmerge from
Mark Michelson [Thu, 16 Aug 2007 15:59:15 +0000 (15:59 +0000)]
Merged revisions 79690 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r79690 | mmichelson | 2007-08-16 10:58:34 -0500 (Thu, 16 Aug 2007) | 5 lines

base_encode is not trying to open a log file, so we should not call it a log file in the warning.

(related to issue #10452, reported by bcnit)

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@79691 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years ago(closes issue #10467)
Joshua Colp [Thu, 16 Aug 2007 15:29:44 +0000 (15:29 +0000)]
(closes issue #10467)
Reported by: lunn
Patches:
      pbx_dundi.diff uploaded by lunn (license 179)
Don't print a warning saying an ethernet interface was found when it indeed was.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@79688 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMake conf2ael build on 64-bit systems.
Joshua Colp [Thu, 16 Aug 2007 15:27:33 +0000 (15:27 +0000)]
Make conf2ael build on 64-bit systems.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@79687 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 79665 via svnmerge from
Philippe Sultan [Thu, 16 Aug 2007 09:45:22 +0000 (09:45 +0000)]
Merged revisions 79665 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r79665 | phsultan | 2007-08-16 11:37:10 +0200 (Thu, 16 Aug 2007) | 21 lines

A fix for two critical problems detected while working with Daniel
McKeehan in issue #10184.

Upon priority change, the resource list is not NULL terminated when
moving an item to the end of the list. This makes Asterisk endlessy
loop whenever it needs to read the list. Jids with different resource and
priority values, like in Gmail's and GoogleTalk's jabber clients put
that problem in evidence.

Upon reception of a 'from' attribute with an empty resource string,
Asterisk crashes when trying to access the found->cap pointer if the
resource list for the given buddy is not empty. This situation is
perfectly valid and must be handled. The Gizmoproject's jabber client
put that problem in evidence.

Also added a few comments in the code as well as a handle for the
capabilities from Gmail's jabber client, which are stored in a caps:c tag
rather than the usual c tag.

Closes issue #10184.

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@79666 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 79642 via svnmerge from
Christian Richter [Thu, 16 Aug 2007 09:22:23 +0000 (09:22 +0000)]
Merged revisions 79642 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r79642 | crichter | 2007-08-16 10:21:21 +0200 (Do, 16 Aug 2007) | 1 line

0x80 + protocol is wrong for USERUSER when we want to send IA5 Chars.
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@79660 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoDoc change
Olle Johansson [Thu, 16 Aug 2007 06:52:17 +0000 (06:52 +0000)]
Doc change

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@79638 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoModify the names of functions/variables in res_musiconhold to be useful.
Jason Parker [Wed, 15 Aug 2007 22:53:45 +0000 (22:53 +0000)]
Modify the names of functions/variables in res_musiconhold to be useful.

Closes issue #10464, patch by caio1982

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@79634 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMissing from murf's last trunk commit, which was why trunk won't compile
Tilghman Lesher [Wed, 15 Aug 2007 21:25:13 +0000 (21:25 +0000)]
Missing from murf's last trunk commit, which was why trunk won't compile

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@79623 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoRemove properties that appeared from Steve's last branch merge. Automerge has already...
Joshua Colp [Wed, 15 Aug 2007 19:34:42 +0000 (19:34 +0000)]
Remove properties that appeared from Steve's last branch merge. Automerge has already run so everyone's branches based off of trunk are probably toast by now.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@79611 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoThis commit closes bug 7605, and half-closes 7638. The AEL code has been redistribute...
Steve Murphy [Wed, 15 Aug 2007 19:21:27 +0000 (19:21 +0000)]
This commit closes bug 7605, and half-closes 7638. The AEL code has been redistributed/repartitioned to allow code re-use both inside and outside of Asterisk. This commit introduces the utils/conf2ael program, and an external config-file reader, for both normal config files, and for extensions.conf (context, exten, prio); It provides an API for programs outside of asterisk to use to play with the dialplan and config files.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@79595 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 79553 via svnmerge from
Joshua Colp [Wed, 15 Aug 2007 14:42:49 +0000 (14:42 +0000)]
Merged revisions 79553 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r79553 | file | 2007-08-15 11:40:23 -0300 (Wed, 15 Aug 2007) | 6 lines

(closes issue #10440)
Reported by: irroot
(closes issue #10454)
Reported by: flo_turc
Increase maximum timestamp skew to 120. 20 was apparently far too low.

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@79558 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 79527 via svnmerge from
Mark Michelson [Wed, 15 Aug 2007 14:27:35 +0000 (14:27 +0000)]
Merged revisions 79527 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r79527 | mmichelson | 2007-08-15 09:26:40 -0500 (Wed, 15 Aug 2007) | 5 lines

Fixed an error in the Russian language voicemail intro.

(issue #10458, reported and patched by Oleh)

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@79529 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 79523 via svnmerge from
Joshua Colp [Wed, 15 Aug 2007 14:20:36 +0000 (14:20 +0000)]
Merged revisions 79523 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r79523 | file | 2007-08-15 11:18:44 -0300 (Wed, 15 Aug 2007) | 6 lines

(closes issue #10456)
Reported by: irroot
Patches:
      sip_timeout.patch uploaded by irroot (license 52)
Change hardcoded timer value to defined value. I'm doing this in 1.4 as well so if it needs to be changed in the future this place would not have been forgotten.

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@79524 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 78936 via svnmerge from
Christian Richter [Wed, 15 Aug 2007 11:27:51 +0000 (11:27 +0000)]
Merged revisions 78936 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r78936 | crichter | 2007-08-10 15:24:03 +0200 (Fr, 10 Aug 2007) | 1 line

fixed a bug with the useruser information element. We send them now also in the disconnect message.
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@79507 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 79470 via svnmerge from
Russell Bryant [Tue, 14 Aug 2007 18:50:12 +0000 (18:50 +0000)]
Merged revisions 79470 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r79470 | russell | 2007-08-14 13:49:10 -0500 (Tue, 14 Aug 2007) | 2 lines

Fix another spot where an iax2_peer would be leaked if realtime was in use.

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@79471 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 79436 via svnmerge from
Russell Bryant [Tue, 14 Aug 2007 17:33:12 +0000 (17:33 +0000)]
Merged revisions 79436 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r79436 | russell | 2007-08-14 12:31:39 -0500 (Tue, 14 Aug 2007) | 3 lines

Fix some memory leaks throughout chan_iax2 related to the use of realtime.
I found these while working on iax2_peer object reference tracking.

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@79437 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 79397 via svnmerge from
Joshua Colp [Tue, 14 Aug 2007 15:30:03 +0000 (15:30 +0000)]
Merged revisions 79397 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r79397 | file | 2007-08-14 12:27:13 -0300 (Tue, 14 Aug 2007) | 4 lines

(closes issue #10415)
Reported by: atis
Revert fix for #10327 as it causes more issues then it solves.

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@79403 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 79255 via svnmerge from
Steve Murphy [Tue, 14 Aug 2007 14:32:21 +0000 (14:32 +0000)]
Merged revisions 79255 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r79255 | murf | 2007-08-13 11:49:54 -0600 (Mon, 13 Aug 2007) | 1 line

This patch fixes bug 10411. I added a new regression test, some regression test cleanups
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@79392 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years ago(closes issue #10427)
Joshua Colp [Tue, 14 Aug 2007 14:17:43 +0000 (14:17 +0000)]
(closes issue #10427)
Reported by: pj
Two of the three places ast_waitfor_nandfds could branch off to did not clear outfd and exception. If the calling function did not clear these there was a chance they could get a false positive on testing to see whether they were set.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@79379 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoDon't ask me why, but waitfordigit will immediately return a 1 on my system, unless...
Steve Murphy [Tue, 14 Aug 2007 13:46:58 +0000 (13:46 +0000)]
Don't ask me why, but waitfordigit will immediately return a 1 on my system, unless the outfd is initialized to -1 before calling the nandfds func

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@79378 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 79334 via svnmerge from
Joshua Colp [Mon, 13 Aug 2007 21:59:15 +0000 (21:59 +0000)]
Merged revisions 79334 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r79334 | file | 2007-08-13 18:57:20 -0300 (Mon, 13 Aug 2007) | 2 lines

Instead of accepting a single DTMF character accept a full string.

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@79335 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoOnly use the sanitysql if it's not zero-len
Tilghman Lesher [Mon, 13 Aug 2007 21:44:22 +0000 (21:44 +0000)]
Only use the sanitysql if it's not zero-len

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@79333 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 79301 via svnmerge from
Russell Bryant [Mon, 13 Aug 2007 20:40:47 +0000 (20:40 +0000)]
Merged revisions 79301 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r79301 | russell | 2007-08-13 15:37:50 -0500 (Mon, 13 Aug 2007) | 3 lines

Don't call find_peer in registry_authrequest with the pvt lock held to avoid a
deadlock.

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@79306 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 79276 via svnmerge from
Russell Bryant [Mon, 13 Aug 2007 20:20:43 +0000 (20:20 +0000)]
Merged revisions 79276 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r79276 | russell | 2007-08-13 15:18:30 -0500 (Mon, 13 Aug 2007) | 4 lines

Release the pvt lock before calling find_peer in register_verify to avoid a
deadlock.  Also, remove some unnecessary locking in auth_fail that was only done
recursively.

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@79277 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 79274 via svnmerge from
Russell Bryant [Mon, 13 Aug 2007 20:06:19 +0000 (20:06 +0000)]
Merged revisions 79274 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r79274 | russell | 2007-08-13 15:02:57 -0500 (Mon, 13 Aug 2007) | 3 lines

Don't call find_peer within update_registry with a pvt lock held.  This can
cause a deadlock as the code will eventually call find_callno.

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@79275 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 79272 via svnmerge from
Russell Bryant [Mon, 13 Aug 2007 19:29:30 +0000 (19:29 +0000)]
Merged revisions 79272 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r79272 | russell | 2007-08-13 14:27:39 -0500 (Mon, 13 Aug 2007) | 9 lines

I am fighting deadlocks in chan_iax2.  I have tracked them down to a single
core issue.  You can not call find_callno() while holding a pvt lock as this
function has to lock another (every) other pvt lock.  Doing so can lead to a
classic deadlock.  So, I am tracking down all of the code paths where this
can happen and fixing them.

The fix I committed earlier today was along the same theme.  This patch fixes
some code down the path of authenticate_reply.

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@79273 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoAllow non-realtime queues to have realtime members
Mark Michelson [Mon, 13 Aug 2007 15:39:48 +0000 (15:39 +0000)]
Allow non-realtime queues to have realtime members

(issue #10424, reported and patched by irroot)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@79238 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 79214 via svnmerge from
Russell Bryant [Mon, 13 Aug 2007 15:32:05 +0000 (15:32 +0000)]
Merged revisions 79214 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r79214 | russell | 2007-08-13 10:28:13 -0500 (Mon, 13 Aug 2007) | 4 lines

Fix a potential deadlock in socket_process.  check_provisioning can eventually
call find_callno.  You can't hold a pvt lock while calling find_callno because
it goes through and locks every single one looking for a match.

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@79222 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 79207 via svnmerge from
Joshua Colp [Mon, 13 Aug 2007 14:55:17 +0000 (14:55 +0000)]
Merged revisions 79207 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r79207 | file | 2007-08-13 11:51:09 -0300 (Mon, 13 Aug 2007) | 2 lines

Add an API call to allow the engine to know that DTMF was received.

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@79208 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoconstify the return value of reason2str
Russell Bryant [Mon, 13 Aug 2007 14:23:38 +0000 (14:23 +0000)]
constify the return value of reason2str

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@79176 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 79174 via svnmerge from
Joshua Colp [Mon, 13 Aug 2007 14:22:46 +0000 (14:22 +0000)]
Merged revisions 79174 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r79174 | file | 2007-08-13 11:18:04 -0300 (Mon, 13 Aug 2007) | 4 lines

(closes issue #10437)
Reported by: haklin
Don't set the callerid name and number a second time on a newly created channel. ast_channel_alloc itself already sets it and setting it twice would cause a memory leak.

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@79175 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 79142 via svnmerge from
Tilghman Lesher [Sat, 11 Aug 2007 05:28:08 +0000 (05:28 +0000)]
Merged revisions 79142 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r79142 | tilghman | 2007-08-11 00:23:04 -0500 (Sat, 11 Aug 2007) | 2 lines

Ensure the connection gets marked as used at allocation time (closes issue #10429, report and fix by mnicholson)

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@79147 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoUse localized softkey labels.
Jason Parker [Fri, 10 Aug 2007 21:29:31 +0000 (21:29 +0000)]
Use localized softkey labels.

Add some information about localization "codes".

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@79109 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 79099 via svnmerge from
Steve Murphy [Fri, 10 Aug 2007 21:03:06 +0000 (21:03 +0000)]
Merged revisions 79099 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r79099 | murf | 2007-08-10 14:53:43 -0600 (Fri, 10 Aug 2007) | 1 line

From a user complaint on #asterisk, I have forced pbx_spool to explain what reason codes mean, when they are logged
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@79100 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoStore custom device states in astdb so that they will persist a restart. As a
Russell Bryant [Fri, 10 Aug 2007 20:48:49 +0000 (20:48 +0000)]
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: https://origsvn.digium.com/svn/asterisk/trunk@79098 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoBring up to date with poll changes.
Joshua Colp [Fri, 10 Aug 2007 18:37:32 +0000 (18:37 +0000)]
Bring up to date with poll changes.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@79074 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 79049 via svnmerge from
Steve Murphy [Fri, 10 Aug 2007 18:35:15 +0000 (18:35 +0000)]
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: https://origsvn.digium.com/svn/asterisk/trunk@79068 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agooops. forgot to commit the prop change on .
Steve Murphy [Fri, 10 Aug 2007 18:33:03 +0000 (18:33 +0000)]
oops. forgot to commit the prop change on .

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@79063 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 79044 via svnmerge from
Steve Murphy [Fri, 10 Aug 2007 17:48:19 +0000 (17:48 +0000)]
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: https://origsvn.digium.com/svn/asterisk/trunk@79045 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerge a set of device state improvements from team/russell/events.
Russell Bryant [Fri, 10 Aug 2007 16:24:11 +0000 (16:24 +0000)]
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: https://origsvn.digium.com/svn/asterisk/trunk@79027 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 78995 via svnmerge from
Russell Bryant [Fri, 10 Aug 2007 15:29:31 +0000 (15:29 +0000)]
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: https://origsvn.digium.com/svn/asterisk/trunk@79005 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 78955 via svnmerge from
Joshua Colp [Fri, 10 Aug 2007 14:17:42 +0000 (14:17 +0000)]
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: https://origsvn.digium.com/svn/asterisk/trunk@78956 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 78951 via svnmerge from
Joshua Colp [Fri, 10 Aug 2007 13:50:58 +0000 (13:50 +0000)]
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: https://origsvn.digium.com/svn/asterisk/trunk@78952 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 78907 via svnmerge from
Mark Michelson [Thu, 9 Aug 2007 23:49:05 +0000 (23:49 +0000)]
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: https://origsvn.digium.com/svn/asterisk/trunk@78908 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 78891 via svnmerge from
Steve Murphy [Thu, 9 Aug 2007 23:32:23 +0000 (23:32 +0000)]
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: https://origsvn.digium.com/svn/asterisk/trunk@78906 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoBlocked revisions 78860 via svnmerge
Mark Michelson [Thu, 9 Aug 2007 22:19:45 +0000 (22:19 +0000)]
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: https://origsvn.digium.com/svn/asterisk/trunk@78862 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 78859 via svnmerge from
Mark Michelson [Thu, 9 Aug 2007 22:18:23 +0000 (22:18 +0000)]
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: https://origsvn.digium.com/svn/asterisk/trunk@78861 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoDon't use strncpy for moving a chunk of memory to another that is overlapping.
Russell Bryant [Thu, 9 Aug 2007 20:07:59 +0000 (20:07 +0000)]
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: https://origsvn.digium.com/svn/asterisk/trunk@78829 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoBlocked revisions 78826 via svnmerge
Mark Michelson [Thu, 9 Aug 2007 20:07:32 +0000 (20:07 +0000)]
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: https://origsvn.digium.com/svn/asterisk/trunk@78828 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoWhen looking up a mailbox, use the default context if not specified as something...
Russell Bryant [Thu, 9 Aug 2007 19:35:07 +0000 (19:35 +0000)]
When looking up a mailbox, use the default context if not specified as something else

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@78824 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoRestore the ability to have multiple mailboxes listed for the mailbox option
Russell Bryant [Thu, 9 Aug 2007 19:11:53 +0000 (19:11 +0000)]
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: https://origsvn.digium.com/svn/asterisk/trunk@78807 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 78778 via svnmerge from
Russell Bryant [Thu, 9 Aug 2007 17:59:06 +0000 (17:59 +0000)]
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: https://origsvn.digium.com/svn/asterisk/trunk@78779 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 78749 via svnmerge from
Russell Bryant [Thu, 9 Aug 2007 17:25:09 +0000 (17:25 +0000)]
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: https://origsvn.digium.com/svn/asterisk/trunk@78750 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoFix a problem that I had introduced into MWI handling. I had ignored
Russell Bryant [Thu, 9 Aug 2007 17:07:36 +0000 (17:07 +0000)]
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: https://origsvn.digium.com/svn/asterisk/trunk@78747 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 78717 via svnmerge from
Russell Bryant [Thu, 9 Aug 2007 16:13:26 +0000 (16:13 +0000)]
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: https://origsvn.digium.com/svn/asterisk/trunk@78718 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoRegenerate configure script. This actually just updated the revision number... since...
Joshua Colp [Wed, 8 Aug 2007 22:05:45 +0000 (22:05 +0000)]
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: https://origsvn.digium.com/svn/asterisk/trunk@78686 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMinor fix for building under dev mode when byteswapping macro header files are not...
Joshua Colp [Wed, 8 Aug 2007 21:58:12 +0000 (21:58 +0000)]
Minor fix for building under dev mode when byteswapping macro header files are not available.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@78685 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoAdd support for using epoll instead of poll. This should increase scalability and...
Joshua Colp [Wed, 8 Aug 2007 21:44:58 +0000 (21:44 +0000)]
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: https://origsvn.digium.com/svn/asterisk/trunk@78683 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoHAVEL_SS7 should be HAVE_SS7. Reported by kwallace.
Joshua Colp [Wed, 8 Aug 2007 20:49:07 +0000 (20:49 +0000)]
HAVEL_SS7 should be HAVE_SS7. Reported by kwallace.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@78679 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerge audiohooks branch into trunk. This is a new API for developers to listen and...
Joshua Colp [Wed, 8 Aug 2007 19:30:52 +0000 (19:30 +0000)]
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: https://origsvn.digium.com/svn/asterisk/trunk@78649 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 78646 via svnmerge from
Jason Parker [Wed, 8 Aug 2007 19:30:33 +0000 (19:30 +0000)]
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: https://origsvn.digium.com/svn/asterisk/trunk@78648 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoCorrect spelling. s/threaads/threads/
Joshua Colp [Wed, 8 Aug 2007 19:03:46 +0000 (19:03 +0000)]
Correct spelling. s/threaads/threads/

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@78637 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoBlocked revisions 78620 via svnmerge
Mark Michelson [Wed, 8 Aug 2007 18:34:16 +0000 (18:34 +0000)]
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: https://origsvn.digium.com/svn/asterisk/trunk@78635 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 78575 via svnmerge from
Mark Michelson [Wed, 8 Aug 2007 14:34:10 +0000 (14:34 +0000)]
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: https://origsvn.digium.com/svn/asterisk/trunk@78590 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 78569 via svnmerge from
Joshua Colp [Wed, 8 Aug 2007 13:52:13 +0000 (13:52 +0000)]
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: https://origsvn.digium.com/svn/asterisk/trunk@78570 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoAdd another big set of doxygen documentation improvements from snuffy.
Russell Bryant [Tue, 7 Aug 2007 23:04:01 +0000 (23:04 +0000)]
Add another big set of doxygen documentation improvements from snuffy.
(closes issue #9892)
(closes issue #10395)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@78541 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoUse the linkedlists.h macros for the manager action list.
Joshua Colp [Tue, 7 Aug 2007 22:13:40 +0000 (22:13 +0000)]
Use the linkedlists.h macros for the manager action list.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@78521 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 78488 via svnmerge from
Russell Bryant [Tue, 7 Aug 2007 21:00:10 +0000 (21:00 +0000)]
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: https://origsvn.digium.com/svn/asterisk/trunk@78489 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 78450 via svnmerge from
Mark Michelson [Tue, 7 Aug 2007 19:44:46 +0000 (19:44 +0000)]
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: https://origsvn.digium.com/svn/asterisk/trunk@78451 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 78437 via svnmerge from
Tilghman Lesher [Tue, 7 Aug 2007 19:36:17 +0000 (19:36 +0000)]
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: https://origsvn.digium.com/svn/asterisk/trunk@78442 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoBlocked revisions 78416 via svnmerge
Jason Parker [Tue, 7 Aug 2007 19:17:02 +0000 (19:17 +0000)]
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: https://origsvn.digium.com/svn/asterisk/trunk@78418 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 78415 via svnmerge from
Tilghman Lesher [Tue, 7 Aug 2007 19:14:45 +0000 (19:14 +0000)]
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: https://origsvn.digium.com/svn/asterisk/trunk@78417 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 78375 via svnmerge from
Jason Parker [Tue, 7 Aug 2007 18:26:19 +0000 (18:26 +0000)]
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: https://origsvn.digium.com/svn/asterisk/trunk@78378 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 78371 via svnmerge from
Russell Bryant [Tue, 7 Aug 2007 17:46:00 +0000 (17:46 +0000)]
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: https://origsvn.digium.com/svn/asterisk/trunk@78372 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoCan't forget outsignaling!
Joshua Colp [Tue, 7 Aug 2007 16:17:08 +0000 (16:17 +0000)]
Can't forget outsignaling!

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@78347 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoJust for jsmith... make signaling a valid option that acts like signalling.
Joshua Colp [Tue, 7 Aug 2007 16:09:27 +0000 (16:09 +0000)]
Just for jsmith... make signaling a valid option that acts like signalling.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@78346 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoRemove some test code from trunk as it doesn't need to be here. I'm just
Russell Bryant [Tue, 7 Aug 2007 16:04:03 +0000 (16:04 +0000)]
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: https://origsvn.digium.com/svn/asterisk/trunk@78342 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years ago(closes issue #10225)
Joshua Colp [Tue, 7 Aug 2007 15:40:43 +0000 (15:40 +0000)]
(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: https://origsvn.digium.com/svn/asterisk/trunk@78338 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoAdd a TalkingToChan to the response of the "agents" manager action.
Jason Parker [Mon, 6 Aug 2007 23:00:35 +0000 (23:00 +0000)]
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: https://origsvn.digium.com/svn/asterisk/trunk@78312 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoFix bug where a NULL timeout would make things explode if SendDTMF was called with it.
Joshua Colp [Mon, 6 Aug 2007 21:59:32 +0000 (21:59 +0000)]
Fix bug where a NULL timeout would make things explode if SendDTMF was called with it.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@78279 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoExtend the ast_senddigit and ast_dtmf_stream API calls to allow the duration of the...
Joshua Colp [Mon, 6 Aug 2007 21:52:30 +0000 (21:52 +0000)]
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: https://origsvn.digium.com/svn/asterisk/trunk@78278 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 78275 via svnmerge from
Joshua Colp [Mon, 6 Aug 2007 21:43:09 +0000 (21:43 +0000)]
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: https://origsvn.digium.com/svn/asterisk/trunk@78276 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 78242 via svnmerge from
Russell Bryant [Mon, 6 Aug 2007 20:45:09 +0000 (20:45 +0000)]
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: https://origsvn.digium.com/svn/asterisk/trunk@78243 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoChange the fsk filter used in CID and TDD decode to an integer based implementation
Doug Bailey [Mon, 6 Aug 2007 19:52:40 +0000 (19:52 +0000)]
Change the fsk filter used in CID and TDD decode to an integer based implementation

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@78227 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoFixing a compiler warning which warns that a variable may be used unitialized. Thanks...
Mark Michelson [Mon, 6 Aug 2007 17:51:09 +0000 (17:51 +0000)]
Fixing a compiler warning which warns that a variable may be used unitialized. Thanks to mvanbaak for pointing this out.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@78192 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 78103 via svnmerge from
Mark Michelson [Mon, 6 Aug 2007 16:54:51 +0000 (16:54 +0000)]
Merged revisions 78103 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r78103 | mmichelson | 2007-08-03 15:25:22 -0500 (Fri, 03 Aug 2007) | 7 lines

Changed the behavior of sip's realtime_peer function to match the corresponding way of matching for non-realtime peers.
Now matches are made on both the IP address and port number, or if the insecure setting is set to "port" then just match on the
IP address.

In order to accomplish this, I also added a new API call, ast_category_root, which returns the first variable of an ast_category struct

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@78186 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 78184 via svnmerge from
Russell Bryant [Mon, 6 Aug 2007 16:51:30 +0000 (16:51 +0000)]
Merged revisions 78184 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r78184 | russell | 2007-08-06 11:50:54 -0500 (Mon, 06 Aug 2007) | 5 lines

Fix the return value of AST_LIST_REMOVE().  This shouldn't be causing any
problems, though, because the only code that uses the return value only checks
to see if it is NULL.
(closes issue #10390, pointed out by mihai)

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@78185 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 78182 via svnmerge from
Joshua Colp [Mon, 6 Aug 2007 16:34:15 +0000 (16:34 +0000)]
Merged revisions 78182 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r78182 | file | 2007-08-06 13:32:44 -0300 (Mon, 06 Aug 2007) | 2 lines

It is possible for a transfer to occur before the remote device has our tag in which case they send none in the transfer. In this case we need to not fail the transfer dialog lookup.

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@78183 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 78180 via svnmerge from
Jason Parker [Mon, 6 Aug 2007 16:31:42 +0000 (16:31 +0000)]
Merged revisions 78180 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

(closes issue #9938)
........
r78180 | qwell | 2007-08-06 11:30:51 -0500 (Mon, 06 Aug 2007) | 5 lines

Fix an issue with using UpdateConfig (manager action) where escaped semicolons
 in a config would be converted to just semicolons (\; to ;)

Issue 9938

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@78181 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoImplement setvar functionality in chan_skinny
Jason Parker [Mon, 6 Aug 2007 16:08:11 +0000 (16:08 +0000)]
Implement setvar functionality in chan_skinny

Closes issue #10379, patch by mvanbaak.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@78179 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 78172 via svnmerge from
Joshua Colp [Mon, 6 Aug 2007 15:28:28 +0000 (15:28 +0000)]
Merged revisions 78172 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r78172 | file | 2007-08-06 12:27:24 -0300 (Mon, 06 Aug 2007) | 4 lines

(closes issue #10355)
Reported by: wdecarne
Now that we pass through RTP timestamp information we need to make the allowed timestamp skew considerably less. There are situations where a source may change and due to the timestamp difference the receiver will experience an audio gap since we did not indicate by setting the marker bit that the source changed.

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@78173 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years ago(closes issue #10381)
Joshua Colp [Mon, 6 Aug 2007 14:37:52 +0000 (14:37 +0000)]
(closes issue #10381)
Reported by: yehavi
Use the filename we parsed using the standard parsing when launching the application specified to ExternalIVR.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@78168 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 78166 via svnmerge from
Joshua Colp [Mon, 6 Aug 2007 14:20:04 +0000 (14:20 +0000)]
Merged revisions 78166 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r78166 | file | 2007-08-06 11:18:20 -0300 (Mon, 06 Aug 2007) | 4 lines

(closes issue #10383)
Reported by: rizzo
Include stdlib.h so NULL gets defined for gethostbyname_r checks.

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@78167 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoBlocked revisions 78146 via svnmerge
Tilghman Lesher [Sun, 5 Aug 2007 14:19:19 +0000 (14:19 +0000)]
Blocked revisions 78146 via svnmerge

........
r78146 | tilghman | 2007-08-05 09:18:00 -0500 (Sun, 05 Aug 2007) | 2 lines

Portability fix for devmode compiling (closes bug #10382)

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@78147 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 78143 via svnmerge from
Russell Bryant [Sun, 5 Aug 2007 04:16:43 +0000 (04:16 +0000)]
Merged revisions 78143 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r78143 | russell | 2007-08-04 23:15:31 -0500 (Sat, 04 Aug 2007) | 2 lines

Fix compilation failure when MALLOC_DEBUG is enabled, but DEBUG_THREADS is not

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@78144 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMake this module build on my mac
Russell Bryant [Sun, 5 Aug 2007 04:01:28 +0000 (04:01 +0000)]
Make this module build on my mac

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@78142 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoMerged revisions 78139 via svnmerge from
Tilghman Lesher [Sun, 5 Aug 2007 03:42:35 +0000 (03:42 +0000)]
Merged revisions 78139 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r78139 | tilghman | 2007-08-04 22:29:01 -0500 (Sat, 04 Aug 2007) | 2 lines

If peer is not found, the error message is misleading (should be peer not found, not ACL failure)

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@78140 65c4cc65-6c06-0410-ace0-fbb531ad65f3

12 years agoFix building res_crypto on systems that init locks with constructors.
Russell Bryant [Sun, 5 Aug 2007 03:14:24 +0000 (03:14 +0000)]
Fix building res_crypto on systems that init locks with constructors.

The problem was that res_crypto now has a RWLIST named "keys".  The macro
for defining this list defines a function used as a constructor for the list
called "init_keys".  However, there was another function called init_keys in
this module for a CLI command.  The fix is just to prepend the generated
functions with underscores.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@78138 65c4cc65-6c06-0410-ace0-fbb531ad65f3