aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2007-07-20Allow getting a call from an existing "sub" channel.qwell1-26/+25
Cancel ringing if endpoint hangs up before answering. Fixes were backported from trunk (there was apparently a bit of confusion during merge of a previous patch). (closes issue #10241) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@76178 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-20Eliminate a compiler warning with gcc 4.2 by constifying a char *qwell1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@76176 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-20It's possible for sub->owner to be NULL here if you cancel the call ↵qwell1-1/+1
immediately after/during sending a digit. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@76174 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-20When using users.conf for the entries in the directory, if multiple users ↵mmichelson1-2/+9
had the same last name, only the first user listed would be available in the directory. (closes issue #10200, reported by mrskippy, patched by me) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@76139 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-20Use the define that specifies the default length of an artificially createdrussell1-2/+2
DTMF digit in the ast_senddigit() function. The define is set to 100ms by default, which is the same thing that this function was using. But, using the define lets changes take effect in this case, as well as the others where it was already used. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@76132 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-20Merged revisions 76080 via svnmerge from file1-0/+5
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r76080 | file | 2007-07-20 14:16:48 -0300 (Fri, 20 Jul 2007) | 6 lines (closes issue #10247) Reported by: fkasumovic Patches: chan_sip.patch uploaded by fkasumovic (license #101) Drop any peer realm authentication entries when reloading so multiple entries do not get added to the peer. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@76087 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-20(closes issue #10246)file1-1/+4
Reported by: fkasumovic Patches: res_conver.patch uploaded by fkasumovic (license #101) Use the last occurance of . to find the extension, not the first occurance. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@76067 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-20Move makeannouncement variable declaration to proper place.file1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@76054 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-19Remove some duplicate code.qwell1-1/+0
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@75980 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-19The diff on this looks pretty big but all I did was remove a pointless if ↵mmichelson1-81/+78
statement (always evaluates true). git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@75978 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-19Changes in handling return values of several functions in app_queue. This ↵mmichelson1-96/+70
all started as a fix for issue #10008 but now includes all of the following changes: 1. Simplifying the code to handle positive return values from ast API calls. 2. Removing the background_file function. 3. The fix for issue #10008 (closes issue #10008, reported and patched by dimas) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@75969 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-19Merged revisions 75927 via svnmerge from russell1-1/+3
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r75927 | russell | 2007-07-19 10:49:42 -0500 (Thu, 19 Jul 2007) | 6 lines When processing full frames, take sequence number wraparound into account when deciding whether or not we need to request retransmissions by sending a VNAK. This code could cause VNAKs to be sent erroneously in some cases, and to not be sent in other cases when it should have been. (closes issue #10237, reported and patched by mihai) ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@75928 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-18Need to make sure we set milliseconds and timestamp - pointed out by the ↵qwell1-0/+2
recent ast_ time stuff from Tilghman git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@75807 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-18Merged revisions 75757 via svnmerge from russell1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r75757 | russell | 2007-07-18 16:09:13 -0500 (Wed, 18 Jul 2007) | 5 lines When traversing the queue of frames for possible retransmission after receiving a VNAK, handle sequence number wraparound so that all frames that should be retransmitted actually do get retransmitted. (issue #10227, reported and patched by mihai) ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@75759 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-18Merged revisions 75748 via svnmerge from tilghman1-1/+8
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r75748 | tilghman | 2007-07-18 15:31:36 -0500 (Wed, 18 Jul 2007) | 2 lines Store prior to copy (closes issue #10193) ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@75749 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-18Umm, why are we transmitting dialtone on cfwdall?qwell1-1/+0
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@75732 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-18Backport GCC 4.2 fixes. Without these Asterisk won't build under devmode ↵file4-10/+7
using GCC 4.2. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@75712 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-18Fixes for 7935/7936 conference phones.qwell1-19/+96
Issue 9245, patch by slimey. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@75711 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-18Fix issues with new 79x1 phones.qwell1-11/+20
Issue 9887, patches by DEA git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@75707 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-18Merged revisions 75657 via svnmerge from dhubbard1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r75657 | dhubbard | 2007-07-18 12:48:33 -0500 (Wed, 18 Jul 2007) | 1 line removed the word 'pissed' from ast_log(...) function call for BE-90 ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@75658 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-18Few more places that needs to check for onhold state.file1-3/+3
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@75623 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-18(closes issue #10165)file1-2/+3
Reported by: elandivar It is possible for hold status to exist without call limits set, so we need to ensure update_call_counter is executed regardless. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@75621 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-18Don't bother reloading chan_h323 if it did not load successfully in the ↵file1-0/+4
first place. This would otherwise cause a crash. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@75619 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-18(closes issue #10224)file1-6/+7
Reported by: irroot Record the threadid of each running thread before shutting them down as the thread themselves may change the value. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@75583 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-18Using a freed frame causes crashes (closes issue #9317)tilghman1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@75529 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-17Merged revisions 75449 via svnmerge from russell1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r75449 | russell | 2007-07-17 15:57:09 -0500 (Tue, 17 Jul 2007) | 3 lines Properly check for the length in the skinny packet to prevent an invalid memcpy. (ASA-2007-016) ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@75450 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-17cast arguments to ast_log so that it builds without warnings for merussell1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@75447 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-17Merged revisions 75444 via svnmerge from russell3-11/+21
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r75444 | russell | 2007-07-17 15:45:27 -0500 (Tue, 17 Jul 2007) | 5 lines Ensure that when encoding the contents of an ast_frame into an iax_frame, that the size of the destination buffer is known in the iax_frame so that code won't write past the end of the allocated buffer when sending outgoing frames. (ASA-2007-014) ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@75445 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-17Merged revisions 75440 via svnmerge from russell1-0/+1
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r75440 | russell | 2007-07-17 15:41:41 -0500 (Tue, 17 Jul 2007) | 4 lines After parsing information elements in IAX frames, set the data length to zero, so that code later on does not think it has data to copy. (ASA-2007-015) ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@75441 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-17Ensure that the pointer to STUN data does not go to unaccessible memory. ↵file1-2/+2
(ASA-2007-017) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@75439 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-17(issue #10210)russell1-0/+2
Reported by: juggie Patches: 10210-1.4-grr.patch uploaded by juggie (license #24) Tested by: juggie, blitzrage Log a warning if someone uses DeadAGI on a live channel. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@75437 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-17Fixing an error I made earlier. ast_fileexists can return -1 on failure, so ↵mmichelson1-2/+2
I need to be sure that we only enter the if statement if it is successful. Related to my fix to issue #10186 git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@75405 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-17(closes issue #10209)russell1-0/+2
Reported by: juggie Patches: 10209-trunk-2.patch uploaded by juggie Tested by: juggie, blitzrage In ast_pbx_run(), mark a channel as hung up after an application returned -1, or when it runs out of extensions to execute. This is so that code can detect that this channel has been hung up for things like making sure DeadAGI is used on actual dead channels, and is beneficial for other things, like making sure someone doesn't try to start spying on a channel that is about to go away. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@75403 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-17Remove a duplicated newline character in AGI debug output.russell1-1/+1
(closes issue #10207, patch by seanbright) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@75401 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-16Merged revisions 75304 via svnmerge from kpfleming1-0/+59
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r75304 | kpfleming | 2007-07-16 15:46:58 -0500 (Mon, 16 Jul 2007) | 3 lines provide proper copyright/license attribution for this structure that was copied from a BSD-licensed header file long, long ago... ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@75306 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-16another fix that is not needed here (finishing up 75251)kpfleming0-0/+0
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@75258 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-16Restoring functionality from 1.2 wherein Retrydial will not exit if there is ↵mmichelson1-5/+16
no announce file specified. This change makes it so that if there is no announce file specified, the application will continue until finished (or caller hangs up). If a bogus announce file is specified, then a warning message will be printed saying that the file could not be found, but execution will still continue. (closes issue #10186, reported by jon, patched by me) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@75253 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-16block change that is not relevant herekpfleming0-0/+0
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@75252 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-13Merged revisions 75107 via svnmerge from russell1-2/+2
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r75107 | russell | 2007-07-13 15:35:22 -0500 (Fri, 13 Jul 2007) | 3 lines Fix a couple potential minor memory leaks. load_moh_classes() could return without destroying the loaded configuration. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@75108 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-13Merged revisions 75066 via svnmerge from mmichelson1-2/+4
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r75066 | mmichelson | 2007-07-13 15:10:39 -0500 (Fri, 13 Jul 2007) | 5 lines Fixed an issue where chanspy flags were uninitialized if no options were passed. What triggered this investigation was an IRC chat where some people's quiet flags were set while others' weren't even though none of them had specified the q option. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@75078 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-13Merged revisions 75059 via svnmerge from russell1-0/+3
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r75059 | russell | 2007-07-13 15:07:21 -0500 (Fri, 13 Jul 2007) | 6 lines Ensure that adding a user to the list of users of a specific music on hold 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.4@75067 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-13Merged revisions 75052 via svnmerge from russell1-3/+12
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r75052 | russell | 2007-07-13 14:10:00 -0500 (Fri, 13 Jul 2007) | 12 lines (closes issue #9660) Reported by: mmacvicar Patches submitted by: bbryant, russell Tested by: mmacvicar, marco, arcivanov, jmhunter, explidous When using a TDM400P (and probably other analog cards) there was a chance that you could hang up and pick the phone back up where it has been long enough to be not considered a flash hook, but too soon such that the device reports that it is busy and the person on the phone will only hear silence. This patch makes chan_zap more tolerant of this and gives the device a couple of seconds to succeed so the person on the phone happily gets their dialtone. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@75053 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-12Change to my previous fix regarding agent logoff soft. Now uses deferlogoff ↵mmichelson1-4/+6
instead of loginstart since loginstart is used after logoff. Thanks to makoto for pointing this out and suggesting the fix. (closes issue #10178, reported and patched by makoto, with modification by me) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@74998 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-12This patch resolves 10143; thanks to irroot for the patch; looked ↵murf1-2/+3
acceptable. Let the community decide if it messes things up git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@74955 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-12Whoops... didn't want this to be returned to 0 each iteration.file1-1/+2
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@74922 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-12When waiting for a digit ensure that a begin frame was received with it, not ↵file1-2/+7
just an end frame. (issue #10084 reported by rushowr) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@74888 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-12It helps if I actually add this stuff for the 7921 too - otherwise it won't ↵qwell1-0/+3
actually do much of anything. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@74866 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-12Add device ID for 7921 wireless skinny phoneqwell1-0/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@74864 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-12Fix dialing in skinny that was broken in some cases.qwell1-1/+1
Issue 10136, fix provided by DEA. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@74839 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-12Merged revisions 74814 via svnmerge from file1-9/+9
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r74814 | file | 2007-07-12 12:51:24 -0300 (Thu, 12 Jul 2007) | 2 lines Only print out a warning for situations where it is actually helpful. (issue #10187 reported by denke) ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@74815 f38db490-d61c-443f-a65b-d21fe96a405b