aboutsummaryrefslogtreecommitdiffstats
path: root/channels
AgeCommit message (Collapse)AuthorFilesLines
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-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-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-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-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-11Merged revisions 74766 via svnmerge from russell1-3/+8
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r74766 | russell | 2007-07-11 17:53:26 -0500 (Wed, 11 Jul 2007) | 5 lines The function make_trunk() can fail and return -1 instead of a valid new call number. Fix the uses of this function to handle this instead of treating it as the new call number. This would cause a deadlock and memory corruption. (possible cause of issue #9614 and others, patch by me) ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@74767 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-11Merged revisions 74719 via svnmerge from mmichelson1-1/+3
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r74719 | mmichelson | 2007-07-11 16:12:30 -0500 (Wed, 11 Jul 2007) | 5 lines The cli command "agent logoff Agent/x soft" did not work...at all. Now it does. (closes issue #10178, reported and patched by makoto, with slight modification for 1.4 and trunk by me) ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@74722 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-11Instead of figuring out kernel versions that have compiler.h and not... ↵file1-0/+3
let's just use autoconf to check for it's presence. (issue #10174 reported by francesco_r) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@74572 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-11Only check if we need to do a SIGMA based tone generation if we have a card. ↵file1-1/+1
(issue #10179 reported by mikowhy) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@74515 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-10Merged revisions 74376 via svnmerge from qwell1-4/+6
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r74376 | qwell | 2007-07-10 14:03:45 -0500 (Tue, 10 Jul 2007) | 4 lines Fix an issue with wrapuptime not working when using AgentLogin. Issue 10169, patch by makoto, with a minor mod by me to not re-break issue 9618 ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@74379 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-10Only spit out an inringing warning message when it is applicable. Since call ↵file1-2/+2
limits are already toast in realtime let's not scare the user if they are using it. (issue #10166 reported by bcnit) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@74262 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-09Merged revisions 74158 via svnmerge from qwell1-8/+8
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r74158 | qwell | 2007-07-09 15:18:15 -0500 (Mon, 09 Jul 2007) | 8 lines Several chan_zap options were not working on reload because they were arbitrarily disallowed when reloading some/most PRI options (such as signalling) was disallowed. Options such as polarityonanswerdelay and answeronpolarityswitch can safely be changed on a reload. This corrects that behavior. Issue 9186, patch by tzafrir. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@74159 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-09Only destroy the scheduler context if it was allocated. (issue #10124 ↵file1-2/+3
reported by gzero) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@74082 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-09Few minor thread synchronization tweaks. (issue #10124 reported by gzero)file1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@74045 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-08While tracking down a bug, I need some more history. Dumphistory is very ↵oej1-0/+2
useful, indeed. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@73849 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-06Merged revisions 73768 via svnmerge from russell1-1/+4
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r73768 | russell | 2007-07-06 18:01:22 -0500 (Fri, 06 Jul 2007) | 4 lines If a sip_pvt struct has already registered an extension state callback, remove the old one before adding a new one. If this isn't done, Asterisk will crash. (issue #10120) ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@73769 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-06Merged revisions 73678 via svnmerge from russell1-2/+6
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r73678 | russell | 2007-07-06 10:55:41 -0500 (Fri, 06 Jul 2007) | 7 lines (closes issue #10125) Reported by: makoto Patches submitted by: makoto This fixes a crash in chan_sip that happens when the bindaddr setting is not valid on Asterisk startup, gets fixed, and then a reload gets issued. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@73679 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-06Merged revisions 73674 via svnmerge from mmichelson1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r73674 | mmichelson | 2007-07-06 10:26:40 -0500 (Fri, 06 Jul 2007) | 5 lines Fixed a bug wherein agents get stuck busy. (issue 9618, reported by jiddings, patched by moi) closes issue #9618 ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@73675 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-05Fix a crash in chan_sip. Don't try to stop the monitor thread if it was neverrussell1-1/+1
started. (closes issue #10124, reported by gzero, fixed by me) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@73598 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-05copy from the correct buffer when deferring a full framerussell1-10/+10
(related to issue #9937) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@73555 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-05* Store the call number that a thread is processing without the full frame bitrussell1-3/+4
set to ease debugging * When deferring a full frame for processing, stick it into the queue for the thread that is processing frames for that call, not the one that read the current frame and is about to go back into the idle list (related to issue #9937) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@73551 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-05Merged revisions 73547 via svnmerge from kpfleming1-0/+3
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r73547 | kpfleming | 2007-07-05 17:11:51 -0500 (Thu, 05 Jul 2007) | 2 lines we shouldn't allow G.723.1 endpoints to use VAD, just like we don't support it for G.729 ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@73548 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-05Merged revisions 73466 via svnmerge from file1-0/+2
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r73466 | file | 2007-07-05 16:15:18 -0300 (Thu, 05 Jul 2007) | 2 lines Copy language information to the dialog structure when calling a peer for situations where a PBX may be started on the dialed channel. (issue #10121 reported by clegall_proformatique) ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@73467 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-05Make this module build for me in dev-moderussell2-3/+5
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@73398 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-05Merged revisions 73318 via svnmerge from file1-3/+3
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r73318 | file | 2007-07-05 10:26:02 -0300 (Thu, 05 Jul 2007) | 2 lines Actually check to make sure a PBX was started on one of the Local channels instead of blindly assuming it was. (issue #10112 reported by makoto) ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@73319 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-04Merged revisions 73252 via svnmerge from crichter1-0/+20
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r73252 | crichter | 2007-07-04 16:50:58 +0200 (Mi, 04 Jul 2007) | 1 line bchannel configurations like echocancel and volume control, need to be setuped on inbound calls too. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@73253 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-04Merged revisions 73207 via svnmerge from crichter1-1/+6
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r73207 | crichter | 2007-07-04 10:20:54 +0200 (Mi, 04 Jul 2007) | 1 line bad bug in overlapdial case, we called start_pbx multiple times, because the state wasn't changed.. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@73208 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-03Merged revisions 73004 via svnmerge from crichter1-5/+0
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r73004 | crichter | 2007-07-03 10:04:35 +0200 (Di, 03 Jul 2007) | 1 line fixed issue, that misdn_l2l1_check could only be called from mISDN Source channels.. #9449 ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@73005 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-02Merged revisions 72585 via svnmerge from crichter2-3/+24
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r72585 | crichter | 2007-06-29 15:08:26 +0200 (Fr, 29 Jun 2007) | 1 line check if the bchannel stack id is already used, if so don't use it a second time. Also added a release_chan lock, so that the same chan_list object cannot be freed twice. chan_misdn does not crash anymore on heavy load with these changes. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@72852 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-02Merged revisions 72099 via svnmerge from crichter4-34/+40
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r72099 | crichter | 2007-06-27 15:22:37 +0200 (Mi, 27 Jun 2007) | 1 line simplified generation for dummy bchannels, also we mark them as dummies, so they are not used later as real-bchannels, optimized the RESTART mechanisms, we block a channel now on cause:44, and send out a RESTART automatically, then on reception of RESTART_ACKNOWLEDGE we unblock the channel again. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@72851 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-02Merged revisions 72087 via svnmerge from crichter2-99/+68
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r72087 | crichter | 2007-06-27 11:26:53 +0200 (Mi, 27 Jun 2007) | 1 line simplified channel finding and locking a lot. removed unnecessary #ifdefed areas. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@72850 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-28Add -Wdeclaration-after-statement to AST_DEVMODE flags to catchrizzo1-1/+2
variable declarations in the middle of a block. Fix the few instances of the above spotted out by the compiler. All of this has been already done or is not applicable in trunk, so the merge of this change will be blocked. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@72462 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-27Make payload IDs for iLBC/Speex match to our list. Since these are dynamic ↵file1-2/+2
payloads the other side shouldn't care. (issue #9426 reported by irroot) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@72331 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-27use the proper type for storing group number bits so that if someone ↵kpfleming1-1/+1
specifies 'group=42' it will actually work instead of being silently ignored git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@72205 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-27Don't modify a variable that we don't want modified. Make a copy of it instead.qwell1-7/+6
Issue 10029, patch by phsultan with slight modifications by me (to remove needless casts). git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@72125 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-27Merged revisions 72040-72041 via svnmerge from crichter1-45/+2
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r72040 | crichter | 2007-06-27 09:49:27 +0200 (Mi, 27 Jun 2007) | 1 line for inbound TE calls, we setup the bchannel when we get the CONNECT_ACKNOWLEDGE, to make sure mISDN has everything ready. removed some #if 0 areas which weren't used anymore. ........ r72041 | crichter | 2007-06-27 09:54:30 +0200 (Mi, 27 Jun 2007) | 1 line isdn_lib.c didn't compile ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@72042 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-25Build a peer as well when hash323 is enabled in users.conf (issue #9599 ↵file1-0/+5
reported by asagage) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@71576 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-25Minor tweak for queueing up the unhold frame... this will teach me to do ↵file1-1/+2
bugs while half asleep. (issue #10046 reported by dimas) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@71522 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-25Merged revisions 71414 via svnmerge from file1-1/+3
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r71414 | file | 2007-06-24 21:02:49 -0400 (Sun, 24 Jun 2007) | 2 lines Ignore other URIs after the first in a 300 Multiple Choice response. (issue #10041 reported by homesick) ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@71430 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-25Check to make sure the channel pointer is present before queueing up an ↵file1-1/+1
unhold frame on it. (issue #10046 reported by dimas) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@71412 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-22Merged revisions 70341 via svnmerge from crichter3-13/+30
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r70341 | crichter | 2007-06-20 17:29:09 +0200 (Mi, 20 Jun 2007) | 1 line fixed a bug that was introduced by copy and paste in the last commit ..bchannels weren't cleaned properly. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@71214 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-22Merged revisions 70672 via svnmerge from crichter2-1/+2
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r70672 | crichter | 2007-06-21 15:11:29 +0200 (Do, 21 Jun 2007) | 1 line we activate the bchannels in TE mode on incoming calls only when we want to connect the call. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@71123 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-22Merged revisions 70342 via svnmerge from crichter1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r70342 | crichter | 2007-06-20 17:42:39 +0200 (Mi, 20 Jun 2007) | 1 line forgot one place .. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@71122 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-22Merged revisions 70311 via svnmerge from crichter3-22/+52
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r70311 | crichter | 2007-06-20 16:47:59 +0200 (Mi, 20 Jun 2007) | 1 line on receiption of cause:44 we mark the channel as in use and inform the user about the situation, we need to test the RESTART stuff then. Also shuffled the empty_chan_in_stack function after the bchannel cleaning functions, to avoid race conditions. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@71121 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-22Merged revisions 69887 via svnmerge from crichter1-1/+7
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r69887 | crichter | 2007-06-19 15:23:04 +0200 (Di, 19 Jun 2007) | 1 line when we send out a SETUP, but get no response, we should cleanup everything after reception of a hangup. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@71120 f38db490-d61c-443f-a65b-d21fe96a405b