aboutsummaryrefslogtreecommitdiffstats
path: root/res/res_musiconhold.c
AgeCommit message (Collapse)AuthorFilesLines
2007-07-13Fix a couple potential minor memory leaks. load_moh_classes() could returnrussell1-2/+2
without destroying the loaded configuration. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@75107 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-13Ensure that adding a user to the list of users of a specific music on holdrussell1-0/+2
class is not done at the same time as any of the other operations on this list to prevent list corruption. Using the global moh_data lock for this is not ideal, but it is what is used to protect these lists everywhere else in the module, and I am only changing what is necessary to fix the bug. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@75059 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-12Only print out a warning for situations where it is actually helpful. (issue ↵file1-8/+9
#10187 reported by denke) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@74814 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-09When the specified class isn't found, properly fall back to the channel's musicrussell1-9/+9
class or the default. (issue #10123, reported by blitzrage, patches from juggie, qwell, and me) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@74165 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-01Return previous behavior of having MOH pick up where it was left off. (issue ↵file1-12/+13
#8672 reported by sinistermidget) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@53084 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-23Yield before reading from zaptel timing source under Solaris so that other ↵file1-0/+6
threads get a chance to do things. (issue #7875 reported by bob) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@51512 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-11When doing a fork() and exec(), two problems existed (Issue 8086):tilghman1-0/+11
1) Ignored signals stayed ignored after the exec(). 2) Signals could possibly fire between the fork() and exec(), causing Asterisk signal handlers within the child to execute, which caused nasty race conditions. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@48374 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-07Ensure that the file position is not incremented beyond the total number ofrussell1-0/+1
files available for playback. (issue #8539, ulogic) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@48356 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-27Random MOH wasn't really random (bug 8381)tilghman1-17/+14
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@48045 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-07If random order is enabled for files mode music on hold, set a random initialrussell1-0/+2
position, instead of always starting at the first file, and doing the random operation only when switching to the next file. (bug reported by John Lange on the asterisk-dev mailing list) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@47238 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-02ignore files in a music on hold directory that begin with '.'russell1-0/+4
(issue #8249, cboie) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@46964 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-27We should always be using _exit() after a fork() or vfork() instead of exit().russell1-1/+1
This is because exit() does some extra cleanup which in some implementations of vfork(), for example, can actually modify the state of the parent process, causing very weird bugs or crashes. (issue #7971, Nick Gavrikov) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@46361 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-28Put in missing \ns on the end of ast_logs (issue #7936 reported by wojtekka)file1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@43924 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-03Treat the file as invalid if we have no valid formats for it (issue #7643 ↵file1-1/+1
reported by KNK) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@38825 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-01Close the stream when file based MOH stop. This won't get rid of their ↵file1-0/+4
position in the file but it will cause the translation path to be setup again. (issue #7634 reported by asimpson) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@38654 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-03when using moh files mode, don't look for a file past the number of filesrussell1-0/+2
that have been loaded, or worse, past the size of the files array git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@31775 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-01remove pointless forcing of the channel into SLINEAR mode; the write format ↵kpfleming1-12/+2
will be set later based on the file that is chosen to be played to the channel git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@31555 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-01Bug 6864 - drop realtime priority on ALL external processestilghman1-0/+4
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@24019 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-17Bug 6544 - when we remove a music class, the thread servicing it should dietilghman1-0/+21
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@20966 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-30Do not exceed the array size for maximum allowed moh files. (issue #6842)file1-0/+5
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@16534 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-29git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@7221 ↵kpfleming1-0/+0
f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-20issue #5791russell1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/v1-2@7147 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-16issue #5766kpfleming1-11/+17
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7116 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-08issue #5648kpfleming1-5/+5
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7011 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-24Doxygen documentation update from oej (issue #5505)russell1-2/+4
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6847 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-19Fix res_musiconhold lockmarkster1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6831 f38db490-d61c-443f-a65b-d21fe96a405b
2005-09-14update MANY more files with proper copyright/license info (thanks Ian!)kpfleming1-4/+15
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6596 f38db490-d61c-443f-a65b-d21fe96a405b
2005-09-01don't access freed memory if the frame was malloc'dkpfleming1-1/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6484 f38db490-d61c-443f-a65b-d21fe96a405b
2005-08-31ensure that the MOH_QUIET flag gets set for the mode "quietmp3nb"russell1-2/+5
add mode to the output of the "moh classes show" cli command git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6463 f38db490-d61c-443f-a65b-d21fe96a405b
2005-08-25don't install moh functions if no classes are configured (issue #5025 with mods)kpfleming1-6/+12
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6412 f38db490-d61c-443f-a65b-d21fe96a405b
2005-08-22support new format for musiconhold.conf (issue #4908)kpfleming1-53/+178
support non-SLINEAR moh streams (issue #4908) add external app to feed TCP stream into Asterisk for moh (issue #4908) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6353 f38db490-d61c-443f-a65b-d21fe96a405b
2005-07-28Fix music on hold leak (bug #4842)markster1-5/+21
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6244 f38db490-d61c-443f-a65b-d21fe96a405b
2005-07-15add a library of timeval manipulation functions, and change a large number ↵kpfleming1-38/+11
of usses to use the new functions (bug #4504) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6146 f38db490-d61c-443f-a65b-d21fe96a405b
2005-07-12revert patch from bug #4532 until CPU consumption problem can be resolvedkpfleming1-38/+18
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6111 f38db490-d61c-443f-a65b-d21fe96a405b
2005-07-11fix threading portability problem with FreeBSD (bug #4532)kpfleming1-18/+38
ensure that all mpg123 child processes get killed when the parent is killed (bug #4532) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6086 f38db490-d61c-443f-a65b-d21fe96a405b
2005-06-30Apply NODIR Patch (Bug #4619)anthm1-10/+15
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6017 f38db490-d61c-443f-a65b-d21fe96a405b
2005-06-06more file version tagskpfleming1-13/+19
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5866 f38db490-d61c-443f-a65b-d21fe96a405b
2005-06-06major Makefile and build process improvements, including removal of all ↵kpfleming1-1/+0
hardcoded paths (modules must now use run-time paths as they should) (bug #4116) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5855 f38db490-d61c-443f-a65b-d21fe96a405b
2005-06-06more efficient (and understandable) ast_channel_walk_locked, and vastly more ↵kpfleming1-4/+4
efficient ast_channel_by_name_locked (bug #4265) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5853 f38db490-d61c-443f-a65b-d21fe96a405b
2005-04-21use double-quotes instead of angle-brackets for non-system include files ↵kpfleming1-14/+14
(bug #4058) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5490 f38db490-d61c-443f-a65b-d21fe96a405b
2005-04-13ensure that the random number generator(s) are always seeded with a ↵kpfleming1-3/+2
different value during Asterisk startup don't reinitialize random number generators in other modules (bug #4017) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5459 f38db490-d61c-443f-a65b-d21fe96a405b
2005-04-07Fix little formatting thingymarkster1-1/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5435 f38db490-d61c-443f-a65b-d21fe96a405b
2005-03-05Make mpg123 behave more nicelymarkster1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5142 f38db490-d61c-443f-a65b-d21fe96a405b
2005-03-04Rework channel structure to eliminate "pvt" portion of channel (bug #3573)markster1-1/+0
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5137 f38db490-d61c-443f-a65b-d21fe96a405b
2005-03-03Add "StartMusicOnHold and "StopMusicOnHold" apps (bug #3703)markster1-1/+36
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5124 f38db490-d61c-443f-a65b-d21fe96a405b
2005-01-25Merge config updates (bug #3406)markster1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4889 f38db490-d61c-443f-a65b-d21fe96a405b
2005-01-21update copyright headers for 2005russell1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4868 f38db490-d61c-443f-a65b-d21fe96a405b
2005-01-10Check moh files at runtime (bug #3314)markster1-14/+19
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4752 f38db490-d61c-443f-a65b-d21fe96a405b
2005-01-09Various moh fixes (bug #3291)markster1-130/+128
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4724 f38db490-d61c-443f-a65b-d21fe96a405b
2005-01-07Fix typo in moh output (bug #3265)markster1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4706 f38db490-d61c-443f-a65b-d21fe96a405b