]> git.ipfire.org Git - thirdparty/asterisk.git/log
thirdparty/asterisk.git
15 years agoMandatory argument checking
Tilghman Lesher [Tue, 15 Dec 2009 15:29:24 +0000 (15:29 +0000)] 
Mandatory argument checking
(closes issue #16446)
 Reported by: nicchap

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

15 years agoDeal with the situation where .flavor exists but .version does not.
Tilghman Lesher [Mon, 14 Dec 2009 21:09:56 +0000 (21:09 +0000)] 
Deal with the situation where .flavor exists but .version does not.
Also make the script slightly more portable, in keeping with autoconf syntax.
(closes issue #14737)
 Reported by: davidw

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

15 years agoUpdate IMAP build documentation.
Leif Madsen [Mon, 14 Dec 2009 17:05:01 +0000 (17:05 +0000)] 
Update IMAP build documentation.
Update the IMAP build documentation to show how to build on 64-bit
platforms.

(issue #16433)
Reported by: shrift
Tested by: lmadsen

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

15 years agoStop sending 183's after call hangup.
Olle Johansson [Mon, 14 Dec 2009 10:16:00 +0000 (10:16 +0000)] 
Stop sending 183's after call hangup.

There where still cases where the 183 keep-alive mechanism would not stop
sending 183's even though the Asterisk server had sent a final reply to
the invite.

EDVX-28

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

15 years agoFix talking detection status after conference user is muted.
Jeff Peeler [Fri, 11 Dec 2009 22:37:21 +0000 (22:37 +0000)] 
Fix talking detection status after conference user is muted.

This patch ensures that when a conference user is muted that the accompanying
AMI Meetme talking off event is sent. Also, the meetme list output is updated
to show the muted user as unmonitored.

(closes issue #16247)
Reported by: dimas
Patches:
      v3-16247.patch uploaded by dimas (license 88)

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

15 years agoFix unselecting of menuselect options via GLOBAL_MAKEOPTS and USER_MAKEOPTS.
Jason Parker [Thu, 10 Dec 2009 20:58:09 +0000 (20:58 +0000)] 
Fix unselecting of menuselect options via GLOBAL_MAKEOPTS and USER_MAKEOPTS.

(closes issue #16296)
Reported by: abelbeck
Patches:
      issue16296-20091210.diff uploaded by qwell (license 4)
(abelbeck described a fix, which I expanded upon)
Tested by: abelbeck, qwell, lmadsen

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

15 years agoWhen we receive no response at all to our INVITE, allow the channel to be destroyed.
Tilghman Lesher [Thu, 10 Dec 2009 16:08:20 +0000 (16:08 +0000)] 
When we receive no response at all to our INVITE, allow the channel to be destroyed.
(closes issue #15627)
 Reported by: falves11
 Patches:
       20091209__issue15627__1.6.0.diff.txt uploaded by tilghman (license 14)
       20091209__issue15627__1.4.diff.txt uploaded by tilghman (license 14)
 Tested by: falves11
Review: https://reviewboard.asterisk.org/r/446/
(closes issue #15716)
Reported by: dant
(closes issue #16270)
Reported by: corruptor
(closes issue #15356)
Reported by: falves11
(issue #16382)
Reported by: lftsy

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

15 years agoUpdate chan_spy documentation.
Leif Madsen [Thu, 10 Dec 2009 15:49:12 +0000 (15:49 +0000)] 
Update chan_spy documentation.
Update the documentation in ChanSpy and ExtenSpy to reflect that only a
single group can be specified to the g() option.

(closes issue #16420)
Reported by: diatonic

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

15 years agoFix breakage of the "module load <module>" CLI command.
Russell Bryant [Wed, 9 Dec 2009 19:58:46 +0000 (19:58 +0000)] 
Fix breakage of the "module load <module>" CLI command.

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

15 years agoSet a module load priority for format modules.
Russell Bryant [Wed, 9 Dec 2009 15:14:21 +0000 (15:14 +0000)] 
Set a module load priority for format modules.

A recent change to app_voicemail made it such that the module now assumes that
all format modules are available while processing voicemail configuration.
However, when autoloading modules, it was possible that app_voicemail was
loaded before the format modules. Since format modules don't depend on
anything, set a module load priority on them to ensure that they get loaded
first when autoloading.

This version of the patch is specific to Asterisk 1.4 and 1.6.0.  These versions
did not already support module load priority in the module API.  This adds a
trivial version of this which is just a module flag to include it in a pass before
loading "everything".

Thanks to mmichelson for the review!

(closes issue #16412)
Reported by: jiddings
Tested by: russell

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

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

15 years agoMerged revisions 233577 via svnmerge from
Atis Lezdins [Tue, 8 Dec 2009 00:02:43 +0000 (00:02 +0000)] 
Merged revisions 233577 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r233577 | atis | 2009-12-08 01:10:13 +0200 (Tue, 08 Dec 2009) | 8 lines

  Fix compatibility with valgrind 3.3 and older.

  (noticed in issue #16388)
  Reported by: parisioa
  Patches:
      valgrind.supp uloaded by atis (license 242)
  Tested by: atis, parisioa
........

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

15 years agohex escape control and non 7-bit clean characters in uri_encode
David Vossel [Mon, 7 Dec 2009 23:24:59 +0000 (23:24 +0000)] 
hex escape control and non 7-bit clean characters in uri_encode

In ast_uri_encode, non 7-bit clean characters were being hex escaped
correctly, but control characters were not.

(issue #16299)

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

15 years agofixes missing Contact header angle brackets
David Vossel [Mon, 7 Dec 2009 18:07:38 +0000 (18:07 +0000)] 
fixes missing Contact header angle brackets

(closes issue #16298)
Reported by: mgernoth
Patches:
      reg_parse_issue_1.4.diff uploaded by dvossel (license 671)
Tested by: dvossel

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

15 years agoAllow SDP packets with only video session information.
Matthew Nicholson [Mon, 7 Dec 2009 16:11:16 +0000 (16:11 +0000)] 
Allow SDP packets with only video session information.

(closes issue #16387)
Reported by: zalex1953
Tested by: mnicholson, zalex1953

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

15 years agoclarify requirecalltoken option in iax.sample.conf
David Vossel [Fri, 4 Dec 2009 21:54:01 +0000 (21:54 +0000)] 
clarify requirecalltoken option in iax.sample.conf

(closes issue #16223)
Reported by: bklang
Patches:
      clarify-iax-requirecalltoken.patch uploaded by bklang (license 919)

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

15 years agodocument and rename strip_control() in app_voicemail
David Vossel [Fri, 4 Dec 2009 17:21:34 +0000 (17:21 +0000)] 
document and rename strip_control() in app_voicemail

(closes issue #16291)
Reported by: wdoekes

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

15 years agoOnly do frame payload check for HOLD frames.
Russell Bryant [Fri, 4 Dec 2009 17:12:47 +0000 (17:12 +0000)] 
Only do frame payload check for HOLD frames.

This code was added for helping to debug the source of invalid HOLD frames.
However, a side effect of this is that it will incorrectly report errors for
frames that have an integer payload.  Make the check for this block specific
to the HOLD frame case.

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

15 years agoParse global variables or expressions in hint extensions
Matthias Nick [Fri, 4 Dec 2009 16:59:21 +0000 (16:59 +0000)] 
Parse global variables or expressions in hint extensions

Parse global variables or expressions in hint extensions. Like: exten => 400,hint,DAHDI/i2/${GLOBAL(var)}

(closes issue #16166)
Reported by: rmudgett
Tested by: mnick, rmudgett

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

15 years agoWarning message gets displayed only once
Matthias Nick [Fri, 4 Dec 2009 15:17:03 +0000 (15:17 +0000)] 
Warning message gets displayed only once

Added additional field 'int display_inband_dtmf_warning', which when set to '1' displays the warning ('Inband DTMF is not supported on codec %s. Use RFC2833'), and when set to '0' doesn't display the warning. Otherwise you would get hundreds of warnings every second.

(closes issue #15769)
Reported by: falves11
Patches:
patch_15769_14.txt uploaded by mnick (license 874)
Tested by: mnick, falves11

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

15 years agoDeprecate "cz" in favor of "cs".
Tilghman Lesher [Thu, 3 Dec 2009 20:10:19 +0000 (20:10 +0000)] 
Deprecate "cz" in favor of "cs".
Also, change the use of language codes so that language registers as a prefix,
rather than an exact match.
(closes issue #16272)
 Reported by: patrol-cz
 Patches:
       20091203__issue16272.diff.txt uploaded by tilghman (license 14)

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

15 years agoSend ack (response/message) after receiving manager action userevent
Jeff Peeler [Wed, 2 Dec 2009 21:57:42 +0000 (21:57 +0000)] 
Send ack (response/message) after receiving manager action userevent

(closes issue #16264)
Reported by: dimas
Patches:
      event-ack.patch uploaded by dimas (license 88)

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

15 years agofixes app_queue ao2 error
David Vossel [Wed, 2 Dec 2009 19:03:01 +0000 (19:03 +0000)] 
fixes app_queue ao2 error

(closes issue #16369)
Reported by: vrban
Patches:
      queue_issue_1.4.diff uploaded by dvossel (license 671)
Tested by: dvossel

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

15 years agoFix a bug where if you hung up very quickly after calling AMD it would overwrite...
Joshua Colp [Wed, 2 Dec 2009 17:04:52 +0000 (17:04 +0000)] 
Fix a bug where if you hung up very quickly after calling AMD it would overwrite the AMDSTATUS of HANGUP with TOOLONG.

(closes issue #16239)
Reported by: CGMChris

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

15 years agoast_outaddrfor doesn't do htons() on port, looks odd in strace.
David Vossel [Wed, 2 Dec 2009 16:59:18 +0000 (16:59 +0000)] 
ast_outaddrfor doesn't do htons() on port, looks odd in strace.

(closes issue #16290)
Reported by: wdoekes

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

15 years agofixes segfault in func_groupcount
David Vossel [Wed, 2 Dec 2009 15:41:36 +0000 (15:41 +0000)] 
fixes segfault in func_groupcount

closes issue #16337)
Reported by: Parantido
Patches:
      issue_16337.diff uploaded by dvossel (license 671)
  Tested by: Parantido, dvossel

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

15 years agoFix compiling without devmode
Terry Wilson [Wed, 2 Dec 2009 04:05:09 +0000 (04:05 +0000)] 
Fix compiling without devmode
(closes issue #16367)
 Reported by: falves11

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

15 years agoDo not modify the gain settings on data calls.
Jeff Peeler [Wed, 2 Dec 2009 00:42:58 +0000 (00:42 +0000)] 
Do not modify the gain settings on data calls.

(The digital flag actually represents a data call.)

(closes issue #15972)
Reported by: udosw
Patches:
      transcap_digital_fix.diff.txt uploaded by alecdavis (license 585)
Tested by: alecdavis

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

15 years agoFix a warning pointed out by buildbot.
Russell Bryant [Tue, 1 Dec 2009 23:25:36 +0000 (23:25 +0000)] 
Fix a warning pointed out by buildbot.

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

15 years agolog channel name in dev mode as well
Jeff Peeler [Tue, 1 Dec 2009 21:52:39 +0000 (21:52 +0000)] 
log channel name in dev mode as well

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

15 years agoFix crash with invalid frame data
Jeff Peeler [Tue, 1 Dec 2009 21:29:31 +0000 (21:29 +0000)] 
Fix crash with invalid frame data

The crash was happening as a result of a frame containing an invalid data
pointer, but was set with data length of zero. The few times the issue was
reproduced it _seemed_ that the frame was queued properly, that is the data
pointer was set to NULL. I never could reproduce the crash so as a last resort
the crash has been fixed, but a check in __ast_read has been added to give as
much information about the source of problematic frames in the future.

(closes issue #16058)
Reported by: atis

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

15 years agoWaitExten m option with no parameters generates frame with zero datalen but non-null...
David Vossel [Tue, 1 Dec 2009 21:14:31 +0000 (21:14 +0000)] 
WaitExten m option with no parameters generates frame with zero datalen but non-null data ptr

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

15 years agoIgnore unknown formats in ast_format_str_reduce() and return an error if no know...
Matthew Nicholson [Tue, 1 Dec 2009 15:34:57 +0000 (15:34 +0000)] 
Ignore unknown formats in ast_format_str_reduce() and return an error if no know formats are found.

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

15 years agoRemove duplicate entries from voicemail format lists. This prevents app_voicemail...
Matthew Nicholson [Mon, 30 Nov 2009 21:11:44 +0000 (21:11 +0000)] 
Remove duplicate entries from voicemail format lists. This prevents app_voicemail from entering an infinite loop when the same format is specified twice in the format list.

(closes issue #15625)
Reported by: Shagg63
Tested by: mnicholson

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

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

15 years agofixes crash caused by RTP comfort noise payload greater than 24 bytes
David Vossel [Mon, 30 Nov 2009 17:14:08 +0000 (17:14 +0000)] 
fixes crash caused by RTP comfort noise payload greater than 24 bytes

AST-2009-010

(closes issue #16242)
Reported by: amorsen
Patches:
      issue16242.diff uploaded by oej (license 306)
Tested by: amorsen, oej, dvossel

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

15 years agoapp_queue crashes randomly, often during call-transfers
David Vossel [Mon, 30 Nov 2009 16:32:58 +0000 (16:32 +0000)] 
app_queue crashes randomly, often during call-transfers

In app_queue, it is possible for a call_queue to be destroyed
while another object still holds a pointer to it.  This patch
converts call_queue objects to ao2 objects allowing them to be
ref counted.  This makes it safe for the queue_ent object in
queue_exec() to reference it's parent call_queue even after it
has left the queue.

(closes issue #15686)
Reported by: Hatrix
Patches:
      v2_queue_ao2.diff uploaded by dvossel (license 671)
Tested by: dvossel, aragon

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

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

15 years agoAfter a frame duplication failure, unlock the channel before returning.
Tilghman Lesher [Wed, 25 Nov 2009 22:31:57 +0000 (22:31 +0000)] 
After a frame duplication failure, unlock the channel before returning.

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

15 years agofixes solaris segfault on dial with verbosity >= 3
David Vossel [Wed, 25 Nov 2009 21:38:32 +0000 (21:38 +0000)] 
fixes solaris segfault on dial with verbosity >= 3

(closes issue #16193)
Reported by: asgaroth
Patches:
      bug_16193_1.4.21.2_vers.diff uploaded by snuffy (license 35)
Tested by: asgaroth, snuffy

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

15 years agofixes conditional jump or move depending on uninitialised STACK value
David Vossel [Wed, 25 Nov 2009 21:23:41 +0000 (21:23 +0000)] 
fixes conditional jump or move depending on uninitialised STACK value

(closes issue #16261)
Reported by: edguy3
Patches:
      edguy16261.patch uploaded by edguy3 (license 917)

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

15 years agoWhen 'sip set debug' is enabled, and the last line of an incoming SIP message
Kevin P. Fleming [Mon, 23 Nov 2009 15:31:02 +0000 (15:31 +0000)] 
When 'sip set debug' is enabled, and the last line of an incoming SIP message
is not properly newline terminated, ensure that that line is included in the
debug output.

(part of issue #16268)

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

15 years agoCorrect fix for issue #16268... the reporter's original patch was very close to correct.
Kevin P. Fleming [Mon, 23 Nov 2009 15:09:24 +0000 (15:09 +0000)] 
Correct fix for issue #16268... the reporter's original patch was very close to correct.

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

15 years agoEnsure that SDP parsing does not ignore the last line of the SDP.
Kevin P. Fleming [Mon, 23 Nov 2009 14:13:56 +0000 (14:13 +0000)] 
Ensure that SDP parsing does not ignore the last line of the SDP.

(closes issue #16268)
Reported by: sgimeno

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

15 years agoCopy the peer CDR's userfield to the bridge CDR if it exists. This is necessary...
Matthew Nicholson [Fri, 20 Nov 2009 20:53:06 +0000 (20:53 +0000)] 
Copy the peer CDR's userfield to the bridge CDR if it exists.  This is necessary for the recordagentcalls option in chan_agent to store the recorded file name in the bridge CDR.

(closes issue #14590)
Reported by: msetim
Patches:
      queue_agent_userfield.patch uploaded by Laureano (license 265)
Tested by: Laureano, mnicholson

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

15 years agofixes MixMonitor thread not exiting when StopMixMonitor is used
David Vossel [Thu, 19 Nov 2009 21:22:46 +0000 (21:22 +0000)] 
fixes MixMonitor thread not exiting when StopMixMonitor is used

(closes issue #16152)
Reported by: AlexMS
Patches:
      stopmixmonitor_1.4.diff uploaded by dvossel (license 671)
Tested by: dvossel, AlexMS

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

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

15 years agoUpdate copyright year in visible output. (cli)
Michiel van Baak [Thu, 19 Nov 2009 16:09:51 +0000 (16:09 +0000)] 
Update copyright year in visible output. (cli)

Spotted by Stuart Henderson

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

15 years agoCorrect mistaken option name in error message.
Kevin P. Fleming [Sun, 15 Nov 2009 17:19:06 +0000 (17:19 +0000)] 
Correct mistaken option name in error message.

The configuration option for allowing hosts to make non-token-based calls
is 'calltokenoptional', not 'calltokenignore'. (reported on asterisk-users)

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

15 years agoRespect the maddr parameter in the Via header.
Joshua Colp [Fri, 13 Nov 2009 22:00:19 +0000 (22:00 +0000)] 
Respect the maddr parameter in the Via header.

(closes issue #14446)
Reported by: frawd
Patches:
      via_maddr.patch uploaded by frawd (license 610)
Tested by: frawd

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

15 years agoFix a crash caused by two threads thinking they should both free the
Joshua Colp [Fri, 13 Nov 2009 19:44:07 +0000 (19:44 +0000)] 
Fix a crash caused by two threads thinking they should both free the
chan_local private structure when only one should.

(closes issue #15314)
Reported by: sroberts
Patches:
      Issue15314_Move_Nulling_owner.patch uploaded by davidw (license 780)
Tested by: davidw, lottc

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

15 years agoDocument a limitation in the AVAILSTATUS variable from ChanIsAvail and provide
Joshua Colp [Fri, 13 Nov 2009 17:19:59 +0000 (17:19 +0000)] 
Document a limitation in the AVAILSTATUS variable from ChanIsAvail and provide
a workaround for it that does not change existing behavior.

(closes issue #14426)
Reported by: macli

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

15 years agofixes merging error, datastore was being freed in the wrong function.
David Vossel [Thu, 12 Nov 2009 16:41:49 +0000 (16:41 +0000)] 
fixes merging error, datastore was being freed in the wrong function.

(closes issue #16219)
Reported by: aragon

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

15 years agoSolaris doesn't like NULL going to ast_log
David Brooks [Wed, 11 Nov 2009 19:46:19 +0000 (19:46 +0000)] 
Solaris doesn't like NULL going to ast_log

Solaris will crash if NULL is passed to ast_log. This simple patch simply uses S_OR to
get around this.

(closes issue #15392)
Reported by: yrashk

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

15 years agoIf two pattern classes start with the same digit and have the same number of characte...
Tilghman Lesher [Tue, 10 Nov 2009 22:09:16 +0000 (22:09 +0000)] 
If two pattern classes start with the same digit and have the same number of characters, they will compare equal.
The example given in the issue report is that of [234] and [246], which have
these characteristics, yet they are clearly not equivalent.  The code still
uses these two characteristics, yet when the two scores compare equal, an
additional check will be done to compare all characters within the class to
verify equality.
(closes issue #15421)
 Reported by: jsmith
 Patches:
       20091109__issue15421__2.diff.txt uploaded by tilghman (license 14)
 Tested by: jsmith, thedavidfactor

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

15 years agoFix ExternalIVR Documentation
David Ruggles [Tue, 10 Nov 2009 21:45:15 +0000 (21:45 +0000)] 
Fix ExternalIVR Documentation

Remove documentation for event that doesn't function

(closes issue #16220)
Reported by: thedavidfactor
Patches:
      externalivr.txt.20091110.1622.patch uploaded by thedavidfactor (license 903)

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

15 years agoRemove broken support for direct transcoding between G.726 RFC3551 and G.726 AAL2.
Joshua Colp [Tue, 10 Nov 2009 20:03:14 +0000 (20:03 +0000)] 
Remove broken support for direct transcoding between G.726 RFC3551 and G.726 AAL2.

On some systems the translation core would actually consider g726aal2 -> g726 -> signed linear
to be a quicker path then g726aal2 -> signed linear which exposed this problem.

(closes issue #15504)
Reported by: globalnetinc

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

15 years agoDocument ExternalIVR event tag collision
David Ruggles [Tue, 10 Nov 2009 17:23:59 +0000 (17:23 +0000)] 
Document ExternalIVR event tag collision

ExternalIVR uses the D tag for two different event types. This documents that
behavior and how to differentiate between the two cases. Also includes a minor
spelling fix and clarification

(closes issue #16211)
Reported by: thedavidfactor
Patches:
      externalivr.txt.20091109.1507.patch uploaded by thedavidfactor (license 903)

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

15 years agodon't crash on log message in solaris
David Vossel [Tue, 10 Nov 2009 17:15:57 +0000 (17:15 +0000)] 
don't crash on log message in solaris

AST-2009-006

(closes issue #16206)
Reported by: bklang
Tested by: bklang

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

15 years agoReverted revision 202022.
Matthew Nicholson [Tue, 10 Nov 2009 15:22:13 +0000 (15:22 +0000)] 
Reverted revision 202022.

(closes issue #16175)
Reported by: paul-tg

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

15 years agoUpdate WARNING message.
Leif Madsen [Mon, 9 Nov 2009 15:37:43 +0000 (15:37 +0000)] 
Update WARNING message.
Update a WARNING message to give a suggested fix when encountered.

(closes issue #16198)
Reported by: atis
Tested by: atis

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

15 years agoPerform limited bounds checking when destroying ast_mutex_t structures to make sure...
Matthew Nicholson [Mon, 9 Nov 2009 14:16:03 +0000 (14:16 +0000)] 
Perform limited bounds checking when destroying ast_mutex_t structures to make sure we don't try to use negative indices.

(closes issue #15588)
Reported by: zerohalo
Patches:
      20090820__issue15588.diff.txt uploaded by tilghman (license 14)
Tested by: zerohalo

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

15 years agofixes audiohook write crash occuring in chan_spy whisper mode.
David Vossel [Fri, 6 Nov 2009 22:33:27 +0000 (22:33 +0000)] 
fixes audiohook write crash occuring in chan_spy whisper mode.

After writing to the audiohook list in ast_write(), frames
were being freed incorrectly.  Under certain conditions this
resulted in a double free crash.

(closes issue #16133)
Reported by: wetwired

(closes issue #16045)
Reported by: bluecrow76
Patches:
      issue16045.diff uploaded by dvossel (license 671)
Tested by: bluecrow76, dvossel, habile

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

15 years agoDon't overwrite caller ID name on a trunk with the configured fullname when using...
Joshua Colp [Fri, 6 Nov 2009 18:32:58 +0000 (18:32 +0000)] 
Don't overwrite caller ID name on a trunk with the configured fullname when using users.conf

(issue ABE-1989)

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

15 years agofixes segfault in iLBC
David Vossel [Fri, 6 Nov 2009 17:07:13 +0000 (17:07 +0000)] 
fixes segfault in iLBC

For reasons not yet known, it appears possible for an ast_frame
to have a datalen greater than zero while the actual data is NULL
during Packet Loss Concealment.  Most codecs don't support PLC so
this doesn't affect them.  This patch catches the malformed frame
and prevents the crash from occuring.  Additional efforts to determine
why it is possible for a frame to look like this are still being
investigated.

(issue #16979)

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

15 years agoFix a bug caused by a partially invalid frame (from the jitterbuffer) passing through...
Joshua Colp [Fri, 6 Nov 2009 16:41:20 +0000 (16:41 +0000)] 
Fix a bug caused by a partially invalid frame (from the jitterbuffer) passing through the Asterisk core.

(closes issue #15560)
Reported by: jvandal
(closes issue #15709)
Reported by: covici

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

15 years agoProperly handle '=' while decoding base64 messages and null terminate strings returne...
Matthew Nicholson [Fri, 6 Nov 2009 16:26:59 +0000 (16:26 +0000)] 
Properly handle '=' while decoding base64 messages and null terminate strings returned from BASE64_DECODE.

(closes issue #15271)
Reported by: chappell
Patches:
      base64_fix.patch uploaded by chappell (license 8)
Tested by: kobaz

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

15 years agofixes crash in astfd.c
David Vossel [Fri, 6 Nov 2009 15:41:41 +0000 (15:41 +0000)] 
fixes crash in astfd.c

(closes issue #15981)
Reported by: slavon

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

15 years agofixes memory leak in func_audiohookinherit.c
David Vossel [Fri, 6 Nov 2009 15:07:31 +0000 (15:07 +0000)] 
fixes memory leak in func_audiohookinherit.c

(closes issue 0015394)
Reported by: boroda
Patches:
      bug15394_memoryleak_diff2.txt uploaded by dbrooks (license 790)
Tested by: dbrooks, boroda

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

15 years agoFix crash on VPB exception when no hardware is present.
Jason Parker [Thu, 5 Nov 2009 19:14:25 +0000 (19:14 +0000)] 
Fix crash on VPB exception when no hardware is present.

(closes issue #14970)
Reported by: tzafrir
Patches:
      vpb_exception.diff uploaded by tzafrir (license 46)
Tested by: markwaters

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

15 years agochan_misdn Asterisk 1.4.27-rc2 crash
David Brooks [Thu, 5 Nov 2009 18:59:41 +0000 (18:59 +0000)] 
chan_misdn Asterisk 1.4.27-rc2 crash

Crash related to chan_misdn connection. Patch submitted by gknispel_proformatique, tested
by francesco_r. "I have many crash since i have upgraded to Asterisk 1.4.27-rc2. Attached
a full bt." This patch zeros out an ast_frame.

(closes issue #16041)
Reported by: francesco_r

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

15 years agoFix incorrect filename comparsion after monitor file change
Jeff Peeler [Wed, 4 Nov 2009 23:47:08 +0000 (23:47 +0000)] 
Fix incorrect filename comparsion after monitor file change

The logic to detect if a requested file is indeed a different file from the
current file was incorrect. The main issue being confusion of the use of
filename_base which was previously set without pathing information and then
compared to another full path. Robust file comparison logic has been added
to properly check if two files are the same even if symlinks are used.

(closes issue #15313)
Reported by: caspy
Patches:
      20091103__issue15313__1.4.diff.txt uploaded by jpeeler (license 325)
      but mostly tilghman's work

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

15 years agoThis patch modifies the Dial application to monitor the calling channel for hangups...
Matthew Nicholson [Wed, 4 Nov 2009 20:52:27 +0000 (20:52 +0000)] 
This patch modifies the Dial application to monitor the calling channel for hangups while playing back announcements.

(closes issue #16005)
Reported by: falves11
Patches:
      dial-announce-hangup-fix1.diff uploaded by mnicholson (license 96)
Tested by: mnicholson, falves11

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

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

15 years agoModify the SDP parsing code to parse session and media level items separately.
Matthew Nicholson [Wed, 4 Nov 2009 19:55:44 +0000 (19:55 +0000)] 
Modify the SDP parsing code to parse session and media level items separately.

With the new code, media level proprieties should no longer be confused with session level proprieties. This change also reorganizes some of the SDP parsing code which should make it easier to manage in the future.

(closes issue #14994)
Reported by: frawd
Tested by: frawd, mnicholson, file

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

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

15 years agoFix a security issue where it may be possible for someone to execute a cross-site
Joshua Colp [Wed, 4 Nov 2009 19:25:37 +0000 (19:25 +0000)] 
Fix a security issue where it may be possible for someone to execute a cross-site
AJAX request exploit.

(AST-2009-009)

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

15 years agoFix a security issue where sending a REGISTER with a differing username in the From
Joshua Colp [Wed, 4 Nov 2009 19:17:39 +0000 (19:17 +0000)] 
Fix a security issue where sending a REGISTER with a differing username in the From
URI and Authorization header would reveal whether it was valid or not.

(AST-2009-008)

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

15 years agoMake sure the outgoing flag is cleared if a new channel fails to get created for...
Richard Mudgett [Tue, 3 Nov 2009 17:55:47 +0000 (17:55 +0000)] 
Make sure the outgoing flag is cleared if a new channel fails to get created for outgoing calls.

This is the relevant portion of asterisk/trunk -r226648

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

15 years agoFix a bug where an RPID header could be generated with a blank username in the URI.
Joshua Colp [Tue, 3 Nov 2009 15:36:16 +0000 (15:36 +0000)] 
Fix a bug where an RPID header could be generated with a blank username in the URI.

(closes issue #15909)
Reported by: kobaz

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

15 years agoFixing bug before someone reports it...
Olle Johansson [Tue, 3 Nov 2009 10:48:41 +0000 (10:48 +0000)] 
Fixing bug before someone reports it...

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

15 years agoAdding IP address in Contact ACL log message and removing redundant message
Olle Johansson [Tue, 3 Nov 2009 10:41:45 +0000 (10:41 +0000)] 
Adding IP address in Contact ACL log message and removing redundant message

(based on kpfleming's feedback)

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

15 years agoUse proper response code when violating Contact ACL's.
Olle Johansson [Tue, 3 Nov 2009 10:29:59 +0000 (10:29 +0000)] 
Use proper response code when violating Contact ACL's.

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

Thanks kpfleming for a quick review.
(EDVX-003)

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

15 years agoSIP channel name uniqueness
David Brooks [Mon, 2 Nov 2009 20:52:53 +0000 (20:52 +0000)] 
SIP channel name uniqueness

SIP channel names were supposed to be unique by way of a name suffix derived from the
pointer to the channel's private data. Uniqueness was preserved on 32-bit systems, but
not on 64-bit systems. This patch, as suggested by kpfleming, replaces this suffix with
a simple incremented unsigned int.

(closes issue #15152)
Reported by: palbrecht

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

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

15 years agoFix a bug where the recorded privacy introduction file would not get removed if the...
Joshua Colp [Mon, 2 Nov 2009 18:08:11 +0000 (18:08 +0000)] 
Fix a bug where the recorded privacy introduction file would not get removed if the caller hung up
while the called party had not yet answered.

This was fixed by introducing an argument to the 'n' option which, when enabled, removes the introduction
file under all scenarios. This was done to preserve the behavior that has existed for quite some time.

(closes issue #14674)
Reported by: ulogic
Patches:
      bug14674.patch uploaded by jpeeler (license 325)

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

15 years agoDon't allow two separate instances of safe_asterisk when restarting from the init...
Tilghman Lesher [Mon, 2 Nov 2009 17:14:20 +0000 (17:14 +0000)] 
Don't allow two separate instances of safe_asterisk when restarting from the init script.
(closes issue #14562)
 Reported by: davidw
 Patches:
       Initially 20091022__issue14562.diff.txt uploaded by tilghman (license 14)
       Modified to 20091030__Issue14562_diff.txt uploaded by davidw (license 780)
 Tested by: davidw

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

15 years agofixes crash on iterator_destroy on uninitialized iterator
David Vossel [Mon, 2 Nov 2009 15:31:02 +0000 (15:31 +0000)] 
fixes crash on iterator_destroy on uninitialized iterator

(closes issue #16162)
Reported by: krn

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

15 years agochanges calltoken debug messages from LOG_NOTICE to LOG_DEBUG like they are supposed...
David Vossel [Mon, 2 Nov 2009 15:16:30 +0000 (15:16 +0000)] 
changes calltoken debug messages from LOG_NOTICE to LOG_DEBUG like they are supposed to be

(closes issue #16144)
Reported by: aragon

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

15 years agoAdd an option to enabling passing music on hold start and stop requests through inste...
Joshua Colp [Thu, 29 Oct 2009 18:11:26 +0000 (18:11 +0000)] 
Add an option to enabling passing music on hold start and stop requests through instead of
acting on them in chan_local.

(closes issue #14709)
Reported by: dimas

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

15 years agoUpdate documentation in sip.conf.sample.
Leif Madsen [Wed, 28 Oct 2009 20:06:13 +0000 (20:06 +0000)] 
Update documentation in sip.conf.sample.

Update the documentation in sip.conf.sample in order to make it more clear
that directmedia/canreinvite do not cause Asterisk to ignore reINVITEs. It
is only used to stop Asterisk from generating a reINVITE, but does not stop
it from accepting them if necessary.

(closes issue #15644)
Reported by: lmadsen

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

15 years agoUpdate CALLINGSUBADDR channel variable documentation.
Leif Madsen [Wed, 28 Oct 2009 19:48:29 +0000 (19:48 +0000)] 
Update CALLINGSUBADDR channel variable documentation.

(closes issue #15734)
Reported by: alecdavis
Patches:
      channelvariables.tex.diff.txt uploaded by alecdavis (license 585)
Tested by: alecdavis

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

15 years agoFix documentation (pointed out by TheDavidFactor on #-dev)
Tilghman Lesher [Wed, 28 Oct 2009 18:02:25 +0000 (18:02 +0000)] 
Fix documentation (pointed out by TheDavidFactor on #-dev)

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

15 years agoManager output is not always NULL-terminated, so force a NULL at the end of the files...
Tilghman Lesher [Tue, 27 Oct 2009 20:16:49 +0000 (20:16 +0000)] 
Manager output is not always NULL-terminated, so force a NULL at the end of the filestream.
(closes issue #15495)
 Reported by: pdf
 Patches:
       20090916__issue15495.diff.txt uploaded by tilghman (license 14)
 Tested by: pdf

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

15 years agodetect ARM Linux EABI OSARCH as linux-gnu instead of linux-gnueabi
Tzafrir Cohen [Mon, 26 Oct 2009 22:13:25 +0000 (22:13 +0000)] 
detect ARM Linux EABI OSARCH as linux-gnu instead of linux-gnueabi

* Set OSARCH to linux-gnu even if host_os is linux-gnueabi
* When checking if we are Linux, check OSARCH rather than host_os

The newer ARM ABI ("EABI") shows the OS name 'linux-gnueabi' rather than
'linux-gnu' . This patch sets OSARCH to be 'linux-gnu' even in such a case.

OSARCH is tested for the value of 'linux-gnu' in one or two places in the
tree. This patch also fixes the check libcap to check for $OSARCH rather
than $host_os .

See also: http://wiki.debian.org/ArmEabiPort

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

15 years agoDon't force menuselect.makeopts to be rebuilt on every build.
Kevin P. Fleming [Fri, 23 Oct 2009 14:00:01 +0000 (14:00 +0000)] 
Don't force menuselect.makeopts to be rebuilt on every build.

For some reason the menuselect.makeopts file was listed as PHONY in the Makefile,
resulting in 'make' needing to rebuild it for every build. This then resulted in
the embedded module rules being rebuilt on every build, which can be slow and is
unnecessary.

This patch fixes the problem by properly allowing 'make' to know when the
menuselect.makeopts file needs to be rebuilt (defining the proper dependencies).

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

15 years agoClean valgrind output by suppressing false errors.
Leif Madsen [Thu, 22 Oct 2009 21:51:52 +0000 (21:51 +0000)] 
Clean valgrind output by suppressing false errors.
Update valgrind.txt documentation and add valgrind.supp file in order to
allow those who are creating valgrind output to have less false errors in
the logfile.

(closes issue #16007)
Reported by: atis
Patches:
      valgrind.txt.diff uploaded by atis (license 242)
      asterisk2.supp uploaded by atis (license 242)
Tested by: atis, amorsen

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

15 years agoIAX2: VNAK loop caused by signaling frames with no destination call number
David Vossel [Wed, 21 Oct 2009 20:58:08 +0000 (20:58 +0000)] 
IAX2: VNAK loop caused by signaling frames with no destination call number

It is possible for the PBX thread to queue up signaling frames before
a destination call number is received.  This can result in signaling
frames being sent out with no destination call number. Since recent
versions of Asterisk require accurate destination callnumbers for all
Full Frames, this can cause a VNAK loop to occur.  To resolve this
no signaling frames are sent until a destination callnumber is received,
and destination call numbers are now only required for iax_pvt matching
when the frame is an ACK.

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

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

15 years agoRevert 225169, as this doesn't account for the possibility of a list of frames.
Russell Bryant [Wed, 21 Oct 2009 16:44:49 +0000 (16:44 +0000)] 
Revert 225169, as this doesn't account for the possibility of a list of frames.

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

15 years agoIsolate the frame returned from ast_translate().
Russell Bryant [Wed, 21 Oct 2009 16:39:20 +0000 (16:39 +0000)] 
Isolate the frame returned from ast_translate().

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

15 years agoFix documentation for ast_softhangup() and correct the misuse thereof.
Tilghman Lesher [Wed, 21 Oct 2009 16:02:12 +0000 (16:02 +0000)] 
Fix documentation for ast_softhangup() and correct the misuse thereof.
(closes issue #16103)
 Reported by: majorbloodnok

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

15 years agoSuffix is not needed for a match
Tilghman Lesher [Wed, 21 Oct 2009 15:45:54 +0000 (15:45 +0000)] 
Suffix is not needed for a match

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

15 years agoIAX/SIP shrinkcallerid option
David Vossel [Wed, 21 Oct 2009 14:37:04 +0000 (14:37 +0000)] 
IAX/SIP shrinkcallerid option

The shrinking of caller id removes '(', ' ', ')', non-trailing '.',
and '-' from the string.  This means values such as 555.5555 and
test-test result in 555555 and testtest.  There are instances,
such as Skype integration, where a specific value is passed via
caller id that must be preserved unmodified.  This patch makes
the shrinking of caller id optional in chan_sip and chan_iax in
order to support such cases.  By default this option is on to
preserve previous expected behavior.

(closes issue #15940)
Reported by: dimas
Patches:
      v2-15940.patch uploaded by dimas (license 88)
      15940_shrinkcallerid_trunk.c uploaded by dvossel (license 671)
Tested by: dvossel

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

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

15 years agoIsolate frames returned from a DSP instance or codec translator.
Russell Bryant [Wed, 21 Oct 2009 02:59:54 +0000 (02:59 +0000)] 
Isolate frames returned from a DSP instance or codec translator.

The reasoning for these changes are the same as what I wrote in the commit
message for rev 222878.

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

15 years agoPay attention to the return value of the manipulate function.
Tilghman Lesher [Tue, 20 Oct 2009 22:07:11 +0000 (22:07 +0000)] 
Pay attention to the return value of the manipulate function.
While this looks like an optimization, it prevents a crash from occurring
when used with certain audiohook callbacks (diagnosed with SVN trunk,
backported to 1.4 to keep the source consistent across versions).

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

15 years agoAdd support for relaying early media in the features attended transfer option.
Joshua Colp [Tue, 20 Oct 2009 17:46:37 +0000 (17:46 +0000)] 
Add support for relaying early media in the features attended transfer option.

(closes issue #14828)
Reported by: licedey

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

15 years agoCorrect timestamp calculations when RTP sample rates over 8kHz are used.
Kevin P. Fleming [Mon, 19 Oct 2009 23:44:07 +0000 (23:44 +0000)] 
Correct timestamp calculations when RTP sample rates over 8kHz are used.

While testing some endpoints that support 16kHz and 32kHz sample rates, some
log messages were generated due to calc_rxstamp() computing timestamps in a way
that produced odd results, so this patch sanitizes the result of the
computations.

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