]> git.ipfire.org Git - thirdparty/asterisk.git/log
thirdparty/asterisk.git
13 years agoInitialize variables before calling parse_uri
Terry Wilson [Mon, 17 Oct 2011 17:35:23 +0000 (17:35 +0000)] 
Initialize variables before calling parse_uri

If parse_uri was called with an empty URI, some pointers would be
modified and an invalid read could result. This patch avoids calling
parse_uri with an empty contact uri when parsing REGISTER requests.

AST-2011-012

(closes issue ASTERISK-18668)

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

13 years agoFix previous commit
Paul Belanger [Mon, 17 Oct 2011 16:23:33 +0000 (16:23 +0000)] 
Fix previous commit

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

13 years agoVoicemail compiler flags are 'core' support
Paul Belanger [Mon, 17 Oct 2011 16:22:19 +0000 (16:22 +0000)] 
Voicemail compiler flags are 'core' support

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

13 years agoDon't try to remove peers without IPs from peers_by_ip
Terry Wilson [Mon, 17 Oct 2011 15:35:05 +0000 (15:35 +0000)] 
Don't try to remove peers without IPs from peers_by_ip

(closes issue ASTERISK-18696)

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

13 years agoRemove an unused include of md5.h
Tzafrir Cohen [Mon, 17 Oct 2011 15:08:21 +0000 (15:08 +0000)] 
Remove an unused include of md5.h

Unused include of asterisk/md5.h in pbx_realtime.c . A commit needed to
test the commit message.

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

13 years agoChange the internal name of the menuselect options that are used to control
Kevin P. Fleming [Fri, 14 Oct 2011 21:36:06 +0000 (21:36 +0000)] 
Change the internal name of the menuselect options that are used to control
whether modules are embedded or not; using just the bare category name led to
accidentally enabling these options when users used the wrong "--enable"
operation on the menuselect command line.

Now the internal option names are prefixed with "EMBED_", so they won't be
the same as the name of the category containing the modules they control
the embedding of.

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

13 years agoQuiet RTCP Receiver Reports during fax transmission
Kinsey Moore [Fri, 14 Oct 2011 20:49:39 +0000 (20:49 +0000)] 
Quiet RTCP Receiver Reports during fax transmission

RTCP is now disabled for "inactive" RTP audio streams during SIP T.38 sessions.
The ability to disable RTCP streams in res_rtp_asterisk was missing, so this
code was added to support the bug fix.

(closes issue ASTERISK-18400)

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

13 years agoAvoid unnecessary WARNING message
Terry Wilson [Fri, 14 Oct 2011 16:33:28 +0000 (16:33 +0000)] 
Avoid unnecessary WARNING message

Add AST_CONTROL_UPDATE_RTP_PEER frame to be ignored here to avoid
displaying a WARNING message.

(closes issue ASTERISK-18610)
 Patch by: Kristijan_Vrban

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

13 years agoFixes some support level info so that it can be read by menuselect.
Jonathan Rose [Fri, 14 Oct 2011 15:58:44 +0000 (15:58 +0000)] 
Fixes some support level info so that it can be read by menuselect.

(issue ASTERISK-18268)
Review: https://reviewboard.asterisk.org/r/1525/

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

13 years agoFix DTMF blind transfer continuing to execute dialplan after transfer.
Richard Mudgett [Thu, 13 Oct 2011 22:48:58 +0000 (22:48 +0000)] 
Fix DTMF blind transfer continuing to execute dialplan after transfer.

Party A calls Party B.
Party A DTMF blind transfers Party B to Party C.
Party A channel continues to execute dialplan.

* Fixed the return value of builtin_blindtransfer() to return the correct
value after a transfer so the dialplan will not keep executing.

* Removed unnecessary connected line update that did not really do
anything.

* Made access to GOTO_ON_BLINDXFR thread safe in check_goto_on_transfer().

* Fixed leak of xferchan for failure cases in check_goto_on_transfer().

* Updated debug messages in builtin_blindtransfer() and
check_goto_on_transfer().

(closes issue ASTERISK-18275)
Reported by: rmudgett
Tested by: rmudgett

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

13 years agostoring the route-set also on a 181 response not only on 180,182 or 183.
Stefan Schmidt [Thu, 13 Oct 2011 06:58:00 +0000 (06:58 +0000)] 
storing the route-set also on a 181 response not only on 180,182 or 183.

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

13 years agoInitialize ast_sockaddr before calling ast_sockaddr_resolve
Terry Wilson [Thu, 13 Oct 2011 06:52:12 +0000 (06:52 +0000)] 
Initialize ast_sockaddr before calling ast_sockaddr_resolve

Avoid possible jump based on unitialized value

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

13 years agoDon't skip the query field on a realtime multi query
Terry Wilson [Thu, 13 Oct 2011 00:05:17 +0000 (00:05 +0000)] 
Don't skip the query field on a realtime multi query

There is no documented reason to not add the query field to the varlist
returned by a realtime multi query, despite the config category being
set to its value. Of course, there is no documentation that the category
should be set to the value either. There is lots of no documentation
when it comes to realtime. But, other engines do not skip this field so
I am forcing this backend to follow the convention, because not doing so
is very silly.

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

13 years agoStore route-set from provisional SIP responses so early-dialog requests can be routed...
Stefan Schmidt [Wed, 12 Oct 2011 20:30:37 +0000 (20:30 +0000)] 
Store route-set from provisional SIP responses so early-dialog requests can be routed properly

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

13 years agoUpdate SIP realtime fullcontact regardless of caching
Terry Wilson [Wed, 12 Oct 2011 20:19:36 +0000 (20:19 +0000)] 
Update SIP realtime fullcontact regardless of caching

We should update the fullcontact field in the realtime table whether or
not rtcachefriends is set. There is no reason to treat a non-cached
realtime entity differently than a cached in this regard.

(closes issue ASTERISK-18446)
 Reported by: wdoekes

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

13 years agoInitialize the PRI channel alarms properly on startup.
Richard Mudgett [Wed, 12 Oct 2011 20:07:33 +0000 (20:07 +0000)] 
Initialize the PRI channel alarms properly on startup.

The PRI channel alarms were initialized with an inverted sense.

(closes issue ASTERISK-18710)
Reported by: Tzafrir Cohen

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

13 years agoUpdate MeetMe p and X option documentation when interacting with the s option.
Richard Mudgett [Wed, 12 Oct 2011 17:49:19 +0000 (17:49 +0000)] 
Update MeetMe p and X option documentation when interacting with the s option.

ASTERISK-12175 changed the p and X options to not interfere with the s
option when they are used together.  It makes more sense for the s option
to have priority for the DTMF '*' key since it cannot change its
activation code.  Otherwise, you could not use option s with the p or X
options.

JIRA AST-671

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

13 years agoFix verbose messages when IPv6 logic was added
Paul Belanger [Wed, 12 Oct 2011 16:27:23 +0000 (16:27 +0000)] 
Fix verbose messages when IPv6 logic was added

(closes issue ASTERISK-18612)
Reported by: Tim Osman

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

13 years agoAdd protection for SS7 channel allocation and better glare handling.
Richard Mudgett [Tue, 11 Oct 2011 21:03:15 +0000 (21:03 +0000)] 
Add protection for SS7 channel allocation and better glare handling.

* Added a CLI "ss7 show channels" command that might prove useful for
future debugging.

* Made the incoming SS7 channel event check and gripe message uniform.

* Made sure that the DNID string for an incoming call is always
initialized.

(issue ASTERISK-17966)
Reported by: Kenneth Van Velthoven
Patches:
      jira_asterisk_17966_v1.8_glare.patch (license #5621) patch uploaded by rmudgett

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

13 years agoFix some potential deadlocks pointed out by helgrind.
Richard Mudgett [Tue, 11 Oct 2011 19:16:47 +0000 (19:16 +0000)] 
Fix some potential deadlocks pointed out by helgrind.

* Fixed deadlock potential calling dialog_unlink_all() in
__sip_autodestruct().  Found by helgrind.

* Fixed deadlock potential in handle_request_invite() after calling
sip_new().  Found by helgrind.

* The sip_new() function now returns with the created channel already
locked.

* Removed the dead code that starts a PBX in in sip_new().  No sip_new()
callers caused that code to be executed and it was a bad thing to do
anyway.

* Removed unused parameters and return value from dialog_unlink_all().

* Made dialog_unlink_all() and __sip_autodestruct() safely obtain the
owner and private channel locks without a deadlock avoidance loop.

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

13 years agoConvert registered AMI actions to ao2 objects.
Richard Mudgett [Tue, 11 Oct 2011 18:23:14 +0000 (18:23 +0000)] 
Convert registered AMI actions to ao2 objects.

* Fixed race between calling an AMI action callback and unregistering that
action.  Refixes ASTERISK-13784 broken by ASTERISK-17785 change.

* Fixed potential memory leak if an AMI action failed to get registered
because is already was registered.  Part of the ao2 conversion.

* Fixed AMI ListCommands action not walking the actions list with a lock
held.

* Fix usage of ast_strdupa() and alloca() in loops.  Excess stack usage.

* Fix AMI Originate action Variable header requiring a space after the
header colon.  Reported by Yaroslav Panych on the asterisk-dev list.

* Increased the number of listed variables allowed per AMI Originate
action Variable header to 64.

* Fixed AMI GetConfigJSON action output format.

* Fixed usage of res contents outside of scope in append_channel_vars().

* Fixed inconsistency of config file channelvars option.  The values no
longer accumulate with every channelvars option in the config file.  Only
the last value is kept to be consistent with the CLI "manager show
settings" command.

(closes issue ASTERISK-18479)
Reported by: Jaco Kroon

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

13 years agoUpdate SHA1 code to RFC 6234
Tzafrir Cohen [Tue, 11 Oct 2011 00:43:14 +0000 (00:43 +0000)] 
Update SHA1 code to RFC 6234

RFC 6234 is an update to RFC 3174 from which the code was originally taken.
It has a slightly better code, and a better phrased license (simple 3-clause
BSD).

* main/sha1.c is sha1.c from RFC 6234 with formatting changes only.
* include/asterisk/sha1.h merges sha.h and sha-private.h from RFC 6234.
* Removed unused include of asterisk/sha1.h from main/channels.c

Review: https://reviewboard.asterisk.org/r/1503/

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

13 years agoUpdated chan_sip to place calls on hold if SDP address in INVITE is ANY
Matthew Jordan [Mon, 10 Oct 2011 20:23:48 +0000 (20:23 +0000)] 
Updated chan_sip to place calls on hold if SDP address in INVITE is ANY

This patch fixes the case where an INVITE is received with c=0.0.0.0 or ::.
In this case, the call should be placed on hold.  Previously, we checked for
the address being null; this patch keeps that behavior but also checks for
the ANY IP addresses.

Review: https://reviewboard.asterisk.org/r/1504/

(closes issue ASTERISK-18086)
Reported by: James Bottomley
Tested by: Matt Jordan

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

13 years agoLoad the proper XML documentation when multiple modules document the same application.
Matthew Nicholson [Mon, 10 Oct 2011 14:14:48 +0000 (14:14 +0000)] 
Load the proper XML documentation when multiple modules document the same application.

This patch adds an optional "module" attribute to the XML documentation spec
that allows the documentation processor to match apps with identical names from
different modules to their documentation. This patch also fixes a number of
bugs with the documentation processor and should make it a little more
efficient. Support for multiple languages has also been properly implemented.

ASTERISK-18130
Review: https://reviewboard.asterisk.org/r/1485/

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

13 years agoFix compilation issue, caused by missed session structure
Igor Goncharovskiy [Sun, 9 Oct 2011 01:16:09 +0000 (01:16 +0000)] 
Fix compilation issue, caused by missed session structure

(closes issue ASTERISK-18694)
Reported by: alex70

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

13 years agoFix segfault in Unistim channel
Igor Goncharovskiy [Sat, 8 Oct 2011 15:45:20 +0000 (15:45 +0000)] 
Fix segfault in Unistim channel

(closes issue ASTERISK-18638)
Reported by: jonnt

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

13 years agoFix char array cast as short array in send_client() function (for ARM
Igor Goncharovskiy [Sat, 8 Oct 2011 14:56:35 +0000 (14:56 +0000)] 
Fix char array cast as short array in send_client() function (for ARM
platform)

(closes issue ASTERISK-17314)
Reported by: jjoshua

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

13 years agoInitialize option flags for SendURL application.
Richard Mudgett [Fri, 7 Oct 2011 19:34:55 +0000 (19:34 +0000)] 
Initialize option flags for SendURL application.

(closes issue ASTERISK-18574)
Reported by: marcelloceschia

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

13 years agoFix regression in configure script for libpri capability checks.
Richard Mudgett [Thu, 6 Oct 2011 22:47:50 +0000 (22:47 +0000)] 
Fix regression in configure script for libpri capability checks.

JIRA AST-598 added the PRI_L2_PERSISTENCE option to fix BRI PTMP TE layer
2 persistence issues with some telcos.  ASTERISK-18535 attempted to fix
the unexpected requirement that libpri *must* have that feature to work
with Asterisk.  The AST_EXT_LIB_SETUP_DEPENDENT lines made the PRI
optional features required.  Unfortunately, I thought
AST_EXT_LIB_SETUP_DEPENDENT didn't do anything useful for libpri and
deleted those lines for libpri.  The result was the HAVE_PRI_xxx defines
that control the ability to use optional libpri features were also
deleted.

* Created AST_EXT_LIB_SETUP_OPTIONAL configuration macro to allow optional
features in a library that the source code could take advantage of if the
code supports the feature.

(closes issue ASTERISK-18687)
Reported by: Norbert
Tested by: rmudgett

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

13 years agoFix debugging messages generated by 'udptl debug'.
Richard Mudgett [Thu, 6 Oct 2011 17:49:38 +0000 (17:49 +0000)] 
Fix debugging messages generated by 'udptl debug'.

* Makes chan_sip set the tag to the channel name.

* Fixes received debug message sequence number.

* Removed tx/rx debug message type since it was hard coded to 0.

* Made udptl.c logged message header consistent if possible: "UDPTL (%s): ".

* Removed unused rx_expected_seq_no from struct ast_udptl.

(closes issue ASTERISK-18401)
Reported by: Kevin P. Fleming
Patches:
      jira_asterisk_18401_v1.8.patch (license #5621) patch uploaded by rmudgett
Tested by: Matthew Nicholson

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

13 years agoUpdate prep_tarball script to download pre-exported documentation.
Leif Madsen [Wed, 5 Oct 2011 21:30:11 +0000 (21:30 +0000)] 
Update prep_tarball script to download pre-exported documentation.

I've updated the prep_tarball script to now download the pre-exported documentation
from the Asterisk wiki. This will give us more control over what is being included
in the tarball releases, and will make both the PDF and HTML exported documentation
look much better (especially when viewing from a console).

(Closes issue ASTERISK-18677)

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

13 years agoFix Dial F option notes formatting.
Richard Mudgett [Wed, 5 Oct 2011 17:01:01 +0000 (17:01 +0000)] 
Fix Dial F option notes formatting.

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

13 years agoFix XML error in AMI action Challenge.
Richard Mudgett [Wed, 5 Oct 2011 16:32:03 +0000 (16:32 +0000)] 
Fix XML error in AMI action Challenge.

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

13 years agoThe app name in the documentation must match what we register the application
Matthew Nicholson [Wed, 5 Oct 2011 16:31:21 +0000 (16:31 +0000)] 
The app name in the documentation must match what we register the application
as.

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

13 years agoAdd missing documentation of required AMI action Challenge AuthType header.
Richard Mudgett [Wed, 5 Oct 2011 16:26:45 +0000 (16:26 +0000)] 
Add missing documentation of required AMI action Challenge AuthType header.

(closes issue ASTERISK-18554)
Reported by: Vlad Povorozniuc
Patches:
      __20110919-manager-challenge-docs.patch.txt (license #4999) patch uploaded by Leif Madsen

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

13 years agoMake always create the MOH directory (/var/lib/asterisk/moh).
Richard Mudgett [Tue, 4 Oct 2011 22:54:15 +0000 (22:54 +0000)] 
Make always create the MOH directory (/var/lib/asterisk/moh).

(closes issue ASTERISK-18409)
Reported by: abelbeck
Patches:
      asterisk-1.8-makefile-moh.patch (license #5903) patch uploaded by abelbeck
Tested by: abelbeck, Michael Keuter

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

13 years agoRemoves improper use of sound 'and' in German language mode from application saynumber
Jonathan Rose [Tue, 4 Oct 2011 19:33:12 +0000 (19:33 +0000)] 
Removes improper use of sound 'and' in German language mode from application saynumber

Asterisk would say 'Five hundert und sechs und zwanzig' instead of 'Five hundert sechs
und zwanzig'... which is both weird sounding and wrong.  This patch makes sure Asterisk
will only say the 'and' word between the single digit and double digit places.

(closes issue ASTERISK-18212)
Reported By: Lionel Elie Mamane
Patches:
upstream_germand_no_and.diff (License #5402) uploaded by Lionel Elie Mamane

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

13 years agoReverting revision 333265 due to component connection problems it introduces.
Jonathan Rose [Tue, 4 Oct 2011 14:01:05 +0000 (14:01 +0000)] 
Reverting revision 333265 due to component connection problems it introduces.

I'm going to attempt some generic res_jabber cleanup and come up with a new fix for this
problem, but first it seems prudent to remove this rather broad attempt to fix it and
instead approach this problem either from the same angle but looking only at canceling
(or possibly rescheduling) the send when we absolutely know it will cause a segfault
or, if that can't be easily accomplished, strictly from the devstate side of things.
Also, I'm pretty sure a lot of the code in res_jabber isn't thread safe.

(issue ASTERISK-18626)
(issue ASTERISK-18078)

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

13 years agofix forget declaration in previous change
Alexandr Anikin [Tue, 4 Oct 2011 11:44:55 +0000 (11:44 +0000)] 
fix forget declaration in previous change

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

13 years agoRemove duplicated Maxforwards line in AMI output.
Leif Madsen [Mon, 3 Oct 2011 20:12:43 +0000 (20:12 +0000)] 
Remove duplicated Maxforwards line in AMI output.

(Closes issue ASTERISK-18637)
Reported by: Jacek Konieczny
Patches:
     asterisk-sipshowpeer.patch (License #6298) uploaded by Jacek Konieczny

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

13 years agoMake documentation for Dial() options 'F' and 'F()' more clear.
Leif Madsen [Mon, 3 Oct 2011 19:54:52 +0000 (19:54 +0000)] 
Make documentation for Dial() options 'F' and 'F()' more clear.

(Closes issue ASTERISK-18646)
Reported by: Physis Heckman
Tested by: Richard Mudgett

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

13 years agodestroy memheap mutex properly before memheap deleted
Alexandr Anikin [Mon, 3 Oct 2011 18:42:49 +0000 (18:42 +0000)] 
destroy memheap mutex properly before memheap deleted
(fix memory leak occured after r304950 changes with DEBUG_THREAD compile option)

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

13 years agoProperly ignore AST_CONTROL_UPDATE_RTP_PEER in more places
Terry Wilson [Mon, 3 Oct 2011 18:40:52 +0000 (18:40 +0000)] 
Properly ignore AST_CONTROL_UPDATE_RTP_PEER in more places

After the change in r336294, the new AST_CONTROL_UPDATE_RTP_PEER frame
is sent when a re-invite happens. If we receive a re-invite from a device
the waitstream_core was not aware of the new control frame and would drop
the call.

(closes issue ASTERISK-18610)
Reported by: Kristijan_Vrban

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

13 years agoFix segfault in analog_ss_thread() not checking ast_read() for NULL.
Richard Mudgett [Fri, 30 Sep 2011 22:05:10 +0000 (22:05 +0000)] 
Fix segfault in analog_ss_thread() not checking ast_read() for NULL.

NOTE: The problem was reported against v1.6.2.  It is unlikely to ever
happen on v1.8 and above since chan_dahdi.c:analog_ss_thread() is unlikely
to be used.  The version in sig_analog.c has largely replaced it.

(closes issue ASTERISK-18648)
Reported by: Stephan Bosch
Patches:
      jira_asterisk_18648_v1.8.patch (license #5621) patch uploaded by rmudgett
Tested by: Stephan Bosch

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

13 years agoAdds documentation for QueueMemberStatus event generation
Jonathan Rose [Fri, 30 Sep 2011 18:54:30 +0000 (18:54 +0000)] 
Adds documentation for QueueMemberStatus event generation

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

13 years agoFix formatting of AMI header for SIP show peer.
Richard Mudgett [Fri, 30 Sep 2011 16:27:21 +0000 (16:27 +0000)] 
Fix formatting of AMI header for SIP show peer.

ASTERISK-17486 exposed the problem for AMI parsers.

(closes issue ASTERISK-18649)
Reported by: Jacek Konieczny
Patches:
      asterisk-sipshowpeer_response_end.patch (license #6298) patch uploaded by Jacek Konieczny

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

13 years agoRemove r338137 and r338138.
TransNexus OSP Development [Fri, 30 Sep 2011 09:31:48 +0000 (09:31 +0000)] 
Remove r338137 and r338138.

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

13 years agoTest modules should depend on the TEST_FRAMEWORK flag
Paul Belanger [Thu, 29 Sep 2011 21:12:21 +0000 (21:12 +0000)] 
Test modules should depend on the TEST_FRAMEWORK flag

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

13 years agoTest modules have a support level of core.
Jason Parker [Thu, 29 Sep 2011 20:54:13 +0000 (20:54 +0000)] 
Test modules have a support level of core.

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

13 years agoUpdate documentation for SIP_HEADER.
Leif Madsen [Thu, 29 Sep 2011 18:31:33 +0000 (18:31 +0000)] 
Update documentation for SIP_HEADER.

The SIP_HEADER function only works on the the initial SIP INVITE. The documentation was updated
in trunk, but not in 1.8 or 10, so I'm making them match.

(Closes issue ASTERISK-18640)

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

13 years agoThe rtptimeout setting is ignored on a per peer basis.
Gregory Nietsky [Thu, 29 Sep 2011 12:13:05 +0000 (12:13 +0000)] 
The rtptimeout setting is ignored on a per peer basis.

Not only is the rtptimeout ignored in some cases but
rtpkeepalive and rtpholdtimeout is affected.

this commit also removes rtptimeout/rtpholdtimeout on
text rtp.

(closes issue ASTERISK-18559)

Review: https://reviewboard.asterisk.org/r/1452

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

13 years agoMake duplicate call ptr warning message more helpful.
Richard Mudgett [Wed, 28 Sep 2011 22:35:52 +0000 (22:35 +0000)] 
Make duplicate call ptr warning message more helpful.

* Adds the value of the call ptr to the duplicate call ptr message to help
trace why there is a duplicate call ptr.

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

13 years agoFix inconsistency in LOG_VERBOSE/AST_LOG_VERBOSE declaration.
Richard Mudgett [Wed, 28 Sep 2011 21:17:45 +0000 (21:17 +0000)] 
Fix inconsistency in LOG_VERBOSE/AST_LOG_VERBOSE declaration.

(closes issue ASTERISK-17973)
Reported by: Luke H
Patches:
      logger_h.patch (license #6278) patch uploaded by Luke H

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

13 years agoAdd support levels to non-module sections of menuselect (cflags, utils, etc).
Jason Parker [Wed, 28 Sep 2011 20:52:47 +0000 (20:52 +0000)] 
Add support levels to non-module sections of menuselect (cflags, utils, etc).

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

13 years agoFix chan_dahd compiling with gcc 4.6 when PRI and SS7 not present.
Richard Mudgett [Wed, 28 Sep 2011 20:24:41 +0000 (20:24 +0000)] 
Fix chan_dahd compiling with gcc 4.6 when PRI and SS7 not present.

(closes issue ASTERISK-18357)
Reported by: Matthew Nicholson

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

13 years agoUpdated for checking OSP Toolkit version 4.0.0.
TransNexus OSP Development [Wed, 28 Sep 2011 07:28:43 +0000 (07:28 +0000)] 
Updated for checking OSP Toolkit version 4.0.0.

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

13 years agoUpdated for OSP Toolkit 4.0.0.
TransNexus OSP Development [Wed, 28 Sep 2011 07:27:07 +0000 (07:27 +0000)] 
Updated for OSP Toolkit 4.0.0.

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

13 years agoUpgrade app_macro to core
Paul Belanger [Tue, 27 Sep 2011 20:10:13 +0000 (20:10 +0000)] 
Upgrade app_macro to core

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

13 years agoFix deadlock when using dummy channels.
Richard Mudgett [Mon, 26 Sep 2011 19:30:39 +0000 (19:30 +0000)] 
Fix deadlock when using dummy channels.

Dummy channels created by ast_dummy_channel_alloc() should be destoyed by
ast_channel_unref().  Using ast_channel_release() needlessly grabs the
channel container lock and can cause a deadlock as a result.

* Analyzed use of ast_dummy_channel_alloc() and made use
ast_channel_unref() when done with the dummy channel.  (Primary reason for
the reported deadlock.)

* Made app_dial.c:dial_exec_full() not call ast_call() holding any channel
locks.  Chan_local could not perform deadlock avoidance correctly.
(Potential deadlock exposed by this issue.  Secondary reason for the
reported deadlock since the held lock was part of the deadlock chain.)

* Fixed some uses of ast_dummy_channel_alloc() not checking the returned
channel pointer for failure.

* Fixed some potential chan=NULL pointer usage in func_odbc.c.  Protected
by testing the bogus_chan value.

* Fixed needlessly clearing a 1024 char auto array when setting the first
char to zero is enough in manager.c:action_getvar().

(closes issue ASTERISK-18613)
Reported by: Thomas Arimont
Patches:
      jira_asterisk_18613_v1.8.patch (license #5621) patch uploaded by rmudgett
Tested by: Thomas Arimont

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

13 years agoSpelling fix
Gregory Nietsky [Fri, 23 Sep 2011 19:14:30 +0000 (19:14 +0000)] 
Spelling fix

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

13 years agoMake sure a CDR is on the stack for call in the Queue.
Gregory Nietsky [Fri, 23 Sep 2011 08:34:03 +0000 (08:34 +0000)] 
Make sure a CDR is on the stack for call in the Queue.
Only let update_cdr act on the last CDR in the stack.

In some circumstances [Attended transfer to queue] a
CDR record is not inserted for this call where it should.

(closes issue ASTERISK-18567)

Review: https://reviewboard.asterisk.org/r/1266

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

13 years agoComment out entries in sample res_pktccops.conf.
Russell Bryant [Fri, 23 Sep 2011 00:44:19 +0000 (00:44 +0000)] 
Comment out entries in sample res_pktccops.conf.

With these options enabled, they can cause Asterisk to freak out by
SYN flooding a network and eating the CPU.  Obviously it would be good to
fix the code so that this can't happen, but we can at least change the default
configuration so it doesn't happen.

This was reported downstream to the Fedora issue tracker:

    https://bugzilla.redhat.com/show_bug.cgi?id=658431

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

13 years agoMade ISDN not add numbering plan prefix strings to empty numbers.
Richard Mudgett [Thu, 22 Sep 2011 21:29:46 +0000 (21:29 +0000)] 
Made ISDN not add numbering plan prefix strings to empty numbers.

When the Caller-ID is restricted, the expected behavior is for the
Caller-ID to be blank.  In chan_dahdi, the national prefix is placed onto
the Caller-ID number even if it is restricted (empty) causing the
Caller-ID to be the national prefix rather than blank.

This behavior was lost when sig_pri was extracted from chan_dahdi.

* Made not add prefix strings to empty connected line, calling, and ANI
number strings.

(closes issue ASTERISK-18577)
Reported by: Kris Shaw
Patches:
      jira_asterisk_18577_v1.8.patch (license #5621) patch uploaded by rmudgett
Tested by: Kris Shaw

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

13 years agoAdd warned to ast_srtp to prevent errors on each frame from libsrtp
Gregory Nietsky [Thu, 22 Sep 2011 11:39:49 +0000 (11:39 +0000)] 
Add warned to ast_srtp to prevent errors on each frame from libsrtp

The first 9 frames are not reported as some devices dont use srtp
from first frame these are suppresed.

the warning is then output only once every 100 frames.

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

13 years agoIf IP address is used in chan_h323 host parameter of peer configuration.
Gregory Nietsky [Thu, 22 Sep 2011 09:22:26 +0000 (09:22 +0000)] 
If IP address is used in chan_h323 host parameter of peer configuration.
module tries to resolve IP address to IP address and fails.

Simple fix to set family of socket this is a hangover from ipv6 changes.

(closes issue ASTERISK-18237)
(issue ASTERISK-17278)
(issue ASTERISK-17500)

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

13 years agoIts possible to loose audio on ast_write when the channel is not transcoded correctly.
Gregory Nietsky [Thu, 22 Sep 2011 06:18:33 +0000 (06:18 +0000)] 
Its possible to loose audio on ast_write when the channel is not transcoded correctly.
in the case of DAHDI the channel is hungup.

This patch tries to "fix" the problem and make the channel compatiable and warn the user of
this problem.

Please note there is a underlying problem with codec negotion this does not fix the problem
it does try to rectify it and prevent loss of service.

Review: https://reviewboard.asterisk.org/r/1442/

(closes issue ASTERISK-17541)
(closes issue ASTERISK-18063)
(issue ASTERISK-14384)
(issue ASTERISK-17502)
(issue ASTERISK-18325)
(issue ASTERISK-18422)

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

13 years agoMore silly spacing changes
Tilghman Lesher [Wed, 21 Sep 2011 21:18:46 +0000 (21:18 +0000)] 
More silly spacing changes

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

13 years agoDumb little spacing fix.
Tilghman Lesher [Wed, 21 Sep 2011 21:08:06 +0000 (21:08 +0000)] 
Dumb little spacing fix.

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

13 years agoEscape commas in keys and values, when keys and values are enumerated by commas.
Tilghman Lesher [Wed, 21 Sep 2011 16:05:14 +0000 (16:05 +0000)] 
Escape commas in keys and values, when keys and values are enumerated by commas.

Review: https://reviewboard.asterisk.org/r/1433

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

13 years agoFix for incorrect voicemail duration in external notifications
Matthew Jordan [Tue, 20 Sep 2011 22:38:54 +0000 (22:38 +0000)] 
Fix for incorrect voicemail duration in external notifications

This patch fixes an issue where the voicemail duration was being reported
with a duration significantly less than the actual sound file duration.
Voicemails that contained mostly silence were reporting the duration of
only the sound in the file, as opposed to the duration of the file with
the silence.  This patch fixes this by having two durations reported in
the __ast_play_and_record family of functions - the sound_duration and the
actual duration of the file.  The sound_duration, which is optional, now
reports the duration of the sound in the file, while the actual full duration
of the file is reported in the duration parameter.  This allows the voicemail
applications to use the sound_duration for minimum duration checking, while
reporting the full duration to external parties if the voicemail is kept.

(issue ASTERISK-2234)
(closes issue ASTERISK-16981)
Reported by: Mary Ciuciu, Byron Clark, Brad House, Karsten Wemheuer, KevinH
Tested by: Matt Jordan

Review: https://reviewboard.asterisk.org/r/1443

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

13 years agoUpdate RedHat Init script to work with Heartbeat.
Leif Madsen [Tue, 20 Sep 2011 22:18:25 +0000 (22:18 +0000)] 
Update RedHat Init script to work with Heartbeat.

The current RedHat init script was not LSB compatible. This change will make it LSB compatible so that
it can work correctly with Heartbeat.

(Closes issue ASTERISK-18253)
Reported by: c0rnoTa

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

13 years agoMake CANMATCH with the new pattern match engine behave more like the old one
Kinsey Moore [Tue, 20 Sep 2011 21:04:11 +0000 (21:04 +0000)] 
Make CANMATCH with the new pattern match engine behave more like the old one

When checking an extension for E_CANMATCH using the new extension matching
algorithm, an exact match was not returned as a possible match resulting in the
queue failing to allow a caller to exit on DTMF.  This removes the requirement
that an extension be longer than acquired digits for an E_CANMATCH operation
to succeed.

(closes issue ASTERISK-18044)
Review: https://reviewboard.asterisk.org/r/1367/

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

13 years agoCheck if a channel was created before using the pointer in sig_ss7_new_ast_channel().
Richard Mudgett [Tue, 20 Sep 2011 19:10:30 +0000 (19:10 +0000)] 
Check if a channel was created before using the pointer in sig_ss7_new_ast_channel().

Fixes the crash in ASTERISK-17955 gdb-11918.txt backtrace.

* Added some missing libss7 access lock protection.

* Prevent cancelling the ss7_linkset() thread at inoportune times just
like the pri_dchannel() thread.

(issue ASTERISK-17955)
Reported by: Ian M Sherman
Patches:
      jira_asterisk_17955_v1.8.patch (license #5621) patch uploaded by rmudgett
      (attached to related ASTERISK-17966)

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

13 years agoFix deadlock from not releasing SS7 linkset lock.
Richard Mudgett [Tue, 20 Sep 2011 18:12:17 +0000 (18:12 +0000)] 
Fix deadlock from not releasing SS7 linkset lock.

sig_ss7_hangup() failed to release the SS7 linkset lock if the call had
the alreadyhungup flag set.

* Made unlock the SS7 linkset lock in sig_ss7_hangup() if the
alreadyhungup flag is set.

* Made ss7_start_call() not hold any locks while creating the channel for
an incoming call to prevent deadlock.

* Made ss7_grab() a void function, since it could never fail, to simplify
calling code.

* Made obtain the channel lock to do softhangup in some places.

Patches:
      jira_ast_668_v1.8.patch (license #5621) patch uploaded by rmudgett

JIRA AST-668

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

13 years agoFix crashes in ast_rtcp_write().
Russell Bryant [Tue, 20 Sep 2011 00:56:20 +0000 (00:56 +0000)] 
Fix crashes in ast_rtcp_write().

This patch addresses crashes related to RTCP handling.  The backtraces just
show a crash in ast_rtcp_write() where it appears that the RTP instance is no
longer valid.  There is a race condition with scheduled RTCP transmissions and
the destruction of the RTP instance.  This patch utilizes the fact that
ast_rtp_instance is a reference counted object and ensures that it will not get
destroyed while a reference is still around due to scheduled RTCP
transmissions.

RTCP transmissions are scheduled and executed from the chan_sip scheduler
context.  This scheduler context is processed in the SIP monitor thread.  The
destruction of an RTP instance occurs when the associated sip_pvt gets
destroyed (which happens when the sip_pvt reference count reaches 0).  However,
the SIP monitor thread is not the only thread that can cause a sip_pvt to get
destroyed.  The sip_hangup function, executed from a channel thread, also
decrements the reference count on a sip_pvt and could cause it to get
destroyed.

While this is being changed anyway, the patch also removes calling
ast_sched_del() from within the RTCP scheduler callback.  It's not helpful.
Simply returning 0 prevents the callback from being rescheduled.

(closes issue ASTERISK-18570)

Related issues that look like they are the same problem:

(issue ASTERISK-17560)
(issue ASTERISK-15406)
(issue ASTERISK-15257)
(issue ASTERISK-13334)
(issue ASTERISK-9977)
(issue ASTERISK-9716)

Review: https://reviewboard.asterisk.org/r/1444/

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

13 years agoDon't interfere with T.38 reinvites
Terry Wilson [Mon, 19 Sep 2011 22:07:58 +0000 (22:07 +0000)] 
Don't interfere with T.38 reinvites

This is an update to the fix for ASTERISK-18340 and ASTERISK-17725

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

13 years agoVarious changes to allow 1.8 to compile on Mac OS X Lion (10.7)
Tilghman Lesher [Mon, 19 Sep 2011 20:27:03 +0000 (20:27 +0000)] 
Various changes to allow 1.8 to compile on Mac OS X Lion (10.7)

* Makefile workaround for 10.6 extended to work on 10.7 and later.
* Now uses the 'weak' symbol for Lion systems, which no longer support
  'weak_import'

Closes ASTERISK-17612.
Closes ASTERISK-18213.

Tested by: tilghman, oej.

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

13 years agoDocument applications that play audio and do not answer unanswered calls.
Jonathan Rose [Mon, 19 Sep 2011 20:07:36 +0000 (20:07 +0000)] 
Document applications that play audio and do not answer unanswered calls.

This patch is part of an effort to document early media and its usage. If you are
interested in contributing to this documentation effort, there are probably other
applications worth documenting as well as an Asterisk wiki article at
https://wiki.asterisk.org/wiki/display/AST/Early+Media+and+the+Progress+Application

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

13 years agoMade Dial d and H options no longer immediately auto-answer the calling leg.
Richard Mudgett [Mon, 19 Sep 2011 18:46:40 +0000 (18:46 +0000)] 
Made Dial d and H options no longer immediately auto-answer the calling leg.

The Dial d and H options break DTMF attended transfer atxferdropcall
option.

1) Party A calls party B.
2) Party B does a DTMF attended transfer to Party C.

If the dialplan uses the Dial d or H options to call Party C then the Dial
application answers the call immediately before initiating the call leg to
Party C.  The premature answer causes the transfer code to not invoke the
atxferdropcall=no behavior for a blonde transfer since Party C has
"answered".  The transfer code thinks that Party B has "consulted" with
Party C when Party B hangs up and completes the transfer to Party A.
Party A now hears ringback until Party C actually answers.

ASTERISK-13294 Dial d option.
ASTERISK-11067 Dial H option to disconnect before answer.

The referenced issues made Dial answer with the d and H options because
many SIP and ISDN phones cannot send DTMF before the call is connected.

* Made require the dialplan to control when or if the call needs to be
answered to use the Dial application d and H options.  (The call is no
longer surprise answered when using the Dial d or H options.)

Review: https://reviewboard.asterisk.org/r/1381/

JIRA AST-623
JIRA AST-666

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

13 years agoRemove weird mergeinfo props that make merges annoying sometimes.
Jason Parker [Mon, 19 Sep 2011 16:21:03 +0000 (16:21 +0000)] 
Remove weird mergeinfo props that make merges annoying sometimes.

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

13 years agoUpdate get_ilbc_source.sh script to work again.
Leif Madsen [Mon, 19 Sep 2011 15:41:16 +0000 (15:41 +0000)] 
Update get_ilbc_source.sh script to work again.

Recently iLBC support in Asterisk has changed after the acquisition of GIPS
by Google. More information about how this may affect you is available in a
blog post at:

  http://blogs.asterisk.org/2011/09/19/ilbc-support-in-asterisk-after-googles-acquisition-of-gips/

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

13 years agoRework sig_pri_hangup() to be simpler and clearer.
Richard Mudgett [Mon, 19 Sep 2011 15:25:34 +0000 (15:25 +0000)] 
Rework sig_pri_hangup() to be simpler and clearer.

JIRA AST-675

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

13 years agoAdd diversion header to a 302 redirect response if we have diversion data
Olle Johansson [Mon, 19 Sep 2011 13:33:50 +0000 (13:33 +0000)] 
Add diversion header to a 302 redirect response if we have diversion data

(closes issue ASTERISK-18143)
patch by oej

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

13 years agoA long time ago in a galaxy far far away a IPv6 update was made,
Gregory Nietsky [Mon, 19 Sep 2011 13:27:52 +0000 (13:27 +0000)] 
A long time ago in a galaxy far far away a IPv6 update was made,
chan_h323 was not updated causeing all to flee to chan_ooh323.

the brave Jedi [asterisk developers] pondered this miscarrige of justice
and restored order to the force for the sake of closing out 2 old issues.

(closes issue ASTERISK-17278)
(closes issue ASTERISK-17500)
Reported by: dread, sybasesql
Tested by: irroot
Reviewed by: IRC (russellb, kpfleming)

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

13 years agoMake sure manager_debug option is reset at reload
Olle Johansson [Mon, 19 Sep 2011 12:06:48 +0000 (12:06 +0000)] 
Make sure manager_debug option is reset at reload

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

13 years agoRevert accidental change that fixes OS/X Lion support
Olle Johansson [Mon, 19 Sep 2011 10:02:07 +0000 (10:02 +0000)] 
Revert accidental change that fixes OS/X Lion support

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

13 years agoAdd missing unlock at MWI message sending time
Olle Johansson [Mon, 19 Sep 2011 09:40:44 +0000 (09:40 +0000)] 
Add missing unlock at MWI message sending time

(closes issue ASTERISK-18573)

Patches:
   sip_mwi_lock.patch (license #5041) by Gregory Hinton Nietsky

Thanks to irrot for the reminder, to Gregory for the patch!

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

13 years agoWhitespace fix
Terry Wilson [Fri, 16 Sep 2011 22:10:56 +0000 (22:10 +0000)] 
Whitespace fix

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

13 years agoAdd missing frame types to func_frame_trace
Terry Wilson [Fri, 16 Sep 2011 22:04:25 +0000 (22:04 +0000)] 
Add missing frame types to func_frame_trace

Also casts control frames to the proper enum so that the compile will catch
new additions.

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

13 years agoFix bad RTP media bridges in directmedia calls on peers separated by multiple Asteris...
Jonathan Rose [Fri, 16 Sep 2011 19:53:40 +0000 (19:53 +0000)] 
Fix bad RTP media bridges in directmedia calls on peers separated by multiple Asterisk nodes.

In a situation involving devices on separate Asterisk trunks, the remote RTP bridge would
break when starting a call with directmedia. This patch queues a new type of control frame
so that our RTP bridge loop can properly detect when these situations occur and check to see
if peers need to be updated in order to send their media to the proper location.

(Closes issue ASTERISK-18340)
Reported by: Thomas Arimont
(Closes issue ASTERISK-17725)
Reported by: kwk
Tested by: twilson, jrose

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

13 years agoMake a note that inotify won't work with an NFS mounted spooler directory.
Sean Bright [Fri, 16 Sep 2011 19:06:27 +0000 (19:06 +0000)] 
Make a note that inotify won't work with an NFS mounted spooler directory.

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

13 years agoThe round robin routing routine in chan_misdn.c is broken.
Gregory Nietsky [Fri, 16 Sep 2011 10:09:17 +0000 (10:09 +0000)] 
The round robin routing routine in chan_misdn.c is broken.

it rotates between ports but never checks the channels in the ports.

i have extensivly tested it and verified it works on 1 upto 4 ports.
before the patch only 1 out of each port was used now all are used as
expected.

(closes issue ASTERISK-18413)
Reported by: irroot
Tested by: irroot
Reviewed by: irroot

Review: https://reviewboard.asterisk.org/r/1410/

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

13 years agoLocking order in app_queue.c causes deadlocks.
Gregory Nietsky [Thu, 15 Sep 2011 15:46:21 +0000 (15:46 +0000)] 
Locking order in app_queue.c causes deadlocks.

a channel lock must never be held with the queues container lock held.

the deadlock occured on masquerade.

the queues container lock is a relic of the past the old queue module lock.
with ao2 there is no need to hold this lock when dealing with members this
patch removes unneeded locks.

(closes issue ASTERISK-18101)
(closes issue ASTERISK-18487)
Reported by: Paul Rolfe, Jason Legault
Tested by: irroot, Jason Legault, Paul Rolfe
Reviewed by: Matthew Nicholson

Review: https://reviewboard.asterisk.org/r/1402/

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

13 years agolock the channel before calling ast_bridged_channel() to prevent a seg fault.
Gregory Nietsky [Thu, 15 Sep 2011 08:15:22 +0000 (08:15 +0000)] 
lock the channel before calling ast_bridged_channel() to prevent a seg fault.

AMI agents list called on shutdown causes a segfault, introducing proper locking
will prevent this.

(closes issue ASTERISK-18092)

Reported by: agustina
Patches: chan_agent.patch (License #5041) patch uploaded by irroot

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

13 years agoRemove unnecessary libpri dependency checks in the configure script.
Richard Mudgett [Wed, 14 Sep 2011 18:21:35 +0000 (18:21 +0000)] 
Remove unnecessary libpri dependency checks in the configure script.

Using the --with-pri option with the configure script generated an error
about not having PRI_L2_PERSISTENCE if you did not have the absolute
latest libpri SVN checkout installed.

The AST_EXT_LIB_SETUP_DEPENDENT macro in the configure.ac script seems to
be for libraries that are dependent upon other libraries and not
necessarily for optional/added features within a library.

(closes issue ASTERISK-18535)
Reported by: Michael Keuter

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

13 years agoFixed cut-n-paste regression using the wrong variable.
Richard Mudgett [Wed, 14 Sep 2011 15:53:25 +0000 (15:53 +0000)] 
Fixed cut-n-paste regression using the wrong variable.

Fixes the missing DAHDI channels when using the newer chan_dahdi.conf
sections for channel configuration.

(closes issue ASTERISK-18496)
Reported by: Sean Darcy
Patches:
      jira_asterisk_18496_v1.8.patch (license #5621) patch uploaded by rmudgett
Tested by: Sean Darcy, rmudgett

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

13 years agoThe tech and data members of fast_originate_helper are not string fields.
Matthew Nicholson [Wed, 14 Sep 2011 13:28:16 +0000 (13:28 +0000)] 
The tech and data members of fast_originate_helper are not string fields.

ASTERISK-17709

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

13 years agoRemove obsolete todo comment about PICKUPRESULT.
Richard Mudgett [Tue, 13 Sep 2011 22:10:15 +0000 (22:10 +0000)] 
Remove obsolete todo comment about PICKUPRESULT.

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

13 years agodo parse defaultlanguage from asterisk.conf
Tzafrir Cohen [Tue, 13 Sep 2011 21:33:20 +0000 (21:33 +0000)] 
do parse defaultlanguage from asterisk.conf

Do parse the option "defaultlanguage" from the [options] section of
asterisk.conf, as in the sample config file. Otherwise the build-time
default language (normally "en") is always the default one.

Review: https://reviewboard.asterisk.org/r/1342/
Signed-off-by: Tzafrir Cohen (License #5035) <tzafrir.cohen@xorcom.com>
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@335716 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoMeetme should have 'core' support level
Paul Belanger [Tue, 13 Sep 2011 21:30:18 +0000 (21:30 +0000)] 
Meetme should have 'core' support level

(closes issue ASTERISK-18542)

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