asterisk/asterisk.git
14 years agoCoding guidelines stuff only.
Sean Bright [Mon, 16 Jun 2008 15:25:03 +0000 (15:25 +0000)]
Coding guidelines stuff only.

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

14 years agoNote that only one timing interface should get loaded.
Russell Bryant [Mon, 16 Jun 2008 13:31:36 +0000 (13:31 +0000)]
Note that only one timing interface should get loaded.

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

14 years agoMerge res_timing_pthread. This is a timing interface for Asterisk that
Russell Bryant [Mon, 16 Jun 2008 13:08:13 +0000 (13:08 +0000)]
Merge res_timing_pthread.  This is a timing interface for Asterisk that
does not require DAHDI.  It's called "pthread" because it uses a pthread
API call in the timing thread for sleeping and ensuring we wake up at
an appropriate time.  I wasn't sure what else to call it.  :)

The timing API requires a file descriptor that can be polled on.  So,
when you open a timer, this module creates a pipe and returns the read
end of the pipe.  There is a background thread that wakes up every 10ms
and checks to see if any of the currently open timers need a 'tick' and
writes to the appropriate pipe.

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

14 years agoAdd a "timing test" CLI command. It opens a timer and configures it for
Russell Bryant [Mon, 16 Jun 2008 13:03:40 +0000 (13:03 +0000)]
Add a "timing test" CLI command.  It opens a timer and configures it for
50 ticks per second, and then counts to see how many ticks it actually
gets in a second.

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

14 years ago - Fix a typo in a timing API call
Russell Bryant [Mon, 16 Jun 2008 12:48:11 +0000 (12:48 +0000)]
 - Fix a typo in a timing API call
 - Convert the last part of channel.c over to use the timing API.  This would
   not have made a difference when using the dahdi timing module.  I noticed
   it when trying to use another timing source.  Oops.  :)

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

14 years agoMerged revisions 122919 via svnmerge from
Joshua Colp [Mon, 16 Jun 2008 12:32:02 +0000 (12:32 +0000)]
Merged revisions 122919 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r122919 | file | 2008-06-16 09:31:09 -0300 (Mon, 16 Jun 2008) | 6 lines

Only compare the first 15 characters so that even if the charset is specified we still accept it as SDP.
(closes issue #12803)
Reported by: lanzaandrea
Patches:
      chan_sip.c.diff uploaded by lanzaandrea (license 496)

........

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

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

........
r122869 | file | 2008-06-16 09:08:28 -0300 (Mon, 16 Jun 2008) | 6 lines

Don't send a BYE on a dialog that is already gone during a REFER.
(closes issue #12865)
Reported by: flefoll
Patches:
      chan_sip.c.br14.121495.patch-ALREADYGONE uploaded by flefoll (license 244)

........

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

14 years agoResurrected app_fax
Sean Bright [Mon, 16 Jun 2008 03:33:03 +0000 (03:33 +0000)]
Resurrected app_fax

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

14 years agoAdd some more IAX2-specific information about the channel to the CHANNEL()
Tilghman Lesher [Sun, 15 Jun 2008 15:21:16 +0000 (15:21 +0000)]
Add some more IAX2-specific information about the channel to the CHANNEL()
function and begin the transition from SIPCHANINFO() to just using CHANNEL().
(closes issue #12856)
 Reported by: mostyn
 Patches:
       iax_and_sip_channel_info.patch uploaded by mostyn (license 398)
       (with some additional cleanup by me)

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

14 years agoDocument the input for ast_realtime_require_field()
Tilghman Lesher [Fri, 13 Jun 2008 22:52:20 +0000 (22:52 +0000)]
Document the input for ast_realtime_require_field()

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

14 years agoProperly detect the size of char/varchar fields
Tilghman Lesher [Fri, 13 Jun 2008 21:50:28 +0000 (21:50 +0000)]
Properly detect the size of char/varchar fields

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

14 years agoMerged revisions 122713 via svnmerge from
Mark Michelson [Fri, 13 Jun 2008 21:45:21 +0000 (21:45 +0000)]
Merged revisions 122713 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r122713 | mmichelson | 2008-06-13 16:44:53 -0500 (Fri, 13 Jun 2008) | 9 lines

Short circuit the loop in autoservice_run if there are no channels to poll.
If we continued, then the result would be calling poll() with a NULL
pollfd array. While this is fine with POSIX's poll(2) system call, those
who use Asterisk's internal poll mechanism (Darwin systems) would have
a failed assertion occur when poll is called.

(related to issue #10342)

........

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

14 years agoBlocked revisions 122663 via svnmerge
Jeff Peeler [Fri, 13 Jun 2008 18:58:29 +0000 (18:58 +0000)]
Blocked revisions 122663 via svnmerge

........
r122663 | jpeeler | 2008-06-13 13:57:24 -0500 (Fri, 13 Jun 2008) | 1 line

fixed dahdi compatability header from assuming either dahdi or zaptel is installed (may not have either)
........

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

14 years agoBlocked revisions 122613 via svnmerge
Jeff Peeler [Fri, 13 Jun 2008 17:38:28 +0000 (17:38 +0000)]
Blocked revisions 122613 via svnmerge

........
r122613 | jpeeler | 2008-06-13 12:36:56 -0500 (Fri, 13 Jun 2008) | 6 lines

(closes issue #12846)
Reported by: Netview
Tested by: jpeeler

Use correct location to search for tonezone.

........

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

14 years agoConvert one more delimiter to use comma.
Tilghman Lesher [Fri, 13 Jun 2008 14:15:07 +0000 (14:15 +0000)]
Convert one more delimiter to use comma.
(closes issue #12850)
 Reported by: bcnit
 Patches:
       20080613__bug12850.diff.txt uploaded by Corydon76 (license 14)
 Tested by: bcnit

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

14 years agoDo not allow res_timing_dahdi to be unloaded. We can re-enable this once we
Russell Bryant [Fri, 13 Jun 2008 12:53:08 +0000 (12:53 +0000)]
Do not allow res_timing_dahdi to be unloaded.  We can re-enable this once we
add automatic use count handling for timing modules.

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

14 years agoMerge changes from timing branch
Russell Bryant [Fri, 13 Jun 2008 12:45:50 +0000 (12:45 +0000)]
Merge changes from timing branch

 - Convert chan_iax2 to use the timing API
 - Convert usage of timing in the core to use the timing API instead of
   using DAHDI directly
 - Make a change to the timing API to add the set_rate() function
 - change the timing core to use a rwlock
 - merge a timing implementation, res_timing_dahdi

Basic testing was successful using res_timing_dahdi

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

14 years agoImplement call parking in chan_skinny.
Michiel van Baak [Fri, 13 Jun 2008 11:20:47 +0000 (11:20 +0000)]
Implement call parking in chan_skinny.

(closes issue #11342)
Reported by: DEA
Patches:
      chan_skinny-park.txt uploaded by DEA (license 3)
      chan_skinny-park-v2.diff.txt uploaded by mvanbaak (license 7)
Tested by: DEA, mvanbaak

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

14 years agoFix a segfault by not trying to store a stack address for
Mark Michelson [Thu, 12 Jun 2008 23:58:01 +0000 (23:58 +0000)]
Fix a segfault by not trying to store a stack address for
long-term use. Instead use the heap. I can't believe this
never happened *once* in my developer branch when I was testing.

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

14 years agoBlocked revisions 122208 via svnmerge
Jeff Peeler [Thu, 12 Jun 2008 23:09:16 +0000 (23:09 +0000)]
Blocked revisions 122208 via svnmerge

........
r122208 | jpeeler | 2008-06-12 10:46:08 -0500 (Thu, 12 Jun 2008) | 5 lines

(closes issue #12193)
Reported by: davidw
Patch by: Corydon76, modified by me to work properly with ParkAndAnnounce app

........

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

14 years ago(closes issue 0012193)
Jeff Peeler [Thu, 12 Jun 2008 23:08:37 +0000 (23:08 +0000)]
(closes issue 0012193)
Reported by: davidw
Patch by: Corydon76, modified by me to work properly with ParkAndAnnounce app

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

14 years agoRecommitting revision 122228, which was accidentally reverted
Mark Michelson [Thu, 12 Jun 2008 21:23:02 +0000 (21:23 +0000)]
Recommitting revision 122228, which was accidentally reverted
as a result of commit 122234.

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

14 years agoComplete the documentation for the timing API.
Russell Bryant [Thu, 12 Jun 2008 20:38:52 +0000 (20:38 +0000)]
Complete the documentation for the timing API.

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

14 years agoBlocked revisions 122314 via svnmerge
Jeff Peeler [Thu, 12 Jun 2008 19:11:23 +0000 (19:11 +0000)]
Blocked revisions 122314 via svnmerge

........
r122314 | jpeeler | 2008-06-12 14:08:20 -0500 (Thu, 12 Jun 2008) | 2 lines

Adds DAHDI support alongside Zaptel. DAHDI usage favored, but all Zap stuff should continue working. Release announcement to follow.

........

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

14 years agoMerged revisions 122311 via svnmerge from
Mark Michelson [Thu, 12 Jun 2008 18:53:17 +0000 (18:53 +0000)]
Merged revisions 122311 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r122311 | mmichelson | 2008-06-12 13:50:58 -0500 (Thu, 12 Jun 2008) | 9 lines

Properly play a holdtime message if the announce-holdtime option is
set to "once."

(closes issue #12842)
Reported by: ramonpeek
Patches:
      patch001.diff uploaded by ramonpeek (license 266)

........

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

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

........
r122259 | russell | 2008-06-12 13:22:44 -0500 (Thu, 12 Jun 2008) | 3 lines

Fix some race conditions that cause ast_assert() to report that chan_iax2 tried
to remove an entry that wasn't in the scheduler

........

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

14 years agoFix pseudo channel allocation errors on startup when using SS7. (from mattf r121914...
Jeff Peeler [Thu, 12 Jun 2008 17:49:37 +0000 (17:49 +0000)]
Fix pseudo channel allocation errors on startup when using SS7. (from mattf r121914, moving from chan_zap to chan_dahdi)

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

14 years agoMake sure we hangup any calls we have and NULL out the ss7call value when we get...
Jeff Peeler [Thu, 12 Jun 2008 17:39:38 +0000 (17:39 +0000)]
Make sure we hangup any calls we have and NULL out the ss7call value when we get a reset circuit message.  Fixes crash bug. (from mattf r121857, moving from chan_zap to chan_dahdi)

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

14 years agoGet default entity ID determination working on Linux again
Russell Bryant [Thu, 12 Jun 2008 17:38:27 +0000 (17:38 +0000)]
Get default entity ID determination working on Linux again
(closes issue #12839)

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

14 years agoclarify documentation on how timer intervals should be specified
Kevin P. Fleming [Thu, 12 Jun 2008 17:30:55 +0000 (17:30 +0000)]
clarify documentation on how timer intervals should be specified

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

14 years agoGoodbye Zaptel, hello DAHDI. Removes Zaptel driver support with DAHDI. Configuration...
Jeff Peeler [Thu, 12 Jun 2008 17:27:55 +0000 (17:27 +0000)]
Goodbye Zaptel, hello DAHDI. Removes Zaptel driver support with DAHDI. Configuration file and dialplan backwards compatability has been put in place where appropiate. Release announcement to follow.

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

14 years agoMake this build under dev mode
Russell Bryant [Thu, 12 Jun 2008 17:14:32 +0000 (17:14 +0000)]
Make this build under dev mode

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

14 years agoMerging the work done in the queue-log-atxfer branch. The
Mark Michelson [Thu, 12 Jun 2008 16:25:09 +0000 (16:25 +0000)]
Merging the work done in the queue-log-atxfer branch. The
net result of this work is that attended transfers made
by queue members will now show up in the queue_log as a
TRANSFER message instead of COMPLETECALLER as it had been.

As far as the details go, I created a datastore which is
attached to the calling channel just prior to when the caller
is bridged with the queue member. If the calling channel
is masqueraded, then during the "fixup" portion, the TRANSFER
will be logged and the datastore will be removed.

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

14 years agoMerged revisions 122137 via svnmerge from
Tilghman Lesher [Thu, 12 Jun 2008 15:26:07 +0000 (15:26 +0000)]
Merged revisions 122137 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r122137 | tilghman | 2008-06-12 10:18:39 -0500 (Thu, 12 Jun 2008) | 8 lines

Flipflop the sections for two options, since the section for 'X' (exit context)
may otherwise absorb keypresses meant for 's' (admin/user menu).
(closes issue #12836)
 Reported by: blitzrage
 Patches:
       20080611__bug12836.diff.txt uploaded by Corydon76 (license 14)
 Tested by: blitzrage

........

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

14 years agoMerged revisions 122130 via svnmerge from
Tilghman Lesher [Thu, 12 Jun 2008 15:14:37 +0000 (15:14 +0000)]
Merged revisions 122130 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r122130 | tilghman | 2008-06-12 10:11:30 -0500 (Thu, 12 Jun 2008) | 4 lines

Occasionally, the alertpipe loses its nonblocking status, so detect and correct
that situation before it causes a deadlock.  (Reported and tested by ctooley
via #asterisk-dev)

........

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

14 years agoMerged revisions 122127 via svnmerge from
Steve Murphy [Thu, 12 Jun 2008 14:56:26 +0000 (14:56 +0000)]
Merged revisions 122127 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r122127 | murf | 2008-06-12 08:51:44 -0600 (Thu, 12 Jun 2008) | 1 line

Arkadia tried to warn me, but the code added to ast_cdr_busy, _failed, and _noanswer was redundant. Didn't spot it until I was resolving conflicts in trunk. Ugh. Redundant code removed. It wasn't harmful. Just dumb.
........

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

14 years agoMerged revisions 122046 via svnmerge from
Steve Murphy [Thu, 12 Jun 2008 14:28:01 +0000 (14:28 +0000)]
Merged revisions 122046 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r122046 | murf | 2008-06-12 07:47:34 -0600 (Thu, 12 Jun 2008) | 37 lines

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

Options added to forkCDR() app and the CDR() func to
remove some roadblocks for CDR applications.

The "show application ForkCDR" output was upgraded
to more fully explain the inner workings of forkCDR.

The A option was added to forkCDR to force the
CDR system to NOT change the disposition on the
original CDR, after the fork. This involves
ast_cdr_answer, _busy, _failed, and so on.

The T option was added to forkCDR to force
obedience of the cdr LOCKED flag in the
ast_cdr_end, all the disposition changing
funcs (ast_cdr_answer, etc), and in the
ast_cdr_setvar func.

The CHANGES file was updated to explain ALL
the new options added to satisfy this bug report
(and some requests made verbally and via
email, irc, etc, over the past months/year)

The 's' option was added to the CDR() func,
to force it to skip LOCKED cdr's in the
chain.

Again, the new options should be totally transparent
to existing apps! Current behavior of CDR,
forkCDR, and the rest of the CDR system should
not change one little bit. Until you add the
new options, at least!

........

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

14 years agoadd infrastructure so that timing source can be a loadable module... next steps are...
Kevin P. Fleming [Thu, 12 Jun 2008 14:21:32 +0000 (14:21 +0000)]
add infrastructure so that timing source can be a loadable module... next steps are to convert channel.c and chan_iax2.c to use this new API, and to move all the DAHDI-specific timing source code into a new res_timing_dahdi module

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

14 years agoDon't log not being able to set a default EID. Most people don't care, and
Russell Bryant [Thu, 12 Jun 2008 14:06:38 +0000 (14:06 +0000)]
Don't log not being able to set a default EID.  Most people don't care, and
those that do can check their setup using CLI commands.
(closes issue #12839)

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

14 years agoBlocked revisions 121992 via svnmerge
Terry Wilson [Wed, 11 Jun 2008 23:48:38 +0000 (23:48 +0000)]
Blocked revisions 121992 via svnmerge

........
r121992 | twilson | 2008-06-11 18:47:23 -0500 (Wed, 11 Jun 2008) | 2 lines

Backport fix for 11520--for some reason I didn't do this back in February when I patched for trunk.

........

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

14 years agoInitialize parkingtime to DEFAULT_PARK_TIME instead of 0
Terry Wilson [Wed, 11 Jun 2008 21:38:40 +0000 (21:38 +0000)]
Initialize parkingtime to DEFAULT_PARK_TIME instead of 0

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

14 years agoFix pseudo channel allocation errors on startup when using SS7
Matthew Fredrickson [Wed, 11 Jun 2008 18:53:10 +0000 (18:53 +0000)]
Fix pseudo channel allocation errors on startup when using SS7

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

14 years agoMerged revisions 121861 via svnmerge from
Tilghman Lesher [Wed, 11 Jun 2008 18:19:24 +0000 (18:19 +0000)]
Merged revisions 121861 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r121861 | tilghman | 2008-06-11 13:18:16 -0500 (Wed, 11 Jun 2008) | 3 lines

Make calls to ast_assert() actually test something, so that the error message
printed is not nonsensical (reported by mvanbaak via #asterisk-bugs).

........

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

14 years agoMake sure we hangup any calls we have and NULL out the ss7call value when we get...
Matthew Fredrickson [Wed, 11 Jun 2008 17:50:17 +0000 (17:50 +0000)]
Make sure we hangup any calls we have and NULL out the ss7call value when we get a reset circuit message.  Fixes crash bug

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

14 years agoExpand CDR uniqueid field to 150 chars, to account for maximum systemname.
Tilghman Lesher [Wed, 11 Jun 2008 17:44:39 +0000 (17:44 +0000)]
Expand CDR uniqueid field to 150 chars, to account for maximum systemname.
(Closes issue #12831)

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

14 years agoMerged revisions 121804 via svnmerge from
Jeff Peeler [Wed, 11 Jun 2008 16:11:40 +0000 (16:11 +0000)]
Merged revisions 121804 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r121804 | jpeeler | 2008-06-11 11:11:09 -0500 (Wed, 11 Jun 2008) | 1 line

add instructions for logging gdb output via set logging on
........

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

14 years agoMerged revisions 121751 via svnmerge from
Christian Richter [Wed, 11 Jun 2008 11:52:18 +0000 (11:52 +0000)]
Merged revisions 121751 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r121751 | crichter | 2008-06-11 11:28:04 +0200 (Mi, 11 Jun 2008) | 1 line

fixed issue with previous commit, the find_free_channel test for channels which where inuse was broken.
........

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

14 years agodon't refer to asterisk-events, as that implies that the code was checked out from...
Russell Bryant [Tue, 10 Jun 2008 21:51:06 +0000 (21:51 +0000)]
don't refer to asterisk-events, as that implies that the code was checked out from a branch

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

14 years agoMove the table cache routines to res_odbc, so they can be used from other
Tilghman Lesher [Tue, 10 Jun 2008 21:14:58 +0000 (21:14 +0000)]
Move the table cache routines to res_odbc, so they can be used from other
places (app_voicemail, for example).
(Related to bug #11678)

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

14 years agoAdd an additional sanity check in case an event is passed between
Mark Michelson [Tue, 10 Jun 2008 19:52:21 +0000 (19:52 +0000)]
Add an additional sanity check in case an event is passed between
Asterisk boxes with mismatched ie_maps.

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

14 years agoRevision 117802 changed frame.data to frame.data.ptr however codec_ilbc.c was not...
Donny Kavanagh [Tue, 10 Jun 2008 19:03:11 +0000 (19:03 +0000)]
Revision 117802 changed frame.data to frame.data.ptr however codec_ilbc.c was not updated.  This resolves that oversight.

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

14 years agoMerged revisions 121596 via svnmerge from
Sean Bright [Tue, 10 Jun 2008 18:35:37 +0000 (18:35 +0000)]
Merged revisions 121596 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r121596 | seanbright | 2008-06-10 14:34:45 -0400 (Tue, 10 Jun 2008) | 6 lines

Fixes a problem with some buggy versions of GNU awk (3.1.3) not liking carriage returns in scripts.

(closes issue #12749)
Reported by: alinux
Tested by: Laureano (on #asterisk-dev), juggie

........

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

14 years agoMerge another big set of changes from team/russell/events
Russell Bryant [Tue, 10 Jun 2008 15:12:17 +0000 (15:12 +0000)]
Merge another big set of changes from team/russell/events

This commit merges in the rest of the code needed to support distributed device
state.  There are two main parts to this commit.

Core changes:
 - The device state handling in the core has been updated to understand device
   state across a cluster of Asterisk servers.  Every time the state of a device
   changes, it looks at all of the device states on each node, and determines the
   aggregate device state.  That resulting device state is what is provided to
   modules in Asterisk that take actions based on the state of a device.

New module, res_ais:
 - A module has been written to facilitate the communication of events between
   nodes in a cluster of Asterisk servers.  This module uses the SAForum AIS
   (Service Availability Forum Application Interface Specification) CLM and EVT
   services (Cluster Management and Event) to handle this task.  This module
   currently supports sharing Voicemail MWI (Message Waiting Indication) and
   device state events between servers.  It has been tested with openais, though
   other implementations of the spec do exist.

For more information on testing distributed device state, see the following doc:
  - doc/distributed_devstate.txt

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

14 years agoMerge some more changes from team/russell/events
Russell Bryant [Tue, 10 Jun 2008 14:53:40 +0000 (14:53 +0000)]
Merge some more changes from team/russell/events

This commit pulls in a batch of improvements and additions to the event API.
Changes include:
 - the ability to dynamically build a subscription.  This is useful if you're
    building a subscription based on something you receive from the network,
    or from options in a configuration file.
 - Add tables of event types and IE types and the corresponding string
    representation for implementing text based protocols that use these
events, for showing events on the CLI, reading configuration that
references event information, among other things.
 - Add a table that maps IE types and the corresponding payload type.
 - an API call to get the total size of an event
 - an API call to get all events from the cache that match a subscription
 - a new IE payload type, raw, which I used for transporting the Entity ID in
    my code for handling distributed device state.
 - Code improvements to reduce code duplication
 - Include the Entity ID of the server that originated the event in every event
 - an additional event type, DEVICE_STATE_CHANGE, to help facilitate distributed
    device state.  DEVICE_STATE is a state change on one server, DEVICE_STATE_CHANGE
is the aggregate device state change across all servers.

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

14 years agoFix issue where session timer headers were present when they should not have been.
Joshua Colp [Tue, 10 Jun 2008 14:11:16 +0000 (14:11 +0000)]
Fix issue where session timer headers were present when they should not have been.
(closes issue #12706)
Reported by: falves11
Patches:
      chan_sip.c.diff uploaded by rjain (license 226)
Tested by: falves11

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

14 years agoMerge another change from team/russell/events
Russell Bryant [Tue, 10 Jun 2008 14:06:29 +0000 (14:06 +0000)]
Merge another change from team/russell/events

This commit breaks out some logic from pbx.c into a simple API.  The hint
processing code had logic for taking the state from multiple devices and
turning that into the state for a single extension.  So, I broke this out
and made an API that lets you take multiple device states and determine
the aggregate device state.  I needed this for some core device state changes
to support distributed device state.

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

14 years agoMerged revisions 121495 via svnmerge from
Joshua Colp [Tue, 10 Jun 2008 13:36:13 +0000 (13:36 +0000)]
Merged revisions 121495 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r121495 | file | 2008-06-10 10:34:27 -0300 (Tue, 10 Jun 2008) | 4 lines

If we are destroying a dialog only set the MWI dialog pointer on the related peer to NULL if it is the dialog currently being destroyed.
(closes issue #12828)
Reported by: ramonpeek

........

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

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

........
r121442 | file | 2008-06-10 09:52:06 -0300 (Tue, 10 Jun 2008) | 4 lines

Update BRIDGEPEER variable before we do a generic bridge in case we just broke out of a native bridge and fell through to generic.
(closes issue #12815)
Reported by: ramonpeek

........

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

14 years agoUpdate dundi.conf to indicate that the asterisk.conf entityid option can be used
Russell Bryant [Tue, 10 Jun 2008 12:50:07 +0000 (12:50 +0000)]
Update dundi.conf to indicate that the asterisk.conf entityid option can be used
to set the entityid used in DUNDi, as well.

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

14 years agoMerge another change from team/russell/events ...
Russell Bryant [Tue, 10 Jun 2008 12:48:50 +0000 (12:48 +0000)]
Merge another change from team/russell/events ...

DUNDi uses a concept called the Entity ID for unique server identifiers.  I have
pulled out the handling of EIDs and made it something available to all of Asterisk.
There is now a global Entity ID that can be used for other purposes as well, such
as code providing distributed device state, which is why I did this.  The global
Entity ID is set automatically, just like it was done in DUNDi, but it can also be
set in asterisk.conf.  DUNDi will now use this global EID unless one is specified
in dundi.conf.

The current EID for the system can be seen in the "core show settings" CLI command.
It is also available in the dialplan via the ENTITYID variable.

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

14 years agoBump up the debug level of a couple of messages
Russell Bryant [Tue, 10 Jun 2008 00:52:46 +0000 (00:52 +0000)]
Bump up the debug level of a couple of messages

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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

15 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

15 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

15 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

15 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

15 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

15 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