Commit Graph

14204 Commits

Author SHA1 Message Date
Jason Parker
c94931c9a4 Fix DEBUG_THREADS issue with out-of-tree modules.
Take 2, without ABI breakage this time.

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@254714 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-03-25 19:39:23 +00:00
Russell Bryant
2ebff8a1d6 Update Asterisk 1.4 to use menuselect trunk.
Review: https://reviewboard.asterisk.org/r/590/


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@254639 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-03-25 18:51:13 +00:00
Mark Michelson
6eca8e3059 Add doxygen for acl.h
Review: https://reviewboard.asterisk.org/r/528



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@254552 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-03-25 17:33:35 +00:00
Mark Michelson
3601cd50fc Several fixes regarding RFC2833 DTMF detection.
Here is a copy and paste of the details from my request on
reviewboard that dealt with these changes:

Fix 1. The first change in place is to fix Mantis issue 15811, which deals with a situation where Asterisk will incorrectly interpret out of order RFC2833 frames as duplicate DTMF digits. For instance, we would receive a sequence like:

seqno 1: DTMF 1
seqno 2: DTMF 1
seqno 3: DTMF 1
seqno 4: DTMF 1
seqno 6: DTMF 1 (end)
seqno 5: DTMF 1
seqno 7: DTMF 1 (end)
seqno 8: DTMF 1 (end)

Prior to this patch when we received the frame with seqno 5, we would interpret this as a new DTMF 1. With this patch, we will check the seqno of the incoming digit and not process the frame if the seqno is lower than the last recorded seqno. Note that we do not record the seqno of the dropped DTMF frame for future processing. While the above situation is what was designed to be fixed, the patch is written in such a way that the following would also be fixed too:

seqno  9: DTMF 1
seqno 10: DTMF 1 (end)
seqno 11: DTMF 1 (end)
seqno 13: DTMF 2
seqno 12: DTMF 1 (end)
seqno 14: DTMF 2
seqno 15: DTMF 2 (end)
seqno 16: DTMF 2 (end)
seqno 17: DTMF 2 (end)

In this second situation, the beginning of the DTMF 2 arrives before the final end frame of the DTMF 1. With the patch, seqno 12 is no processed and thus we properly interpret the DTMF.

Fix 2. The second change in place is to fix an issue like the following:

seqno 1: DTMF 1
seqno 2: DTMF 1
seqno 3: DTMF 1 (end) *packet lost*
seqno 4: DTMF 1 (end) *packet lost*
seqno 5: DTMF 1 (end) *packet lost*
seqno 6: DTMF 2

When we receive seqno 6, we had code in place that was supposed to properly end the previously unended DTMF 1. The problem was that the code was essentially a no-op. The code would set up an end frame for the DTMF 1 but would immediately overwrite the frame with the begin for DTMF 2. I changed process_dtmf_rfc2833() so that instead of returning a single frame, it is given as an output parameter a list of frames. Each frame that needs to be returned is appended to this list.

Fix 3. The final change is a minor one where an AST_CONTROL_SRCCHANGE frame could get lost. If we process a cisco DTMF or an RFC 3389 frame and no frame was returned, then we would return &ast_null_frame. The problem is that earlier in the function, we may have generated an AST_CONTROL_SRCCHANGE frame and put it in the list of frames we wish to return. This frame would be lost in such a case. The patch fixes this problem

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@254452 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-03-25 15:59:56 +00:00
Terry Wilson
d7a0de13ad Handle new SRCCHANGE control message here too
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@254451 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-03-25 15:57:29 +00:00
Jeff Peeler
92e1ca0016 Ensure that monitor recordings are written to the correct location (again)
This is an extension to 248860. As such the dialplan test has been extended:

; non absolute path, not combined
exten => 5040, 1, monitor(wav,tmp/jeff/monitor_test)
exten => 5040, n, dial(sip/5001)
; absolute path, not combined
exten => 5041, 1, monitor(wav,/tmp/jeff/monitor_test2)
exten => 5041, n, dial(sip/5001)
; no path, not combined
exten => 5042, 1, monitor(wav,monitor_test3)
exten => 5042, n, dial(sip/5001)
; combined: changemonitor from non absolute to no path (leaves tmp/jeff)
exten => 5043, 1, monitor(wav,tmp/jeff/monitor_test4,m)
exten => 5043, n, changemonitor(monitor_test5)
exten => 5043, n, dial(sip/5001)
; combined: changemonitor from no path to non absolute path
exten => 5044, 1, monitor(wav,monitor_test6,m)
exten => 5044, n, changemonitor(tmp/jeff/monitor_test7) ; this wasn't possible before
exten => 5044, n, dial(sip/5001)
; non absolute path, combined
exten => 5045, 1, monitor(wav,tmp/jeff/monitor_test8,m)
exten => 5045, n, dial(sip/5001)
; absolute path, combined 
exten => 5046, 1, monitor(wav,/tmp/jeff/monitor_test9,m)
exten => 5046, n, dial(sip/5001)
; no path, combined
exten => 5047, 1, monitor(wav,monitor_test10,m)
exten => 5047, n, dial(sip/5001)
; combined: changemonitor from non absolute to absolute (leaves tmp/jeff)
exten => 5048, 1, monitor(wav,tmp/jeff/monitor_test11,m)
exten => 5048, n, changemonitor(/tmp/jeff/monitor_test12)
exten => 5048, n, dial(sip/5001)
; combined: changemonitor from absolute to non absolute (leaves /tmp/jeff)
exten => 5049, 1, monitor(wav,/tmp/jeff/monitor_test13,m)
exten => 5049, n, changemonitor(tmp/jeff/monitor_test14)
exten => 5049, n, dial(sip/5001)
; combined: changemonitor from no path to absolute
exten => 5050, 1, monitor(wav,monitor_test15,m)
exten => 5050, n, changemonitor(/tmp/jeff/monitor_test16)
exten => 5050, n, dial(sip/5001)
; combined: changemonitor from absolute to no path (leaves /tmp/jeff)
exten => 5051, 1, monitor(wav,/tmp/jeff/monitor_test17,m)
exten => 5051, n, changemonitor(monitor_test18)
exten => 5051, n, dial(sip/5001)
; not combined: changemonitor from non absolute to no path (leaves tmp/jeff)
exten => 5052, 1, monitor(wav,tmp/jeff/monitor_test19)
exten => 5052, n, changemonitor(monitor_test20)
exten => 5052, n, dial(sip/5001)
; not combined: changemonitor from no path to non absolute
exten => 5053, 1, monitor(wav,monitor_test21)
exten => 5053, n, changemonitor(tmp/jeff/monitor_test22)
exten => 5053, n, dial(sip/5001)
; not combined: changemonitor from non absolute to absolute (leaves tmp/jeff)
exten => 5054, 1, monitor(wav,tmp/jeff/monitor_test23)
exten => 5054, n, changemonitor(/tmp/jeff/monitor_test24)
exten => 5054, n, dial(sip/5001)
; not combined: changemonitor from absolute to non absolute (leaves /tmp/jeff)
exten => 5055, 1, monitor(wav,/tmp/jeff/monitor_test24)
exten => 5055, n, changemonitor(tmp/jeff/monitor_test25)
exten => 5055, n, dial(sip/5001)
; not combined: changemonitor from no path to absolute
exten => 5056, 1, monitor(wav,monitor_test26)
exten => 5056, n, changemonitor(/tmp/jeff/monitor_test27)
exten => 5056, n, dial(sip/5001)
; not combined: changemonitor from absolute to no path (leaves /tmp/jeff)
exten => 5057, 1, monitor(wav,/tmp/jeff/monitor_test28)
exten => 5057, n, changemonitor(monitor_test29)
exten => 5057, n, dial(sip/5001)



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@254235 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-03-24 00:37:23 +00:00
Jason Parker
8371df4e7b Revert revisions 254046 and 254098.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@254161 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-03-23 22:45:55 +00:00
Jason Parker
733782e90f Add note about the out-of-tree module ABI changes.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@254098 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-03-23 21:27:04 +00:00
Jason Parker
16a9a742a4 Allow out-of-tree modules to load, regardless of DEBUG_THREADS/DEBUG_CHANNEL_LOCKS differences.
This can be guaranteed by forcing the ABI to no longer change when these compiler flags are set.
An unfortunate side-effect to this is that there is an ABI change here.  However, there is some
mitigation.  Existing modules *will* fail to load since they would require functions that no
longer exist.

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@254046 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-03-23 21:07:54 +00:00
Matthew Nicholson
41d8051361 Unconditionally copy the caller's account code to the called party.
(related to issue #16331)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@253799 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-03-22 19:50:00 +00:00
Russell Bryant
93079fd57a Fix final link on FreeBSD by adding the PTHREAD_CFLAGS.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@253670 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-03-21 14:26:43 +00:00
Russell Bryant
43393bd1a9 Resolve a number of FreeBSD build issues.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@253631 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-03-20 19:17:28 +00:00
Leif Madsen
4deaae7482 Typo found while fixing issue #16961.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@253349 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-03-18 17:57:31 +00:00
Leif Madsen
fa9e9d8173 Synchronize text in localchannels.txt and localchannels.tex.
(issue #16963)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@253260 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-03-18 15:56:31 +00:00
Leif Madsen
b3ec07363e Update new Local channel documentation.
The original reporter, Kobaz, of an issue with a Local channel that inspired the
Local channel documentation provided some tweaks to the documentation after testing
what I had written. Hopefully anything that was vague or unclear has been cleaned
up by these changes.

(closes issue #16963)
Reported by: kobaz
Patches: 
      localchannel-2.txt uploaded by kobaz (license 834)
Tested by: kobaz, lmadsen

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@253252 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-03-18 15:24:13 +00:00
Terry Wilson
1b2dbf6c1a Revert API change in release branches
This re-renames ast_rtp_update_source to ast_rtp_new_source


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@253158 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-03-17 16:25:52 +00:00
Leif Madsen
5be8abf3d5 Add french snipset to say.conf.
Add the french snipset to say.conf.

(Closes issue #15799)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@253018 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-03-17 00:26:19 +00:00
Russell Bryant
170442b6e4 Backport chan_sip build fix for Mac OSX 10.6 from trunk.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@252928 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-03-16 20:52:09 +00:00
Russell Bryant
18c87d730f Use uname -s, as done in trunk.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@252927 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-03-16 20:47:15 +00:00
Russell Bryant
df1a03e005 Apply codec_gsm Mac OS X 10.6 build fix that is in trunk and 1.6.X.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@252851 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-03-16 20:13:45 +00:00
Russell Bryant
9b0d4f9f4b Don't treat warnings as errors for muted.
muted supports OS X, but uses functions marked as deprecated in 10.6.  However,
the functions are still supported, so just ignore the warnings for now and
allow the build to proceed.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@252766 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-03-16 19:00:43 +00:00
Leif Madsen
8e30b3eafc Additional extensions.ael global variable fixes.
Fixing up a couple more overlapping global variable namespaces shared with
extensions.conf.sample. Also noticed a few of the lines that were commented
out didn't have the closing semi-colon so I added that as well.

(issue #17035)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@252761 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-03-16 18:46:20 +00:00
Tilghman Lesher
7a86db836c Uh, yeah. Umask. I'm stupid.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@252617 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-03-15 21:43:14 +00:00
Leif Madsen
c64fd68fd5 Update extensions.ael file to not overlap extensions.conf.
Updated the extensions.ael file so the global variables don't overlap
those that we have in extensions.conf (sample files). This way unexpected
things won't happed hopefully if both pbx_ael and res_config are loaded.

(closes issue #17035)
Reported by: pprindeville

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@252533 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-03-15 20:48:56 +00:00
Leif Madsen
d03a21d5f8 Revert last commit that had bad changed to configure.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@252532 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-03-15 20:46:47 +00:00
Leif Madsen
0434ec7ad6 Update extensions.ael file to not overlap extensions.conf.
Updated the extensions.ael file so the global variables don't overlap
those that we have in extensions.conf (sample files). This way unexpected
things won't happed hopefully if both pbx_ael and res_config are loaded.

(closes issue #17035)
Reported by: pprindeville

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@252531 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-03-15 20:46:06 +00:00
Tilghman Lesher
aac3bf7298 Typo
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@252366 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-03-15 01:39:00 +00:00
Tilghman Lesher
abe8ae27a3 Launch Asterisk on Mac OS X with launchd.
Reviewboard: https://reviewboard.asterisk.org/r/551/


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@252361 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-03-15 01:33:50 +00:00
Terry Wilson
529e8af144 Merged revisions 252089 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r252089 | twilson | 2010-03-12 16:04:51 -0600 (Fri, 12 Mar 2010) | 20 lines
  
  Only change the RTP ssrc when we see that it has changed
  
  This change basically reverts the change reviewed in
  https://reviewboard.asterisk.org/r/374/ and instead limits the
  updating of the RTP synchronization source to only those times when we
  detect that the other side of the conversation has changed the ssrc.
  
  The problem is that SRCUPDATE control frames are sent many times where
  we don't want a new ssrc, including whenever Asterisk has to send DTMF
  in a normal bridge. This is also not the first time that this mistake
  has been made. The initial implementation of the ast_rtp_new_source
  function also changed the ssrc--and then it was removed because of
  this same issue. Then, we put it back in again to fix a different
  issue. This patch attempts to only change the ssrc when we see that
  the other side of the conversation has changed the ssrc.
  
  It also renames some functions to make their purpose more clear.
  
  Review: https://reviewboard.asterisk.org/r/540/
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@252175 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-03-13 00:30:04 +00:00
Richard Mudgett
a247e69d65 Forward declaring dahdi_pri was already done.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@251997 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-03-12 19:58:28 +00:00
Richard Mudgett
0bc0edcda9 Make chan_dahdi wakeup_sub() prototype not conditional.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@251986 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-03-12 19:33:22 +00:00
Sean Bright
85f79116ac Use ast_strlen_zero to avoid a crash when a Dial() string isn't passed to ParkAndAnnounce
(closes issue #16731)
Reported by: sebele67
Patches:
      issue16731_20100129.diff uploaded by seanbright (license 71)
Tested by: sebele67


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@251410 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-03-09 19:29:39 +00:00
Leif Madsen
dfd1365321 Fix Debian init script to not use -c.
When using the init script as-is currently, it could cause issues on Debian
such as high CPU usage. This fix has worked for several people so I'm
implementing the change.


(closes issue #16784)
Reported by: pabelanger
Tested by: pabelanger, mnick, davidw, mutineer612

(closes issue #16887)
Reported by: jlpedrosa
Tested by: jlpedrosa, mutineer612

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@251309 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-03-08 18:07:44 +00:00
Jeff Peeler
093e1d34f3 Fix not being able to specify a URL in MOH class directory.
Don't attempt to chdir on a URL!

(closes issue #16875)
Reported by: raarts
Patches: 
      moh-http.patch uploaded by raarts (license 937)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@250786 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-03-05 01:02:58 +00:00
Leif Madsen
db883a27bd Update existing Local channel documentation.
A complete re-write of the Local channel documentation has been performed, with
the existing information from localchannel.txt and localchannel.tex merged in.

(issue #16637)
Reported by: kobaz
Patches: 
      localchannel.tex uploaded by lmadsen (license 10)
      localchannel.txt uploaded by lmadsen (license 10)
Tested by: lmadsen, jsmith, mmichelson

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@250613 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-03-03 21:28:02 +00:00
Jeff Peeler
3896fecd58 Make sure to clear red alarm after polarity reversal.
From the issue:
The automatic overnight line tests (or manual ones) used on UK (BT) lines causes
a red alarm on a dahdi / TDM400P connected channel. This is because the line
uses voltage tests (battery loss) and polarity reversal. The polarity reversal
causes chan_dahdi to initiate v23 CallerID processing but during this the event
DAHDI_EVENT_NOALARM is ignored so that the alarm is never cleared.

(closes issue #14163)
Reported by: jedi98
Patches: 
      chan_dahdi-1.4-inalarm.diff uploaded by jedi98 (license 653)
Tested by: mattbrown, Chainsaw, mikeeccleston


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@250480 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-03-03 19:04:11 +00:00
David Vossel
8dbeb5925d fixes problem with duplicate TXREQ packets
When Asterisk receives an IAX2 TXREQ packet, try_transfer()
will call store_by_transfercallno() to link the chan_iax2_pvt
struct into iax_transfercallno_pvts. If a duplicate TXREQ
packet is received for the same call, the pvt struct will be
linked into iax_transfercallno_pvts multiple times.  This patch
fixes this.  Thanks rain for debugging this and providing a patch!

(closes issue #16904)
Reported by: rain
Patches:
      iax2-double-txreq-fix.diff uploaded by rain (license 327)
Tested by: rain, dvossel



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@250394 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-03-03 18:02:27 +00:00
Leif Madsen
9ff28fd6e8 Update IMAP documentation.
Update the IMAP documentation to make it clear that storing voicemails
in the same folder as a large number of emails could potentially cause
significant slow downs when writing or retrieving voicemails.

(closes issue #16704)
Reported by: TimeHider
Tested by: lmadsen, TimeHider

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@250050 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-03-02 21:08:09 +00:00
Leif Madsen
19c43ed644 Update documentation to clarify purpose of unanswered option.
(closes issue #16267)
Reported by: elsto
Patches: 
      cdr.conf.sample.patch.txt uploaded by lmadsen (license 10)
Tested by: davidw, elsto

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@250043 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-03-02 20:51:35 +00:00
Leif Madsen
c91785154c Update documentation to not imply we support overriding options.
(issue #16855)
Reported by: davidw

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@250041 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-03-02 20:45:37 +00:00
Alec L Davis
3d3116e656 revert ability to exit echo app
caused a regression, as only supported VOICE, not VIDEO etc.
Left in small formatting change.

(issue #16880)



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@249946 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-03-02 19:36:20 +00:00
Alec L Davis
63e614d896 fixes ability to exit echo app
when called from a ISDN channel, null frames prevent '#' exit.
Now only echo back VOICE and DTMF frames

(issue #16880)
Reported by: alecdavis
Patches: 
      based on echo_exit_1-6-1.diff.txt uploaded by alecdavis (license 585)
Tested by: alecdavis



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@249845 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-03-02 09:11:56 +00:00
Sean Bright
daf062ece8 Fix crash in app_voicemail related to message counting.
We were passing a 'struct inprocess **' and treating it like a 'struct inprocess *'
causing a segfault.

(closes issue #16921)
Reported by: whardier
Patches:
      20100301_issue16921.patch uploaded by seanbright (license 71)
Tested by: whardier


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@249671 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-03-01 19:35:01 +00:00
Jeff Peeler
9a4e4eb749 Modify queued frames from local channels to not set the other side to up
In this case, attended transfers were broken due to ast_feature_request_and_dial
detecting the channel being set to up before the answer frame could be read and
therefore failing to mark the channel as ready. This fix is a regression fix for
244785, which should continue to work properly as well.

(closes issue #16816)
Reported by: jamhed
Tested by: jamhed, corruptor


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@249536 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-03-01 17:02:03 +00:00
Alec L Davis
271908886f overlap receiving: automatically send CALL PROCEEDING when dialplan starts
Following Q.931 5.2.4
When the user has determined that sufficient call information has been received the 
user shall stop T302 and send CALL PROCEEDING to the network.

Previously timeouts were possible if the dialplan took a long time to issue any
response back to the network.

Verified that our local TELCO also does the same.

(issue #16789)
Reported by: alecdavis
Patches: 
      based on overlap_receiving_trunk.diff.txt uploaded by alecdavis (license 585)
Tested by: alecdavis

(closes issue #16789)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@249365 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-02-27 23:51:28 +00:00
Kevin P. Fleming
62f453c9d7 add a reference to the now-published IAX2 RFC
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@249234 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-02-27 14:07:59 +00:00
Mark Michelson
99e1a0f967 For T.38 reINVITEs treat a 606 the same as a 488.
(closes issue #16792)
Reported by: vrban
Patches:
      t38_606.patch uploaded by vrban (license 756)



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@249100 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-02-26 17:04:29 +00:00
Jeff Peeler
dbdbc92a4a Ensure that monitor recordings are written to the correct location (again)
This is an extension to 248757. As such the dialplan test has been extended:

exten => 5040, 1, monitor(wav,tmp/jeff/monitor_test,b)
exten => 5040, n, dial(sip/5001)
exten => 5041, 1, monitor(wav,/tmp/jeff/monitor_test2,b)
exten => 5041, n, dial(sip/5001)
exten => 5042, 1, monitor(wav,monitor_test3,b)
exten => 5042, n, dial(sip/5001)
exten => 5043, 1, monitor(wav,tmp/jeff/monitor_test3,m)
exten => 5043, n, changemonitor(monitor_test4)
exten => 5043, n, dial(sip/5001)
exten => 5044, 1, monitor(wav,monitor_test4,m)
exten => 5044, n, changemonitor(tmp/jeff/monitor_test5) ; this looks to fail by design and emits a warning
exten => 5044, n, dial(sip/5001)



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@248860 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-02-25 21:22:06 +00:00
Tilghman Lesher
096a41e440 Some platforms clear /var/run at boot, which makes connecting a remote console... difficult.
Previously, we only created the default /var/run/asterisk directory at install
time.  While we could create it in the init script, that would not work for
those who start asterisk manually from the command line.  So the safest thing
to do is to create it as part of the Asterisk boot process.  This also changes
the ownership of the directory, because the pid and ctl files are created after
we setuid/setgid.

(closes issue #16802)
 Reported by: Brian
 Patches: 
       20100224__issue16802.diff.txt uploaded by tilghman (license 14)
 Tested by: tzafrir


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@248859 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-02-25 21:21:05 +00:00
Jeff Peeler
3371a165f5 Ensure that monitor recordings are written to the correct location.
Recordings should be placed in the monitor directory when a non-absolute path
is used.

Exact dialplan used for testing:
exten => 5040, 1, monitor(wav,tmp/jeff/monitor_test,b)
exten => 5040, n, dial(sip/5001)
exten => 5041, 1, monitor(wav,/tmp/jeff/monitor_test2,b)
exten => 5041, n, dial(sip/5001)
exten => 5042, 1, monitor(wav,monitor_test3,b)
exten => 5042, n, dial(sip/5001)

ABE-2101


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@248757 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-02-25 18:06:54 +00:00