aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2007-08-08Fix mogs email address.qwell1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@78646 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-08Fixed some compiler warnings so that compiling with dev-mode and IMAP ↵mmichelson1-2/+4
storage would not have any errors. This section of code may get changed again shortly since my change uncovers a rather silly bit of logic. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@78620 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-08Changing a bit of logic so that someone will NEVER exit the queue on timeout ↵mmichelson1-11/+8
unless they have enabled the 'n' option. This commit relates to issue #10320. Thanks to jfitzgibbon for detailing the idea behind this code change. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@78575 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-08(closes issue #10335)file1-1/+2
Reported by: adamgundy Update sip.conf to include another scenario where directrtpsetup will fail. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@78569 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-07Fix the build of this module on 64-bit platformsrussell1-8/+12
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@78488 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-07The logic behind inboxcount's return value was reversed in has_voicemail and ↵mmichelson1-4/+4
message_count. (closes issue #10401, reported by st1710, patched by me) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@78450 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-07Don't free the environment handle when the connection fails, because other ↵tilghman1-3/+0
connections might be depending upon it git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@78437 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-07Allow chan_sip to build in devmodeqwell1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@78416 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-07Reconnection doesn't happen automatically when a DB goes down (fixes issue ↵tilghman3-291/+163
#9389) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@78415 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-07Properly check the capabilities count to avoid a segfault.qwell1-2/+8
(ASA-2007-019) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@78375 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-07Merged revisions 78370 via svnmerge from russell1-9/+3
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r78370 | russell | 2007-08-07 12:44:04 -0500 (Tue, 07 Aug 2007) | 4 lines Revert patch committed for issue #9660. It broke E&M trunks. (closes issue #10360) (closes issue #10364) ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@78371 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-06Add additional DTMF log messages to help when debugging issues.file1-6/+16
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@78275 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-06Fix an issue where dynamic threads can get free'd, but still exist in the russell1-7/+24
dynamic thread list. (closes issue #10392, patch from Mihai, with credit to his colleague, Pete) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@78242 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-06Fix the return value of AST_LIST_REMOVE(). This shouldn't be causing anyrussell1-1/+1
problems, though, because the only code that uses the return value only checks to see if it is NULL. (closes issue #10390, pointed out by mihai) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@78184 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-06It is possible for a transfer to occur before the remote device has our tag ↵file1-1/+1
in which case they send none in the transfer. In this case we need to not fail the transfer dialog lookup. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@78182 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-06Fix an issue with using UpdateConfig (manager action) where escaped semicolonsqwell1-3/+2
in a config would be converted to just semicolons (\; to ;) Issue 9938 git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@78180 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-06(closes issue #10355)file1-1/+1
Reported by: wdecarne Now that we pass through RTP timestamp information we need to make the allowed timestamp skew considerably less. There are situations where a source may change and due to the timestamp difference the receiver will experience an audio gap since we did not indicate by setting the marker bit that the source changed. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@78172 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-06(closes issue #10383)file2-5/+9
Reported by: rizzo Include stdlib.h so NULL gets defined for gethostbyname_r checks. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@78166 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-06Fixed a mistake I made in realtime_peer which caused it to return NULL every ↵mmichelson1-1/+2
time. Thanks to Jon Fealy for emailing me the correction. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@78164 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-05Portability fix for devmode compiling (closes bug #10382)tilghman1-1/+2
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@78146 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-05Fix compilation failure when MALLOC_DEBUG is enabled, but DEBUG_THREADS is notrussell1-0/+2
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@78143 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-05If peer is not found, the error message is misleading (should be peer not ↵tilghman1-3/+5
found, not ACL failure) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@78139 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-03Changed the behavior of sip's realtime_peer function to match the ↵mmichelson3-31/+109
corresponding way of matching for non-realtime peers. Now matches are made on both the IP address and port number, or if the insecure setting is set to "port" then just match on the IP address. In order to accomplish this, I also added a new API call, ast_category_root, which returns the first variable of an ast_category struct git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@78103 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-03(closes issue #10194)russell1-0/+7
Reported by: blitzrage Patches: bug0010194 uploaded by vovochka Tested by: blitzrage Fix a problem when you call Voicemail() with multiple mailboxes specified and ODBC_STORAGE is in use. The audio part of the message was only given to the first mailbox specified. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@78101 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-03Add some improvements to lock debugging. These changes take effectrussell3-16/+316
with DEBUG_THREADS enabled and provide the following: * This will keep track of which locks are held by which thread as well as which lock a thread is waiting for in a thread-local data structure. A reference to this structure is available on the stack in the dummy_start() function, which is the common entry point for all threads. This information can be easily retrieved using gdb if you switch to the dummy_start() stack frame of any thread and print the contents of the lock_info variable. * All of the thread-local structures for keeping track of this lock information are also stored in a list so that the information can be dumped to the CLI using the "core show locks" CLI command. This introduces a little bit of a performance hit as it requires additional underlying locking operations inside of every lock/unlock on an ast_mutex. However, the benefits of having this information available at the CLI is huge, especially considering this is only done in DEBUG_THREADS mode. It means that in most cases where we debug deadlocks, we no longer have to request access to the machine to analyze the contents of ast_mutex_t structures. We can now just ask them to get the output of "core show locks", which gives us all of the information we needed in most cases. I also had to make some additional changes to astmm.c to make this work when both MALLOC_DEBUG and DEBUG_THREADS are enabled. I disabled tracking of one of the locks in astmm.c because it gets used inside the replacement memory allocation routines, and the lock tracking code allocates memory. This caused infinite recursion. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@78095 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-03Only pass through HOLD and UNHOLD control frames when the mohinterpret optionrussell1-10/+11
is set to "passthrough". This was pointed out by Kevin in the middle of a training session. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@78063 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-03Don't reuse the timespec that was set to 0 in the previous timedwait as itrussell1-5/+2
will just return immediately. Also, fix some logic so the thread's lock isn't unlocked twice in the weird case of dynamic threads getting acquired right after a timeout. (pointed out by SteveK) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@78028 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-02Make sure we actually allow 6 chars to be sent.qwell2-3/+5
Also make note of the "A" option of date format. Issue 9779, modifications by DEA, wedhorn, and myself. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@77996 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-02If a device disconnects, the session will go away.qwell1-0/+5
If this happens during call setup, we need to give up. Issue 10325. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@77993 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-02Fix the case where a dynamic thread times out waiting for something to dorussell1-1/+10
during the first time it runs. This shouldn't ever happen, but we should account for it anyway. (pointed out by pete, who works with mihai) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@77949 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-02Make sure we clear the prompt status message on a hangup.qwell1-42/+45
Also rearrange messages to better fit with what a wireshark trace shows it should be. Issue 10299, initial patch and solution by sbisker, modified by me to fit with wireshark trace. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@77947 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-02Merged revisions 77942 via svnmerge from murf1-2/+6
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r77942 | murf | 2007-08-02 11:56:37 -0600 (Thu, 02 Aug 2007) | 1 line This patch hopefully solves 10141; The user is running with it, and it doesn't appear to harm asterisk's operation, and may prevent a crash. I'll store it in 1.2, as we have shut down support on 1.2, but since I developed the patch before support finished, and it might affect 1.4 and trunk, I'm going ahead with it. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@77945 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-02Fix another race condition in the handling of dynamic threads. If the dynamicrussell1-2/+8
thread timed out waiting for something to do, but was acquired to perform an action immediately afterwords, then wait on the condition again to give the other thread a chance to finish setting up the data for what action this thread should perform. Otherwise, if it immediately continues, it will perform the wrong action. (reported on IRC by mihai, patch by me) (related to issue #10289) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@77943 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-02Add another sanity check to vnak_retransmit(). This check ensures that framesrussell1-1/+2
that have already been marked for deletion don't get retransmitted. (closes issue #10361, patch from mihai) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@77939 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-02Make sure that we show the correct extension if dialed from a macroqwell1-4/+10
"From: 5555" rather than "From: s" Issue 10358, initial patch by DEA, reworked by me to use S_OR, tested by sbisker git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@77894 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-01Put in some additional debug information for softkey/stimulus messages.qwell1-43/+44
Issue 10291, patch by DEA. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@77890 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-01Fix some race conditions which have been causing weird problems in chan_iax2.russell1-4/+17
The most notable problem is that people have been seeing storms of VNAK frames being sent due to really old frames mysteriously being in the retransmission queue and never getting removed. It was possible that a dynamic thread got created, but did not acquire its lock before the thread that created it signals it to perform an action. When this happens, the thread will sleep until it hits a timeout, and then get destroyed. So, the action never gets performed and in some cases, means a frame doesn't get transmitted and never gets freed since the scheduler never gets a chance to reschedule transmission. Another less severe race condition is in the handling of a timeout for a dynamic thread. It was possible for it to be acquired to perform at action at the same time that it hit a timeout. When this occurs, whatever action it was acquired for would never get performed. (patch contributed by Mihai and SteveK) (closes issue #10289) (closes issue #10248) (closes issue #10232) (possibly related to issue #10359) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@77887 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-01Voicemail with ODBC_STORAGE defined does not compile cleanly (missing def)tilghman1-0/+2
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@77886 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-01Fix an issue that caused one-way audio on some newer devices (specifically ↵qwell1-57/+68
the 7921), due to sending packets in the wrong order during hangup. Also make sure we clear tones/messages on the correct line/instance. Issue 10291, patch by DEA, tested by sbisker and myself. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@77883 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-01(closes issue #10351)file1-1/+1
Reported by: ftarz Some platforms don't like it when you pass NULL to vsnprintf so pass "" instead. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@77871 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-01Add some fixes for building on Solaris.file6-15/+20
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@77869 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-01Whoops, I meant R_5 not R5.file1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@77867 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-01And for my last trick... make sure that if gethostbyname_r is exported by a ↵file2-1/+87
library that it is used. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@77865 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-01Extend autoconf logic to determine which version of gethostbyname_r is on ↵file4-56/+88
the system. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@77863 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-01Fixes an issue I introduced to queues wherein a queue with joinempty=yes ↵mmichelson1-0/+5
would kick people out of the queue because of erroneously thinking the 'n' option was in use. (closes issue #10320, reported by jfitzgibbon, patched by me, tested by blitzrage and me) Thank you blitzrage for all the testing you've done lately with queues! It's much appreciated! git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@77854 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-01If a queue uses dynamic realtime members, then the member list should be ↵mmichelson1-0/+54
updated after each attempt to call the queue. This fixes an issue where if a caller calls into a queue where no one is logged in, they would wait forever even if a member logged in at some point. (closes issue #10346, reported by and tested by blitzrage, patched by me) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@77852 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-31Much newer version, 0.70 with much additionsjdixon1-1263/+4902
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@77846 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-31Made VAST improvements in DTMF receiver in RADIO_RELAX mode (thanx Stevejdixon2-12/+20
W9SH), and oversight in logic in TONE_VERIFY/RELAX mode in chan_zap. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@77845 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-31Merged revisions 77842 via svnmerge from murf1-10/+17
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r77842 | murf | 2007-07-31 13:19:35 -0600 (Tue, 31 Jul 2007) | 1 line This probably isn't super-general, but it's a first stab at using kill -11 to generate a core file instead of gcore. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@77844 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-31Add a flag to the speech API that allows an engine to set whether it ↵file2-3/+5
received results or not. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@77831 f38db490-d61c-443f-a65b-d21fe96a405b