aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2008-03-07Merged revisions 106553 via svnmerge from tilghman13-26/+28
https://origsvn.digium.com/svn/asterisk/trunk ................ r106553 | tilghman | 2008-03-07 00:54:47 -0600 (Fri, 07 Mar 2008) | 14 lines Merged revisions 106552 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r106552 | tilghman | 2008-03-07 00:36:33 -0600 (Fri, 07 Mar 2008) | 6 lines Safely use the strncat() function. (closes issue #11958) Reported by: norman Patches: 20080209__bug11958.diff.txt uploaded by Corydon76 (license 14) ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@106554 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-07Merged revisions 106518 via svnmerge from russell1-0/+4
https://origsvn.digium.com/svn/asterisk/trunk ........ r106518 | russell | 2008-03-06 19:19:02 -0600 (Thu, 06 Mar 2008) | 1 line minor text changes ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@106520 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-07Merged revisions 106507 via svnmerge from russell1-18/+118
https://origsvn.digium.com/svn/asterisk/trunk ........ r106507 | russell | 2008-03-06 19:15:36 -0600 (Thu, 06 Mar 2008) | 2 lines Add updated SMDI documentation that I had only sitting in my email ... oops ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@106508 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-07Merged revisions 106501 via svnmerge from russell4-13/+36
https://origsvn.digium.com/svn/asterisk/trunk ........ r106501 | russell | 2008-03-06 18:24:58 -0600 (Thu, 06 Mar 2008) | 28 lines Merge changes from team/russell/g722-sillyness ... Fix a number of other places where the number of samples in a G722 frame was not properly handled because of various reasons. main/rtp.c: - When a G722 frame is read from the smoother, the number of samples in the frame must be divided by 2 before being sent out over the network. Even though G722 is 16 kHz, an error in some previous spec has made it so that we have to list the number of samples such as if it was 8 kHz. main/file.c: - When scheduling the next time to expect a frame, take into account that the format of the file we're reading from may not be 8 kHz. codecs/codec_g722.c: - When converting from G722 to slinear, g722_decode() expects its samples parameter to be in the silly (real samples / 2) format. Make it so. - When converting from slinear to G722, properly set the number of samples in the frame to be the number of bytes of output * 2. formats/format_pcm.c: - This format module handles G722, among a number of other formats. However, the read() and seek() functions did not account for the fact that G722 has 2 samples per byte. (closes issue #12130, reported by rickross, patched by me) ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@106502 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-06Merged revisions 106438 via svnmerge from mmichelson1-3/+1
https://origsvn.digium.com/svn/asterisk/trunk ................ r106438 | mmichelson | 2008-03-06 16:11:26 -0600 (Thu, 06 Mar 2008) | 16 lines Merged revisions 106437 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r106437 | mmichelson | 2008-03-06 16:10:07 -0600 (Thu, 06 Mar 2008) | 8 lines Quell an annoying message that is likely to print every single time that ast_pbx_outgoing_app is called. The reason is that __ast_request_and_dial allocates the cdr for the channel, so it should be expected that the channel will have a cdr on it. Thanks to joetester on IRC for pointing this out ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@106442 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-06Merged revisions 106439 via svnmerge from qwell1-41/+71
https://origsvn.digium.com/svn/asterisk/trunk ........ r106439 | qwell | 2008-03-06 16:11:30 -0600 (Thu, 06 Mar 2008) | 8 lines Fix file playback in many cases. (closes issue #12115) Reported by: pj Patches: v2-fileexists.patch uploaded by dimas (license 88) (with modifications by me) Tested by: dimas, qwell, russell ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@106440 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-06Merged revisions 106399 via svnmerge from juggie1-1/+1
https://origsvn.digium.com/svn/asterisk/trunk ........ r106399 | juggie | 2008-03-06 14:31:50 -0500 (Thu, 06 Mar 2008) | 9 lines trivial fix for an agi error when attempting to use EAGI on a dead/hungup channel, we now print an error that makes sense given our removal of deadagi as an actual application. (closes issue #12161) Reported by: explidous Patches: res_agi_12161.patch uploaded by juggie (license 24) Tested by: juggie ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@106433 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-06Merged revisions 106346 via svnmerge from tilghman1-2/+5
https://origsvn.digium.com/svn/asterisk/trunk ........ r106346 | tilghman | 2008-03-05 23:21:39 -0600 (Wed, 05 Mar 2008) | 7 lines Missing braces, fix parsing (closes issue #12112) Reported by: cyrenity Patches: res_config_ldap.patch-03-03-2008 uploaded by cyrenity (license 416) Tested by: cyrenity, Corydon76 ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@106359 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-06Merged revisions 106329 via svnmerge from tilghman2-1/+8
https://origsvn.digium.com/svn/asterisk/trunk ................ r106329 | tilghman | 2008-03-05 22:45:16 -0600 (Wed, 05 Mar 2008) | 10 lines Merged revisions 106328 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r106328 | tilghman | 2008-03-05 22:40:06 -0600 (Wed, 05 Mar 2008) | 2 lines Upgrade to the next release of sounds ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@106330 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-06Blocked revisions 106250 via svnmergerussell0-0/+0
........ r106250 | qwell | 2008-03-05 17:21:52 -0600 (Wed, 05 Mar 2008) | 1 line Add a cmenuselect/cmenuconfig, to force curses. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@106320 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-06Blocked revisions 106240 via svnmergerussell0-0/+0
........ r106240 | russell | 2008-03-05 16:50:00 -0600 (Wed, 05 Mar 2008) | 5 lines Add the nmenuselect makefile targets. This is a newt menuselect interface which is much sexier than the curses one that was written by seanbright. :) (issue #12139) ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@106319 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-06Merged revisions 106239 via svnmerge from russell17-16/+68
https://origsvn.digium.com/svn/asterisk/trunk ................ r106239 | file | 2008-03-05 16:43:22 -0600 (Wed, 05 Mar 2008) | 12 lines Merged revisions 106235 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r106235 | file | 2008-03-05 18:32:10 -0400 (Wed, 05 Mar 2008) | 4 lines Add a control frame to indicate the source of media has changed. Depending on the underlying technology it may need to change some things. (closes issue #12148) Reported by: jcomellas ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@106318 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-06Merged revisions 106238 via svnmerge from russell1-10/+26
https://origsvn.digium.com/svn/asterisk/trunk ................ r106238 | russell | 2008-03-05 16:40:58 -0600 (Wed, 05 Mar 2008) | 11 lines Merged revisions 106237 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r106237 | russell | 2008-03-05 16:37:09 -0600 (Wed, 05 Mar 2008) | 3 lines Fix a potential deadlock and a few different potential crashes. (closes issue #12145, reported by thiagarcia, patched by me) ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@106317 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-06Blocked revisions 106236 via svnmergerussell0-0/+0
........ r106236 | mmichelson | 2008-03-05 16:33:05 -0600 (Wed, 05 Mar 2008) | 11 lines Adding the Atxfer manager command. With this, you may initiate an attended transfer over AMI (closes issue #10585) Reported by: ornati Patches: atxfer-trunk-r90428.diff uploaded by ornati (license 210) (with modifications from me) Tested by: putnopvut ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@106316 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-06Merged revisions 106186 via svnmerge from russell1-0/+14
https://origsvn.digium.com/svn/asterisk/trunk ........ r106186 | mvanbaak | 2008-03-05 15:19:06 -0600 (Wed, 05 Mar 2008) | 7 lines document var_metric usage to prevent bugreports that are actually configuration issues (closes issue #12151) Reported by: caio1982 Patches: DB_metric3.diff uploaded by caio1982 (license 22) ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@106315 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-06Blocked revisions 106179 via svnmergerussell0-0/+0
................ r106179 | mvanbaak | 2008-03-05 15:15:57 -0600 (Wed, 05 Mar 2008) | 12 lines Blocked revisions 106178 via svnmerge ........ r106178 | mvanbaak | 2008-03-05 22:12:36 +0100 (Wed, 05 Mar 2008) | 5 lines document var_metric so no bugreports will come in when it's actually a configuration issue. (issue #12151) Reported and patched by: caio1982 1.4 patch by me ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@106314 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-06Blocked revisions 106110 via svnmergerussell0-0/+0
........ r106110 | file | 2008-03-05 10:39:22 -0600 (Wed, 05 Mar 2008) | 2 lines Fix code up to what it was meant to be. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@106313 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-06Blocked revisions 106072 via svnmergerussell0-0/+0
........ r106072 | tilghman | 2008-03-05 10:23:44 -0600 (Wed, 05 Mar 2008) | 7 lines Create a centralized configuration option for silencethreshold (closes issue #11236) Reported by: philipps Patches: 20080218__bug11236.diff.txt uploaded by Corydon76 (license 14) Tested by: philipps ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@106312 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-06Blocked revisions 105984 via svnmergerussell0-0/+0
........ r105984 | russell | 2008-03-04 22:34:29 -0600 (Tue, 04 Mar 2008) | 3 lines - simplify a few statements with ARRAY_LEN() - constify the stregy int to string mappings array ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@106311 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-06Merged revisions 105933 via svnmerge from russell3-12/+15
https://origsvn.digium.com/svn/asterisk/trunk ................ r105933 | russell | 2008-03-04 19:54:16 -0600 (Tue, 04 Mar 2008) | 13 lines Merged revisions 105932 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r105932 | russell | 2008-03-04 19:52:18 -0600 (Tue, 04 Mar 2008) | 5 lines Fix a bug that I just noticed in the RTP code. The calculation for setting the len field in an ast_frame of audio was wrong when G.722 is in use. The len field represents the number of ms of audio that the frame contains. It would have set the value to be twice what it should be. ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@106310 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-06Merged revisions 105899 via svnmerge from russell1-1/+6
https://origsvn.digium.com/svn/asterisk/trunk ........ r105899 | russell | 2008-03-04 18:45:39 -0600 (Tue, 04 Mar 2008) | 3 lines Fix the SHARED() read callback to properly unlock the channel. This function could not have worked, as it left the channel locked in all cases. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@106309 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-06Merged revisions 105864 via svnmerge from russell1-6/+6
https://origsvn.digium.com/svn/asterisk/trunk ........ r105864 | mmichelson | 2008-03-04 17:24:56 -0600 (Tue, 04 Mar 2008) | 5 lines There are several places in manager.c where BUFSIZ is used for a buffer which will contain nowhere near that amount of data. This makes these buffers more reasonably sized. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@106308 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-06Merged revisions 105841 via svnmerge from russell4-14/+14
https://origsvn.digium.com/svn/asterisk/trunk ........ r105841 | tilghman | 2008-03-04 17:10:45 -0600 (Tue, 04 Mar 2008) | 2 lines Fix minor misuses of snprintf ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@106307 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-06Merged revisions 105840 via svnmerge from russell32-661/+547
https://origsvn.digium.com/svn/asterisk/trunk ........ r105840 | tilghman | 2008-03-04 17:04:29 -0600 (Tue, 04 Mar 2008) | 2 lines Whitespace changes only ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@106306 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-06Merged revisions 105804 via svnmerge from russell5-3/+16
https://origsvn.digium.com/svn/asterisk/trunk ........ r105804 | russell | 2008-03-04 16:28:03 -0600 (Tue, 04 Mar 2008) | 2 lines add a destroy API call for a server instance ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@106305 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-06Merged revisions 105785 via svnmerge from russell5-33/+33
https://origsvn.digium.com/svn/asterisk/trunk ........ r105785 | russell | 2008-03-04 16:23:21 -0600 (Tue, 04 Mar 2008) | 2 lines More public API name changes to use an appropriate ast_ prefix ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@106304 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-06Merged revisions 105773 via svnmerge from russell7-31/+31
https://origsvn.digium.com/svn/asterisk/trunk ........ r105773 | russell | 2008-03-04 16:15:18 -0600 (Tue, 04 Mar 2008) | 2 lines Rename public object server_instance to ast_tcptls_server_instance ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@106303 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-06Merged revisions 105734 via svnmerge from russell1-2/+9
https://origsvn.digium.com/svn/asterisk/trunk ........ r105734 | russell | 2008-03-04 14:36:16 -0600 (Tue, 04 Mar 2008) | 6 lines Fix some bugs in the SIP tcp helper thread. - fix a spot where a lock wouldn't get unlocked in an error condition - call ast_mutex_destroy() on the lock before freeing its memory (related to issue #11972) ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@106302 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-06Merged revisions 105733 via svnmerge from russell1-1/+7
https://origsvn.digium.com/svn/asterisk/trunk ........ r105733 | twilson | 2008-03-04 14:32:55 -0600 (Tue, 04 Mar 2008) | 2 lines Set username to default to the category name if it isn't overridden by a usernmae= setting in users.conf ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@106301 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-06Merged revisions 105677 via svnmerge from russell1-0/+1
https://origsvn.digium.com/svn/asterisk/trunk ................ r105677 | file | 2008-03-04 12:11:38 -0600 (Tue, 04 Mar 2008) | 10 lines Merged revisions 105676 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r105676 | file | 2008-03-04 14:10:34 -0400 (Tue, 04 Mar 2008) | 2 lines In addition to setting the marker bit let's change our ssrc so they know for sure it is a different source. ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@106300 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-06Merged revisions 105675 via svnmerge from russell3-1/+23
https://origsvn.digium.com/svn/asterisk/trunk ................ r105675 | file | 2008-03-04 12:08:42 -0600 (Tue, 04 Mar 2008) | 16 lines Merged revisions 105674 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r105674 | file | 2008-03-04 14:05:28 -0400 (Tue, 04 Mar 2008) | 8 lines When a new source of audio comes in (such as music on hold) make sure the marker bit gets set. (closes issue #10355) Reported by: wdecarne Patches: 10355.diff uploaded by file (license 11) (closes issue #11491) Reported by: kanderson ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@106299 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-05Merged revisions 106139 via svnmerge from tilghman1-3/+3
https://origsvn.digium.com/svn/asterisk/trunk ........ r106139 | tilghman | 2008-03-05 11:40:42 -0600 (Wed, 05 Mar 2008) | 3 lines Should check these values for non-NULL before scanning. (Closes issue #12147) ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@106140 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-05Merged revisions 106040 via svnmerge from kpfleming1-16/+23
https://origsvn.digium.com/svn/asterisk/trunk ................ r106040 | kpfleming | 2008-03-05 09:40:40 -0600 (Wed, 05 Mar 2008) | 15 lines Merged revisions 106038 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r106038 | kpfleming | 2008-03-05 09:32:35 -0600 (Wed, 05 Mar 2008) | 7 lines when a PRI call must be moved to a different B channel at the request of the other endpoint, ensure that any DSP active on the original channel is moved to the new one (closes issue #11917) Reported by: mavetju Tested by: mavetju ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@106041 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-05Merged revisions 106036 via svnmerge from tilghman2-2/+5
https://origsvn.digium.com/svn/asterisk/trunk ................ r106036 | tilghman | 2008-03-05 09:23:32 -0600 (Wed, 05 Mar 2008) | 15 lines Merged revisions 106015 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r106015 | tilghman | 2008-03-05 09:17:16 -0600 (Wed, 05 Mar 2008) | 7 lines Correctly initialize retransid in SIP, and ensure that the warning when failing to delete a schedule entry can actually hit the log. (closes issue #12140) Reported by: slavon Patches: sch2.patch uploaded by slavon (license 288) (Patch slightly modified by me) ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@106037 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-04change the versions in the headingrussell1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@105600 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-04Blocked revisions 105597 via svnmergerussell0-0/+0
........ r105597 | russell | 2008-03-04 10:55:17 -0600 (Tue, 04 Mar 2008) | 2 lines Update CHANGES heading ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@105599 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-04set up trunk-merged propertyrussell0-0/+0
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@105598 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-04Create 1.6.0 branch (email to asterisk-dev coming soon to explain)russell0-0/+0
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@105596 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-04Simplify a trivial snprintf() with ast_copy_string()russell1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@105595 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-04Make it so you don't have to cast away const in a couple placesrussell1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@105594 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-04remove unnecessary castsrussell1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@105593 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-04Blocked revisions 105591 via svnmergerussell0-0/+0
........ r105591 | russell | 2008-03-03 22:31:29 -0600 (Mon, 03 Mar 2008) | 4 lines Backport a minor bug fix from trunk that I found while doing random code cleanup. Properly break out of the loop when a context isn't found when verify that includes are valid. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@105592 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-04 - Add curly braces around the while looprussell1-6/+10
- Properly break out of the loop on error when an included context is not found git-svn-id: http://svn.digium.com/svn/asterisk/trunk@105590 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-04Use ast_copy_string() instead of strncpy(), and use sizeof() instead ofrussell1-1/+4
a magic number git-svn-id: http://svn.digium.com/svn/asterisk/trunk@105589 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-03Fix some code that was improperly changed in revision 104866 from issue #12079.russell1-1/+1
(closes issue #12129, reported by elguero, patched by me) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@105574 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-03Merged revisions 105572 via svnmerge from qwell1-2/+2
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r105572 | qwell | 2008-03-03 12:06:52 -0600 (Mon, 03 Mar 2008) | 7 lines Fix types for astNumChannels and astConfigCallsProcessed. (closes issue #12114) Reported by: jeffg Patches: 12114.patch uploaded by jeffg (license 192) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@105573 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-03Merged revisions 105570 via svnmerge from russell1-1/+8
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r105570 | russell | 2008-03-03 11:16:53 -0600 (Mon, 03 Mar 2008) | 3 lines In the case of an ast_channel allocation failure, take the local_pvt out of the pvt list before destroying it. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@105571 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-03Merged revisions 105568 via svnmerge from russell1-10/+14
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r105568 | russell | 2008-03-03 11:05:16 -0600 (Mon, 03 Mar 2008) | 3 lines Fix a potential memory leak of the local_pvt struct when ast_channel allocation fails. Also, in passing, centralize the code necessary to destroy a local_pvt. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@105569 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-03Merged revisions 105565 via svnmerge from russell1-1/+3
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r105565 | russell | 2008-03-03 10:01:50 -0600 (Mon, 03 Mar 2008) | 3 lines Update the copyright information for autoservice. Most of the code in this file now is stuff that I have written recently ... ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@105566 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-033) In addition to merging the changes below, change trunk back to a regularrussell4-26/+44
LIST instead of an RWLIST. The way this list works makes it such that a RWLIST provides no additional benefit. Also, a mutex is needed for use with the thread condition. Merged revisions 105563 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r105563 | russell | 2008-03-03 09:50:43 -0600 (Mon, 03 Mar 2008) | 24 lines Merge in some changes from team/russell/autoservice-nochans-1.4 These changes fix up some dubious code that I came across while auditing what happens in the autoservice thread when there are no channels currently in autoservice. 1) Change it so that autoservice thread doesn't keep looping around calling ast_waitfor_n() on 0 channels twice a second. Instead, use a thread condition so that the thread properly goes to sleep and does not wake up until a channel is put into autoservice. This actually fixes an interesting bug, as well. If the autoservice thread is already running (almost always is the case), then when the thread goes from having 0 channels to have 1 channel to autoservice, that channel would have to wait for up to 1/2 of a second to have the first frame read from it. 2) Fix up the code in ast_waitfor_nandfds() for when it gets called with no channels and no fds to poll() on, such as was the case with the previous code for the autoservice thread. In this case, the code would call alloca(0), and pass the result as the first argument to poll(). In this case, the 2nd argument to poll() specified that there were no fds, so this invalid pointer shouldn't actually get dereferenced, but, this code makes it explicit and ensures the pointers are NULL unless we have valid data to put there. (related to issue #12116) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@105564 f38db490-d61c-443f-a65b-d21fe96a405b