]> git.ipfire.org Git - thirdparty/asterisk.git/log
thirdparty/asterisk.git
18 years agoFix an issue where dynamic threads can get free'd, but still exist in the
Russell Bryant [Mon, 6 Aug 2007 20:44:09 +0000 (20:44 +0000)] 
Fix an issue where dynamic threads can get free'd, but still exist in the
dynamic thread list.
(closes issue #10392, patch from Mihai, with credit to his colleague, Pete)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@78242 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoFix the return value of AST_LIST_REMOVE(). This shouldn't be causing any
Russell Bryant [Mon, 6 Aug 2007 16:50:54 +0000 (16:50 +0000)] 
Fix the return value of AST_LIST_REMOVE().  This shouldn't be causing any
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: https://origsvn.digium.com/svn/asterisk/branches/1.4@78184 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoIt is possible for a transfer to occur before the remote device has our tag in which...
Joshua Colp [Mon, 6 Aug 2007 16:32:44 +0000 (16:32 +0000)] 
It is possible for a transfer to occur before the remote device has our tag in which case they send none in the transfer. In this case we need to not fail the transfer dialog lookup.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@78182 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoFix an issue with using UpdateConfig (manager action) where escaped semicolons
Jason Parker [Mon, 6 Aug 2007 16:30:51 +0000 (16:30 +0000)] 
Fix an issue with using UpdateConfig (manager action) where escaped semicolons
 in a config would be converted to just semicolons (\; to ;)

Issue 9938

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@78180 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years ago(closes issue #10355)
Joshua Colp [Mon, 6 Aug 2007 15:27:24 +0000 (15:27 +0000)] 
(closes issue #10355)
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: https://origsvn.digium.com/svn/asterisk/branches/1.4@78172 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years ago(closes issue #10383)
Joshua Colp [Mon, 6 Aug 2007 14:18:20 +0000 (14:18 +0000)] 
(closes issue #10383)
Reported by: rizzo
Include stdlib.h so NULL gets defined for gethostbyname_r checks.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@78166 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoFixed a mistake I made in realtime_peer which caused it to return NULL every time.
Mark Michelson [Mon, 6 Aug 2007 13:33:07 +0000 (13:33 +0000)] 
Fixed a mistake I made in realtime_peer which caused it to return NULL every time.
Thanks to Jon Fealy for emailing me the correction.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@78164 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoPortability fix for devmode compiling (closes bug #10382)
Tilghman Lesher [Sun, 5 Aug 2007 14:18:00 +0000 (14:18 +0000)] 
Portability fix for devmode compiling (closes bug #10382)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@78146 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoFix compilation failure when MALLOC_DEBUG is enabled, but DEBUG_THREADS is not
Russell Bryant [Sun, 5 Aug 2007 04:15:31 +0000 (04:15 +0000)] 
Fix compilation failure when MALLOC_DEBUG is enabled, but DEBUG_THREADS is not

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@78143 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoIf peer is not found, the error message is misleading (should be peer not found,...
Tilghman Lesher [Sun, 5 Aug 2007 03:29:01 +0000 (03:29 +0000)] 
If peer is not found, the error message is misleading (should be peer not found, not ACL failure)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@78139 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoChanged the behavior of sip's realtime_peer function to match the corresponding way...
Mark Michelson [Fri, 3 Aug 2007 20:25:22 +0000 (20:25 +0000)] 
Changed the behavior of sip's realtime_peer function to match the 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: https://origsvn.digium.com/svn/asterisk/branches/1.4@78103 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years ago(closes issue #10194)
Russell Bryant [Fri, 3 Aug 2007 20:14:06 +0000 (20:14 +0000)] 
(closes issue #10194)
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: https://origsvn.digium.com/svn/asterisk/branches/1.4@78101 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoAdd some improvements to lock debugging. These changes take effect
Russell Bryant [Fri, 3 Aug 2007 19:39:49 +0000 (19:39 +0000)] 
Add some improvements to lock debugging.  These changes take effect
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: https://origsvn.digium.com/svn/asterisk/branches/1.4@78095 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoOnly pass through HOLD and UNHOLD control frames when the mohinterpret option
Russell Bryant [Fri, 3 Aug 2007 17:01:07 +0000 (17:01 +0000)] 
Only pass through HOLD and UNHOLD control frames when the mohinterpret option
is set to "passthrough".  This was pointed out by Kevin in the middle of a
training session.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@78063 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoDon't reuse the timespec that was set to 0 in the previous timedwait as it
Russell Bryant [Fri, 3 Aug 2007 02:04:22 +0000 (02:04 +0000)] 
Don't reuse the timespec that was set to 0 in the previous timedwait as it
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: https://origsvn.digium.com/svn/asterisk/branches/1.4@78028 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoMake sure we actually allow 6 chars to be sent.
Jason Parker [Thu, 2 Aug 2007 21:53:39 +0000 (21:53 +0000)] 
Make sure we actually allow 6 chars to be sent.
Also make note of the "A" option of date format.

Issue 9779, modifications by DEA, wedhorn, and myself.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@77996 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoIf a device disconnects, the session will go away.
Jason Parker [Thu, 2 Aug 2007 20:22:40 +0000 (20:22 +0000)] 
If a device disconnects, the session will go away.
If this happens during call setup, we need to give up.

Issue 10325.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@77993 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoFix the case where a dynamic thread times out waiting for something to do
Russell Bryant [Thu, 2 Aug 2007 19:25:14 +0000 (19:25 +0000)] 
Fix the case where a dynamic thread times out waiting for something to do
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: https://origsvn.digium.com/svn/asterisk/branches/1.4@77949 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoMake sure we clear the prompt status message on a hangup.
Jason Parker [Thu, 2 Aug 2007 18:42:36 +0000 (18:42 +0000)] 
Make sure we clear the prompt status message on a hangup.
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: https://origsvn.digium.com/svn/asterisk/branches/1.4@77947 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoMerged revisions 77942 via svnmerge from
Steve Murphy [Thu, 2 Aug 2007 18:21:40 +0000 (18:21 +0000)] 
Merged revisions 77942 via svnmerge from
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: https://origsvn.digium.com/svn/asterisk/branches/1.4@77945 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoFix another race condition in the handling of dynamic threads. If the dynamic
Russell Bryant [Thu, 2 Aug 2007 18:04:43 +0000 (18:04 +0000)] 
Fix another race condition in the handling of dynamic threads.  If the dynamic
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: https://origsvn.digium.com/svn/asterisk/branches/1.4@77943 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoAdd another sanity check to vnak_retransmit(). This check ensures that frames
Russell Bryant [Thu, 2 Aug 2007 16:56:04 +0000 (16:56 +0000)] 
Add another sanity check to vnak_retransmit().  This check ensures that frames
that have already been marked for deletion don't get retransmitted.
(closes issue #10361, patch from mihai)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@77939 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoMake sure that we show the correct extension if dialed from a macro
Jason Parker [Thu, 2 Aug 2007 15:15:45 +0000 (15:15 +0000)] 
Make sure that we show the correct extension if dialed from a macro
"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: https://origsvn.digium.com/svn/asterisk/branches/1.4@77894 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoPut in some additional debug information for softkey/stimulus messages.
Jason Parker [Wed, 1 Aug 2007 22:28:56 +0000 (22:28 +0000)] 
Put in some additional debug information for softkey/stimulus messages.

Issue 10291, patch by DEA.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@77890 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoFix some race conditions which have been causing weird problems in chan_iax2.
Russell Bryant [Wed, 1 Aug 2007 22:16:17 +0000 (22:16 +0000)] 
Fix some race conditions which have been causing weird problems in chan_iax2.
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: https://origsvn.digium.com/svn/asterisk/branches/1.4@77887 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoVoicemail with ODBC_STORAGE defined does not compile cleanly (missing def)
Tilghman Lesher [Wed, 1 Aug 2007 22:14:47 +0000 (22:14 +0000)] 
Voicemail with ODBC_STORAGE defined does not compile cleanly (missing def)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@77886 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoFix an issue that caused one-way audio on some newer devices (specifically the 7921),
Jason Parker [Wed, 1 Aug 2007 21:08:42 +0000 (21:08 +0000)] 
Fix an issue that caused one-way audio on some newer devices (specifically 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: https://origsvn.digium.com/svn/asterisk/branches/1.4@77883 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years ago(closes issue #10351)
Joshua Colp [Wed, 1 Aug 2007 18:08:51 +0000 (18:08 +0000)] 
(closes issue #10351)
Reported by: ftarz
Some platforms don't like it when you pass NULL to vsnprintf so pass "" instead.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@77871 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoAdd some fixes for building on Solaris.
Joshua Colp [Wed, 1 Aug 2007 17:56:59 +0000 (17:56 +0000)] 
Add some fixes for building on Solaris.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@77869 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoWhoops, I meant R_5 not R5.
Joshua Colp [Wed, 1 Aug 2007 17:52:11 +0000 (17:52 +0000)] 
Whoops, I meant R_5 not R5.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@77867 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoAnd for my last trick... make sure that if gethostbyname_r is exported by a library...
Joshua Colp [Wed, 1 Aug 2007 17:42:52 +0000 (17:42 +0000)] 
And for my last trick... make sure that if gethostbyname_r is exported by a library that it is used.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@77865 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoExtend autoconf logic to determine which version of gethostbyname_r is on the system.
Joshua Colp [Wed, 1 Aug 2007 17:22:35 +0000 (17:22 +0000)] 
Extend autoconf logic to determine which version of gethostbyname_r is on the system.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@77863 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoFixes an issue I introduced to queues wherein a queue with joinempty=yes would kick...
Mark Michelson [Wed, 1 Aug 2007 14:08:57 +0000 (14:08 +0000)] 
Fixes an issue I introduced to queues wherein a queue with joinempty=yes 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: https://origsvn.digium.com/svn/asterisk/branches/1.4@77854 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoIf a queue uses dynamic realtime members, then the member list should be updated...
Mark Michelson [Wed, 1 Aug 2007 13:59:59 +0000 (13:59 +0000)] 
If a queue uses dynamic realtime members, then the member list should be 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: https://origsvn.digium.com/svn/asterisk/branches/1.4@77852 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoMuch newer version, 0.70 with much additions
Jim Dixon [Tue, 31 Jul 2007 21:09:39 +0000 (21:09 +0000)] 
Much newer version, 0.70 with much additions

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@77846 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoMade VAST improvements in DTMF receiver in RADIO_RELAX mode (thanx Steve
Jim Dixon [Tue, 31 Jul 2007 21:00:08 +0000 (21:00 +0000)] 
Made VAST improvements in DTMF receiver in RADIO_RELAX mode (thanx Steve
W9SH), and oversight in logic in TONE_VERIFY/RELAX mode in chan_zap.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@77845 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoMerged revisions 77842 via svnmerge from
Steve Murphy [Tue, 31 Jul 2007 20:59:10 +0000 (20:59 +0000)] 
Merged revisions 77842 via svnmerge from
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: https://origsvn.digium.com/svn/asterisk/branches/1.4@77844 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoAdd a flag to the speech API that allows an engine to set whether it received results...
Joshua Colp [Tue, 31 Jul 2007 16:17:09 +0000 (16:17 +0000)] 
Add a flag to the speech API that allows an engine to set whether it received results or not.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@77831 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoDETECT_DEADLOCKS can't be enabled without DEBUG_THREADS or it does nothing
Kevin P. Fleming [Tue, 31 Jul 2007 15:53:42 +0000 (15:53 +0000)] 
DETECT_DEADLOCKS can't be enabled without DEBUG_THREADS or it does nothing

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@77827 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoThis patch makes Asterisk send 100 Trying provisional responses upon receipt of re...
Mark Michelson [Tue, 31 Jul 2007 15:21:22 +0000 (15:21 +0000)] 
This patch makes Asterisk send 100 Trying provisional responses upon receipt of re-invites. This makes it so that if there are two or more Asterisk
servers between endpoints, the Asterisk servers will not keep retransmitting the re-invites.

(closes issue #10274, reported by cstadlmann, patched by me with approval from file)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@77824 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoApplications like SayAlpha() should not hang up the channel if you
Jason Parker [Mon, 30 Jul 2007 20:17:08 +0000 (20:17 +0000)] 
Applications like SayAlpha() should not hang up the channel if you
 request an "unknown" character such as a comma.
Instead, skip the character and move on.

Issue 10083, initial patch by jsmith, modified by me.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@77795 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoFix an issue that could potentially cause corruption of the global iax frame
Russell Bryant [Mon, 30 Jul 2007 20:16:43 +0000 (20:16 +0000)] 
Fix an issue that could potentially cause corruption of the global iax frame
queue.  In the network_thread() loop, it traverses the list using the
AST_LIST_TRAVERSE_SAFE macro.  However, to remove an element of the list within
this loop, it used AST_LIST_REMOVE, instead of AST_LIST_REMOVE_CURRENT, which I
believe could leave some of the internal variables of the SAFE macro invalid.
Mihai says that he already made this change in his local copy and it didn't help
his VNAK storm issues, but I still think it's wrong.  :)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@77794 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years ago(closes issue #10279)
Russell Bryant [Mon, 30 Jul 2007 19:13:31 +0000 (19:13 +0000)] 
(closes issue #10279)
Reported by: seanbright
Patches:
      res_agi.carefulwrite.1.4.07252007.patch uploaded by seanbright (license 71)
      res_agi.carefulwrite.trunk.07252007.patch uploaded by seanbright (license 71)

Allow the "agi_network: yes" line to be printed out in the AGI debug output.
Also, allow partial writes to be handled when writing out this line just like
it is for all of the others.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@77788 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agofile and I both committed changes for issue #10301. Remove a duplicated
Russell Bryant [Mon, 30 Jul 2007 18:55:15 +0000 (18:55 +0000)] 
file and I both committed changes for issue #10301.  Remove a duplicated
assignment to restore the original value of the previous channel.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@77785 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoMerged revisions 77782 via svnmerge from
Tilghman Lesher [Mon, 30 Jul 2007 18:43:55 +0000 (18:43 +0000)] 
Merged revisions 77782 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r77782 | tilghman | 2007-07-30 13:40:54 -0500 (Mon, 30 Jul 2007) | 2 lines

Revert change in revision 71656, even though it fixed a bug, because many people were depending upon the (broken) behavior.

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@77783 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years ago(closes issue #10301)
Russell Bryant [Mon, 30 Jul 2007 17:29:43 +0000 (17:29 +0000)] 
(closes issue #10301)
Reported by: fnordian
Patches:
      asterisk-1.4.9-channel.c.patch uploaded by fnordian (license 110)
      Additional changes by me

Fix some problems in channel_find_locked() which can cause an infinite loop.
The reference to the previous channel is set to NULL in some cases.  These changes
ensure that the reference to the previous channel gets restored before needing
it again.

I'm not convinced that the code that is setting it to NULL is really the right
thing to do.  However, I am making these changes to fix the obvious problem
and just leaving an XXX comment that it needs a better explanation that what
is there now.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@77780 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years ago(closes issue #10327)
Joshua Colp [Mon, 30 Jul 2007 17:11:02 +0000 (17:11 +0000)] 
(closes issue #10327)
Reported by: kkiely
Instead of directly mucking with the extension/context/priority of the channel we are transferring when it has a PBX simply call ast_async_goto on it. This will ensure that the channel gets handled properly and sent to the right place.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@77778 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years ago(closes issue #10301)
Joshua Colp [Mon, 30 Jul 2007 15:47:52 +0000 (15:47 +0000)] 
(closes issue #10301)
Reported by: fnordian
Patches:
      asterisk-1.4.9-channel.c.patch uploaded by fnordian (license 110)
Restore previous behavior where if we failed to lock the channel we wanted we would return to exactly the same point as if we had just reentered the function.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@77771 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoMerged revisions 77767 via svnmerge from
Joshua Colp [Mon, 30 Jul 2007 14:51:44 +0000 (14:51 +0000)] 
Merged revisions 77767 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r77767 | file | 2007-07-30 11:50:02 -0300 (Mon, 30 Jul 2007) | 4 lines

(closes issue #10334)
Reported by: ramonpeek
Pass through the return value from macro_exec through the MacroIf application.

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@77768 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoMissing newline
Tilghman Lesher [Fri, 27 Jul 2007 18:15:58 +0000 (18:15 +0000)] 
Missing newline

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@77571 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years ago(closes issue #10310)
Joshua Colp [Fri, 27 Jul 2007 17:04:08 +0000 (17:04 +0000)] 
(closes issue #10310)
Reported by: prashant_jois
Patches:
      cdr_pgsql.patch uploaded by prashant (license 114)
Finish the Postgresql connection after the log messages are printed so we don't access invalid memory.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@77540 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years ago(closes issue #10323)
Joshua Colp [Fri, 27 Jul 2007 16:27:16 +0000 (16:27 +0000)] 
(closes issue #10323)
Reported by: julianjm
Patches:
      chan_sip_device_state_hold_fix.v1.diff.txt uploaded by julianjm (license 99)
Clear ONHOLD flag when decrementing the onHold peer count. If we did not do this the count may keep decreasing.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@77536 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years ago"re-invite" was misspelled
Mark Michelson [Fri, 27 Jul 2007 14:30:43 +0000 (14:30 +0000)] 
"re-invite" was misspelled

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@77490 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years ago(closes issue #10302)
Joshua Colp [Thu, 26 Jul 2007 23:19:04 +0000 (23:19 +0000)] 
(closes issue #10302)
Reported by: litnialex
If a DTMF end frame comes from a channel without a begin and it is going to a technology that only accepts end frames (aka INFO) then use the minimum DTMF duration if one is not in the frame already.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@77460 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agochange protocol for downloads as well
Kevin P. Fleming [Thu, 26 Jul 2007 22:16:42 +0000 (22:16 +0000)] 
change protocol for downloads as well

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@77429 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agouse new canonical name for download server
Kevin P. Fleming [Thu, 26 Jul 2007 22:14:21 +0000 (22:14 +0000)] 
use new canonical name for download server

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@77424 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoAST_DEVMODE was defined in trunk, but not in 1.4. When Asterisk is compiled
Russell Bryant [Thu, 26 Jul 2007 21:23:23 +0000 (21:23 +0000)] 
AST_DEVMODE was defined in trunk, but not in 1.4.  When Asterisk is compiled
under dev mode, AST_DEVMODE will get defined in buildopts.h.  Change 1.4 to
define it in the same way that trunk does.  Also, revert the change that added
this define in the Makefile

The advantage to doing it this way is that buildopts.h gets installed when
you install Asterisk.  Then, when building any out of tree modules, or
building asterisk-addons, these modules know which options the rest of Asterisk
was built with.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@77410 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoFixes to get ast_backtrace working properly. The AST_DEVMODE macro was never defined...
Mark Michelson [Thu, 26 Jul 2007 20:35:17 +0000 (20:35 +0000)] 
Fixes to get ast_backtrace working properly. The AST_DEVMODE macro was never defined so the majority of ast_backtrace never
attempted compilation. The makefile now defines AST_DEVMODE if configure was run with --enable-dev-mode. Also, changes were
made to acccomodate 64 bit systems in ast_backtrace.

Thanks to qwell, kpfleming, and Corydon76 for their roles in allowing me to get this committed

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@77380 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoMissed one
Tilghman Lesher [Thu, 26 Jul 2007 19:32:17 +0000 (19:32 +0000)] 
Missed one

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@77350 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoOops, that builtin define should be all-lowercase.
Tilghman Lesher [Thu, 26 Jul 2007 19:27:18 +0000 (19:27 +0000)] 
Oops, that builtin define should be all-lowercase.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@77348 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoTwo consecutive calls to PQfinish could occur, meaning free gets called on the same...
Mark Michelson [Thu, 26 Jul 2007 18:30:29 +0000 (18:30 +0000)] 
Two consecutive calls to PQfinish could occur, meaning free gets called on the same variable twice.
This patch sets the connection to NULL after calls to PQfinish so that the problem does not occur.
Also in this patch, prashant_jois informed me that it is safe to pass a null pointer to PQfinish, so
I have removed the check for conn's existence from my_unload_module.

(closes issue 10295, reported by junky, patched by me with input from prashant_jois)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@77318 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoThis fix solves problem with intense squelch noise when someone joins conf in bug...
Steve Murphy [Wed, 25 Jul 2007 22:39:27 +0000 (22:39 +0000)] 
This fix solves problem with intense squelch noise when someone joins conf in bug 9430; We repro'd the problem with meetme opts of 'CciMo'; Josh Colp supplied this patch, and I'm applying it. It looks like playing the recorded username will louse up the next thing played into the channel. Josh rearranged the code so as to start things over before playing data directly into the conference.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@77191 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years ago(closes issue #10303)
Joshua Colp [Wed, 25 Jul 2007 22:16:10 +0000 (22:16 +0000)] 
(closes issue #10303)
Reported by: jtodd
Add SPEECH_DTMF_TERMINATOR variable so the user can specify the digit to terminate a DTMF string with. If none is specified then no terminator will be used.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@77176 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agochan->emulate_dtmf_duration is an unsigned int, not a signed int, so use %u instead...
Mark Michelson [Wed, 25 Jul 2007 21:52:47 +0000 (21:52 +0000)] 
chan->emulate_dtmf_duration is an unsigned int, not a signed int, so use %u instead of %d in the format string

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@77154 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoso are my fingers...
Jason Parker [Wed, 25 Jul 2007 20:23:51 +0000 (20:23 +0000)] 
so are my fingers...

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@77136 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoautotagexternals script is still obviously misbehaving...
Jason Parker [Wed, 25 Jul 2007 20:22:42 +0000 (20:22 +0000)] 
autotagexternals script is still obviously misbehaving...

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@77135 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agouse autotagged externals
Jason Parker [Wed, 25 Jul 2007 19:57:22 +0000 (19:57 +0000)] 
use autotagged externals

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@77116 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoFix autoconf logic for finding OpenH323 when it is not in the first place searched...
Joshua Colp [Wed, 25 Jul 2007 17:14:14 +0000 (17:14 +0000)] 
Fix autoconf logic for finding OpenH323 when it is not in the first place searched (/usr/share/openh323).

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@77071 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoset the sequence number in a frame for all frame types
Luigi Rizzo [Wed, 25 Jul 2007 09:34:01 +0000 (09:34 +0000)] 
set the sequence number in a frame for all frame types

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@77022 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoMerged revisions 76978 via svnmerge from
Steve Murphy [Wed, 25 Jul 2007 00:18:32 +0000 (00:18 +0000)] 
Merged revisions 76978 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r76978 | murf | 2007-07-24 18:07:24 -0600 (Tue, 24 Jul 2007) | 1 line

this fixes bug 10293, where the error message because defaultzone or loadzone was not defined was confusing
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@76983 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoMerged revisions 76934 via svnmerge from
Tilghman Lesher [Tue, 24 Jul 2007 22:12:43 +0000 (22:12 +0000)] 
Merged revisions 76934 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r76934 | tilghman | 2007-07-24 17:11:33 -0500 (Tue, 24 Jul 2007) | 2 lines

Oops, res contains the error code, not errno.  I was wondering why a mutex was reporting "No such file or directory"...

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@76937 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoFound another place where we should be using the umask (thanks jcmoore)
Tilghman Lesher [Tue, 24 Jul 2007 20:42:05 +0000 (20:42 +0000)] 
Found another place where we should be using the umask (thanks jcmoore)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@76891 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoBlocked revisions 76802 via svnmerge
Jason Parker [Tue, 24 Jul 2007 16:42:51 +0000 (16:42 +0000)] 
Blocked revisions 76802 via svnmerge

........
r76802 | qwell | 2007-07-24 11:32:04 -0500 (Tue, 24 Jul 2007) | 3 lines

Don't create the Asterisk channel until we are starting the PBX on it.
(ASA-2007-018)

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@76805 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoDon't create the Asterisk channel until we are starting the PBX on it.
Jason Parker [Tue, 24 Jul 2007 16:32:20 +0000 (16:32 +0000)] 
Don't create the Asterisk channel until we are starting the PBX on it.
(ASA-2007-018)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@76803 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoAdded a membercount variable to call_queue struct which keeps track of the number...
Mark Michelson [Tue, 24 Jul 2007 16:26:58 +0000 (16:26 +0000)] 
Added a membercount variable to call_queue struct which keeps track of the number of logged in members in a particular queue.
This makes it so that the 'n' option for Queue() can act properly depending on which strategy is used. If the strategy is
roundrobin, rrmemory, or ringall, we want to ring each phone once before moving on in the dialplan. However, if any other strategy is
used, we will only ring one phone since it cannot be guaranteed that a different phone will ring on subsequent attempts to ring a phone.

As a side effect of this, the QUEUE_MEMBER_COUNT dialplan function now just reads the membercount variable instead of traversing through
the member list to figure out how many members there are.

Special thanks to blitzrage for helping to test this out.

(closes issue #10127, reported by bcnit, patched by me, tested by blitzrage)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@76801 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoIt was our stated intention for 1.4 that files created in app_voicemail should
Tilghman Lesher [Mon, 23 Jul 2007 22:38:06 +0000 (22:38 +0000)] 
It was our stated intention for 1.4 that files created in app_voicemail should
depend upon the umask.  Unfortunately, mkstemp() creates files with mode 0600,
regardless of the umask.  This corrects that deficiency.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@76708 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoFix some incorrect softkey labels in messages.
Jason Parker [Mon, 23 Jul 2007 18:59:28 +0000 (18:59 +0000)] 
Fix some incorrect softkey labels in messages.
Don't try to play dialtone in some unimplemented features.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@76656 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoMerged revisions 76653 via svnmerge from
Joshua Colp [Mon, 23 Jul 2007 18:29:48 +0000 (18:29 +0000)] 
Merged revisions 76653 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r76653 | file | 2007-07-23 15:28:13 -0300 (Mon, 23 Jul 2007) | 4 lines

(closes issue #5866)
Reported by: tyler
Do not force channel format changes when a generator is present. The generator may have changed the formats itself and changing them back would cause issues.

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@76654 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoDon't try to queue up hold/unhold frames on a non-existent channel.
Jason Parker [Mon, 23 Jul 2007 17:57:53 +0000 (17:57 +0000)] 
Don't try to queue up hold/unhold frames on a non-existent channel.

Issue 10276.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@76620 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoAllow app_morsecode to build on PPC Linux by putting the value of the digit char...
Joshua Colp [Mon, 23 Jul 2007 17:48:51 +0000 (17:48 +0000)] 
Allow app_morsecode to build on PPC Linux by putting the value of the digit char in an int.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@76618 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoMerged revisions 76560 via svnmerge from
Joshua Colp [Mon, 23 Jul 2007 14:34:21 +0000 (14:34 +0000)] 
Merged revisions 76560 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r76560 | file | 2007-07-23 11:32:07 -0300 (Mon, 23 Jul 2007) | 6 lines

(closes issue #10236)
Reported by: homesick
Patches:
      rpid_1.4_75840.patch uploaded by homesick (license 91)
Accept Remote Party ID on guest calls.

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@76561 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years ago(closes issue #10268)
Joshua Colp [Mon, 23 Jul 2007 13:23:09 +0000 (13:23 +0000)] 
(closes issue #10268)
Reported by: mvanbaak
Patches:
      chan_skinny_openbsd.diff uploaded by mvanbaak (license 7)
Add another OS that has to use the Macros for byte ordering.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@76519 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoUse a signed integer for storing the number of bytes in the packet read from
Russell Bryant [Mon, 23 Jul 2007 12:25:01 +0000 (12:25 +0000)] 
Use a signed integer for storing the number of bytes in the packet read from
the network.  Using an unsigned value here made it impossible to handle an
error returned from recvfrom().  Furthermore, in the case that recvfrom()
did return an error, this would cause a crash due to a heap overflow.
(closes issue #10265, reported by and fix suggested by timrobbins)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@76485 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoBlocked revisions 76409 via svnmerge
Tilghman Lesher [Sun, 22 Jul 2007 21:42:01 +0000 (21:42 +0000)] 
Blocked revisions 76409 via svnmerge

........
r76409 | tilghman | 2007-07-22 16:39:55 -0500 (Sun, 22 Jul 2007) | 2 lines

We should not use C++ reserved words in API headers (closes issue #10266)

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@76410 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoMerged revisions 76226 via svnmerge from
Russell Bryant [Sat, 21 Jul 2007 02:02:54 +0000 (02:02 +0000)] 
Merged revisions 76226 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r76226 | russell | 2007-07-20 21:01:46 -0500 (Fri, 20 Jul 2007) | 4 lines

Backport a fix for a memory leak that was fixed in trunk in reivision 76221
by rizzo.  The memory used for the localaddr list was not freed during a
configuration reload.

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@76227 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoThis patch from 10249 is worth applying! It prevents downloading sound files if they...
Steve Murphy [Fri, 20 Jul 2007 21:36:05 +0000 (21:36 +0000)] 
This patch from 10249 is worth applying! It prevents downloading sound files if they are already downloaded. Darn Practical, if you ask me

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@76211 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoAllow getting a call from an existing "sub" channel.
Jason Parker [Fri, 20 Jul 2007 21:03:57 +0000 (21:03 +0000)] 
Allow getting a call from an existing "sub" channel.

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: https://origsvn.digium.com/svn/asterisk/branches/1.4@76178 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoEliminate a compiler warning with gcc 4.2 by constifying a char *
Jason Parker [Fri, 20 Jul 2007 20:54:10 +0000 (20:54 +0000)] 
Eliminate a compiler warning with gcc 4.2 by constifying a char *

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@76176 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoIt's possible for sub->owner to be NULL here if you cancel the call immediately after...
Jason Parker [Fri, 20 Jul 2007 20:32:55 +0000 (20:32 +0000)] 
It's possible for sub->owner to be NULL here if you cancel the call immediately after/during sending a digit.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@76174 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoWhen using users.conf for the entries in the directory, if multiple users had the...
Mark Michelson [Fri, 20 Jul 2007 18:42:27 +0000 (18:42 +0000)] 
When using users.conf for the entries in the directory, if multiple users 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: https://origsvn.digium.com/svn/asterisk/branches/1.4@76139 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoUse the define that specifies the default length of an artificially created
Russell Bryant [Fri, 20 Jul 2007 18:22:24 +0000 (18:22 +0000)] 
Use the define that specifies the default length of an artificially created
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: https://origsvn.digium.com/svn/asterisk/branches/1.4@76132 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoMerged revisions 76080 via svnmerge from
Joshua Colp [Fri, 20 Jul 2007 17:20:09 +0000 (17:20 +0000)] 
Merged revisions 76080 via svnmerge from
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: https://origsvn.digium.com/svn/asterisk/branches/1.4@76087 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years ago(closes issue #10246)
Joshua Colp [Fri, 20 Jul 2007 17:10:17 +0000 (17:10 +0000)] 
(closes issue #10246)
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: https://origsvn.digium.com/svn/asterisk/branches/1.4@76067 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoMove makeannouncement variable declaration to proper place.
Joshua Colp [Fri, 20 Jul 2007 16:49:13 +0000 (16:49 +0000)] 
Move makeannouncement variable declaration to proper place.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@76054 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoRemove some duplicate code.
Jason Parker [Thu, 19 Jul 2007 20:36:06 +0000 (20:36 +0000)] 
Remove some duplicate code.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@75980 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoThe diff on this looks pretty big but all I did was remove a pointless if statement...
Mark Michelson [Thu, 19 Jul 2007 18:59:30 +0000 (18:59 +0000)] 
The diff on this looks pretty big but all I did was remove a pointless if statement (always evaluates true).

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@75978 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoChanges in handling return values of several functions in app_queue. This all started...
Mark Michelson [Thu, 19 Jul 2007 16:26:10 +0000 (16:26 +0000)] 
Changes in handling return values of several functions in app_queue. This 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: https://origsvn.digium.com/svn/asterisk/branches/1.4@75969 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoMerged revisions 75927 via svnmerge from
Russell Bryant [Thu, 19 Jul 2007 15:53:15 +0000 (15:53 +0000)] 
Merged revisions 75927 via svnmerge from
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: https://origsvn.digium.com/svn/asterisk/branches/1.4@75928 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoNeed to make sure we set milliseconds and timestamp - pointed out by the recent ast_...
Jason Parker [Wed, 18 Jul 2007 22:59:18 +0000 (22:59 +0000)] 
Need to make sure we set milliseconds and timestamp - pointed out by the recent ast_ time stuff from Tilghman

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@75807 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoMerged revisions 75757 via svnmerge from
Russell Bryant [Wed, 18 Jul 2007 21:09:46 +0000 (21:09 +0000)] 
Merged revisions 75757 via svnmerge from
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: https://origsvn.digium.com/svn/asterisk/branches/1.4@75759 65c4cc65-6c06-0410-ace0-fbb531ad65f3