]> git.ipfire.org Git - thirdparty/asterisk.git/log
thirdparty/asterisk.git
15 years agoFix a memory leak in pbx_spool when using SetVar in a call file.
Sean Bright [Wed, 20 Jan 2010 14:06:49 +0000 (14:06 +0000)] 
Fix a memory leak in pbx_spool when using SetVar in a call file.

In pbx_spool, when we are freeing our 'outgoing' struct, we weren't deallocating
the ast_variable list we had built from SetVars in a call file.  Adding a call to
ast_variables_destroy in our deallocation routine works, but only if the variables
have not already been passed into ast_pbx_outgoing_app() or _exten(), both of
which take care of destroying the variable list for us.

(closes issue #16554)
Reported by: mav3rick
Patches:
      issue16554_20100119.patch uploaded by seanbright (license 71)
Tested by: mav3rick

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

15 years agoUpdate CDR variables as pbx starts
Alec L Davis [Wed, 20 Jan 2010 09:38:09 +0000 (09:38 +0000)] 
Update CDR variables as pbx starts

Allows CDR variables added in cdr.c:set_one_cid to become visable during the call,
by executing ast_cdr_update() early in __ast_pbx_run.

Based on cdr_update.diff3.txt

(issue #16638)
Reported by: alecdavis
Patches:
      cdr_update.diff3.txt uploaded by alecdavis (license 585)
Tested by: alecdavis

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

15 years agoAllow parallel make (-j) to work properly.
Jason Parker [Tue, 19 Jan 2010 17:41:00 +0000 (17:41 +0000)] 
Allow parallel make (-j) to work properly.

1.4 changes are quite different from the others.

(issue #16489)
Reported by: Chainsaw
Tested by: qwell

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

15 years agoFix deadlock in agent_read by removing call to agent_logoff.
Jeff Peeler [Tue, 19 Jan 2010 17:22:18 +0000 (17:22 +0000)] 
Fix deadlock in agent_read by removing call to agent_logoff.

One must always lock the agents list lock before the agent private. agent_read
locks the private immediately, so locking the agents list lock is not an
option (which is what agent_logoff requires). Because agent_read already
has access to the agent private all that is necessary is to do the required
hanging up that agent_logoff performed.

(closes issue #16321)
Reported by: valon24
Patches:
      bug16321.patch uploaded by jpeeler (license 325)

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

15 years agoPlug a memory leak when reading configs with their comments.
Sean Bright [Mon, 18 Jan 2010 19:54:19 +0000 (19:54 +0000)] 
Plug a memory leak when reading configs with their comments.

While reading through configuration files with the intent of returning their
full contents (comments specifically) we allocated some memory and then forgot
to free it.  This doesn't fix 16554 but clears up a leak I had in the lab.

(issue #16554)
Reported by: mav3rick
Patches:
      issue16554_20100118.patch uploaded by seanbright (license 71)
Tested by: seanbright

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

15 years agoupdated transmit_silence option documentation in asterisk.conf
David Vossel [Mon, 18 Jan 2010 16:51:35 +0000 (16:51 +0000)] 
updated transmit_silence option documentation in asterisk.conf

This patch updates the transmit_silence option to better document
why the option exists, and what it affects.  Thanks to russell
for providing the verbage for this update.

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

15 years agoFix muted compilation in 1.4 only
Olle Johansson [Mon, 18 Jan 2010 13:27:22 +0000 (13:27 +0000)] 
Fix muted compilation in 1.4 only

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

15 years agoFix a spelling error in the asterisk.conf sample.
Russell Bryant [Fri, 15 Jan 2010 23:06:11 +0000 (23:06 +0000)] 
Fix a spelling error in the asterisk.conf sample.

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

15 years agoDisallow leaving more than maxmsg voicemails.
Tilghman Lesher [Fri, 15 Jan 2010 20:52:27 +0000 (20:52 +0000)] 
Disallow leaving more than maxmsg voicemails.
This is a possibility because our previous method assumed that no messages are
left in parallel, which is not a safe assumption.  Due to the vmu structure
duplication, it was necessary to track in-process messages via a separate
structure.  If at some point, we switch vmu to an ao2-reference-counted
structure, which would eliminate the prior noted duplication of structures,
then we could incorporate this new in-process structure directly into vmu.
(closes issue #16271)
 Reported by: sohosys
 Patches:
       20100108__issue16271.diff.txt uploaded by tilghman (license 14)
       20100108__issue16271__trunk.diff.txt uploaded by tilghman (license 14)
       20100108__issue16271__1.6.0.diff.txt uploaded by tilghman (license 14)
 Tested by: jsutton

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

15 years agoFix regression for timed out parked call returning to caller
Jeff Peeler [Wed, 13 Jan 2010 19:43:33 +0000 (19:43 +0000)] 
Fix regression for timed out parked call returning to caller

This issue seems to have been exposed by the fix in 160390 whereby using a
masquerade prevented a crash. The new channel used in the masquerade was
not copying the macro information from the old channel.

(closes issue #15459)
Reported by: djrodman
Patches:
      patch_15459.txt uploaded by mnick (license )

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

15 years agoadd silence gen to wait apps
David Vossel [Wed, 13 Jan 2010 17:16:12 +0000 (17:16 +0000)] 
add silence gen to wait apps

asterisk.conf's 'transmit_silence' option existed before
this patch, but was limited to only generating silence
while recording and sending DTMF. Now enabling the
transmit_silence option generates silence during wait
times as well.

To achieve this, ast_safe_sleep has been modified to
generate silence anytime no other generators are present
and transmit_silence is enabled. Wait apps not using
ast_safe_sleep now generate silence when transmit_silence
is enabled as well.

(closes issue 0016524)
Reported by: kobaz

(closes issue 0016523)
Reported by: kobaz
Tested by: dvossel

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

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

15 years agoPortability and other fixes for the safe_asterisk script
Tilghman Lesher [Tue, 12 Jan 2010 03:18:36 +0000 (03:18 +0000)] 
Portability and other fixes for the safe_asterisk script
(closes issue #16416)
 Reported by: bklang
 Patches:
       safe_asterisk-compat-1.patch uploaded by bklang (license 919)
       20100106__issue16416__trunk.diff.txt uploaded by tilghman (license 14)
 Tested by: bklang

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

15 years ago-1 is interpreted as an error, intead of the maximum mask.
Tilghman Lesher [Sat, 9 Jan 2010 00:57:58 +0000 (00:57 +0000)] 
-1 is interpreted as an error, intead of the maximum mask.
(closes issue #16241)
 Reported by: vnovy
 Patches:
       manager.c.patch uploaded by vnovy (license 922)

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

15 years agoStop a crash when no peer is passed to masq_park_call.
Jeff Peeler [Fri, 8 Jan 2010 23:28:37 +0000 (23:28 +0000)] 
Stop a crash when no peer is passed to masq_park_call.

(distantly related to issue #16406)

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

15 years agoProperly calculate the remaining space in the output string when reducing format...
Matthew Nicholson [Fri, 8 Jan 2010 19:20:44 +0000 (19:20 +0000)] 
Properly calculate the remaining space in the output string when reducing format strings.

(closes issue #16560)
Reported by: goldwein

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

15 years agofixes crash in "scheduled_destroy" in chan_iax
David Vossel [Thu, 7 Jan 2010 20:14:25 +0000 (20:14 +0000)] 
fixes crash in "scheduled_destroy" in chan_iax

A signed short was used to represent a callnumber.  This is makes
it possible to attempt to access the iaxs array with a negative
index.

(closes issue #16565)
Reported by: jensvb

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

15 years agoChange in sip show channels display format allowing more digits for CID
David Vossel [Thu, 7 Jan 2010 20:06:00 +0000 (20:06 +0000)] 
Change in sip show channels display format allowing more digits for CID

(closes issue 0016459)
Reported by: Rzadzins
Patches:
      chan_sip_longer_cid.patch uploaded by Rzadzins (license 953)

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

15 years agoRevise documentation on disposition values to the actual values used.
Tilghman Lesher [Wed, 6 Jan 2010 21:41:55 +0000 (21:41 +0000)] 
Revise documentation on disposition values to the actual values used.
(closes issue #16289)
 Reported by: wdoekes

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

15 years agoResolve a crash due to an ast_frame not being fully initialized.
Russell Bryant [Wed, 6 Jan 2010 15:18:22 +0000 (15:18 +0000)] 
Resolve a crash due to an ast_frame not being fully initialized.

(closes issue #16531)
Reported by: john8675309

(closes SWP-615)

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

15 years agoChange a NOTICE log message to DEBUG where it belongs.
Russell Bryant [Tue, 5 Jan 2010 17:13:28 +0000 (17:13 +0000)] 
Change a NOTICE log message to DEBUG where it belongs.

(closes issue #16479)
Reported by: alexrecarey

(closes SWP-577)

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

15 years agoBounds checking for input string
Tilghman Lesher [Mon, 4 Jan 2010 21:45:46 +0000 (21:45 +0000)] 
Bounds checking for input string
(closes issue #16407)
 Reported by: qwell
 Patches:
       20100104__issue16407.diff.txt uploaded by tilghman (license 14)

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

15 years agoRegression in issue #15421 - Pattern matching
Tilghman Lesher [Mon, 4 Jan 2010 20:57:35 +0000 (20:57 +0000)] 
Regression in issue #15421 - Pattern matching
(closes issue #16482)
 Reported by: wdoekes
 Patches:
       astsvn-16482-betterfix.diff uploaded by wdoekes (license 717)
       20091223__issue16482.diff.txt uploaded by tilghman (license 14)
 Tested by: wdoekes, tilghman

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

15 years agoAdd a flag to disable the Background behavior, for AGI users.
Tilghman Lesher [Mon, 4 Jan 2010 18:19:00 +0000 (18:19 +0000)] 
Add a flag to disable the Background behavior, for AGI users.
This is in a section of code that relates to two other issues, namely
issue #14011 and issue #14940), one of which was the behavior of
Background when called with a context argument that matched the current
context.  This fix broke FreePBX, however, in a post-Dial situation.
Needless to say, this is an extremely difficult collision of several
different issues.  While the use of an exception flag is ugly, fixing all
of the issues linked is rather difficult (although if someone would like
to propose a better solution, we're happy to entertain that suggestion).
(closes issue #16434)
 Reported by: rickead2000
 Patches:
       20091217__issue16434.diff.txt uploaded by tilghman (license 14)
       20091222__issue16434__1.6.1.diff.txt uploaded by tilghman (license 14)
 Tested by: rickead2000

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

15 years agoIt's also possible for the Local channel to directly execute an Application.
Tilghman Lesher [Mon, 4 Jan 2010 16:18:59 +0000 (16:18 +0000)] 
It's also possible for the Local channel to directly execute an Application.
Reviewboard: https://reviewboard.asterisk.org/r/452/

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

15 years agoRelease memory of the contact acl before unloading module
Olle Johansson [Sat, 2 Jan 2010 09:52:30 +0000 (09:52 +0000)] 
Release memory of the contact acl before unloading module

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

15 years agoDon't queue frames to channels that have no means to process them.
Tilghman Lesher [Wed, 30 Dec 2009 21:57:10 +0000 (21:57 +0000)] 
Don't queue frames to channels that have no means to process them.
(closes issue #15609)
 Reported by: aragon
 Patches:
       20091230__issue16521__1.4__chan_local_only.diff.txt uploaded by tilghman (license 14)
 Tested by: aragon

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

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

15 years agoRemove conflicting function definitions (asterisk.h) so LOW_MEMORY compiles.
Jeff Peeler [Wed, 30 Dec 2009 20:25:11 +0000 (20:25 +0000)] 
Remove conflicting function definitions (asterisk.h) so LOW_MEMORY compiles.

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

15 years agoTry a test compile to see if PTHREAD_ONCE_INIT requires extra braces.
Sean Bright [Mon, 28 Dec 2009 15:12:08 +0000 (15:12 +0000)] 
Try a test compile to see if PTHREAD_ONCE_INIT requires extra braces.

There was conditional code (based on build platform) to optioinally wrap
PTHREAD_ONCE_INIT in braces that was removed since it is fixed in newer versions
of Solaris/OpenSolaris, but I am still running into it on Solaris 10 x86 so add
a configure-time check for it.

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

15 years agoAvoid a crash with large numbers of MeetMe conferences.
Sean Bright [Mon, 28 Dec 2009 12:43:36 +0000 (12:43 +0000)] 
Avoid a crash with large numbers of MeetMe conferences.

Similar to changes made to Queue(), when we have large numbers of conferences in
meetme.conf (1000s) and we use alloca()/strdupa(), we can blow out the stack and
crash, so instead just use a single fixed buffer.

(closes issue #16509)
Reported by: Kashif Raza
Patches:
      20091223_16509.patch uploaded by seanbright (license 71)
Tested by: seanbright

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

15 years agoTurn on colors in the daemon, since there's many requests for it on Ubuntu.
Tilghman Lesher [Sun, 27 Dec 2009 18:19:38 +0000 (18:19 +0000)] 
Turn on colors in the daemon, since there's many requests for it on Ubuntu.

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

15 years agoupdate to latest releases with zero uid/gid
Kevin P. Fleming [Sat, 26 Dec 2009 15:26:17 +0000 (15:26 +0000)] 
update to latest releases with zero uid/gid

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

15 years agoProperly set T.38 attributes and don't return before T.38 ports are configured when...
Matthew Nicholson [Wed, 23 Dec 2009 15:21:28 +0000 (15:21 +0000)] 
Properly set T.38 attributes and don't return before T.38 ports are configured when T.38 is found but no audio stream is found.

(closes issue #16318)
Reported by: bird_of_Luck
Patches:
      t38-sdp-parsing-fix3.diff uploaded by mnicholson (license 96), written by vrban and mnicholson
Tested by: vrban, mihaill

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

15 years agoIf EXEC only gets a single argument, don't crash when the second is used.
Tilghman Lesher [Wed, 23 Dec 2009 02:55:24 +0000 (02:55 +0000)] 
If EXEC only gets a single argument, don't crash when the second is used.
(closes issue #16504)
 Reported by: bklang

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

15 years agofixes issue with p->method incorrectly set to ACK
David Vossel [Tue, 22 Dec 2009 16:58:19 +0000 (16:58 +0000)] 
fixes issue with p->method incorrectly set to ACK

It is possible for a second ACK to come in for a retransmitted message.
If an ack does not match an unacked message in our queue, restore the previous
p->method as this ACK is completely ignored.

(closes issue #16295)
Reported by: omolenkamp
Patches:
      issue16295_v2.diff uploaded by dvossel (license 671)

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

15 years agoChange Monitor to not assume file to write to does not contain pathing.
Jeff Peeler [Mon, 21 Dec 2009 19:43:41 +0000 (19:43 +0000)] 
Change Monitor to not assume file to write to does not contain pathing.

227944 changed the fname_base argument to always append the configured monitor
path. This change was necessary to properly compare files for uniqueness.
If a full path is given though, nothing needs to be appended and that is
handled correctly now.

(closes issue #16377)
(closes issue #16376)
Reported by: bcnit
Patches:
      res_monitor.c-issue16376-1.patch uploaded by dant (license 670)

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

15 years agoSend parking lot announcement to the channel which parked the call, not the park-ee.
Tilghman Lesher [Mon, 21 Dec 2009 16:45:03 +0000 (16:45 +0000)] 
Send parking lot announcement to the channel which parked the call, not the park-ee.
(closes issue #16234)
 Reported by: yeshuawatso
 Patches:
       20091210__issue16234.diff.txt uploaded by tilghman (license 14)
       20091221__issue16234__1.4.diff.txt uploaded by tilghman (license 14)
 Tested by: yeshuawatso

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

15 years agoRevise verbiage, per #asterisk-dev discussion
Tilghman Lesher [Fri, 18 Dec 2009 22:39:30 +0000 (22:39 +0000)] 
Revise verbiage, per #asterisk-dev discussion

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

15 years agoCorrect CDR dispositions for BUSY/FAILED
Jeff Peeler [Fri, 18 Dec 2009 22:29:51 +0000 (22:29 +0000)] 
Correct CDR dispositions for BUSY/FAILED

This patch is simple in that it reorders the disposition defines so that the fix
for issue 12946 works properly (the default CDR disposition was changed to
AST_CDR_NOANSWER). Also, the AST_CDR_FLAG_ORIGINATED flag was set in ast_call to
ensure all CDR records are written.

The side effects of CDR changes are scary, so I'm documenting the test cases
performed to attempt to catch any regressions. The following tests were all
performed using 1.4 rev 195881 vs head (235571) + patch:

A calls B
C calls B (busy)
Hangup C
Hangup A

(Both SIP and features)
A calls B
A blind transfers to C
Hangup C

(Both SIP and features)
A calls B
A attended transfers to C
Hangup C

A calls B
A attended transfers to C (SIP)
C blind transfers to A (features)
Hangup A

All of the test scenario CDRs matched.

The following tests were performed just with the patch to ensure proper operation
(with unanswered=yes):

exten =>s,1,Answer
exten =>s,n,ResetCDR(w)
exten =>s,n,ResetCDR(w)

exten =>s,1,ResetCDR(w)
exten =>s,n,ResetCDR(w)

(closes issue #16180)
Reported by: aatef
Patches:
      bug16180.patch uploaded by jpeeler (license 325)

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

15 years agoPoint to the typical missing package, not the cryptic "termcap support".
Tilghman Lesher [Fri, 18 Dec 2009 21:18:16 +0000 (21:18 +0000)] 
Point to the typical missing package, not the cryptic "termcap support".

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

15 years agoUse context from which Macro is executed, not macro context, if applicable.
Tilghman Lesher [Thu, 17 Dec 2009 17:17:51 +0000 (17:17 +0000)] 
Use context from which Macro is executed, not macro context, if applicable.
Also, ensure that the extension COULD match, not just that it won't match more.
(closes issue #16113)
 Reported by: OrNix
 Patches:
       20091216__issue16113.diff.txt uploaded by tilghman (license 14)
 Tested by: OrNix

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

15 years agoAdd a line showing that we can use CIDR notation.
Jared Smith [Tue, 15 Dec 2009 21:07:55 +0000 (21:07 +0000)] 
Add a line showing that we can use CIDR notation.

patch by jsmith, after discussion with jtodd

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

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