]> git.ipfire.org Git - thirdparty/asterisk.git/log
thirdparty/asterisk.git
17 years agoUpdate persistent state on all exit conditions.
Tilghman Lesher [Thu, 7 Aug 2008 16:50:47 +0000 (16:50 +0000)] 
Update persistent state on all exit conditions.
(closes issue #12916)
 Reported by: sgenyuk
 Patches:
       app_queue.patch.txt uploaded by neutrino88 (license 297)
 Tested by: sgenyuk, aragon

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

17 years agoadd a raw list of all libraries that any part of Asterisk links directly to
Kevin P. Fleming [Thu, 7 Aug 2008 16:30:55 +0000 (16:30 +0000)] 
add a raw list of all libraries that any part of Asterisk links directly to

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

17 years agowork around a bug in gcc-4.2.3 that incorrectly ignores the casting away of 'const...
Kevin P. Fleming [Thu, 7 Aug 2008 16:11:17 +0000 (16:11 +0000)] 
work around a bug in gcc-4.2.3 that incorrectly ignores the casting away of 'const' for pointers when the developer knows it is safe to do so

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

17 years agoremove config.cache during distclean, in case the user is using autoconf caching
Kevin P. Fleming [Thu, 7 Aug 2008 15:07:12 +0000 (15:07 +0000)] 
remove config.cache during distclean, in case the user is using autoconf caching

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

17 years agoAlso, parse useincomingcalleridonzaptransfer (and add appropriate deprecation
Tilghman Lesher [Thu, 7 Aug 2008 01:31:27 +0000 (01:31 +0000)] 
Also, parse useincomingcalleridonzaptransfer (and add appropriate deprecation
warnings).

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

17 years agoFor backwards compatibility with previous 1.4 versions which used "zapchan"
Tilghman Lesher [Thu, 7 Aug 2008 01:17:14 +0000 (01:17 +0000)] 
For backwards compatibility with previous 1.4 versions which used "zapchan"
in users.conf, ensure that we still support it.

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

17 years ago* The allowed_bearers setting in misdn.conf misspelled one
Richard Mudgett [Wed, 6 Aug 2008 21:18:53 +0000 (21:18 +0000)] 
*  The allowed_bearers setting in misdn.conf misspelled one
of its options: digital_restricted.
*  Fixed some other spelling errors and typos.

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

17 years agoWe only need to unregister the QueueStatus manager
Mark Michelson [Wed, 6 Aug 2008 20:42:15 +0000 (20:42 +0000)] 
We only need to unregister the QueueStatus manager
command once on an unload

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

17 years ago-C option takes a filename, not a directory path.
Tilghman Lesher [Wed, 6 Aug 2008 20:14:54 +0000 (20:14 +0000)] 
-C option takes a filename, not a directory path.
(closes issue #13007)
 Reported by: klaus3000

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

17 years agoRemove the use of --no-print-directory when compiling subdirectories.
Russell Bryant [Wed, 6 Aug 2008 18:58:37 +0000 (18:58 +0000)] 
Remove the use of --no-print-directory when compiling subdirectories.
This allows vim :make functionality to work properly when errors have
occurred in the build.  Without printing the directories, vim did not
know how to find the file that the error occurred in.

If the extra bit of build noise annoys anyone, just let me know, and
I'll make this optional.

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

17 years agoSince adding the AST_CONTROL_SRCUPDATE frame type,
Mark Michelson [Wed, 6 Aug 2008 15:58:40 +0000 (15:58 +0000)] 
Since adding the AST_CONTROL_SRCUPDATE frame type,
there are places where ast_rtp_new_source may be called
where the tech_pvt of a channel may not yet have an
rtp structure allocated. This caused a crash in chan_skinny,
which was fixed earlier, but now the same crash has been
reported against chan_h323 as well. It seems that the best
solution is to modify ast_rtp_new_source to not attempt to
set the marker bit if the rtp structure passed in is NULL.

This change to ast_rtp_new_source also allows the removal
of what is now a redundant pointer check from chan_skinny.

(closes issue #13247)
Reported by: pj

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

17 years agoFix a longstanding bug in channel walking logic, and fix the explanation to
Tilghman Lesher [Wed, 6 Aug 2008 03:53:36 +0000 (03:53 +0000)] 
Fix a longstanding bug in channel walking logic, and fix the explanation to
make sense.
(Closes issue #13124)

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

17 years agoSince powerof() can return an error condition, it's foolhardy not to detect and
Tilghman Lesher [Wed, 6 Aug 2008 03:24:56 +0000 (03:24 +0000)] 
Since powerof() can return an error condition, it's foolhardy not to detect and
deal with that condition.
(Related to issue #13240)

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

17 years ago1) Bugfix for debugging code
Tilghman Lesher [Wed, 6 Aug 2008 03:02:59 +0000 (03:02 +0000)] 
1) Bugfix for debugging code
2) Reduce compiler warnings for another section of debugging code
(Closes issue #13237)

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

17 years agoRemove properties that should not be here
Mark Michelson [Wed, 6 Aug 2008 00:29:54 +0000 (00:29 +0000)] 
Remove properties that should not be here

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

17 years agoRevert inadvertent changes to app_skel that occurred when
Mark Michelson [Wed, 6 Aug 2008 00:27:54 +0000 (00:27 +0000)] 
Revert inadvertent changes to app_skel that occurred when
I was testing for a memory leak

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

17 years agoMerging the issue11259 branch.
Mark Michelson [Wed, 6 Aug 2008 00:25:10 +0000 (00:25 +0000)] 
Merging the issue11259 branch.

The purpose of this branch was to take into account
"burps" which could cause jitterbuffers to misbehave.
One such example is if the L option to Dial() were used
to inject audio into a bridged conversation at regular
intervals. Since the audio here was not passed through
the jitterbuffer, it would cause a gap in the jitterbuffer's
timestamps which would cause a frames to be dropped for a
brief period.

Now ast_generic_bridge will empty and reset the jitterbuffer
each time it is called. This causes injected audio to be handled
properly.

ast_generic_bridge also will empty and reset the jitterbuffer
if it receives an AST_CONTROL_SRCUPDATE frame since the change
in audio source could negatively affect the jitterbuffer.

All of this was made possible by adding a new public API call
to the abstract_jb called ast_jb_empty_and_reset.

(closes issue #11259)
Reported by: plack
Tested by: putnopvut

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

17 years ago(closes issue #12982)
Steve Murphy [Tue, 5 Aug 2008 23:13:20 +0000 (23:13 +0000)] 
(closes issue #12982)
Reported by: bcnit
Tested by: murf

I discovered that also, in the previous bug fixes and changes,
the cdr.conf 'unanswered' option is not being obeyed, so
I fixed this.

And, yes, there are two 'answer' times involved in this
scenario, and I would agree with you, that the first
answer time is the time that should appear in the CDR.
(the second 'answer' time is the time that the bridge
was begun).

I made the necessary adjustments, recording the first
answer time into the peer cdr, and then using that to
override the bridge cdr's value.

To get the 'unanswered' CDRs to appear, I purposely
output them, using the dial cmd to mark them as
DIALED (with a new flag), and outputting them if
they bear that flag, and you are in the right mode.

I also corrected one small mention of the Zap device
to equally consider the dahdi device.

I heavily tested 10-sec-wait macros in dial, and
without the macro call; I tested hangups while the
macro was running vs. letting the macro complete
and the bridge form. Looks OK. Removed all the
instrumentation and debug.

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

17 years agoIn a conversion to use ast_strlen_zero, the meaning of the flag IAX_HASCALLERID
Tilghman Lesher [Tue, 5 Aug 2008 21:34:46 +0000 (21:34 +0000)] 
In a conversion to use ast_strlen_zero, the meaning of the flag IAX_HASCALLERID
was perverted.  This change reverts IAX2 to the original meaning, which was,
that the callerid set on the client should be overridden on the server, even if
that means the resulting callerid is blank.  In other words, if you set
"callerid=" in the IAX config, then the callerid should be overridden to blank,
even if set on the client.  Note that there's a distinction, even on realtime,
between the field not existing (NULL in databases) and the field existing, but
set to blank (override callerid to blank).

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

17 years agoUse PATH_MAX for filenames
Sean Bright [Tue, 5 Aug 2008 13:25:00 +0000 (13:25 +0000)] 
Use PATH_MAX for filenames

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

17 years agofix a config sample typo
Russell Bryant [Mon, 4 Aug 2008 20:15:03 +0000 (20:15 +0000)] 
fix a config sample typo

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

17 years agoDefine ASTSBINDIR for script
Tilghman Lesher [Mon, 4 Aug 2008 17:07:52 +0000 (17:07 +0000)] 
Define ASTSBINDIR for script

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

17 years agoMemory leak on unload
Tilghman Lesher [Mon, 4 Aug 2008 16:56:19 +0000 (16:56 +0000)] 
Memory leak on unload
(closes issue #13231)
 Reported by: eliel
 Patches:
       app_voicemail.leak.patch uploaded by eliel (license 64)

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

17 years agoAdd a minor clarification to the documentation of mohinterpret and mohsuggest
Russell Bryant [Mon, 4 Aug 2008 16:26:17 +0000 (16:26 +0000)] 
Add a minor clarification to the documentation of mohinterpret and mohsuggest

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

17 years agomake app_ices compile on OpenBSD.
Michiel van Baak [Fri, 1 Aug 2008 11:43:46 +0000 (11:43 +0000)] 
make app_ices compile on OpenBSD.

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

17 years agofix some potential deadlocks in chan_skinny
Michiel van Baak [Fri, 1 Aug 2008 10:55:27 +0000 (10:55 +0000)] 
fix some potential deadlocks in chan_skinny

(closes issue #13215)
Reported by: qwell
Patches:
      2008080100_bug13215.diff.txt uploaded by mvanbaak (license 7)
Tested by: mvanbaak

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

17 years agoaccomodate users who seem to lack a sense of humor :-)
Kevin P. Fleming [Thu, 31 Jul 2008 22:18:11 +0000 (22:18 +0000)] 
accomodate users who seem to lack a sense of humor :-)

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

17 years agoSpecify codecs in callfiles and manager, to allow video calls to be set up
Tilghman Lesher [Thu, 31 Jul 2008 21:53:19 +0000 (21:53 +0000)] 
Specify codecs in callfiles and manager, to allow video calls to be set up
from callfiles and AMI.
(closes issue #9531)
 Reported by: Geisj
 Patches:
       20080715__bug9531__1.4.diff.txt uploaded by Corydon76 (license 14)
       20080715__bug9531__1.6.0.diff.txt uploaded by Corydon76 (license 14)
 Tested by: Corydon76

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

17 years agoGet app_ices working again
Russell Bryant [Thu, 31 Jul 2008 19:37:26 +0000 (19:37 +0000)] 
Get app_ices working again

(closes issue #12981)
Reported by: dlogan
Patches:
      20080709__app_ices_v2_update_trunk.diff uploaded by bbryant (license 36)
      20080709__app_ices_v2_update_14.diff uploaded by bbryant (license 36)
Tested by: bbryant

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

17 years ago(closes issue #11849)
Steve Murphy [Thu, 31 Jul 2008 19:23:42 +0000 (19:23 +0000)] 
(closes issue #11849)
Reported by: greyvoip
Tested by: murf

OK, a few days of debugging, a bunch of instrumentation
in chan_sip, main/channel.c, main/pbx.c, etc. and 5 solid
notebook pages of notes later, I  have made the small
tweek necc. to get the start time right on the second
CDR when:

  A Calls B
  B answ.
  A hits Xfer button on sip phone,
  A dials C and hits the OK button,
  A hangs up
  C answers ringing phone
  B and C converse
  B and/or C hangs up

But does not harm the scenario where:

  A Calls B
  B answ.
  B hits xfer button on sip phone,
  B dials C and hits the OK button,
  B hangs up
  C answers ringing phone
  A and C converse
  A and/or C hangs up

The difference in start times on the second CDR is because
of a Masquerade on the B channel when the xfer number is
sent. It ends up replacing the CDR on the B channel with
a duplicate, which ends up getting tossed out. We keep
a pointer to the first CDR, and update *that* after the
bridge closes. But, only if the CDR has changed.

I hope this change is specific enough not to muck
up any current CDR-based apps. In my defence, I
assert that the previous information was wrong,
and this change fixes it, and possibly other
similar scenarios.

I wonder if I should be doing the same thing
for the channel, as I did for the peer, but
I can't think of a scenario this might affect.
I leave it, then, as an exersize for the users,
to find the scenario where the chan's CDR
changes and loses the proper start time.

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

17 years agoIn case we have some processing threads that free more frames than they allocate,
Russell Bryant [Thu, 31 Jul 2008 16:45:31 +0000 (16:45 +0000)] 
In case we have some processing threads that free more frames than they allocate,
do not let the frame cache grow forever.

(closes issue #13160)
Reported by: tavius
Tested by: tavius, russell

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

17 years agoAdd more timeout checks into app_queue, specifically
Mark Michelson [Thu, 31 Jul 2008 15:56:18 +0000 (15:56 +0000)] 
Add more timeout checks into app_queue, specifically
targeting areas where an unknown and potentially
long time has just elapsed. Also added a check
to try_calling() to return early if the timeout
has elapsed instead of potentially setting a negative
timeout for the call (thus making it have *no* timeout
at all).

(closes issue #13186)
Reported by: miquel_cabrespina
Patches:
      13186.diff uploaded by putnopvut (license 60)
Tested by: miquel_cabrespina

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

17 years agoOops, wrong define
Tilghman Lesher [Wed, 30 Jul 2008 22:39:57 +0000 (22:39 +0000)] 
Oops, wrong define

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

17 years ago(closes issue #13197)
Steve Murphy [Wed, 30 Jul 2008 22:02:07 +0000 (22:02 +0000)] 
(closes issue #13197)
Reported by: pj

(closes issue #13051)
Reported by: pj

This patch substitutes commas in the expr
supplied to the if () statement, as in
if ( expr ) ...

This solves both the bugs above, and makes
the source symmetric with switch statements,
which were earlier reported to need this sort
of treatment.

I tested this using the examples, both for
the compiler and at run time. Looks good.

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

17 years agoQwell pointed out, via IRC, that the previous fix only worked when explicitly
Tilghman Lesher [Wed, 30 Jul 2008 21:38:50 +0000 (21:38 +0000)] 
Qwell pointed out, via IRC, that the previous fix only worked when explicitly
set.  When nothing is set, and the option is implied, it breaks, because
configure sets the prefix to 'NONE'.  Fixing.

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

17 years agoReduce stack consumption by 12.5% of the max stack size to fix a crash when
Russell Bryant [Wed, 30 Jul 2008 20:37:17 +0000 (20:37 +0000)] 
Reduce stack consumption by 12.5% of the max stack size to fix a crash when
compiled with LOW_MEMORY.

(closes issue #13154)
Reported by: edantie

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

17 years agoFix a memory leak in func_curl. Every thread that used this function leaked
Russell Bryant [Wed, 30 Jul 2008 19:52:53 +0000 (19:52 +0000)] 
Fix a memory leak in func_curl.  Every thread that used this function leaked
an allocation the size of a pointer.
(reported by jmls in #asterisk-dev)

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

17 years agoOnly override sysconfdir and mandir when prefix=/usr
Tilghman Lesher [Wed, 30 Jul 2008 19:47:16 +0000 (19:47 +0000)] 
Only override sysconfdir and mandir when prefix=/usr
(closes issue #13093)
 Reported by: pabelanger

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

17 years agolaunch_netscript sometimes returns -1, which fails to set AGISTATUS. Map
Tilghman Lesher [Wed, 30 Jul 2008 19:03:44 +0000 (19:03 +0000)] 
launch_netscript sometimes returns -1, which fails to set AGISTATUS.  Map
failure to -1, so that AGISTATUS is always set.
(closes issue #13199)
 Reported by: smw1218

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

17 years agoFix a spot where a function could return without bringing
Mark Michelson [Wed, 30 Jul 2008 18:31:47 +0000 (18:31 +0000)] 
Fix a spot where a function could return without bringing
a channel out of autoservice.

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

17 years agouse the proper method for building version.h
Kevin P. Fleming [Wed, 30 Jul 2008 15:29:17 +0000 (15:29 +0000)] 
use the proper method for building version.h

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

17 years agobuild against the now-typedef-free dahdi/user.h
Kevin P. Fleming [Tue, 29 Jul 2008 22:05:57 +0000 (22:05 +0000)] 
build against the now-typedef-free dahdi/user.h

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

17 years agoMerging the imap_consistency branch.
Mark Michelson [Tue, 29 Jul 2008 15:54:48 +0000 (15:54 +0000)] 
Merging the imap_consistency branch.

The main aim of this branch was to make the IMAP
code function in the same manner as the ODBC code
does, eliminating the need for so many IMAP-specific
code chunks. The focal point of all of this work was
to make the various macros (e.g. RETRIEVE, DISPOSE)
functionally equivalent.

While doing the above work, I also fixed a few bugs
that I came across in my testing. Among these were

1. Fixed message forwarding. This was completely
broken when using IMAP.
2. Fixed the inability to save new messages as old
and vice versa.
3. Fixed the "delete" options in voicemail.conf when
using IMAP storage.

Even though a few bugs were fixed and the code is
a lot more consistent, the one thing that was *not*
improved in this branch was performance.

The merge of this to trunk may not come immediately
due to the amount of work it will probably involve.

(closes issue #12764)
Reported by: balsamcn

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

17 years agoDetect when sox fails to raise the volume, because sox can't read the file.
Tilghman Lesher [Mon, 28 Jul 2008 21:50:50 +0000 (21:50 +0000)] 
Detect when sox fails to raise the volume, because sox can't read the file.
(closes issue #12939)
 Reported by: rickbradley
 Patches:
       20080728__bug12939.diff.txt uploaded by Corydon76 (license 14)
 Tested by: rickbradley

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

17 years agoAdd the licensing section to the docs in 1.4, as well, so that we can work on
Russell Bryant [Sat, 26 Jul 2008 15:31:21 +0000 (15:31 +0000)] 
Add the licensing section to the docs in 1.4, as well, so that we can work on
having an accurate list for each version of Asterisk that is supported

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

17 years agoRemove unnecessary mmap flag
Tilghman Lesher [Fri, 25 Jul 2008 18:00:33 +0000 (18:00 +0000)] 
Remove unnecessary mmap flag
(Closes issue #13161)

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

17 years agoFix some errant device states by making the devicestate API more strict in
Tilghman Lesher [Fri, 25 Jul 2008 17:19:39 +0000 (17:19 +0000)] 
Fix some errant device states by making the devicestate API more strict in
terms of the device argument (only without the unique identifier appended).
(closes issue #12771)
 Reported by: davidw
 Patches:
       20080717__bug12771.diff.txt uploaded by Corydon76 (license 14)
 Tested by: davidw, jvandal, murf

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

17 years agoMerged revisions 133577 via svnmerge from
Russell Bryant [Fri, 25 Jul 2008 15:00:31 +0000 (15:00 +0000)] 
Merged revisions 133577 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r133577 | russell | 2008-07-25 10:00:13 -0500 (Fri, 25 Jul 2008) | 2 lines

Fix the IAX2 URI for calling Digium

........

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

17 years agoWe need to make sure to null-terminate the "name"
Mark Michelson [Fri, 25 Jul 2008 14:40:10 +0000 (14:40 +0000)] 
We need to make sure to null-terminate the "name"
portion of SIP URI parameters so that there are no
bogus comparisons.

Thanks to bbryant for pointing this out.

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

17 years agoFix rtautoclear and rtcachefriends
Tilghman Lesher [Thu, 24 Jul 2008 21:17:55 +0000 (21:17 +0000)] 
Fix rtautoclear and rtcachefriends
(Closes issue #12707)

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

17 years agoBlocked revisions 133360 via svnmerge
Tilghman Lesher [Thu, 24 Jul 2008 03:48:07 +0000 (03:48 +0000)] 
Blocked revisions 133360 via svnmerge

........
r133360 | tilghman | 2008-07-23 22:46:01 -0500 (Wed, 23 Jul 2008) | 2 lines

This part was not correctly patched for AST-2008-010.

........

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

17 years agoinbandrelease is gone - it's now inbanddisconnect
Jason Parker [Wed, 23 Jul 2008 21:49:03 +0000 (21:49 +0000)] 
inbandrelease is gone - it's now inbanddisconnect

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

17 years agorevert an optimization that broke ABI... thanks russell!
Kevin P. Fleming [Wed, 23 Jul 2008 21:05:22 +0000 (21:05 +0000)] 
revert an optimization that broke ABI... thanks russell!

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

17 years agomake some more changes to the dahdi/zap channel name support stuff to ensure allthe...
Kevin P. Fleming [Wed, 23 Jul 2008 20:42:30 +0000 (20:42 +0000)] 
make some more changes to the dahdi/zap channel name support stuff to ensure allthe globals are 'const', and clean up mmichelson's changes to app_chanspy to simplify the code

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

17 years agoAs suggested by seanbright, the PSEUDO_CHAN_LEN in
Mark Michelson [Wed, 23 Jul 2008 19:39:47 +0000 (19:39 +0000)] 
As suggested by seanbright, the PSEUDO_CHAN_LEN in
app_chanspy should be set at load time, not at compile
time, since dahdi_chan_name is determined at load time.

Also changed the next_unique_id_to_use to have the
static qualifier.

Also added the dahdi_chan_name_len variable so that
strlen(dahdi_chan_name) isn't necessary. Thanks to
seanbright for the suggestion.

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

17 years agoZap/pseudo is ten characters, but DAHDI/pseudo is
Mark Michelson [Wed, 23 Jul 2008 19:06:16 +0000 (19:06 +0000)] 
Zap/pseudo is ten characters, but DAHDI/pseudo is
twelve. The strncmp call in next_channel should
account for this.

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

17 years agoUpdate the "last" channel in next_channel in app_chanspy so
Mark Michelson [Wed, 23 Jul 2008 18:57:17 +0000 (18:57 +0000)] 
Update the "last" channel in next_channel in app_chanspy so
that the same pseudo channel isn't constantly returned.

related to issue #13124

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

17 years agoSmall cleanup. Move the declaration of the DAHDI_SPANINFO
Mark Michelson [Wed, 23 Jul 2008 17:50:01 +0000 (17:50 +0000)] 
Small cleanup. Move the declaration of the DAHDI_SPANINFO
variable to the block where it is used. This allows one
less #ifdef HAVE_PRI to clutter things up.

Thanks to Tzafrir for pointing this out on #asterisk-dev

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

17 years agoFix building of chan_dahdi when HAVE_PRI is not
Mark Michelson [Wed, 23 Jul 2008 17:05:04 +0000 (17:05 +0000)] 
Fix building of chan_dahdi when HAVE_PRI is not
defined.

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

17 years agoensure that after a channel is created, if it happened to be in 'channel alarm' state...
Kevin P. Fleming [Wed, 23 Jul 2008 15:52:29 +0000 (15:52 +0000)] 
ensure that after a channel is created, if it happened to be in 'channel alarm' state, when that alarm clears we won't generate a spurious 'alarm cleared' message

(closes issue #12160)
Reported by: tzafrir

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

17 years agominor optimization for stringfields: when a field is being set to a larger value...
Kevin P. Fleming [Wed, 23 Jul 2008 11:52:18 +0000 (11:52 +0000)] 
minor optimization for stringfields: when a field is being set to a larger value than it currently contains and it happens to be the most recent field allocated from the currentl pool, it is possible to 'grow' it without having to waste the space it is currently using (or potentially even allocate a new pool)

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

17 years agoanother Fix because of r119585, this commit has broken high frequented BRI Ports...
Christian Richter [Wed, 23 Jul 2008 11:37:50 +0000 (11:37 +0000)] 
another Fix because of r119585, this commit has broken high frequented BRI Ports, there was a possibility that a channel, that was marked as in_use would be reused later, the corresponding port could got stuck then. So it is recommended to upgrade for chan_misdn users.

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

17 years agoAllow Spiraled INVITEs to work correctly within Asterisk.
Mark Michelson [Tue, 22 Jul 2008 22:14:24 +0000 (22:14 +0000)] 
Allow Spiraled INVITEs to work correctly within Asterisk.

Prior to this change, a spiraled INVITE would cause a 482
Loop Detected to be sent to the caller. With this change,
if a potential loop is detected, the Request-URI is inspected
to see if it has changed from what was originally received. If
pedantic mode is on, then this inspection is fully RFC 3261
compliant. If pedantic mode is not on, then a string comparison
is used to test the equality of the two R-URIs.

This has been tested by using OpenSER to rewrite the R-URI
and send the INVITE back to Asterisk.

(closes issue #7403)
Reported by: stephen_dredge

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

17 years agofix up namespace pollution for dahdi_chan_mode enum
Kevin P. Fleming [Tue, 22 Jul 2008 22:11:01 +0000 (22:11 +0000)] 
fix up namespace pollution for dahdi_chan_mode enum

correct registration of AMI actions in chan_dahdi; in zap-only mode, only register the Zap flavors of the actions (and use Zap prefixes for headers and acks), but in dahdi+zap mode, register both Zap and DAHDI flavors of actions

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

17 years agoadd rules to create preprocessor output... useful for debugging macros
Kevin P. Fleming [Tue, 22 Jul 2008 22:09:37 +0000 (22:09 +0000)] 
add rules to create preprocessor output... useful for debugging macros

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

17 years agoMerged revisions 132711 via svnmerge from
Tilghman Lesher [Tue, 22 Jul 2008 21:19:39 +0000 (21:19 +0000)] 
Merged revisions 132711 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r132711 | tilghman | 2008-07-22 16:14:10 -0500 (Tue, 22 Jul 2008) | 2 lines

Fixes for AST-2008-010 and AST-2008-011

........

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

17 years agoensure that if any alarms exist at channel creation time, they are handled identicall...
Kevin P. Fleming [Tue, 22 Jul 2008 21:17:23 +0000 (21:17 +0000)] 
ensure that if any alarms exist at channel creation time, they are handled identically to if they occurred later, so that later alarm clearing will work properly and 'make sense'

(closes issue #12160)
Reported by: tzafrir

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

17 years agomake AST_C_COMPILE_CHECK able to print a 'pretty' description of what it is doing
Kevin P. Fleming [Tue, 22 Jul 2008 20:49:41 +0000 (20:49 +0000)] 
make AST_C_COMPILE_CHECK able to print a 'pretty' description of what it is doing

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

17 years agoThe most common question on the #asterisk iRC channel and on mailing lists
Olle Johansson [Tue, 22 Jul 2008 20:10:26 +0000 (20:10 +0000)] 
The most common question on the #asterisk iRC channel and on mailing lists
seems to be in regards to an error message when retransmit fails. This
is frequently misunderstood as a failure of Asterisk, not a failure of
the network to reach the other party.

This document tries to assist the Asterisk user in sorting out these
issues by explaining the logic and pointing at some possible
causes. Hopefully, we will get other questions now :-)

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

17 years agocorrect wording in comment
Kevin P. Fleming [Tue, 22 Jul 2008 19:57:43 +0000 (19:57 +0000)] 
correct wording in comment

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

17 years agouse renamed libpri API call for controlling this feature (was improperly named before)
Kevin P. Fleming [Tue, 22 Jul 2008 19:49:11 +0000 (19:49 +0000)] 
use renamed libpri API call for controlling this feature (was improperly named before)

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

17 years agoteach chan_dahdi how to find the D-channel on BRI spans, and don't attempt to use...
Kevin P. Fleming [Mon, 21 Jul 2008 22:45:16 +0000 (22:45 +0000)] 
teach chan_dahdi how to find the D-channel on BRI spans, and don't attempt to use channel 24 as a D-channel on spans of unexpected sizes

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

17 years agoFix a bug where SENDTEXTSTATUS isn't set properly when it isn't
Brett Bryant [Mon, 21 Jul 2008 20:51:45 +0000 (20:51 +0000)] 
Fix a bug where SENDTEXTSTATUS isn't set properly when it isn't
supported on a channel (yet _another_ useful patch by eliel).

(issue #13081)
Reported by: eliel
Patches:
      app_sendtext1.4.c uploaded by eliel (license 64)
Tested by: eliel

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

17 years agoFix a bug in 1.4 branch with iax2 channels not being removed when a call was rejected...
Brett Bryant [Mon, 21 Jul 2008 20:30:12 +0000 (20:30 +0000)] 
Fix a bug in 1.4 branch with iax2 channels not being removed when a call was rejected (from the calling box, not the box that denied the
registration). Related to revisions 132466 in trunk, and 132467 in 1.6.0. Earlier I had accidently tested 1.4 with a backport from those revisions,
so I didn't see this problem (oops).

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

17 years agogrant a license exception to allow distribution of Asterisk binaries that use the...
Kevin P. Fleming [Sat, 19 Jul 2008 16:45:52 +0000 (16:45 +0000)] 
grant a license exception to allow distribution of Asterisk binaries that use the UW IMAP Toolkit (which is licensed under a non-GPL-compatible license)

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

17 years agoFix for Taiwanese number syntax
Tilghman Lesher [Fri, 18 Jul 2008 19:06:10 +0000 (19:06 +0000)] 
Fix for Taiwanese number syntax
(closes issue #12319)
 Reported by: CharlesWang
 Patches:
       saynumber-tw-1.4.18.1.patch uploaded by CharlesWang (license 444)

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

17 years agoTextual clarification
Tilghman Lesher [Fri, 18 Jul 2008 18:47:50 +0000 (18:47 +0000)] 
Textual clarification
(closes issue #13106)
 Reported by: flefoll
 Patches:
       config.c.br14.120173.patch-unknown-directive uploaded by flefoll (license 244)

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

17 years agoSpinlock within the destroy, to allow a scheduled job to continue, if it's
Tilghman Lesher [Fri, 18 Jul 2008 17:33:42 +0000 (17:33 +0000)] 
Spinlock within the destroy, to allow a scheduled job to continue, if it's
waiting on the mutex which the destroy thread has.

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

17 years agoOops
Tilghman Lesher [Fri, 18 Jul 2008 17:10:01 +0000 (17:10 +0000)] 
Oops

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

17 years agoPreserve ABI compatibility with last change
Tilghman Lesher [Fri, 18 Jul 2008 16:46:23 +0000 (16:46 +0000)] 
Preserve ABI compatibility with last change

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

17 years agoMake the ast_assert call within ast_sched_del report something useful.
Tilghman Lesher [Fri, 18 Jul 2008 16:30:31 +0000 (16:30 +0000)] 
Make the ast_assert call within ast_sched_del report something useful.

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

17 years agoremove the dlfcn compatibility stuff, because no platforms that Asterisk currently...
Kevin P. Fleming [Fri, 18 Jul 2008 16:15:41 +0000 (16:15 +0000)] 
remove the dlfcn compatibility stuff, because no platforms that Asterisk currently runs on it use it, and it doesn't build anyway

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

17 years agoFix a bug in blind transfers where the BLINDTRANSFER variable isn't always set to...
Brett Bryant [Fri, 18 Jul 2008 15:34:42 +0000 (15:34 +0000)] 
Fix a bug in blind transfers where the BLINDTRANSFER variable isn't always set to the other end of the blind transfer.

(closes issue #12586)

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

17 years agoRevert part of issue #5620 (revision 6965) as it appears that it was in error.
Tilghman Lesher [Thu, 17 Jul 2008 20:35:44 +0000 (20:35 +0000)] 
Revert part of issue #5620 (revision 6965) as it appears that it was in error.
This should fix talk call progress on analog lines.
(closes issue #12178)
 Reported by: michael-fig
 Patches:
       20080717__bug12178.diff.txt uploaded by Corydon76 (license 14)

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

17 years agoFix a bug in iax2 registration that allowed peers to register with
Brett Bryant [Wed, 16 Jul 2008 22:17:07 +0000 (22:17 +0000)] 
Fix a bug in iax2 registration that allowed peers to register with
case-insensitive names (user_cmp_cb and peer_cmp_cb are now both
case-sensitive).

(closes issue #13091)

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

17 years agoApparently, in certain cases, a callno is already destroyed when iax2_destroy is...
Tilghman Lesher [Wed, 16 Jul 2008 21:46:06 +0000 (21:46 +0000)] 
Apparently, in certain cases, a callno is already destroyed when iax2_destroy is called.

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

17 years agoAlways ensure that the channel's tech_pvt reference is NULL after calling the
Russell Bryant [Wed, 16 Jul 2008 20:47:53 +0000 (20:47 +0000)] 
Always ensure that the channel's tech_pvt reference is NULL after calling the
destroy callback.
(closes issue #13060)
Reported by: jpgrayson
Patches:
      chan_iax2_tech_pvt_crash.patch uploaded by jpgrayson (license 492)

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

17 years agoMove the init_queue call back to where it used to be (changed
Mark Michelson [Wed, 16 Jul 2008 20:23:02 +0000 (20:23 +0000)] 
Move the init_queue call back to where it used to be (changed
Sept 12 last year). It was moved then to prevent a memory leak.
Since then, the same memory leak recurred and was fixed in a
better way.

Now it has been found that the placement of this init_queue
call can cause problems if a realtime queue has values changed
to an empty string. The problem is that the default value
for that queue parameter would not be set.

(closes issue #13084)
Reported by: elbriga

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

17 years agoApparently, "thread safety" is important, whatever
Mark Michelson [Wed, 16 Jul 2008 19:37:08 +0000 (19:37 +0000)] 
Apparently, "thread safety" is important, whatever
that means. :P

(Thanks Russell!)

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

17 years agoMake absolutely certain that the transfer datastore
Mark Michelson [Wed, 16 Jul 2008 18:57:34 +0000 (18:57 +0000)] 
Make absolutely certain that the transfer datastore
is removed from the calling channel once the caller
is finished in the queue. This could have weird con-
sequences when dialing local queue members when multiple
transfers occur on a single call.

Also fixed a memory leak that would occur when an
attended transfer occurred from a queue member.

(closes issue #13047)
Reported by: festr

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

17 years ago(closes issue #13090)
Steve Murphy [Wed, 16 Jul 2008 17:53:43 +0000 (17:53 +0000)] 
(closes issue #13090)
Reported by: murf

The problem was that, esoteric as it is, because the hangerupper
context immediately preceded the std-priv-extent macro, that
the checking code accidentally would fall from traversing hangerupper
into the std-priv-exten macro, where it would hit the hangerupper
in the 'includes', and proceed into an infinite recursion.

A small fix to traverse into the statements of the context instead
of the context solves this issue.

I also added some commented out printfs for debug, which were pretty
handy in the face of a dorky gdb.

This was a problem around since the package was first written;
but evidently pretty rare in turning up in the field.

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

17 years agoremove 4 lines of redundant code.
Michiel van Baak [Tue, 15 Jul 2008 17:47:15 +0000 (17:47 +0000)] 
remove 4 lines of redundant code.

(closes issue #13080)
Reported by: gknispel_proformatique
Patches:
      trunk_ast_cdr_setapp.patch uploaded by gknispel (license 261)

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

17 years agoastman_send_error does not need a newline appended -- the API takes care of
Tilghman Lesher [Tue, 15 Jul 2008 17:19:13 +0000 (17:19 +0000)] 
astman_send_error does not need a newline appended -- the API takes care of
that for us.
(closes issue #13068)
 Reported by: gknispel_proformatique
 Patches:
       asterisk_1_4_astman_send.patch uploaded by gknispel (license 261)
       asterisk_trunk_astman_send.patch uploaded by gknispel (license 261)

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

17 years agoOverride the callerid in all cases when the callerid is set in the user, not
Tilghman Lesher [Mon, 14 Jul 2008 23:59:13 +0000 (23:59 +0000)] 
Override the callerid in all cases when the callerid is set in the user, not
just when a remote callerid is set.  Also, if not set in the user, allow the
remote CallerID to pass through.
(closes issue #12875)
 Reported by: dimas
 Patches:
       20080714__bug12875.diff.txt uploaded by Corydon76 (license 14)

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

17 years agoAdd a check to the CAN_EARLY_BRIDGE macro in app_dial to
Mark Michelson [Mon, 14 Jul 2008 17:50:21 +0000 (17:50 +0000)] 
Add a check to the CAN_EARLY_BRIDGE macro in app_dial to
be sure there are no audiohooks present on the channels
involved. This fixed a one-way audio situation I had in
my test setup. I couldn't find any open issues that suggested
one-way audio with regards to mixmonitor (or other audiohook)
usage, though.

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

17 years agonotify the user that dnsmgr refresh wont work when dnsmgr is not enabled.
Michiel van Baak [Mon, 14 Jul 2008 17:10:21 +0000 (17:10 +0000)] 
notify the user that dnsmgr refresh wont work when dnsmgr is not enabled.
Previously this command would automagically appear and disappear.
This was confusing.

(closes issue #12796)
Reported by: chappell
Patches:
      dnsmgr_refresh_3.diff uploaded by chappell (license 8)
Tested by: russell, chappell, mvanbaak

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

17 years agoBump up the debug level for a message.
Russell Bryant [Mon, 14 Jul 2008 10:38:14 +0000 (10:38 +0000)] 
Bump up the debug level for a message.

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

17 years agofix memory leak when originate from manager cannot create a thread
Michiel van Baak [Sun, 13 Jul 2008 22:48:51 +0000 (22:48 +0000)] 
fix memory leak when originate from manager cannot create a thread

(closes issue #13069)
Reported by: gknispel_proformatique
Patches:
      asterisk_trunk_action_originate.patch uploaded by gknispel (license 261)
  Tested by: gknispel_proformatique, mvanbaak

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

17 years agoReverting 2 changesets, as it breaks incoming IAX2 calls
Tilghman Lesher [Sun, 13 Jul 2008 17:56:10 +0000 (17:56 +0000)] 
Reverting 2 changesets, as it breaks incoming IAX2 calls
(Related to issue #12963)
Reported by: mvanbaak

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

17 years agoin 1.4 the functions still have | as argument seperator.
Michiel van Baak [Sat, 12 Jul 2008 10:25:52 +0000 (10:25 +0000)] 
in 1.4 the functions still have | as argument seperator.
This commit fixes the use of RAND in the ael random function.

(closes issue #13061)
Reported by: danpwi

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