aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2010-06-29_Really_ skip the channel... don't just retry for another 200 cycles.tilghman1-1/+1
(Closes issue SWP-1652, ABE-2240) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@273057 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-29Remove properties that were erroneously merged to 1.4 from one of my branches.russell0-0/+0
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@273017 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-28Don't change ownership/group/permissions on run directory, if it already exists.tilghman1-4/+8
(closes issue #17076) Reported by: stuarth Patches: 20100324__issue17076.diff.txt uploaded by tilghman (license 14) Tested by: stuarth git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@272925 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-28Also trim trailing blanks on #includestilghman1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@272922 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-28Change the way that we read include files, to accommodate for changes in GCC ↵tilghman1-13/+6
4.4. (closes issue #17472) Reported by: seandarcy Patches: config2.patch uploaded by nivan (license 1066) Tested by: nivan git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@272921 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-28Backport applicable parts of test_astobj2.russell1-0/+329
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@272881 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-28Backport unit test API to 1.4.russell10-2/+1270
Review: https://reviewboard.asterisk.org/r/750/ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@272878 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-28Decode URI in contact header of 302 response.mmichelson1-0/+1
ABE-2352 git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@272804 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-28Force SILENTMAKE where it is needed.russell1-5/+6
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@272763 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-28Backport method of setting SUBMAKE from trunk.russell1-1/+5
By setting the PRINT_DIR variable, SUBMAKE will print out the directories it descends into, which is important for editors (like vim) that watch the build output so that they can take you to the file where an error occurred. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@272688 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-25Make the structure of the table specified before match the queries and results.tilghman1-5/+5
(closes issue #17557) Reported by: cmaj git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@272562 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-24ss_thread calls pri_grab without lock during overlap dialrmudgett1-0/+2
Recent changes to chan_dahdi with relation to overlap dialing call pri_grab without first obtaining a lock. (closes issue #17414) Reported by: pdf Patches: bug17414.patch uploaded by jpeeler (license 325) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@272446 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-23Send AgentComplete manager events in the event of blind and attended transfers.mnicholson1-0/+29
(closes issue #16819) Reported by: elbriga Patches: app_queue.diff uploaded by elbriga (license 482) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@272367 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-23First caller into a dynamic conference now enter pin once.pabelanger1-3/+4
If MeetMe is configured to use dynamic conference numbers, then the first caller (which creates the conference) had to enter the PIN number twice. (closes issue #15878) Reported by: shawkris Patches: issue15878.patch uploaded by pabelanger (license 224) Tested by: pabelanger git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@272255 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-23Backport part of revision 136715 to fix callerid in voicemail text files ↵tilghman1-2/+3
(IMAP only). (closes issue #16945) Reported by: mneuhauser git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@272147 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-22Decrease the module ref count in sip_hangup when SIP_DEFER_BYE_ON_TRANSFER ↵mnicholson1-0/+1
is set. This is necessary to keep the ref count correct. (closes issue #16815) Reported by: rain Patches: chan_sip-unref-fix.diff uploaded by rain (license 327) (modified) Tested by: rain git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@271902 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-22Allow users to specify a port for dundi peers.mnicholson1-5/+8
(closes issue #17056) Reported by: klaus3000 Patches: dundi-peerport-patch-trunk.txt uploaded by klaus3000 (license 65) Tested by: klaus3000 git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@271761 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-22Modify chan_sip's packet generation api to automatically calculate the ↵mnicholson2-75/+61
Content-Length. This is done by storing packet content in a buffer until it is actually time to send the packet, at which time the size of the packet is calculated. This change was made to ensure that the Content-Length is always correct. (closes issue #17326) Reported by: kenner Tested by: mnicholson, kenner Review: https://reviewboard.asterisk.org/r/693/ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@271689 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-21Do not use sizeof to calculate size of a heap allocated character array.jpeeler1-60/+62
Change left out from 271399. (closes issue #16053) Reported by: diLLec git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@271552 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-18Check for newly added memory allocation failures gracefully during AEL2 parsing.jpeeler1-25/+69
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@271444 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-18Fix crash when parsing some heavily nested statements in AEL on reload.jpeeler1-3/+6
Due to the recursion used when compiling AEL in gen_prios, all the stack space was being consumed when parsing some AEL that contained nesting 13 levels deep. Changing a few large buffers to be heap allocated fixed the crash, although I did not test how many more levels can now be safely used. (closes issue #16053) Reported by: diLLec Tested by: jpeeler git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@271399 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-18Remove an unnecessary assignment that causes a DEBUG_THREADS build failure ↵russell1-4/+0
on mac os x. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@271340 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-18Fix a build problem on Mac OS X with DEBUG_THREADS enabled.russell4-19536/+6433
This set of changes was already in trunk. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@271339 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-18Eliminate deadlock potential in dahdi_fixup().jpeeler1-2/+2
(This is a backport of 269307, committed to trunk by rmudgett.) Calling dahdi_indicate() when the channel private lock is already held can cause a deadlock if the PRI lock is needed because dahdi_indicate() will also get the channel private lock. The pri_grab() function assumes that the channel private lock is held once to avoid deadlock. (closes issue #17261) Reported by: aragon git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@271335 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-17Set sin_family in ast_get_ip_or_srv() and removed the 'last' member of the ↵mnicholson2-6/+3
ast_dnsmgr_entry struct. (closes issue #15827) Reported by: DennisD Patches: (modified) dnsmgr_15827.patch uploaded by chappell (license 8) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@271123 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-16Need to lock the agent chan before access its internal bits.qwell1-0/+2
Pointed out by russellb on asterisk-dev mailing list. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@270980 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-16Fixed typo in macro-pagepabelanger1-1/+1
Reported to #asterisk-dev by a student of jsmith. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@270979 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-16fixes chan_iax2 race conditiondvossel1-6/+4
There is code in chan_iax2.c that attempts to guarantee that only a single active thread will handle a call number at a time. This code works once the thread is added to an active_list of threads, but we are not currently guaranteed that a newly activated thread will enter the active_list immediately because it is left up to the thread to add itself after frames have been queued to it. This means that if two frames come in for the same call number at the same time, it is possible for them to grab two separate threads because the first thread did not add itself to the active_list fast enough. This causes some pretty complex problems. This patch resolves this race condition by immediately adding an activated thread to the active_list within the network thread and only depending on the thread to remove itself once it is done processing the frames queued to it. By doing this we are guaranteed that if another frame for the same call number comes in at the same time, that this thread will immediately be found in the active_list of threads. Review: https://reviewboard.asterisk.org/r/720/ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@270866 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-15Merged revisions 270658 via svnmerge from twilson1-18/+20
https://origsvn.digium.com/svn/asterisk/trunk ........ r270658 | twilson | 2010-06-15 15:18:04 -0500 (Tue, 15 Jun 2010) | 20 lines Make contactdeny apply to src ip when nat=yes chan_sip's "contactdeny" feature screens the "to be registered contact". In case of nat=yes it should not use the address information from the Contact header (which is not used at all for routing), but the source IP address of the request. Thus, if nat=yes and a client sends a request from a denied IP address (e.g. by spoofing the src-IP address) it can bypass the screening. This commit makes contactdeny apply to the src ip when nat=yes instead. (closes issue #17276) Reported by: klaus3000 Patches: patch-asterisk-trunk-contactdeny.txt uploaded by klaus3000 (license 65) Tested by: klaus3000 Review: [full review board URL with trailing slash] ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@270724 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-15Variables have always been case-sensitive, so we should not be removing ↵tilghman1-1/+1
case-insensitive matches. Bug reported via the -dev list. See http://lists.digium.com/pipermail/asterisk-dev/2010-June/044510.html git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@270583 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-15Move information about zonemessages into the [zonemessages] section.lmadsen1-33/+32
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@270442 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-15fixes FXS port still ringing when answered, as reported by Tzafrir on dev-list.alecdavis1-0/+1
(issue #17067) Reported by: tzafrir Tested by: alecdavis git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@270404 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-14Properly play first file in sort list.pabelanger1-4/+9
When using sort=alpha we would always skip the first file in the list first time through. We now check for that properly. (closes issue #17470) Reported by: pabelanger Patches: sort.aplha.patch uploaded by pabelanger (license 224) Tested by: lmadsen Review: https://reviewboard.asterisk.org/r/703/ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@270331 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-12Fix typo in examplepabelanger1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@270078 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-11For SpeeX, 0 bits remaining is valid and does not need an emitted warning.tilghman1-1/+3
(closes issue #15762) Reported by: nblasgen Patches: issue15672.patch uploaded by pabelanger (license 224) Tested by: nblasgen git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@269960 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-10Fix potential crash when writing raw SLIN audio on a PLC-enabled channel.mmichelson1-3/+22
The issue here was that the frame created when adjusting for PLC had no offset to its audio data. If this frame were translated to another format prior to being sent out an RTP socket, all went well because the translation code would put an appropriate offset into the frame. However, if the SLIN audio were not translated before being sent out the RTP socket, bad things would happen. Specifically, the ast_rtp_raw_write makes the assumption that the frame has at least enough of an offset that it can accommodate an RTP header. This was not the case. As such, data was being written prior to the allocation, likely corrupting the data the memory allocator had written. Thus when the time came to free the data, all hell broke loose. ....Well, Asterisk crashed at least. The fix was just what one would expect. Offset the data in the frame by a reasonable amount. The method I used is a bit odd since the data in the frame is 16 bit integers and not bytes. I left a big ol' comment about it. This can be improved on if someone is interested. I was more interested in getting the crash resolved. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@269821 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-10Add text version of PLC doc to 1.4mmichelson1-0/+131
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@269784 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-10Ensure restartable system calls can restart (BSD signal semantics)tilghman2-0/+5
This eliminates the annoying <beep> on the console. (closes issue #17477) Reported by: jvandal Patches: 20100610__issue17477.diff.txt uploaded by tilghman (license 14) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@269635 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-09Don't stop Asterisk if chan_oss fails to register 'Console' (due to another ↵russell1-1/+1
channel driver already claiming it). git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@269495 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-09Let systems without a working fork() use res_musiconhold.qwell1-1/+10
Files mode doesn't require anything special, so that can still be used just fine. AST-357 git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@269426 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-09Fix Debian init script to not use -c.pabelanger2-19/+27
When using the init script as-is currently, it could cause issues on Debian such as high CPU usage. This fix has worked for several people so I'm implementing the change. We now handle color displays properly. (closes issue #16784) Reported by: pabelanger Patches: 20100530__issue16784__2.diff.txt uploaded by tilghman (license 14) Tested by: pabelanger, tilghman git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@269334 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-08Reduce startup time for cdr_tds with large CDR tables.seanbright1-1/+1
Since we are just checking for table existence, add a WHERE clause that will return no rows but will raise an error if the table doesn't exist. (closes issue #17380) Reported by: kkwong Patches: issue17380-01.patch uploaded by seanbright (license 71) Tested by: kkwong git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@269006 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-07Fix summary for "core waitfullybooted" CLI command. Thanks, mnicholson.russell1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@268579 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-05Rest In Peacetilghman1-1/+1
http://www.outandaboutnewspaper.com/article/4061 git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@268320 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-04Get rid of a warning that gets printed out when the console is configured ↵russell1-1/+4
without any logger levels git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@268203 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-04AC_CONFIG_SUBDIRS has a bad side-effect on cross-compiles.tilghman2-195/+6
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@268126 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-04Comment out a rule that likes to break the chan_h323 build randomly.russell1-2/+6
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@268053 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-04Build menuselect with the build environment's compiler, not the host ↵tilghman2-1/+3
(target)'s compiler. (closes issue #17464) Reported by: pprindeville Tested by: tilghman git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@268050 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-04As-fixiate the build processtilghman2-4/+8
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@267971 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-04Make the default install path appear to be /usr on Linux, instead of /usr/local.tilghman3-825/+1067
Also, reorganize the options, so that they're more alphabetical. (closes issue #17013) Reported by: klaus3000 git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@267759 f38db490-d61c-443f-a65b-d21fe96a405b