asterisk/asterisk.git
12 years agoMerge a couple of configure script checks in from team/russell/events. This adds
Russell Bryant [Tue, 10 Jun 2008 00:43:06 +0000 (00:43 +0000)]
Merge a couple of configure script checks in from team/russell/events.  This adds
the checks for the CLM and EVT services from the SAForum AIS.  I'm going to work
on merging in changes from this branch in pieces.

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

12 years agoProperly initialize the cli_ping condition and lock
Russell Bryant [Tue, 10 Jun 2008 00:31:30 +0000 (00:31 +0000)]
Properly initialize the cli_ping condition and lock

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

12 years agoChange system header includes to be like how it is done in other files
Russell Bryant [Tue, 10 Jun 2008 00:29:01 +0000 (00:29 +0000)]
Change system header includes to be like how it is done in other files

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

12 years agoExpand RQ_INTEGER type out to multiple types, one for each precision
Tilghman Lesher [Mon, 9 Jun 2008 22:51:59 +0000 (22:51 +0000)]
Expand RQ_INTEGER type out to multiple types, one for each precision

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

12 years agoInitialize the lock and destroy lock and cond in the destructor (thanks, mmichelson)
Terry Wilson [Mon, 9 Jun 2008 22:42:08 +0000 (22:42 +0000)]
Initialize the lock and destroy lock and cond in the destructor (thanks, mmichelson)

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

12 years agoAdd storage of the useragent in the realtime database.
Tilghman Lesher [Mon, 9 Jun 2008 19:33:23 +0000 (19:33 +0000)]
Add storage of the useragent in the realtime database.
(Closes AST-38)

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

12 years agoarbitrary formatting change to test mantis change
Russell Bryant [Mon, 9 Jun 2008 16:55:15 +0000 (16:55 +0000)]
arbitrary formatting change to test mantis change
(closes issue #12824)

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

12 years agoarbitrary formatting change to test a mantis change
Russell Bryant [Mon, 9 Jun 2008 16:53:26 +0000 (16:53 +0000)]
arbitrary formatting change to test a mantis change

(closes issue #12824)

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

12 years agoMinor formatting change to test a mantis change ...
Russell Bryant [Mon, 9 Jun 2008 16:48:26 +0000 (16:48 +0000)]
Minor formatting change to test a mantis change ...
(closes issue #12824)

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

12 years agoMerged revisions 121280 via svnmerge from
Russell Bryant [Mon, 9 Jun 2008 16:37:08 +0000 (16:37 +0000)]
Merged revisions 121280 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r121280 | russell | 2008-06-09 11:35:40 -0500 (Mon, 09 Jun 2008) | 10 lines

Do not attempt to do emulation if an END digit is received and the length is
less than the defined minimum digit length, and the other end only wants END
digits (SIP INFO, for example).

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

........

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

12 years agoImplement FINDLABEL matching for the new extension matching engine.
Tilghman Lesher [Mon, 9 Jun 2008 16:35:06 +0000 (16:35 +0000)]
Implement FINDLABEL matching for the new extension matching engine.
(closes issue #12800)
 Reported by: chris-mac
 Patches:
       20080608__bug12800.diff.txt uploaded by Corydon76 (license 14)

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

12 years agoMerged revisions 121229 via svnmerge from
Mark Michelson [Mon, 9 Jun 2008 15:08:58 +0000 (15:08 +0000)]
Merged revisions 121229 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

(Note that this is being merged to trunk/1.6.0 because
it may affect non-callback agents with ackcall set)

........
r121229 | mmichelson | 2008-06-09 10:02:37 -0500 (Mon, 09 Jun 2008) | 16 lines

A unique situation of timeouts brought forth a failure situation for
autologoff in chan_agent. If using AgentCallbackLogin-style agents,
then if the timeout specified by the Dial() to reach the agent's phone
was shorter than the timeout specified in queues.conf, then autologoff
would only work if the caller hung up while the agent's phone was ringing.
This patch allows autologoff to work in this situation when the call in
queue transfers to the next available agent (as it would have if the timeout
in queues.conf were less than the timeout in the Dial()).

(closes issue #12754)
Reported by: Rodrigo
Patches:
      12754.patch uploaded by putnopvut (license 60)
Tested by: Rodrigo

........

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

12 years agoadd a new argument to PrivacyManager to specify a context
Michiel van Baak [Sun, 8 Jun 2008 11:40:44 +0000 (11:40 +0000)]
add a new argument to PrivacyManager to specify a context
where the entered phone number is checked.

You can now define a set of extensions/exten patterns that describe
valid phone numbers. PrivacyManager will check that context for a match
with the given phone number.
This way you get better control. For example people blindly hitting
10 digits just to get past privacymanager

Example line in extensions.conf:
exten => incoming,n,PrivacyManager(3,10,,route-outgoing)

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

12 years agoThis was accidentally reverted.
Jeff Peeler [Sun, 8 Jun 2008 01:41:59 +0000 (01:41 +0000)]
This was accidentally reverted.
Fixes a bug where if a stream monitor thread was not created (caused from failure of opening or starting the stream) pthread_cancel was called with an invalid thread ID.

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

12 years agoFixes segfault when using ParkAndAnnounce. Also, loop made more efficient as announce...
Jeff Peeler [Sun, 8 Jun 2008 01:16:25 +0000 (01:16 +0000)]
Fixes segfault when using ParkAndAnnounce. Also, loop made more efficient as announce template only needs to be checked until the number of colon separated arguments run out, not the entire pointer storage array. Was done in a similiar fashion in 1.4, but here we're using less variables.

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

12 years agoMerged revisions 121078 via svnmerge from
Russell Bryant [Sat, 7 Jun 2008 14:18:44 +0000 (14:18 +0000)]
Merged revisions 121078 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r121078 | russell | 2008-06-07 09:10:56 -0500 (Sat, 07 Jun 2008) | 7 lines

Don't run LIST_HEAD_DESTROY on a STATIC list

(closes issue #12807)
Reported by: ys
Patches:
      chan_agent_local.diff uploaded by ys (license 281)

........

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

12 years agoAdded a facility for sending arbitrary SIP notify commands from AMI.
Tilghman Lesher [Fri, 6 Jun 2008 20:24:11 +0000 (20:24 +0000)]
Added a facility for sending arbitrary SIP notify commands from AMI.
(closes issue #12562)
 Reported by: michael-fig
 Patches:
       20080515__bug12562.diff.txt uploaded by Corydon76 (license 14)

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

12 years agoMake extension match characters case-insensitive.
Tilghman Lesher [Fri, 6 Jun 2008 19:55:08 +0000 (19:55 +0000)]
Make extension match characters case-insensitive.
(closes issue #12777)
 Reported by: jsmith
 Patches:
       lower_case_patterns-trunk-v1.patch uploaded by jsmith (license 15)

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

12 years agoMerged revisions 120959 via svnmerge from
Jeff Peeler [Fri, 6 Jun 2008 18:30:17 +0000 (18:30 +0000)]
Merged revisions 120959 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r120959 | jpeeler | 2008-06-06 13:29:14 -0500 (Fri, 06 Jun 2008) | 1 line

add another LOW_MEMORY define I forgot
........

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

12 years agoMerged revisions 120908 via svnmerge from
Jeff Peeler [Fri, 6 Jun 2008 18:06:06 +0000 (18:06 +0000)]
Merged revisions 120908 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r120908 | jpeeler | 2008-06-06 13:05:15 -0500 (Fri, 06 Jun 2008) | 1 line

only define thread storage variable if necessary for LOW_MEMORY
........

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

12 years agoMerged revisions 120863,120885 via svnmerge from
Jeff Peeler [Fri, 6 Jun 2008 17:50:05 +0000 (17:50 +0000)]
Merged revisions 120863,120885 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r120863 | jpeeler | 2008-06-06 10:33:15 -0500 (Fri, 06 Jun 2008) | 3 lines

This fixes a crash when LOW_MEMORY is turned on. Two allocations of the ast_rtp struct that were previously allocated on the stack have been modified to use thread local storage instead.

........
r120885 | jpeeler | 2008-06-06 11:39:20 -0500 (Fri, 06 Jun 2008) | 2 lines

Correction to commmit 120863, make sure proper destructor function is called as well define two thread storage local variables.

........

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

12 years agoFor the purpose of making the changed syntax to ExecIf easier to transition,
Tilghman Lesher [Fri, 6 Jun 2008 17:34:21 +0000 (17:34 +0000)]
For the purpose of making the changed syntax to ExecIf easier to transition,
allow the deprecated syntax (fixed for jmls on -dev).

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

12 years agoa small fix for a crash that occurs when compiling AEL with global vars
Steve Murphy [Thu, 5 Jun 2008 21:34:42 +0000 (21:34 +0000)]
a small fix for a crash that occurs when compiling AEL with global vars

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

12 years agoMerge the adaptive realtime branch, which will make adding new required fields
Tilghman Lesher [Thu, 5 Jun 2008 19:07:27 +0000 (19:07 +0000)]
Merge the adaptive realtime branch, which will make adding new required fields
to realtime less painful in the future.

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

12 years agorevert 120733, wrong branch
Russell Bryant [Thu, 5 Jun 2008 18:03:15 +0000 (18:03 +0000)]
revert 120733, wrong branch

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

12 years agoUpdate file names
Russell Bryant [Thu, 5 Jun 2008 18:02:37 +0000 (18:02 +0000)]
Update file names

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

12 years agoBlocked revisions 120731 via svnmerge
Russell Bryant [Thu, 5 Jun 2008 18:01:45 +0000 (18:01 +0000)]
Blocked revisions 120731 via svnmerge

........
r120731 | russell | 2008-06-05 13:01:25 -0500 (Thu, 05 Jun 2008) | 2 lines

Add the UPGRADE.txt file from Asterisk 1.2, for handy reference.

........

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

12 years agoMerged revisions 120675 via svnmerge from
Philippe Sultan [Thu, 5 Jun 2008 17:02:39 +0000 (17:02 +0000)]
Merged revisions 120675 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r120675 | phsultan | 2008-06-05 18:56:15 +0200 (Thu, 05 Jun 2008) | 2 lines

Ignore appended resource when comparing JIDs.

........

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

12 years agoUpdate CHANGES file for the things done in revision 120635.
Brett Bryant [Thu, 5 Jun 2008 16:41:36 +0000 (16:41 +0000)]
Update CHANGES file for the things done in revision 120635.

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

12 years agoBlocked revisions 120671 via svnmerge
Russell Bryant [Thu, 5 Jun 2008 16:39:25 +0000 (16:39 +0000)]
Blocked revisions 120671 via svnmerge

........
r120671 | russell | 2008-06-05 11:38:52 -0500 (Thu, 05 Jun 2008) | 5 lines

It turns out that searching on the forwarding station isn't very useful for
most people, so pull in the changes that allow searching for SMDI messages
based on other components of the SMDI message.  Also, update the SMDI
documentation.

........

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

12 years agoThis patch adds more detailed statistics for RTP channels, and provides an API call...
Brett Bryant [Thu, 5 Jun 2008 16:24:19 +0000 (16:24 +0000)]
This patch adds more detailed statistics for RTP channels, and provides an API call to access it, including maximums, minimums, standard deviatinos,
and normal deviations. Currently this is implemented for chan_sip, but could be added to the func_channel_read callbacks for the CHANNEL function
for any channel that uses RTP.

(closes issue #10590)
Reported by: gasparz
Patches:
      chan_sip_c.diff uploaded by gasparz (license 219)
      rtp_c.diff uploaded by gasparz (license 219)
      rtp_h.diff uploaded by gasparz (license 219)
      audioqos-trunk.diff uploaded by snuffy (license 35)
      rtpqos-trunk-r119891.diff uploaded by sergee (license 138)
Tested by: jsmith, gasparz, snuffy, marsosa, chappell, sergee

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

12 years agoConditionally load the AGI command gosub, depending on whether or not res_agi
Tilghman Lesher [Thu, 5 Jun 2008 15:58:11 +0000 (15:58 +0000)]
Conditionally load the AGI command gosub, depending on whether or not res_agi
has been loaded, fix a return value in the loader, and ensure that the help
workhorse header does not print on load.

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

12 years agoAdd info on the [compat] section of asterisk.conf.
Tilghman Lesher [Thu, 5 Jun 2008 14:35:47 +0000 (14:35 +0000)]
Add info on the [compat] section of asterisk.conf.

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

12 years agoMerged revisions 120513 via svnmerge from
Mark Michelson [Wed, 4 Jun 2008 22:07:37 +0000 (22:07 +0000)]
Merged revisions 120513 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r120513 | mmichelson | 2008-06-04 17:05:33 -0500 (Wed, 04 Jun 2008) | 6 lines

Make sure that the string we set will survive the unref of
the queue member.

Thanks to Russell, who pointed this out.

........

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

12 years agoMSet doesn't necessarily need chan to be set
Tilghman Lesher [Wed, 4 Jun 2008 20:34:52 +0000 (20:34 +0000)]
MSet doesn't necessarily need chan to be set

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

12 years agoMerged revisions 120425 via svnmerge from
Tilghman Lesher [Wed, 4 Jun 2008 18:37:08 +0000 (18:37 +0000)]
Merged revisions 120425 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r120425 | tilghman | 2008-06-04 13:35:47 -0500 (Wed, 04 Jun 2008) | 6 lines

If we fail to setup the PRI request channel, don't continue, exit with an error.
(closes issue #11989)
 Reported by: Corydon76
 Patches:
       20080213__zap_memleak.diff.txt uploaded by Corydon76 (license 14)

........

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

12 years agoBlocked revisions 120371 via svnmerge
Russell Bryant [Wed, 4 Jun 2008 16:28:37 +0000 (16:28 +0000)]
Blocked revisions 120371 via svnmerge

........
r120371 | russell | 2008-06-04 11:26:43 -0500 (Wed, 04 Jun 2008) | 4 lines

Make the "dialplan remove include" CLI command actually work.  Also, tweak
some formatting, and make the success message a little bit more clear.
(closes AST-52)

........

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

12 years agoWe like tabs.
Joshua Colp [Wed, 4 Jun 2008 15:38:00 +0000 (15:38 +0000)]
We like tabs.

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

12 years agoMerged revisions 120285 via svnmerge from
Mark Michelson [Wed, 4 Jun 2008 14:12:45 +0000 (14:12 +0000)]
Merged revisions 120285 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r120285 | mmichelson | 2008-06-04 09:11:12 -0500 (Wed, 04 Jun 2008) | 7 lines

Tab completion when removing a member should give the member's interface,
not the name, since the interface is what is expected for the command.

(closes issue #12783)
Reported by: davevg

........

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

12 years agoMerged revisions 120282 via svnmerge from
Joshua Colp [Wed, 4 Jun 2008 13:33:59 +0000 (13:33 +0000)]
Merged revisions 120282 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r120282 | file | 2008-06-04 10:31:09 -0300 (Wed, 04 Jun 2008) | 6 lines

Fix a log message and add a message for when the dialplan is done reloading.
(closes issue #12716)
Reported by: chappell
Patches:
      dialplan_reload_2.diff uploaded by chappell (license 8)

........

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

12 years agoAdd a function, CHANNELS(), which retrieves a list of all active channels.
Tilghman Lesher [Tue, 3 Jun 2008 23:17:33 +0000 (23:17 +0000)]
Add a function, CHANNELS(), which retrieves a list of all active channels.
(closes issue #11330)
 Reported by: rain
 Patches:
       func_channel-channel_list_function.diff uploaded by rain (license 327)
       (with some additional changes by me, mostly to meet coding guidelines)

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

12 years agoMerged revisions 120226 via svnmerge from
Tilghman Lesher [Tue, 3 Jun 2008 22:42:03 +0000 (22:42 +0000)]
Merged revisions 120226 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r120226 | tilghman | 2008-06-03 17:41:04 -0500 (Tue, 03 Jun 2008) | 8 lines

Due to incorrect use of the AST_LIST_INSERT_HEAD() macro the loopback switch
cannot perform any translation on the extension number before searching for it
in the target context.
(closes issue #12473)
 Reported by: chappell
 Patches:
       pbx_loopback.c.diff uploaded by chappell (license 8)

........

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

12 years agoMerged revisions 120173 via svnmerge from
Jeff Peeler [Tue, 3 Jun 2008 22:17:07 +0000 (22:17 +0000)]
Merged revisions 120173 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r120173 | jpeeler | 2008-06-03 17:15:33 -0500 (Tue, 03 Jun 2008) | 6 lines

(closes issue #11594)
Reported by: yem
Tested by: yem

This change decreases the buffer size allocated on the stack substantially in config_text_file_load when LOW_MEMORY is turned on. This change combined with the fix from revision 117462 (making mkintf not copy the zt_chan_conf structure) was enough to prevent the crash.

........

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

12 years agoMove compatibility options into asterisk.conf, default them to on for upgrades,
Tilghman Lesher [Tue, 3 Jun 2008 22:05:16 +0000 (22:05 +0000)]
Move compatibility options into asterisk.conf, default them to on for upgrades,
and off for new installations.  This includes the translation from pipes to commas
for pbx_realtime and the EXEC command for AGI, as well as the change to the Set
application not to support multiple variables at once.

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

12 years agoMerged revisions 120168 via svnmerge from
Russell Bryant [Tue, 3 Jun 2008 21:35:11 +0000 (21:35 +0000)]
Merged revisions 120168 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r120168 | russell | 2008-06-03 16:34:55 -0500 (Tue, 03 Jun 2008) | 4 lines

Fix another place where peer->callno could change at a very bad time, and also
fix a place where a peer was used after the reference was released.
(inspired by rev 120001)

........

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

12 years agoAdding two new queue log events. The ADDMEMBER event is logged when
Mark Michelson [Tue, 3 Jun 2008 21:22:52 +0000 (21:22 +0000)]
Adding two new queue log events. The ADDMEMBER event is logged when
a dynamic realtime queue member is added to the queue, and the
REMOVEMEMBER event is logged when a dynamic realtime member is
removed. Since no calling channel is associated with these events
the string "REALTIME" is placed where the channel's unique id is
normally placed.

(closes issue #12774)
Reported by: atis
Patches:
      queue_log_rt_members.patch uploaded by atis (license 242)

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

12 years agoUse proper return values for a few application modules
Russell Bryant [Tue, 3 Jun 2008 19:48:37 +0000 (19:48 +0000)]
Use proper return values for a few application modules

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

12 years agofix build for non debug threads
Russell Bryant [Tue, 3 Jun 2008 18:43:01 +0000 (18:43 +0000)]
fix build for non debug threads

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

12 years agoAdd lock tracking for rwlocks. Previously, lock.h only had the ability to
Russell Bryant [Tue, 3 Jun 2008 18:26:51 +0000 (18:26 +0000)]
Add lock tracking for rwlocks.  Previously, lock.h only had the ability to
hold tracking information for mutexes.  Now, the "core show locks" output
will output information about who is holding a rwlock when a thread is
waiting on it.

(closes issue #11279)
Reported by: ys
Patches:
      trunk_lock_utils.v8.diff uploaded by ys (license 281)

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

12 years agoBlocked revisions 120061 via svnmerge
Tilghman Lesher [Tue, 3 Jun 2008 18:24:14 +0000 (18:24 +0000)]
Blocked revisions 120061 via svnmerge

........
r120061 | tilghman | 2008-06-03 13:23:32 -0500 (Tue, 03 Jun 2008) | 8 lines

When listing the manager users, managers in users.conf are not shown, even
though they are allowed to connect.
(closes issue #12594)
 Reported by: bkruse
 Patches:
       12594-managerusers-2.diff uploaded by qwell (license 4)
 Tested by: bkruse

........

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

12 years agoMerged revisions 120001 via svnmerge from
Tilghman Lesher [Tue, 3 Jun 2008 16:19:35 +0000 (16:19 +0000)]
Merged revisions 120001 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r120001 | tilghman | 2008-06-03 11:10:53 -0500 (Tue, 03 Jun 2008) | 9 lines

Save the callno when we're poking, because our peer structure could change
during destruction (and thus we unlock the wrong callno, causing a
cascade failure).
(closes issue #12717)
 Reported by: gewfie
 Patches:
       20080525__bug12717.diff.txt uploaded by Corydon76 (license 14)
 Tested by: gewfie

........

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

12 years agoMerged revisions 119966 via svnmerge from
Steve Murphy [Tue, 3 Jun 2008 15:49:34 +0000 (15:49 +0000)]
Merged revisions 119966 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r119966 | murf | 2008-06-03 09:26:56 -0600 (Tue, 03 Jun 2008) | 8 lines

Updated the regressions on AEL. Hadn't updated
this for the changes I made to preserve ${EXTEN}
in switches, which affected several tests because
it adds extra priorities, and at least one needed to be updated
because of the removal of the empty extension warning
message.

........

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

12 years agoMerged revisions 119929 via svnmerge from
Steve Murphy [Tue, 3 Jun 2008 15:07:20 +0000 (15:07 +0000)]
Merged revisions 119929 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r119929 | murf | 2008-06-03 08:49:46 -0600 (Tue, 03 Jun 2008) | 16 lines

as per http://lists.digium.com/pipermail/asterisk-users/2008-June/212934.html,
which is a message from Philipp Kempgen, requesting that the WARNING
that an extension is empty be reduced to a NOTICE or less, as empty
extensions are syntactically possible, and no big deal.

With which I agree, and have removed that WARNING message entirely.
I think it is not necessary to see this message. It didn't
state that a NoOp() was inserted automatically on your behalf,
and really, as users, who cares? Why freak out dialplan writers
with unnecessary warnings? The details of the machinations a compiler goes
thru to produce working assembly code is of little interest
to most programmers-- we will follow the unix principal of
doing our work silently.

........

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

12 years agoMerged revisions 119926 via svnmerge from
Joshua Colp [Tue, 3 Jun 2008 14:47:54 +0000 (14:47 +0000)]
Merged revisions 119926 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r119926 | file | 2008-06-03 11:46:24 -0300 (Tue, 03 Jun 2008) | 2 lines

Treat ECONNREFUSED as an error that will stop further retransmissions. (issue #AST-58, patch from Switchvox)

........

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

12 years agoDo a deep copy of file and function strings to avoid a potential crash when
Russell Bryant [Tue, 3 Jun 2008 13:29:16 +0000 (13:29 +0000)]
Do a deep copy of file and function strings to avoid a potential crash when
modules are unloaded.

(closes issue #12780)
Reported by: ys
Patches:
      logger.diff uploaded by ys (license 281)
  -- modified by me for coding guidelines

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

12 years agoMerged revisions 119838 via svnmerge from
Russell Bryant [Mon, 2 Jun 2008 20:08:24 +0000 (20:08 +0000)]
Merged revisions 119838 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r119838 | russell | 2008-06-02 15:08:04 -0500 (Mon, 02 Jun 2008) | 7 lines

Revert a change made for issue #12479.  This change caused a regression such that
a dial string such as (IAX2/foo) did not automatically fall back to dialing the 's'
extension anymore.

(closes issue #12770)
Reported by: dagmoller

........

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

12 years agoAdd app_fax from asterisk-addons, with some additional changes to resolve compiler
Russell Bryant [Mon, 2 Jun 2008 16:14:15 +0000 (16:14 +0000)]
Add app_fax from asterisk-addons, with some additional changes to resolve compiler
warnings, as well as update to the APIs in spandsp 0.0.5.  Spandsp 0.0.5 is being
distributed under the LGPL, so we can move this module into the main tree.

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

12 years agoAfter determining that the version of spandsp installed is an acceptable version,
Russell Bryant [Mon, 2 Jun 2008 15:57:43 +0000 (15:57 +0000)]
After determining that the version of spandsp installed is an acceptable version,
do a build and link test to ensure that the library is usable, and that libtiff
is also available

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

12 years agoAdd a configure script check for spandsp
Russell Bryant [Mon, 2 Jun 2008 15:43:40 +0000 (15:43 +0000)]
Add a configure script check for spandsp

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

12 years agoMerged revisions 119742 via svnmerge from
Russell Bryant [Mon, 2 Jun 2008 14:41:55 +0000 (14:41 +0000)]
Merged revisions 119742 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r119742 | russell | 2008-06-02 09:39:45 -0500 (Mon, 02 Jun 2008) | 5 lines

Improve CLI command blacklist checking for the command manager action.  Previously,
it did not handle case or whitespace properly.  This made it possible for blacklisted
commands to get executed anyway.
(closes issue #12765)

........

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

12 years agoDo not link the guest account with any configured XMPP client (in
Philippe Sultan [Mon, 2 Jun 2008 14:35:24 +0000 (14:35 +0000)]
Do not link the guest account with any configured XMPP client (in
jabber.conf). The actual connection is made when a call comes in
Asterisk.

Apply this fix to Jingle too.

Fix the ast_aji_get_client function that was not able to retrieve an
XMPP client from its JID.

(closes issue #12085)
Reported by: junky
Tested by: phsultan

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

12 years agoMerged revisions 119687 via svnmerge from
Russell Bryant [Mon, 2 Jun 2008 12:30:42 +0000 (12:30 +0000)]
Merged revisions 119687 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r119687 | russell | 2008-06-02 07:30:17 -0500 (Mon, 02 Jun 2008) | 3 lines

Even of the first PING or LAGRQ doesn't get sent because it comes up too soon,
make sure to reschedule so it gets sent later.

........

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

12 years agoMerged revisions 119636 via svnmerge from
Christian Richter [Mon, 2 Jun 2008 09:35:04 +0000 (09:35 +0000)]
Merged revisions 119636 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r119636 | crichter | 2008-06-02 11:29:21 +0200 (Mo, 02 Jun 2008) | 1 line

fixed compile issue when dev-mode is enabled
........

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

12 years agoMerged revisions 119585 via svnmerge from
Christian Richter [Mon, 2 Jun 2008 08:46:23 +0000 (08:46 +0000)]
Merged revisions 119585 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r119585 | crichter | 2008-06-02 10:35:28 +0200 (Mo, 02 Jun 2008) | 1 line

Added counter for unhandled_bmsg Print, this prevents the logs to be flooded to fast and save CPU in this error scenario. Added 'last_used' element to bc structure, when a bchannel changes from used to free this exact time will be marked in last_used. When a new channel is requested the find_free_chan function will check if the new empty channel was used within the last second, if yes it will search for the next channel, if no it will return this channel. This simple mechanism has prooven to prevent race conditions where the NT and TE tried to allocate the exact same channel at the same time (RELEASE cause: 44).
........

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

12 years agoMerged revisions 119533 via svnmerge from
Russell Bryant [Mon, 2 Jun 2008 01:08:16 +0000 (01:08 +0000)]
Merged revisions 119533 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r119533 | russell | 2008-06-01 20:06:09 -0500 (Sun, 01 Jun 2008) | 2 lines

Change a debug message to an actual debug message

........

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

12 years agoMerged revisions 119530 via svnmerge from
Russell Bryant [Mon, 2 Jun 2008 01:04:01 +0000 (01:04 +0000)]
Merged revisions 119530 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r119530 | russell | 2008-06-01 20:03:22 -0500 (Sun, 01 Jun 2008) | 2 lines

Fix another typo in documentation

........

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

12 years agoMerged revisions 119478 via svnmerge from
Michiel van Baak [Sun, 1 Jun 2008 21:06:27 +0000 (21:06 +0000)]
Merged revisions 119478 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r119478 | mvanbaak | 2008-06-01 22:47:55 +0200 (Sun, 01 Jun 2008) | 2 lines

small typo fix 'retires' => 'retries'

........

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

12 years agoFix a minor merge issue that caused a function to not get compiled in with
Russell Bryant [Fri, 30 May 2008 21:51:17 +0000 (21:51 +0000)]
Fix a minor merge issue that caused a function to not get compiled in with
DEBUG_THREADS like it was supposed to

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

12 years agoMerged revisions 119404 via svnmerge from
Tilghman Lesher [Fri, 30 May 2008 21:23:14 +0000 (21:23 +0000)]
Merged revisions 119404 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r119404 | tilghman | 2008-05-30 16:17:45 -0500 (Fri, 30 May 2008) | 6 lines

When joinempty=strict, it only failed on join if there were busy members.  If
all members were logged out OR paused, then it (incorrectly) let callers join
the queue.
(closes issue #12451)
 Reported by: davidw

........

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

12 years agoMerged revisions 119354 via svnmerge from
Joshua Colp [Fri, 30 May 2008 19:47:30 +0000 (19:47 +0000)]
Merged revisions 119354 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r119354 | file | 2008-05-30 16:46:37 -0300 (Fri, 30 May 2008) | 2 lines

Fix a bug I found while testing for another issue.

........

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

12 years agoMerged revisions 119301 via svnmerge from
Michiel van Baak [Fri, 30 May 2008 16:47:24 +0000 (16:47 +0000)]
Merged revisions 119301 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r119301 | mvanbaak | 2008-05-30 18:44:39 +0200 (Fri, 30 May 2008) | 14 lines

dont use a bashism way to check the $VERSION variable.
The rc/init.d scripts, and safe_asterisk work on normal sh now again.
Tested on:
OpenBSD 4.2 (me)
Debian etch (me)
Ubuntu Hardy (me and loloski)
FC9 (loloski)

(closes issue #12687)
Reported by: loloski
Patches:
      20080529-12687-safe_asterisk-fixversion.diff.txt uploaded by mvanbaak (license 7)
  Tested by: loloski, mvanbaak

........

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

12 years agoSuppress warning about pbx structure already existing
Tilghman Lesher [Fri, 30 May 2008 16:40:13 +0000 (16:40 +0000)]
Suppress warning about pbx structure already existing

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

12 years agoAdd native AGI command GOSUB, as invoking Gosub with EXEC does not work
Tilghman Lesher [Fri, 30 May 2008 16:10:46 +0000 (16:10 +0000)]
Add native AGI command GOSUB, as invoking Gosub with EXEC does not work
properly.
(closes issue #12760)
 Reported by: Corydon76
 Patches:
       20080530__bug12760.diff.txt uploaded by Corydon76 (license 14)
 Tested by: tim_ringenbach, Corydon76

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

12 years agoMerged revisions 119238 via svnmerge from
Russell Bryant [Fri, 30 May 2008 12:59:11 +0000 (12:59 +0000)]
Merged revisions 119238 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r119238 | russell | 2008-05-30 07:55:36 -0500 (Fri, 30 May 2008) | 15 lines

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

........
r119237 | russell | 2008-05-30 07:49:39 -0500 (Fri, 30 May 2008) | 7 lines

- Instead of only enforcing destination call number checking on an ACK, check
  all full frames except for PING and LAGRQ, which may be sent by older versions
  too quickly to contain the destination call number.
  (As suggested by Tim Panton on the asterisk-dev list)
- Merge changes from team/russell/iax2-frame-race, which prevents PING and LAGRQ
  from being sent before the destination call number is known.

........

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

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

12 years agoPrefer T140 with REDundance before T140 without.
Olle Johansson [Fri, 30 May 2008 11:26:05 +0000 (11:26 +0000)]
Prefer T140 with REDundance before T140 without.

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

12 years agoMerged revisions 119156 via svnmerge from
Russell Bryant [Thu, 29 May 2008 22:28:50 +0000 (22:28 +0000)]
Merged revisions 119156 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r119156 | russell | 2008-05-29 17:24:29 -0500 (Thu, 29 May 2008) | 10 lines

Fix a race condition in channel autoservice.  There was still a small window of opportunity
for a DTMF frame, or some other deferred frame type, to come in and get dropped.

(closes issue #12656)
(closes issue #12656)
Reported by: dimas
Patches:
      v3-12656.patch uploaded by dimas (license 88)
  -- with some modifications by me

........

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

12 years agoAdds support for changing logger settingss on remote consoles with a
Brett Bryant [Thu, 29 May 2008 21:30:37 +0000 (21:30 +0000)]
Adds support for changing logger settingss on remote consoles with a
new command "logger set level".

i.e. "logger set level debug off"

(closes issue #10891)

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

12 years agoBlocked revisions 119076 via svnmerge
Russell Bryant [Thu, 29 May 2008 20:49:48 +0000 (20:49 +0000)]
Blocked revisions 119076 via svnmerge

........
r119076 | russell | 2008-05-29 15:48:33 -0500 (Thu, 29 May 2008) | 3 lines

Oddly enough, all of the contents of audiohook.h were in there twice.  I have
removed the second copy.

........

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

12 years agoHad to move the ASTERISK_FILE_VERSION decl to just after the include of "asterisk.h"
Steve Murphy [Thu, 29 May 2008 20:26:42 +0000 (20:26 +0000)]
Had to move the ASTERISK_FILE_VERSION decl to just after the include of "asterisk.h"
or you get undefined variable errors when you are compiling under the influence
of MTX_PROFILE

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

12 years agoMerged revisions 119071 via svnmerge from
Tilghman Lesher [Thu, 29 May 2008 20:25:33 +0000 (20:25 +0000)]
Merged revisions 119071 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r119071 | tilghman | 2008-05-29 15:24:11 -0500 (Thu, 29 May 2008) | 7 lines

Call waiting tone occurs too often, because it's getting serviced by both
subchannels.
(closes issue #11354)
 Reported by: cahen
 Patches:
       20080512__bug11354.diff.txt uploaded by Corydon76 (license 14)

........

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

12 years agoMake sure the nrfds and nefds are reset to NULL
Michiel van Baak [Thu, 29 May 2008 19:10:31 +0000 (19:10 +0000)]
Make sure the nrfds and nefds are reset to NULL
before we enter manage_parkinglot.
This will get rid of CLI warnings like:
__ast_read: Exception flag set on 'SIP/<NUMBER>-<ID>', but no exception handler

(closes issue #12748)
Reported by: nreinartz
Patches:
      asterisk-multiparking_initialize_filedescr_sets-0.0.1.patch uploaded by nreinartz (license 452)

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

12 years agoMerged revisions 119012 via svnmerge from
Russell Bryant [Thu, 29 May 2008 19:05:33 +0000 (19:05 +0000)]
Merged revisions 119012 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r119012 | russell | 2008-05-29 14:04:52 -0500 (Thu, 29 May 2008) | 4 lines

 - Fix a typo in the argument to Playtones
 - use ast_safe_sleep() instead of calling the wait application
(thanks to tilghman for pointing these out!)

........

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

12 years agoMerged revisions 119009 via svnmerge from
Russell Bryant [Thu, 29 May 2008 18:54:11 +0000 (18:54 +0000)]
Merged revisions 119009 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r119009 | russell | 2008-05-29 13:49:12 -0500 (Thu, 29 May 2008) | 16 lines

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

........
r119008 | russell | 2008-05-29 13:45:21 -0500 (Thu, 29 May 2008) | 7 lines

Merge changes from team/russell/iax2-another-fix-to-the-fix

As described in the following post to the asterisk-dev mailing list, only
enforce destination call numbers when processing an ACK.

http://lists.digium.com/pipermail/asterisk-dev/2008-May/033217.html

(closes issue #12631)
........

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

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

12 years agoMerged revisions 118961 via svnmerge from
Russell Bryant [Thu, 29 May 2008 17:52:00 +0000 (17:52 +0000)]
Merged revisions 118961 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r118961 | russell | 2008-05-29 12:51:29 -0500 (Thu, 29 May 2008) | 3 lines

 - Mark app_milliwatt dependent on res_indications (thanks to jsmith)
 - fix a typo in a log message (thanks to qwell)

........

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

12 years agoMerged revisions 118956 via svnmerge from
Russell Bryant [Thu, 29 May 2008 17:46:04 +0000 (17:46 +0000)]
Merged revisions 118956 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r118956 | russell | 2008-05-29 12:38:38 -0500 (Thu, 29 May 2008) | 3 lines

Change milliwatt to use the proper tone by default (1004 Hz) instead of 1000 Hz.
An option is there to use 1000 Hz for anyone that might want it.

........

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

12 years agoMerged revisions 118954 via svnmerge from
Tilghman Lesher [Thu, 29 May 2008 17:39:50 +0000 (17:39 +0000)]
Merged revisions 118954 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r118954 | tilghman | 2008-05-29 12:33:01 -0500 (Thu, 29 May 2008) | 2 lines

Define also when not DEBUG_THREADS

........

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

12 years agoMerged revisions 118953 via svnmerge from
Tilghman Lesher [Thu, 29 May 2008 17:35:19 +0000 (17:35 +0000)]
Merged revisions 118953 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r118953 | tilghman | 2008-05-29 12:20:16 -0500 (Thu, 29 May 2008) | 3 lines

Add some debugging code that ensures that when we do deadlock avoidance, we
don't lose the information about how a lock was originally acquired.

........

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

12 years agoAvoid build warning when execinfo.h isn't available.
Sean Bright [Thu, 29 May 2008 12:12:07 +0000 (12:12 +0000)]
Avoid build warning when execinfo.h isn't available.

(closes issue #12751)
Reported by: ys
Patches:
      check_expr.diff uploaded by ys (license 281)

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

12 years agoMerged revisions 118858 via svnmerge from
Steve Murphy [Thu, 29 May 2008 01:29:09 +0000 (01:29 +0000)]
Merged revisions 118858 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r118858 | murf | 2008-05-28 18:25:28 -0600 (Wed, 28 May 2008) | 46 lines

(closes issue #10668)
(closes issue #11721)
(closes issue #12726)
Reported by: arkadia
Tested by: murf

These changes:

1. revert the changes made via bug 10668;
   I should have known that such changes,
   even tho they made sense at the time,
   seemed like an omission, etc, were actually
   integral to the CDR system via forkCDR.
   It makes sense to me now that forkCDR didn't
   natively end any CDR's, but rather depended
   on natively closing them all at hangup time
   via traversing and closing them all, whether
   locked or not. I still don't completely
   understand the benefits of setvar and answer
   operating on locked cdrs, but I've seen
   enough to revert those changes also, and
   stop messing up users who depended on that
   behavior. bug 12726 found reverting the changes
   fixed his changes, and after a long review
   and working on forkCDR, I can see why.
2. Apply the suggested enhancements proposed
   in 10668, but in a completely compatible
   way. ForkCDR will behave exactly as before,
   but now has new options that will allow some
   actions to be taken that will slightly
   modify the outcome and side-effects of
   forkCDR. Based on conversations I've had
   with various people, these small tweaks
   will allow some users to get the behavior
   they need. For instance, users executing
   forkCDR in an AGI script will find the
   answer time set, and DISPOSITION set,
   a situation not covered when the routines
  were first written.
3. A small problem in the cdr serializer
   would output answer and end times even
   when they were not set. This is now
   fixed.

........

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

12 years agoformatting changes.
Michiel van Baak [Wed, 28 May 2008 22:05:58 +0000 (22:05 +0000)]
formatting changes.
A lot of whitespace issues have been resolved in this commit
Also some doc updates, but that's only 6 lines

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

12 years agorename DialTone.h to chan_phone.h because chan_phone.c is the only file using it
Michiel van Baak [Wed, 28 May 2008 20:00:21 +0000 (20:00 +0000)]
rename DialTone.h to chan_phone.h because chan_phone.c is the only file using it

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

12 years agoUpdate to the janitor project for making sure to be thread-safe when
Mark Michelson [Wed, 28 May 2008 19:56:18 +0000 (19:56 +0000)]
Update to the janitor project for making sure to be thread-safe when
retrieving the value of a channel variable. This covers app_queue.

This commit also incorporates a logical change. Previously, if MixMonitor
is to be used to record the call, all the arguments were parsed first. Then
the MixMonitor app would be located. Now the order of these operations has
been swapped. Now the app is located first so that we only go through the
work of parsing the arguments if the app was found.

(closes issue #12742)
Reported by: snuffy
Patches:
      bug_12742.diff uploaded by snuffy (license 35)

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

12 years agoremove unused astobj.h header file from chan_skinny.c
Michiel van Baak [Wed, 28 May 2008 17:58:21 +0000 (17:58 +0000)]
remove unused astobj.h header file from chan_skinny.c

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

12 years agoFixes a bug in chan_iax that uses send_command to poke a peer while a channel is...
Brett Bryant [Wed, 28 May 2008 16:01:05 +0000 (16:01 +0000)]
Fixes a bug in chan_iax that uses send_command to poke a peer while a channel is unlocked in some cases, and because it can cause seemingly
random failures could be related to some bugs in the tracker...

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

12 years agoFix a linkage error related to the lock backtrace support
Russell Bryant [Wed, 28 May 2008 15:56:41 +0000 (15:56 +0000)]
Fix a linkage error related to the lock backtrace support

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

12 years agoMerged revisions 118646 via svnmerge from
Joshua Colp [Wed, 28 May 2008 14:29:01 +0000 (14:29 +0000)]
Merged revisions 118646 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r118646 | file | 2008-05-28 11:23:34 -0300 (Wed, 28 May 2008) | 4 lines

Add an option to use the source IP address of RTP as the destination IP address of UDPTL when a specific option is enabled. If the remote side is properly configured (ports forwarded) then UDPTL will flow.
(closes issue #10417)
Reported by: cstadlmann

........

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

12 years agoChanged to temporary namespaces to match with latest XEPs. As soon as
Philippe Sultan [Wed, 28 May 2008 14:10:48 +0000 (14:10 +0000)]
Changed to temporary namespaces to match with latest XEPs. As soon as
Jingle is completely standardized, we can set those namespaces to their
final values.

Added two attributes to the jingle_pvt struct to store the content
name attributes. Reported by Robert McQueen on Telepathy's framework
mailing list :
http://lists.freedesktop.org/archives/telepathy/2008-May/001971.html

Keeping working on our Jingle stack!

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

12 years agoCode simplification
Philippe Sultan [Wed, 28 May 2008 08:39:10 +0000 (08:39 +0000)]
Code simplification

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

12 years agoRemove loop from the detection of a sequence number that acknowledges
Brett Bryant [Tue, 27 May 2008 19:45:41 +0000 (19:45 +0000)]
Remove loop from the detection of a sequence number that acknowledges
the receiving of a packet that we've kept in memory just incase the
packet needs to be retransmitted.

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

12 years agoMerged revisions 118558 via svnmerge from
Joshua Colp [Tue, 27 May 2008 19:34:14 +0000 (19:34 +0000)]
Merged revisions 118558 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r118558 | file | 2008-05-27 16:32:38 -0300 (Tue, 27 May 2008) | 4 lines

Fix an issue where codec preferences were not set on dialogs that were not authenticated via a user or peer and allow framing to work without rtpmap in the SDP.
(closes issue #12501)
Reported by: slimey

........

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