]> git.ipfire.org Git - thirdparty/asterisk.git/log
thirdparty/asterisk.git
18 years ago(closes issue #9724, closes issue #10374)
Russell Bryant [Thu, 6 Sep 2007 22:28:57 +0000 (22:28 +0000)] 
(closes issue #9724, closes issue #10374)
Reported by: kenw
Patches:
      9724.txt uploaded by russell (license 2)
Tested by: kenw, russell

Resolve a deadlock that occurs when doing a SIP transfer to parking.

I come across this type of deadlock fairly often it seems.  It is very important
to mind the boundary between the channel driver and the core in respect to the
channel lock and the channel-pvt lock.  Channel drivers lock to lock the
pvt and then the channel once it calls into the core, while the core will do
it in the opposite order.  The way this is avoided is by having channel drivers
either release their pvt lock while calling into the core, or such as in this
case, unlocking the pvt just long enough to acquire the channel lock.

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

18 years agoWe added COPTS for ASTCFLAGS additions, but not LDOPTS for ASTLDFLAGS. This adds...
Jason Parker [Thu, 6 Sep 2007 22:05:02 +0000 (22:05 +0000)] 
We added COPTS for ASTCFLAGS additions, but not LDOPTS for ASTLDFLAGS.  This adds LDOPTS

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

18 years agoThis should fix a build issue that people building against uClibc were seeing with...
Jason Parker [Thu, 6 Sep 2007 19:59:07 +0000 (19:59 +0000)] 
This should fix a build issue that people building against uClibc were seeing with the addition of astobj2

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

18 years ago(closes issue #10122)
Joshua Colp [Thu, 6 Sep 2007 19:40:37 +0000 (19:40 +0000)] 
(closes issue #10122)
Reported by: stevefeinstein
Patches:
      meetme-unmute-manager.diff uploaded by qwell (license 4)
Tested by: stevefeinstein
After looking over the code I agree with Qwell. Setting the file descriptor to conference each time just causes a fight back and forth.

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

18 years agoVarious string length fixes. Removed an unused variable in aji_client structure ...
Philippe Sultan [Thu, 6 Sep 2007 16:56:29 +0000 (16:56 +0000)] 
Various string length fixes. Removed an unused variable in aji_client structure (context)

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

18 years agoFixes an issue where valid DTMF had to be pressed twice to exit a queue if a member...
Mark Michelson [Thu, 6 Sep 2007 16:25:40 +0000 (16:25 +0000)] 
Fixes an issue where valid DTMF had to be pressed twice to exit a queue if a member's phone
was ringing.

(closes issue #10655, reported by strider2k, patched by me)

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

18 years agoFixes a memory leak
Mark Michelson [Thu, 6 Sep 2007 15:20:36 +0000 (15:20 +0000)] 
Fixes a memory leak

(closes issue #10658, reported and patched by Ivan)

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

18 years agoAccording to both RFC 3920 - section 9.1.2 - and Google's XMPP server
Philippe Sultan [Thu, 6 Sep 2007 14:20:54 +0000 (14:20 +0000)] 
According to both RFC 3920 - section 9.1.2 - and Google's XMPP server
complaint, if set, the 'from' attribute must be set to the user's full
JID.

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

18 years agoFix an issue that can occur when you do an attended transfer to parking. If
Russell Bryant [Wed, 5 Sep 2007 20:53:41 +0000 (20:53 +0000)] 
Fix an issue that can occur when you do an attended transfer to parking.  If
you complete the transfer before the announcement of the parking spot finishes,
then the channel being parked will hear the remainder of the announcement.
These changes make it so that will not happen anymore.

Basically, res_features sets a flag on the channel is playing the announcement
to so that the file streaming core knows that it needs to watch out for a
channel masquerade, and if it occurs, to abort the announcement.

(closes BE-182)

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

18 years agoSolaris x86 compatibility fix
Tilghman Lesher [Wed, 5 Sep 2007 17:18:24 +0000 (17:18 +0000)] 
Solaris x86 compatibility fix

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

18 years agoFixing the build...
Mark Michelson [Wed, 5 Sep 2007 15:19:47 +0000 (15:19 +0000)] 
Fixing the build...

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

18 years agoDo not try to unregister a NULL channel tech.
Jason Parker [Wed, 5 Sep 2007 15:14:30 +0000 (15:14 +0000)] 
Do not try to unregister a NULL channel tech.
Also changed load_module function to use defines rather than numbers for return values.

Issue 10651, patch by rbraun_proformatique, with additions by me.

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

18 years agoReverting behavior of QUEUE_MEMBER_COUNT to only count members who are logged in
Mark Michelson [Wed, 5 Sep 2007 15:03:22 +0000 (15:03 +0000)] 
Reverting behavior of QUEUE_MEMBER_COUNT to only count members who are logged in
and available.

(related to issue #10652, reported by wuwu)

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

18 years ago(closes issue #10650)
Joshua Colp [Wed, 5 Sep 2007 13:11:48 +0000 (13:11 +0000)] 
(closes issue #10650)
Reported by: tacvbo
Only print out that the spy was removed while holding the spy lock.

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

18 years agoRather than attempt to play a file, we can just check whether it exists.
Jason Parker [Tue, 4 Sep 2007 20:54:51 +0000 (20:54 +0000)] 
Rather than attempt to play a file, we can just check whether it exists.

Issue 10634, patch by me, testing by pabelanger, sanity checked by bweschke

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

18 years agoChange default followme config file to point to the correct files.
Jason Parker [Tue, 4 Sep 2007 19:56:06 +0000 (19:56 +0000)] 
Change default followme config file to point to the correct files.

Issue 10644, patch by pabelanger

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

18 years agoRemove the typedefs on ao2_container and ao2_iterator. This is simply because
Russell Bryant [Tue, 4 Sep 2007 18:37:44 +0000 (18:37 +0000)] 
Remove the typedefs on ao2_container and ao2_iterator.  This is simply because
we don't typedef objects anywhere else in Asterisk, so we might as well make
this follow the same convention.

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

18 years agothere is no point in sending 401 Unauthorized to a UAS that sent us a properly-format...
Kevin P. Fleming [Tue, 4 Sep 2007 16:40:39 +0000 (16:40 +0000)] 
there is no point in sending 401 Unauthorized to a UAS that sent us a properly-formatted Authentication header with the expected username and nonce but an incorrect response (which indicates the shared secret does not match)... instead, let's send 403 Forbidden so that the UAS doesn't retry with the same authentication credentials repeatedly

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

18 years ago(closes issue #10632)
Joshua Colp [Tue, 4 Sep 2007 14:23:18 +0000 (14:23 +0000)] 
(closes issue #10632)
Reported by: jamesgolovich
Patches:
      asterisk-iaxfirmwareleak.diff.txt uploaded by jamesgolovich (license 176)
Fix memory leak when unloading chan_iax2. The firmware files were not being freed.

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

18 years ago(closes issue #10476)
Joshua Colp [Tue, 4 Sep 2007 13:46:23 +0000 (13:46 +0000)] 
(closes issue #10476)
Reported by: mdu113
Only look for the end of a digit when waiting for a digit. This in turn disables emulation in the core.

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

18 years ago(closes issue #10610)
Joshua Colp [Tue, 4 Sep 2007 13:10:56 +0000 (13:10 +0000)] 
(closes issue #10610)
Reported by: john
Patches:
      dns.c.patch uploaded by john (license 218)
Tested by: mvanbaak
Don't return a match if no SRV record actually exists.

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

18 years agoRemove a couple of calls to ast_string_field_free_pools() on peers in error
Russell Bryant [Mon, 3 Sep 2007 18:57:53 +0000 (18:57 +0000)] 
Remove a couple of calls to ast_string_field_free_pools() on peers in error
handling blocks in the code for building peers.  The peer object destructor
does this and doing it twice will cause a crash.
(closes issue #10625, reported by and patched by pnlarsson)

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

18 years agoChanged a comment to be more accurate.
Mark Michelson [Sat, 1 Sep 2007 15:57:31 +0000 (15:57 +0000)] 
Changed a comment to be more accurate.

(really this is just a test to make sure I can commit properly from home)

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

18 years agoMaking match_by_addr into ao2_match_by_addr and making it available
Mark Michelson [Sat, 1 Sep 2007 06:02:06 +0000 (06:02 +0000)] 
Making match_by_addr into ao2_match_by_addr and making it available
everywhere since it could be a handy callback to have

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

18 years agoRemove references to a debugging parameter that does not exist
Russell Bryant [Fri, 31 Aug 2007 21:27:49 +0000 (21:27 +0000)] 
Remove references to a debugging parameter that does not exist

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

18 years agoFixed broken behavior of a reload on realtime queues. Prior to this patch, if a reloa...
Mark Michelson [Fri, 31 Aug 2007 19:48:55 +0000 (19:48 +0000)] 
Fixed broken behavior of a reload on realtime queues. Prior to this patch, if a reload was issued and
a realtime queue had callers waiting in it, then the queue would be removed from the queue list, but it would
not actually be freed (in fact, a debug message warning about a memory leak would come up). With this patch,
reloads do not touch realtime queues at all.

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

18 years agoThe IF() function was not allowing true values that had embedded colons (closes issue...
Tilghman Lesher [Fri, 31 Aug 2007 19:16:52 +0000 (19:16 +0000)] 
The IF() function was not allowing true values that had embedded colons (closes issue #10613)

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

18 years agoRe-order dial options to be in line with the existing alpha order.
Jason Parker [Fri, 31 Aug 2007 18:44:44 +0000 (18:44 +0000)] 
Re-order dial options to be in line with the existing alpha order.

Issue 10621, initial patch by junky

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

18 years agoMake the 'gtalk show channels' CLI command available.
Philippe Sultan [Fri, 31 Aug 2007 17:38:26 +0000 (17:38 +0000)] 
Make the 'gtalk show channels' CLI command available.

Closes issue 10548, reported by keepitcool.

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

18 years agoMake it the engine's responsible to check for the presence of results.
Joshua Colp [Fri, 31 Aug 2007 15:53:16 +0000 (15:53 +0000)] 
Make it the engine's responsible to check for the presence of results.

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

18 years agoadd missing "transcoder show" (and deprecated "show transcoder") CLI commands that...
Kevin P. Fleming [Fri, 31 Aug 2007 15:51:45 +0000 (15:51 +0000)] 
add missing "transcoder show" (and deprecated "show transcoder") CLI commands that were in 1.2 but never added to 1.4

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

18 years ago(closes issue #10618)
Joshua Colp [Fri, 31 Aug 2007 14:38:59 +0000 (14:38 +0000)] 
(closes issue #10618)
Reported by: dimas
Don't pass through the stopped sounds frame.... just drop it.

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

18 years ago(closes issue #10009)
Joshua Colp [Thu, 30 Aug 2007 23:53:41 +0000 (23:53 +0000)] 
(closes issue #10009)
Reported by: dimas
Don't output a bridge failed warning message if it failed because one of the channels was part of the masquerade process. That is perfectly normal.

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

18 years agoRemoving an extraneous (and possibly misleading) log message. Firstly, if the announc...
Mark Michelson [Thu, 30 Aug 2007 22:05:56 +0000 (22:05 +0000)] 
Removing an extraneous (and possibly misleading) log message. Firstly, if the announce file isn't found, the
streaming functions will report it. Secondly, not all non-zero returns from play_file mean that the announce file
wasn't found. Positive return values simply mean that a digit was pressed (most likely to skip through the announcement).

(closes issue #10612, reported and patched by dimas)

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

18 years ago(closes issue #10514)
Joshua Colp [Thu, 30 Aug 2007 21:23:50 +0000 (21:23 +0000)] 
(closes issue #10514)
Reported by: casper
Patches:
      chan_sip.c.80129.diff uploaded by casper (license 55)
Remove needless check for AUTH_UNKNOWN_DOMAIN. It was impossible for it to ever be that value.

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

18 years agovia issue 10599, where 'CDR already initialized' messages are being generated. Since...
Steve Murphy [Thu, 30 Aug 2007 21:11:48 +0000 (21:11 +0000)] 
via issue 10599, where 'CDR already initialized' messages are being generated. Since all channels will have an init'd CDR attached at creation time, this message is now particularly useless. Removed.

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

18 years agoAdd missing checks for the PTRACING define.
Russell Bryant [Thu, 30 Aug 2007 15:38:29 +0000 (15:38 +0000)] 
Add missing checks for the PTRACING define.
(closes issue #10559, paravoid)

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

18 years agoChanged some manager event messages to reflect whether a queue member is a realtime...
Mark Michelson [Thu, 30 Aug 2007 15:35:51 +0000 (15:35 +0000)] 
Changed some manager event messages to reflect whether a queue member is a realtime member or not

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

18 years agoFix a typo, update a reload command, and remove an unused configuration file.
Russell Bryant [Thu, 30 Aug 2007 15:33:48 +0000 (15:33 +0000)] 
Fix a typo, update a reload command, and remove an unused configuration file.
(closes issue #10606, casper)

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

18 years ago(closes issue #10603)
Joshua Colp [Thu, 30 Aug 2007 14:53:43 +0000 (14:53 +0000)] 
(closes issue #10603)
Reported by: jmls
Patches:
      pbx.diff uploaded by jmls (license 141)
Backport changes from 81372. Add REASON dialplan variable for when an originated call fails and the failed extension is executed.

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

18 years agoFixed some warnings.
Christian Richter [Thu, 30 Aug 2007 14:43:33 +0000 (14:43 +0000)] 
Fixed some warnings.

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

18 years ago(issue #10599)
Joshua Colp [Thu, 30 Aug 2007 14:23:40 +0000 (14:23 +0000)] 
(issue #10599)
Reported by: dimas
Handle the -1 control subclass during feature dialing (it indicates to stop sounds).

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

18 years agoFixed a severe issue where a misdn_read would lock the channel, but read would
Christian Richter [Thu, 30 Aug 2007 08:31:59 +0000 (08:31 +0000)] 
Fixed a severe issue where a misdn_read would lock the channel, but read would
not return because it blocks. later chan_misdn would try to queue a frame like
a AST_CONTROL_ANSWER which could result in a deadlock situation. misdn_read
will now not block forever anymore, and we don't queue the ANSWER frame at all
when we already was called with misdn_answer -> answer would be called twice.

Also we don't explicitly send a RELEASE_COMPLETE on receiption of a RELEASE
anymore, because mISDN does that for us, this resulted in a problem on some
switches, which would block our port after some calls for a short while.

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

18 years agoThis patch, in essence, will correctly pause a realtime queue member and reflect...
Mark Michelson [Wed, 29 Aug 2007 16:35:29 +0000 (16:35 +0000)] 
This patch, in essence, will correctly pause a realtime queue member and reflect those
changes in the realtime engine.

(issue #10424, reported by irroot, patch by me)

This patch creates a new function called update_realtime_member_field, which is a generic
function which will allow any one field of a realtime queue member to be updated. This patch
only uses this function to update the paused status of a queue member, but it lays the foundation
for persisting the state of a realtime member the same way that static members' state is maintained
when using the persistentmembers setting

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

18 years agoChanged some tabs to spaces
Mark Michelson [Wed, 29 Aug 2007 16:08:09 +0000 (16:08 +0000)] 
Changed some tabs to spaces

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

18 years agoIf chan_h323 is not being built, don't use g++ to do the final link of Asterisk.
Russell Bryant [Wed, 29 Aug 2007 15:57:29 +0000 (15:57 +0000)] 
If chan_h323 is not being built, don't use g++ to do the final link of Asterisk.
(in response to a question on the asterisk-dev list)

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

18 years agoThis fix creates a more accurate way of detecting whether realtime members were deleted.
Mark Michelson [Wed, 29 Aug 2007 15:52:42 +0000 (15:52 +0000)] 
This fix creates a more accurate way of detecting whether realtime members were deleted.
(closes issue 10541, reported by Alric, patched by me)

The REALLY nice things about this patch is that queue members now have a "realtime" field
which will be true if the member is a realtime member. This means we can check this value
prior to certain processing if it should ONLY be done for realtime members.

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

18 years ago(closes issue #9690)
Joshua Colp [Wed, 29 Aug 2007 14:13:55 +0000 (14:13 +0000)] 
(closes issue #9690)
Reported by: mattv
Make rtp timeouts work even if two RTP streams are directly bridged in the RTP stack.

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

18 years agoChange the message about receiving a mini-frame before the first full voice
Russell Bryant [Tue, 28 Aug 2007 21:38:26 +0000 (21:38 +0000)] 
Change the message about receiving a mini-frame before the first full voice
frame to a DEBUG message.

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

18 years agorevert unintentional changes in rev 81226
Russell Bryant [Tue, 28 Aug 2007 15:43:18 +0000 (15:43 +0000)] 
revert unintentional changes in rev 81226

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

18 years agoAdd Russian tones. (closes issue #7953, hanabana)
Russell Bryant [Tue, 28 Aug 2007 15:41:15 +0000 (15:41 +0000)] 
Add Russian tones.  (closes issue #7953, hanabana)

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

18 years agoFixes a forwarding problem when using res_config_mysql
Mark Michelson [Tue, 28 Aug 2007 14:12:14 +0000 (14:12 +0000)] 
Fixes a forwarding problem when using res_config_mysql

(closes issue #10573, reported by chrisvaughan, patch suggested by chrisvaughan as well)

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

18 years agoResolve a potential deadlock. In this case, a single queue is locked, then the queue...
Mark Michelson [Mon, 27 Aug 2007 22:40:19 +0000 (22:40 +0000)] 
Resolve a potential deadlock. In this case, a single queue is locked, then the queue list. In changethread(), the queue list is
locked, and then each individual queue is locked. Under the right circumstances, this could deadlock. As such, I have unlocked
the individual queue before locking the queue list, and then locked the queue back after the queue list is unlocked.

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

18 years agoDTMF begin frames should be ignored so that when an agent acks a call with the '...
Mark Michelson [Mon, 27 Aug 2007 21:08:48 +0000 (21:08 +0000)] 
DTMF begin frames should be ignored so that when an agent acks a call with the '#' key,
he doesn't cause a queue's announce file to be interrupted. Also went ahead and did the
same for the '*' key and for ending a call.

(closes issue #10528, reported by deskhack, patched by me)

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

18 years agoAdd a \todo to note that this module leaks most of the memory it allocates on
Russell Bryant [Mon, 27 Aug 2007 17:27:48 +0000 (17:27 +0000)] 
Add a \todo to note that this module leaks most of the memory it allocates on
unload and should be fixed (when I'm not in the middle of something else ...).

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

18 years agoexplicity define a variable as a boolean
Russell Bryant [Mon, 27 Aug 2007 16:38:33 +0000 (16:38 +0000)] 
explicity define a variable as a boolean

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

18 years ago(closes issue #10419)
Russell Bryant [Mon, 27 Aug 2007 16:16:25 +0000 (16:16 +0000)] 
(closes issue #10419)
Reported by: mustardman
Patches:
      asterisk-mohposition.diff.txt uploaded by jamesgolovich (license 176)

This patch fixes a few problems with music on hold.
 * Fix issues with starting at the beginning of a file when it shouldn't.
 * Fix the inuse counter to be decremented even if the class had not been
   set to be deleted when not in use anymore
 * Don't arbitrarily limit the number of MOH files to 255

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

18 years ago(closes issue #10561)
Joshua Colp [Mon, 27 Aug 2007 15:01:59 +0000 (15:01 +0000)] 
(closes issue #10561)
Reported by: jesselang
Patches:
      chan_sip-ChannelReload-20080825.patch uploaded by jesselang (license 202)
Remove an extra \r\n to make the ChannelReload event conform with every other event.

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

18 years agoFound a case where the queue's membercount is off. It does not take into account...
Mark Michelson [Mon, 27 Aug 2007 14:55:44 +0000 (14:55 +0000)] 
Found a case where the queue's membercount is off. It does not take into account dynamic members on a reload.

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

18 years ago(closes issue #10562)
Joshua Colp [Mon, 27 Aug 2007 13:20:31 +0000 (13:20 +0000)] 
(closes issue #10562)
Reported by: idkpmiller
Correct jitter value output in the CLI to be as expected.

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

18 years agoRemove an extra signal_condition() for the scheduler thread.
Russell Bryant [Sun, 26 Aug 2007 18:11:26 +0000 (18:11 +0000)] 
Remove an extra signal_condition() for the scheduler thread.
(closes issue #10564, patch from casper)

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

18 years agoFix some issues with the handling of the scheduler in chan_iax2. Most of the
Russell Bryant [Sat, 25 Aug 2007 17:37:39 +0000 (17:37 +0000)] 
Fix some issues with the handling of the scheduler in chan_iax2.  Most of the
places that scheduled items to be executed by the scheduler thread did not
signal the scheduler thread to wake up so that it could recalculate the time
until the next action.  These changes will make the scheduler thread more
responsive and ensure that actions get executed as close to when intended as
possible instead of it being possible for very long delays.

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

18 years agoAn empty string is an empty callerid ... so zap it. This closes issue #10502, which...
Dwayne M. Hubbard [Fri, 24 Aug 2007 22:59:52 +0000 (22:59 +0000)] 
An empty string is an empty callerid ... so zap it.  This closes issue #10502, which was pointed out by dswartz.  Thank you, and may the swartz be with you

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

18 years agoIf dnsmgr is in use, and no DNS servers are available when Asterisk first
Russell Bryant [Fri, 24 Aug 2007 21:22:50 +0000 (21:22 +0000)] 
If dnsmgr is in use, and no DNS servers are available when Asterisk first
starts, then don't give up on poking peers.  Allow the poke to get rescheduled
so that it will work once the dnsmgr is able to resolve the host.
(closes issue #10521, patch by jamesgolovich)

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

18 years agoImprove the debouncing logic in the DTMF detector to fix some reliability
Russell Bryant [Fri, 24 Aug 2007 20:24:05 +0000 (20:24 +0000)] 
Improve the debouncing logic in the DTMF detector to fix some reliability
issues.  Previously, this code used a shift register of hits and non-hits.
However, if the start of the digit isn't clean, it is possible for the
leading edge detector to miss the digit.  These changes replace the flawed
shift register logic and also does the debouncing on the trailing edge as well.
(closes issue #10535, many thanks to softins for the patch)

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

18 years ago A minor correction to the available logic of autofill. If a queue member is paused...
BJ Weschke [Fri, 24 Aug 2007 19:52:06 +0000 (19:52 +0000)] 
 A minor correction to the available logic of autofill. If a queue member is paused, they're not really "available" so don't count them as such. Somewhat related to issue #10155

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

18 years agoFrom a complaint by jmls, I realize that the message in cdr_disposition is unnecessar...
Steve Murphy [Fri, 24 Aug 2007 18:52:15 +0000 (18:52 +0000)] 
From a complaint by jmls, I realize that the message in cdr_disposition is unnecessary. To get failure disposition, just return -1; no use having more than one case do that.

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

18 years agoFix a possible crash in IMAP voicemail.
Mark Michelson [Fri, 24 Aug 2007 15:51:03 +0000 (15:51 +0000)] 
Fix a possible crash in IMAP voicemail.

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

18 years agoMake the deprecation warning inline with the code, instead of only in documentation...
Tilghman Lesher [Fri, 24 Aug 2007 15:41:43 +0000 (15:41 +0000)] 
Make the deprecation warning inline with the code, instead of only in documentation (closes issue #10549)

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

18 years agoTweak the formatting of this MODULEINFO block. I think this would have caused
Russell Bryant [Fri, 24 Aug 2007 15:28:05 +0000 (15:28 +0000)] 
Tweak the formatting of this MODULEINFO block.  I think this would have caused
a "*" to get in the menuselect-tree file.

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

18 years agoThis change addresses JerJer's complaint that aelparse builds and installs even if...
Steve Murphy [Fri, 24 Aug 2007 14:48:49 +0000 (14:48 +0000)] 
This change addresses JerJer's complaint that aelparse builds and installs even if pbx_ael is unchecked in the menuselect stuff.

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

18 years agobackport of 80649, a fix to an unreported problem in the ael parser, that results...
Steve Murphy [Fri, 24 Aug 2007 13:20:18 +0000 (13:20 +0000)] 
backport of 80649, a fix to an unreported problem in the ael parser, that results in a crash on a 64bit machine

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

18 years agoCloses issue #10509
Philippe Sultan [Fri, 24 Aug 2007 11:42:46 +0000 (11:42 +0000)] 
Closes issue #10509

Googletalk calls are answered too early, which results in CDRs wrongly
stating that a call was ANSWERED when the calling party cancelled a
call before before being established.

We must not answer the call upon reception of a 'transport-accept' iq
packet, but this packet still needs to be acknowledged, otherwise the
remote peer would close the call (like in #8970).

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

18 years agomake misdn/isdn_lib compile without warnings
Dwayne M. Hubbard [Thu, 23 Aug 2007 21:34:16 +0000 (21:34 +0000)] 
make misdn/isdn_lib compile without warnings

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

18 years agomake chan_misdn compile without warnings
Dwayne M. Hubbard [Thu, 23 Aug 2007 21:07:50 +0000 (21:07 +0000)] 
make chan_misdn compile without warnings

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

18 years agoWhen executing a dynamic feature, don't look it up a second time by digit pattern
Russell Bryant [Thu, 23 Aug 2007 20:16:41 +0000 (20:16 +0000)] 
When executing a dynamic feature, don't look it up a second time by digit pattern
after we already looked it up by name.  This causes broken behavior if there is
more than one feature defined with the same digit pattern.
(closes issue #10539, reported by bungalow, patch by me)

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

18 years agoRevert very broken fix for issue #10540 ... none of these values take ms so I
Russell Bryant [Thu, 23 Aug 2007 19:29:44 +0000 (19:29 +0000)] 
Revert very broken fix for issue #10540 ... none of these values take ms so I
don't know what I was thinking

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

18 years agoFix func_timeout to take values in floating point so 1.5 actually means
Russell Bryant [Thu, 23 Aug 2007 19:21:53 +0000 (19:21 +0000)] 
Fix func_timeout to take values in floating point so 1.5 actually means
1.5 seconds instead of being rounded.
(closes issue #10540, reported by spendergrass, patch by me)

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

18 years ago*sigh*
Jason Parker [Thu, 23 Aug 2007 17:14:05 +0000 (17:14 +0000)] 
*sigh*

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

18 years agouse autotagged externals
Jason Parker [Thu, 23 Aug 2007 17:11:48 +0000 (17:11 +0000)] 
use autotagged externals

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

18 years agoreport the actual channel number that was unregistered, instead of assuming that...
Kevin P. Fleming [Thu, 23 Aug 2007 17:08:25 +0000 (17:08 +0000)] 
report the actual channel number that was unregistered, instead of assuming that the interface list consists of channels 1 through <x> with no gaps in the sequence

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

18 years agoFix some code where it was possible for a reference to a peer to not get
Russell Bryant [Thu, 23 Aug 2007 17:02:50 +0000 (17:02 +0000)] 
Fix some code where it was possible for a reference to a peer to not get
released when it should.  Thank you to Marta Carbone for pointing this out!

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

18 years agoThis is a hack to maintain old behavior of chan_iax2. This ensures that if
Russell Bryant [Thu, 23 Aug 2007 16:53:52 +0000 (16:53 +0000)] 
This is a hack to maintain old behavior of chan_iax2.  This ensures that if
the peers and users are being stored in a linked list, that they go in the
list in the same order that the older code used.  This is necessary to maintain
the behavior of which peers and users get matched when traversing the container.

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

18 years agoRevert res_agi fix that didn't quite work until we get it right ...
Russell Bryant [Thu, 23 Aug 2007 15:49:28 +0000 (15:49 +0000)] 
Revert res_agi fix that didn't quite work until we get it right ...

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

18 years agoAdd some more documentation on iterating ao2 containers. The documentation
Russell Bryant [Wed, 22 Aug 2007 22:54:03 +0000 (22:54 +0000)] 
Add some more documentation on iterating ao2 containers.  The documentation
implies that is possible to miss an object or see an object twice while
iterating.  After looking through the code and talking with mmichelson, I have
documented the exact conditions under which this can happen (which are rare and
harmless in most cases).

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

18 years agoWhen converting this code to use the list macros, I changed it so objects are
Russell Bryant [Wed, 22 Aug 2007 22:40:27 +0000 (22:40 +0000)] 
When converting this code to use the list macros, I changed it so objects are
added to the head of a bucket instead of the tail.  However, while looking over
code with mmichelson, we noticed that the algorithm used in ao2_iterator_next
requires that items are added to the tail.  This wouldn't have caused any huge
problem, but it wasn't correct.  It meant that if an object was added to a
container while you were iterating it, and it was added to the same bucket that
the current element is in, then the new object would be returned by
ao2_iterator_next, and any other objects in the bucket would be bypassed in
the traversal.

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

18 years agoDon't crash when using realtime in chan_sip without an insecure setting in the database.
Russell Bryant [Wed, 22 Aug 2007 21:00:44 +0000 (21:00 +0000)] 
Don't crash when using realtime in chan_sip without an insecure setting in the database.
(closes issue #10348, reported by link55, fixed by me)

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

18 years agoMerge changes from team/russell/iax_refcount.
Russell Bryant [Wed, 22 Aug 2007 20:21:36 +0000 (20:21 +0000)] 
Merge changes from team/russell/iax_refcount.

This set of changes fixes problems with the handling of iax2_user and iax2_peer
objects.  It was very possible for a thread to still hold a reference to one of
these objects while a reload operation tries to delete them.  The fix here is to
ensure that all references to these objects are tracked so that they can't go away
while still in use.

To accomplish this, I used the astobj2 reference counted object model.  This
code has been in one of Luigi Rizzo's branches for a long time and was primarily
developed by one of his students, Marta Carbone.  I wanted to go ahead and bring
this in to 1.4 because there are other problems similar to the ones fixed by these
changes, so we might as well go ahead and use the new astobj if we're going to go
through all of the work necessary to fix the problems.

As a nice side benefit of these changes, peer and user handling got more efficient.
Using astobj2 lets us not hold the container lock for peers or users nearly as long
while iterating.  Also, by changing a define at the top of chan_iax2.c, the objects
will be distributed in a hash table, drastically increasing lookup speed in these
containers, which will have a very big impact on systems that have a large number of
users or peers.

The use of the hash table will be made the default in trunk.  It is not the default
in 1.4 because it changes the behavior slightly.  Previously, since peers and users
were stored in memory in the same order they were specified in the configuration file,
you could influence peer and user matching order based on the order they are specified
in the configuration.  The hash table does not guarantee any order in the container,
so this behavior will be going away.  It just means that you have to be a little
more careful ensuring that peers and users are matched explicitly and not forcing
chan_iax2 to have to guess which user is the right one based on secret, host, and
access list settings, instead of simply using the username.

If you have any questions, feel free to ask on the asterisk-dev list.

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

18 years agoJuggie in #asterisk-dev was reporting problems where fgets would return
Russell Bryant [Wed, 22 Aug 2007 19:53:30 +0000 (19:53 +0000)] 
Juggie in #asterisk-dev was reporting problems where fgets would return
without reading  the whole line when using fastagi.  When this happens,
errno was set to EINTR or EAGAIN.  This patch accounts for the possibility
and lets fgets continue in that case.

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

18 years agoFix a few build issues in Solaris (and likely others).
Jason Parker [Wed, 22 Aug 2007 18:53:18 +0000 (18:53 +0000)] 
Fix a few build issues in Solaris (and likely others).

Use GREP and ID variables from autoconf.

Reported to me in #asterisk-dev
I forgot who reported this - sorry. :(

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

18 years agoChange a syntax that the GNU make in Solaris dislikes.
Jason Parker [Wed, 22 Aug 2007 18:25:34 +0000 (18:25 +0000)] 
Change a syntax that the GNU make in Solaris dislikes.

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

18 years agoFix a bashism (we explicitly request /bin/sh).
Jason Parker [Wed, 22 Aug 2007 18:06:00 +0000 (18:06 +0000)] 
Fix a bashism (we explicitly request /bin/sh).
Remove some oddly placed quotes I found in passing.

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

18 years agoHonor the contents of the COPTS variable as custom target CFLAGS. Apparently
Russell Bryant [Wed, 22 Aug 2007 16:21:58 +0000 (16:21 +0000)] 
Honor the contents of the COPTS variable as custom target CFLAGS.  Apparently
this is what openwrt does.
(reported by Brian Capouch on the asterisk-dev list, patch by me)

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

18 years ago(closes issue #10526)
Joshua Colp [Wed, 22 Aug 2007 16:14:38 +0000 (16:14 +0000)] 
(closes issue #10526)
Reported by: sinistermidget
Revert commit from issue #10355 and return timestamp skew to 640.

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

18 years agoDon't record SIP dialog history if it's not turned on. Also, put an upper
Russell Bryant [Tue, 21 Aug 2007 18:42:15 +0000 (18:42 +0000)] 
Don't record SIP dialog history if it's not turned on.  Also, put an upper
limit on how many history entires will be stored for each SIP dialog.  It is
currently set to 50, but can be increased if deemed necessary.
(closes issue #10421, closes issue #10418, patches suggested by jmoldenhauer,
 patches updated by me)
(Security implications documented in AST-2007-020)

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

18 years agough. removing the diffs from ulaw.h and alaw.h for now; accidentally added them in...
Steve Murphy [Tue, 21 Aug 2007 16:39:09 +0000 (16:39 +0000)] 
ugh. removing the diffs from ulaw.h and alaw.h for now; accidentally added them in 80166

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

18 years agoThis patch solves problem 1 in 8126; it should not slow down the alaw codec, but...
Steve Murphy [Tue, 21 Aug 2007 16:36:34 +0000 (16:36 +0000)] 
This patch solves problem 1 in 8126; it should not slow down the alaw codec, but should prevent signal degradation via multiple trips thru the codec. Fossil estimates the twice thru this codec will prevent fax from working. 4-6 times thru would result hearable, noticeable, voice degradation.

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

18 years agoDon't try to dereference the owner channel when it may not exist
Russell Bryant [Tue, 21 Aug 2007 15:22:22 +0000 (15:22 +0000)] 
Don't try to dereference the owner channel when it may not exist
(issue #10507, maxper)

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

18 years ago(issue #10510)
Jason Parker [Tue, 21 Aug 2007 15:03:45 +0000 (15:03 +0000)] 
(issue #10510)
Reported by: casper
Patches:
      cdr.conf.diff uploaded by casper (license 55)

Fix a few errors in sample cdr config file.

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

18 years agoFix the build of app_queue
Russell Bryant [Mon, 20 Aug 2007 21:57:08 +0000 (21:57 +0000)] 
Fix the build of app_queue

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