dect
/
asterisk
Archived
13
0
Fork 0
Commit Graph

3928 Commits

Author SHA1 Message Date
mmichelson 4cb72485bd Fix logic reversal error when queue callers join the queue.
When a specific position is specified for the queue, the idea
was that the caller cannot be placed ahead of higher-priority
callers. Unfortunately, the logic was reversed so that the caller
could ONLY be placed ahead of higher priority callers.

Discovered while writing a unit test.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@260344 f38db490-d61c-443f-a65b-d21fe96a405b
2010-04-30 19:53:36 +00:00
jpeeler 2911035fa6 Merged revisions 259664 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r259664 | jpeeler | 2010-04-28 12:13:29 -0500 (Wed, 28 Apr 2010) | 4 lines
  
  Do not play goodbye prompt after timeout of message review.
  
  ABE-2124
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@259672 f38db490-d61c-443f-a65b-d21fe96a405b
2010-04-28 17:18:43 +00:00
eliel c81c6b967b Pass interactive = 0 and fix a compile error.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@258595 f38db490-d61c-443f-a65b-d21fe96a405b
2010-04-22 20:04:23 +00:00
eliel 2b551e72e4 Asterisk data retrieval API.
This module implements an abstraction for retrieving and exporting
asterisk data.
Developed by:
	Brett Bryant <brettbryant@gmail.com>
	Eliel C. Sardanons (LU1ALY) <eliels@gmail.com>
For the Google Summer of code 2009 Project.
Documentation can be found in doxygen format and inside the
header include/asterisk/data.h

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



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@258517 f38db490-d61c-443f-a65b-d21fe96a405b
2010-04-22 18:07:02 +00:00
jpeeler 065c7a68f1 Merged revisions 258432 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r258432 | jpeeler | 2010-04-21 16:45:36 -0500 (Wed, 21 Apr 2010) | 8 lines
  
  Fix looping forever when no input received in certain voicemail menu scenarios.
  
  Specifically, prompting for an extension (when leaving or forwarding a message)
  or when prompting for a digit (when saving a message or changing folders).
  
  ABE-2122
  SWP-1268
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@258433 f38db490-d61c-443f-a65b-d21fe96a405b
2010-04-21 21:56:09 +00:00
jmls f3be709455 Added MixMonitorMute manager command
Added a new manager command to mute/unmute MixMonitor audio on a channel. 
Added a new feature to audiohooks so that you can mute either read / write
(or both) types of frames - this allows for MixMonitor to mute either side
of the conversation without affecting the conversation itself.

(closes issue #16740)
Reported by: jmls

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



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@258190 f38db490-d61c-443f-a65b-d21fe96a405b
2010-04-21 11:27:27 +00:00
jpeeler 8efba2486b Merged revisions 258029 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r258029 | jpeeler | 2010-04-20 11:16:33 -0500 (Tue, 20 Apr 2010) | 11 lines
  
  Play correct prompt when voicemail store failure occurs after attempted forward.
  
  If a user's mailbox was full and a message was attempted to be forwarded to
  said box, warnings on the console would indicate failure. However, the played
  prompt was that of success (vm-msgsaved). Now storage failure is taken into
  account and the correct prompt (vm-mailboxfull) is played when appropriate.
  
  ABE-2123
  SWP-1262
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@258065 f38db490-d61c-443f-a65b-d21fe96a405b
2010-04-20 17:06:19 +00:00
tilghman d14c12effd Bad merge fix
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@257883 f38db490-d61c-443f-a65b-d21fe96a405b
2010-04-19 19:23:41 +00:00
dhubbard bcb7daaec7 Merged revisions 257686 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r257686 | dhubbard | 2010-04-16 16:15:43 -0500 (Fri, 16 Apr 2010) | 21 lines
  
  Make the mixmonitor thread process audio frames faster
  
  Mantis issue 17078 reports MixMonitor recordings have shorter durations than 
  the call duration.  This was because the mixmonitor thread was not processing 
  frames from the audiohook fast enough.  The mixmonitor thread would slowly fall 
  behind the most recent audio frame and when the channel hangs up, the mixmonitor 
  thread would exit without processing the same number of frames as the channel; 
  leaving the mixmonitor recording shorter than actual call duration.
  
  This revision fixes this issue by moving the ast_audiohook_trigger_wait() and 
  the subsequent audiohook.status check into the block where the 
  ast_audiohook_read_frame() function returns NULL.
  
  (closes issue #17078)
  Reported by: geoff2010
  Patches:
        dw-M17078.patch uploaded by dhubbard (license 733)
  Tested by: dhubbard, geoff2010
  
  Review: https://reviewboard.asterisk.org/r/611/
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@257713 f38db490-d61c-443f-a65b-d21fe96a405b
2010-04-16 21:22:30 +00:00
lmadsen 5a30e546ba Remove silly debug message that is not useful.
(issue #17159)

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@256860 f38db490-d61c-443f-a65b-d21fe96a405b
2010-04-12 16:16:43 +00:00
mmichelson 0eb1e5407a Merge Call completion support into trunk.
From Reviewboard:
CCSS stands for Call Completion Supplementary Services. An admittedly out-of-date
overview of the architecture can be found in the file doc/CCSS_architecture.pdf
in the CCSS branch. Off the top of my head, the big differences between what is
implemented and what is in the document are as follows:

1. We did not end up modifying the Hangup application at all.
2. The document states that a single call completion monitor may be used across
   multiple calls to the same device. This proved to not be such a good idea
   when implementing protocol-specific monitors, and so we ended up using one
   monitor per-device per-call.
3. There are some configuration options which were conceived after the document
   was written. These are documented in the ccss.conf.sample that is on this
   review request.
		      
For some basic understanding of terminology used throughout this code, see the
ccss.tex document that is on this review.

This implements CCBS and CCNR in several flavors.

First up is a "generic" implementation, which can work over any channel technology
provided that the channel technology can accurately report device state. Call
completion is requested using the dialplan application CallCompletionRequest and can
be canceled using CallCompletionCancel. Device state subscriptions are used in order
to monitor the state of called parties.

Next, there is a SIP-specific implementation of call completion. This method uses the
methods outlined in draft-ietf-bliss-call-completion-06 to implement call completion
using SIP signaling. There are a few things to note here:

* The agent/monitor terminology used throughout Asterisk sometimes is the reverse of
  what is defined in the referenced draft.

* Implementation of the draft required support for SIP PUBLISH. I attempted to write
  this in a generic-enough fashion such that if someone were to want to write PUBLISH
  support for other event packages, such as dialog-state or presence, most of the effort
  would be in writing callbacks specific to the event package.

* A subportion of supporting PUBLISH reception was that we had to implement a PIDF
  parser. The PIDF support added is a bit minimal. I first wrote a validation
  routine to ensure that the PIDF document is formatted properly. The rest of the
  PIDF reading is done in-line in the call-completion-specific PUBLISH-handling
  code. In other words, while there is PIDF support here, it is not in any state
  where it could easily be applied to other event packages as is.

Finally, there are a variety of ISDN-related call completion protocols supported. These
were written by Richard Mudgett, and as such I can't really say much about their
implementation. There are notes in the CHANGES file that indicate the ISDN protocols
over which call completion is supported.

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


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@256528 f38db490-d61c-443f-a65b-d21fe96a405b
2010-04-09 15:31:32 +00:00
rmudgett f42e29b281 Consolidate ast_channel.cid.cid_rdnis into ast_channel.redirecting.from.number.
SWP-1229
ABE-2161

* Ensure chan_local.c:local_call() will not leak cid.cid_dnid when
copying.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@256104 f38db490-d61c-443f-a65b-d21fe96a405b
2010-04-03 02:12:33 +00:00
rmudgett fa32b37974 Using the Dial application f option when the call is forwarded will likely crash.
Fix app_dial.c:do_forward() OPT_FORCECLID setting cid.cid_num with a stack
allocated string instead of a heap allocated string.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@256103 f38db490-d61c-443f-a65b-d21fe96a405b
2010-04-03 01:42:32 +00:00
russell bad7a7d715 Export MEETMEBOOKID and fix pin-less conferences with realtime conferences
(closes issue #16866)
Reported by: DEA
Patches:
      rt-meetme-options.txt uploaded by DEA (license 3)
Tested by: DEA

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


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@256019 f38db490-d61c-443f-a65b-d21fe96a405b
2010-04-02 23:55:57 +00:00
kpfleming a321328986 Allow symbol export filtering to work properly on platforms that have symbol prefixes.
Some platforms prefix externally-visible symbols in object files generated
from C sources (most commonly, '_' is the prefix). On these platforms,
the existing symbol export filtering process ends up suppressing all the symbols
that are supposed to be left visible. This patch allows the prefix string
to be supplied to the top-level Makefile in the LINKER_SYMBOL_PREFIX variable,
and then generates the linker scripts as required to include the prefix
supplied.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@255906 f38db490-d61c-443f-a65b-d21fe96a405b
2010-04-02 18:57:58 +00:00
tilghman cea7a588a4 Recorded merge of revisions 255591 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r255591 | tilghman | 2010-03-31 14:09:46 -0500 (Wed, 31 Mar 2010) | 15 lines
  
  Ensure line terminators in email are consistent.
  
  Fixes an issue with certain Mail Transport Agents, where attachments are not
  interpreted correctly.
  
  (closes issue #16557)
   Reported by: jcovert
   Patches: 
         20100308__issue16557__1.4.diff.txt uploaded by tilghman (license 14)
         20100308__issue16557__1.6.0.diff.txt uploaded by tilghman (license 14)
         20100308__issue16557__trunk.diff.txt uploaded by tilghman (license 14)
   Tested by: ebroad, zktech
   
  Reviewboard: https://reviewboard.asterisk.org/r/544/
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@255592 f38db490-d61c-443f-a65b-d21fe96a405b
2010-03-31 19:13:02 +00:00
lmadsen 452541605f Add documentation clarifying when 't' and 'T' can be used.
(closes issue #17021)
Reported by: kovzol
Tested by: lmadsen, kovzol, davidw, ebroad

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@255504 f38db490-d61c-443f-a65b-d21fe96a405b
2010-03-31 17:48:09 +00:00
jsmith 848960cd68 This patch adds custom device state handling for ConfBridge conferences,
matching the devstate handling of the MeetMe conferences.

Review: https://reviewboard.asterisk.org/r/572/
Closes issue #16972



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@255281 f38db490-d61c-443f-a65b-d21fe96a405b
2010-03-29 14:07:44 +00:00
seanbright 2d401f9e16 We need to inclde sys/wait.h on OpenBSD to get WEXITSTATUS.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@255158 f38db490-d61c-443f-a65b-d21fe96a405b
2010-03-27 14:44:58 +00:00
jpeeler f1d6a257e9 Allow configuration of minsecs and nextaftercmd per mailbox.
Previously only configurable globally. A unit test has also been written to 
provide protection against parse failures for supported mailbox options.

(closes issue #16864)
Reported by: kobaz
Patches: 
      voicemail2.patch uploaded by kobaz (license 834)

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


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@254321 f38db490-d61c-443f-a65b-d21fe96a405b
2010-03-24 18:13:29 +00:00
seanbright 33d705a7c8 Remove unused structure member in app_queue.
(closes issue #15494)
Reported by: makoto


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@254045 f38db490-d61c-443f-a65b-d21fe96a405b
2010-03-23 20:52:35 +00:00
russell 27a99cceaa Include sys/wait.h on FreeBSD to get the WEXITSTATUS() macro.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@253539 f38db490-d61c-443f-a65b-d21fe96a405b
2010-03-20 11:47:40 +00:00
russell 2daf66f036 Resolve compiler warnings on FreeBSD.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@253538 f38db490-d61c-443f-a65b-d21fe96a405b
2010-03-20 11:43:08 +00:00
lmadsen a7c2c9a537 Change usage of pipe to comma in UserEvent docs.
Change the example usage of pipe as a separator to comma in the UserEvent
documentation.

(closes issue #16961)
Reported by: jlpedrosa

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@253345 f38db490-d61c-443f-a65b-d21fe96a405b
2010-03-18 17:52:35 +00:00
tilghman c98856539a Mask out previous arguments on each nested invocation of Gosub.
(closes issue #16758)
 Reported by: wdoekes
 Patches: 
       20100316__issue16758.diff.txt uploaded by tilghman (license 14)
 
Review: https://reviewboard.asterisk.org/r/561/


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@252976 f38db490-d61c-443f-a65b-d21fe96a405b
2010-03-16 23:49:35 +00:00
seanbright 44cc42f022 Resolve a crash in SLATrunk when the specified trunk doesn't exist.
Reported by philipp64 in #asterisk-dev.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@252623 f38db490-d61c-443f-a65b-d21fe96a405b
2010-03-15 21:55:44 +00:00
tilghman 3de3c51d28 Don't override a user option with the global option.
(closes issue #16849)
 Reported by: ip-rob
 Patches: 
       20100311__issue16849.diff.txt uploaded by tilghman (license 14)
 Tested by: ip-rob


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@251989 f38db490-d61c-443f-a65b-d21fe96a405b
2010-03-12 19:43:23 +00:00
tilghman 89117b3d9e Because ExecIf needs to reprocess arguments, it's best if we don't remove quotes during parsing.
(closes issue #16905)
 Reported by: ip-rob
 Patches: 
       20100303__issue16905.diff.txt uploaded by tilghman (license 14)
 Tested by: ip-rob


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@251884 f38db490-d61c-443f-a65b-d21fe96a405b
2010-03-11 21:07:07 +00:00
tilghman 66b50366fb If the argument to the system application is quoted, ensure we remove the quotes before trying to execute.
(closes issue #16842)
 Reported by: ip-rob
 Patches: 
       20100310__issue16842.diff.txt uploaded by tilghman (license 14)
 Tested by: ip-rob


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@251877 f38db490-d61c-443f-a65b-d21fe96a405b
2010-03-11 20:25:02 +00:00
alecdavis bf3c03b616 Add supporting code for app-directory pause option.
Since 1.6.1 CLI help reports that option p(n) 'initial pause' is available.
Supporting code was never implemented.

(closes issue #16751)
Reported by: alecdavis
Patches: 
      directory_pause.trunk.diff.txt uploaded by alecdavis (license 585)
Tested by: alecdavis

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



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@251779 f38db490-d61c-443f-a65b-d21fe96a405b
2010-03-11 07:03:51 +00:00
lmadsen 2b7ee71e8e Be less ambiguous in Record() app docs.
For some reason the documentation for the 'k' application in trunk
and 1.6.2 is different than 1.6.0 and 1.6.1, so I'm setting them all
to match. The wording in 1.6.2 and trunk was ambiguous, so you could
interpret the wording the mean that recording would continue upon hangup
indefinitely, or you could interpret it to mean that the recorded
data would not be discarded upon hangup. This change makes it clear
we mean the latter, and not the former.

Came from a discussion in #asterisk on IRC.

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@251680 f38db490-d61c-443f-a65b-d21fe96a405b
2010-03-10 20:53:43 +00:00
jpeeler 146f32d81e Fix app_followme playing wrong sound files.
Fixes regression introduced in 140167 that uses the wrong variable names.

(closes issue #16930)
Reported by: ianc
Patches: 
      fix_reload_followme.diff uploaded by ianc (license 998)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@250979 f38db490-d61c-443f-a65b-d21fe96a405b
2010-03-05 19:10:47 +00:00
tilghman f8f8e147c9 Missing quote in ODBC query.
(closes issue #16953)
 Reported by: elguero
 Patches: 
       app_voicemail-odbc-syntax-fix.diff uploaded by elguero (license 37)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@250913 f38db490-d61c-443f-a65b-d21fe96a405b
2010-03-05 04:37:36 +00:00
rmudgett 869624a523 Removed cdrflags from ast_channel structure.
Only chan_dahdi set a value in cdrflags.  Everyone else just copied it
around the system.  Noone cared about any value it may have contained.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@250565 f38db490-d61c-443f-a65b-d21fe96a405b
2010-03-03 19:38:06 +00:00
mnicholson f90164d3b4 Updated CHANGES file to mention res_fax and res_fax_spandsp.
Also fixed MODULEINFO depends and conflicts for app_fax, res_fax, and res_fax_spandsp.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@250302 f38db490-d61c-443f-a65b-d21fe96a405b
2010-03-03 15:39:45 +00:00
dvossel dee9dac842 adds 'p' option to PickupChan
The 'p' option allows the PickupChan app to pickup
a ringing phone by looking for the first match to a
partial channel name rather than requiring a full match.

(closes issue #16613)
Reported by: syspert
Patches:
      pickipbycallid.patch uploaded by syspert (license 938)
      pickupbycallerid_v2.patch uploaded by dvossel (license 671)
Tested by: dvossel, syspert




git-svn-id: http://svn.digium.com/svn/asterisk/trunk@250141 f38db490-d61c-443f-a65b-d21fe96a405b
2010-03-02 21:58:03 +00:00
lmadsen d1c50f9294 Fix literal values wrapped in documentation.
(closes issue #16145)
Reported by: tilghman

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@249950 f38db490-d61c-443f-a65b-d21fe96a405b
2010-03-02 19:49:48 +00:00
alecdavis 24887641fd revert ability to exit echo app
caused a regression, as only supported VOICE, not VIDEO etc.

(issue #16880)



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@249947 f38db490-d61c-443f-a65b-d21fe96a405b
2010-03-02 19:39:58 +00:00
lmadsen 64020820db Fix several XML documentation validate errors.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@249892 f38db490-d61c-443f-a65b-d21fe96a405b
2010-03-02 19:02:56 +00:00
jpeeler dac968f62a fix build by checking result of symlink in test_voicemail_vmsayname
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@249891 f38db490-d61c-443f-a65b-d21fe96a405b
2010-03-02 18:31:05 +00:00
jpeeler 522dd61cfc Add new application VMSayName for use with voicemail.
VMSayName that will play the recorded name of the voicemail user if it exists, 
otherwise will play the mailbox number. A unit test has been written to verify
correct functionality called test_voicemail_vmsayname.

(closes issue #14973)
Reported by: ghjm

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


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@249889 f38db490-d61c-443f-a65b-d21fe96a405b
2010-03-02 18:22:05 +00:00
alecdavis 11787e2418 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: 
      echo_exit.diff.txt uploaded by alecdavis (license 585)
Tested by: alecdavis



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@249801 f38db490-d61c-443f-a65b-d21fe96a405b
2010-03-02 07:38:56 +00:00
seanbright 55968187ed Merged revisions 249671 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r249671 | seanbright | 2010-03-01 14:35:01 -0500 (Mon, 01 Mar 2010) | 11 lines
  
  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: http://svn.digium.com/svn/asterisk/trunk@249672 f38db490-d61c-443f-a65b-d21fe96a405b
2010-03-01 19:36:30 +00:00
tilghman 72f66a35b9 Constify a bit of app_voicemail, to make ODBC and IMAP compile once again.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@249623 f38db490-d61c-443f-a65b-d21fe96a405b
2010-03-01 18:36:06 +00:00
tilghman 0d3f019183 Fix unit test that Alec Davis broke.
(closes issue #16927)
 Reported by: alecdavis


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@249491 f38db490-d61c-443f-a65b-d21fe96a405b
2010-02-28 20:50:01 +00:00
alecdavis a55aaaea71 make unit test check for NULL folder, which then defaults to INBOX
previous test, gave false level of assurance that code was healthy.

(issue #16927)
Reported by: alecdavis
Patches: 
      based on app_voicemail_test.diff.txt uploaded by alecdavis (license 585)

Tested by: alecdavis


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@249449 f38db490-d61c-443f-a65b-d21fe96a405b
2010-02-28 16:36:45 +00:00
tilghman 9d853ef8c0 Properly document voicemail API documents. Also fix a crash reported via the -dev list.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@249405 f38db490-d61c-443f-a65b-d21fe96a405b
2010-02-28 07:10:22 +00:00
tilghman a58bcd7c78 Cleanups to fix bugs in the VM count API functions.
- Urgent voicemails were not attached, because the attachment code looked in the wrong folder.
- Urgent voicemails were sometimes counted twice when displaying the count of new messages.
- Backends were inconsistent as to which voicemails each API counted.
- Unit tests added to verify behavior in the future.

(closes issue #15654)
 Reported by: tomo1657
 Patches: 
       20100225__issue15654.diff.txt uploaded by tilghman (license 14)
 Tested by: tilghman

(closes issue #16448)
 Reported by: hevad

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


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@249187 f38db490-d61c-443f-a65b-d21fe96a405b
2010-02-26 18:41:57 +00:00
dvossel 406ad5980e fixes Queue with C option crash
(closes issue #16475)
Reported by: okrief
Patches:
      queue_crash.diff uploaded by dvossel (license 671)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@247736 f38db490-d61c-443f-a65b-d21fe96a405b
2010-02-18 20:58:41 +00:00
mmichelson 4987440472 Merged revisions 247168 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r247168 | mmichelson | 2010-02-17 10:24:17 -0600 (Wed, 17 Feb 2010) | 3 lines
  
  Make sure that when autofill is disabled that callers not in the front of the queue cannot place calls.
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@247169 f38db490-d61c-443f-a65b-d21fe96a405b
2010-02-17 16:24:54 +00:00
tilghman 7393420234 Change the blanket rules to delete .lastclean on all CFLAGS menuselect targets to be more particular.
This change builds upon the recent change to menuselect to add 'touch_on_change'
as an attribute of both categories and members.  This should allow only the most
invasive defines to cause a complete rebuild, while defines which only affect a
subset of modules will only cause a rebuild of that smaller set.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@246789 f38db490-d61c-443f-a65b-d21fe96a405b
2010-02-16 00:52:45 +00:00
transnexus fca20dd555 Updated doc for OSP lookup application.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@246382 f38db490-d61c-443f-a65b-d21fe96a405b
2010-02-12 08:30:05 +00:00
dvossel 8d339c2d88 Merged revisions 246115 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r246115 | dvossel | 2010-02-10 11:44:20 -0600 (Wed, 10 Feb 2010) | 8 lines
  
  fixes random deadlock in app_queue with use_weight during reload
  
  (closes issue #16677)
  Reported by: tim_ringenbach
  Patches:
        app_queue_use_weight_deadlock.diff uploaded by tim ringenbach (license 540)
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@246116 f38db490-d61c-443f-a65b-d21fe96a405b
2010-02-10 17:49:34 +00:00
tilghman dd12cdbb0e Ensure frames are only freed once.
(closes issue #16361)
 Reported by: vlad
 Patches: 
       20100208__issue16361.diff.txt uploaded by tilghman (license 14)
 Tested by: kenny, bloodoff, misaksen


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@245729 f38db490-d61c-443f-a65b-d21fe96a405b
2010-02-09 18:06:30 +00:00
kpfleming ddf46ba018 Don't offer MMR or JBIG transcoding during T.38 negotiation.
After further discussion with Steve Underwood, we should not (yet) be offering
to receive MMR or JBIG transcoded streams from T.38 endpoints. A future spandsp
release will support those features, and then they can be enabled during
negotiation



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@245680 f38db490-d61c-443f-a65b-d21fe96a405b
2010-02-09 16:24:52 +00:00
tilghman 308551bc34 Properly respect GOSUB_RESULT as to what to do with the master channel.
Previously, we would parse GOSUB_RESULT, but not actually do anything with it.
Also, allow GOSUB_RETVAL to be inherited back across a peer/master channel.

(closes issue #16687)
 Reported by: bklang
 Patches: 
       app_dial-preserve-gosub_retval.patch uploaded by bklang (license 919)
       (with modifications)

(closes issue #16686)
 Reported by: bklang
 Patches: 
       app_dial-respect-gosub_result.patch uploaded by bklang (license 919)
       (with modifications)



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@244393 f38db490-d61c-443f-a65b-d21fe96a405b
2010-02-02 20:32:29 +00:00
tilghman 2a5789193e Merged revisions 244242 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r244242 | tilghman | 2010-02-01 17:13:44 -0600 (Mon, 01 Feb 2010) | 11 lines
  
  Backup and restore original textfile, for prosthesis (gerund of prepend).
  
  Also, fix menuselect such that changing voicemail build options correctly
  causes rebuild.
  
  (closes issue #16415)
   Reported by: tomo1657
   Patches: 
         prepention.patch uploaded by tomo1657 (license 484)
         (with modifications by me to backport to 1.4)
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@244243 f38db490-d61c-443f-a65b-d21fe96a405b
2010-02-01 23:16:12 +00:00
jpeeler 0f9cb67065 Merged revisions 243691 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r243691 | jpeeler | 2010-01-27 14:35:56 -0600 (Wed, 27 Jan 2010) | 5 lines
  
  Revert 243570, I should have looked at this closer. Will reopen the issue, but
  am leaving the review closed as the change was pointless.
  
  (issue #16488)
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@243693 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-27 20:37:33 +00:00
jpeeler 4a8afc3693 Merged revisions 243570 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r243570 | jpeeler | 2010-01-27 12:47:34 -0600 (Wed, 27 Jan 2010) | 9 lines
  
  Extend announcement URL used with Queue from 80 chars to PATH_MAX.
  
  (closes issue #16488)
  Reported by: syspert
  Patches: 
        soundfilelen.pacth-2 uploaded by syspert (license 938)
  
  Review: https://reviewboard.asterisk.org/r/475/
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@243571 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-27 18:49:52 +00:00
diruggles e92b7c929b Code clean up in app_senddtmf
Pushes code clean up done in app_externalivr back
into app_senddtmf

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


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@243346 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-26 20:49:57 +00:00
diruggles 1786b09e92 Add send DTMF feature to ExternalIVR app
Implemented a new command 'D' that allows client
IVRs to send DTMF digits to the channel.

(closes issue #16615)
Reported by: thedavidfactor

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


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@242357 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-22 16:20:43 +00:00
tilghman b17f470e28 Enable SendText to send strings in encoded format.
See http://lists.digium.com/pipermail/asterisk-users/2010-January/243462.html


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@241364 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-19 22:41:36 +00:00
diruggles a82067d359 Add notification of interrupted file
Add file information to data element of T event so
the file information is sent to the client when it is
interrupted. Previously only notification of pending
files that were dropped was sent

(closes issue #16147)
Reported by: thedavidfactor
Tested by: thedavidfactor

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


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@240969 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-18 17:41:44 +00:00
dvossel ba59c746dc fixes spelling error. s/memeber/member
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@240842 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-18 15:52:55 +00:00
tilghman 602a8e74b2 Add pickup event to AMI. Also, fix AMI documentation.
(closes issue #16431)
 Reported by: syspert
 Patches: 
       20100112__issue16431.diff.txt uploaded by tilghman (license 14)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@240421 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-15 21:04:34 +00:00
tilghman 345626e641 Make sure that the limit is N, not N - 1.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@240419 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-15 20:58:19 +00:00
tilghman e64f0758f4 Merged revisions 240414 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r240414 | tilghman | 2010-01-15 14:52:27 -0600 (Fri, 15 Jan 2010) | 15 lines
  
  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: http://svn.digium.com/svn/asterisk/trunk@240415 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-15 20:54:24 +00:00
seanbright adc69e041d Convert a few places to use ast_calloc_with_stringfields where applicable.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@240368 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-15 18:21:50 +00:00
dvossel e49e9326db 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 #16524)
Reported by: kobaz

(closes issue #16523)
Reported by: kobaz
Tested by: dvossel

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



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@239712 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-13 16:31:14 +00:00
transnexus 4e12ca8ffa Updated XML doc for OSP.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@239624 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-13 07:00:13 +00:00
dvossel a666b47484 cli 'queue show' formatting fix. queue name was truncated over 12 characters
(closes issue #16078)
Reported by: RoadKill
Patches:
      quequename_limit.patch uploaded by ppyy (license 906)
Tested by: dvossel


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@238361 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-07 18:58:23 +00:00
jpeeler 37396b75c0 Fix misreverting from 177158.
(closes issue #15725)
Reported by: shanermn
Patches: 
      v1-15725.patch uploaded by dimas (license 88)
Tested by: shanermn


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@238181 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-06 20:37:18 +00:00
russell 67e78241fb Merged revisions 238009 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r238009 | russell | 2010-01-06 09:18:22 -0600 (Wed, 06 Jan 2010) | 7 lines
  
  Resolve a crash due to an ast_frame not being fully initialized.
  
  (closes issue #16531)
  Reported by: john8675309
  
  (closes SWP-615)
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@238010 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-06 15:19:10 +00:00
dvossel d57335a544 fixes holdtime playback issue in app_queue
When reporting hold time, the number of seconds should be mod 60.
Otherwise audio playback could be something like "2 minutes 123 seconds"
rather than "2 minutes 3 seconds".

Also, the "minute" sound file is missing, so for the moment until
that file can be created the "minutes" file is used instead.

(closes issue #16168)
Reported by: nickilo
Patches:
      patch-unified-trunk-rev-222176 uploaded by nickilo (license )
Tested by: nickilo, wonderg



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@237920 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-05 23:08:50 +00:00
mmichelson 1f5e87bd9f Mismerged a bit.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@237882 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-05 20:56:50 +00:00
mmichelson 9be5c3d206 Add a missing part of the connected line work into trunk.
Part of the work done for connected line was to add an optional
argument to the 'f' option to allow for the connected party information
of the outgoing channel to be set to the argument provided. This was
overlooked during the merge of the work to trunk and is being added
back now. The CHANGES file has also been updated to note this change.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@237803 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-05 18:46:19 +00:00
mvanbaak 9fef52740e Make CLI command 'mixmonitor start|stop <channel> work again.
(closes issue #16534)
Reported by: jlaguilar
Fix as suggested by jlaguilar in the bugreport


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@237656 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-05 16:08:12 +00:00
dvossel 9813658fe3 app_queue segfaults if realtime field uniqueid is NULL
(closes issue #16385)
Reported by: haakon
Patches:
      app_queue.c.patch uploaded by haakon (license 880)
      app_queue.c.patch_v2 uploaded by dvossel (license 671)
Tested by: haakon



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@237327 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-04 16:39:11 +00:00
transnexus c2bd29204f 1. Added reporting operator names in AuthReq.
2. Added retrieving operator names from AuthRsp and exporting them.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@237250 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-04 03:38:29 +00:00
qwell a83d55b296 Add app_voicemail and say.c support for Vietnamese.
Also add an XXX comment that I'm baffled nobody has ever complained about.  We
say "first message", and then we go into language-specific stuff where we
proceed to say..."first message".

(closes issue #15053)
Reported by: dinhtrung
Patches:
      vietnamese.ods uploaded by dinhtrung (license 776)
      app_voicemail.c.diff uploaded by dinhtrung (license 776)

(closes issue #15626)
Reported by: dinhtrung
Patches:
      say.c.diff uploaded by dinhtrung (license 776)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@237050 f38db490-d61c-443f-a65b-d21fe96a405b
2009-12-30 22:30:21 +00:00
transnexus 37a23f3377 1. Updated for OSP Toolkit 3.6.0.
2. Added service type ported number query.
3. Formated code.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@236756 f38db490-d61c-443f-a65b-d21fe96a405b
2009-12-29 10:59:55 +00:00
tilghman fb644319d1 Use recommended option, not deprecated option.
(closes issue #16515)
 Reported by: ManChicken


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@236667 f38db490-d61c-443f-a65b-d21fe96a405b
2009-12-28 17:37:46 +00:00
seanbright e6d6f98a5b Merged revisions 236509 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r236509 | seanbright | 2009-12-28 07:43:36 -0500 (Mon, 28 Dec 2009) | 12 lines
  
  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: http://svn.digium.com/svn/asterisk/trunk@236510 f38db490-d61c-443f-a65b-d21fe96a405b
2009-12-28 12:44:58 +00:00
dvossel 566562afc1 QUEUE_MEMBER(..., ready) counts only ready agents, not free agents wrapping up
The QUEUE_MEMBER dialplan function can return total members,
logged-in members and "free" members count. A member is counted
as "free" immediately after his call ends, even though its wrap-up
time, if specified in queues.conf, has not yet expired, and the
queue will not actually route a call to it.

This Patch introduces a new "ready" option that only counts
free agents no longer in the wrap up time period.

(closes issue #16240)
Reported by: kkm
Patches:
      appqueue-memberfun-readyoption-trunk.diff uploaded by kkm (license 888)
Tested by: kkm, dvossel


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@236308 f38db490-d61c-443f-a65b-d21fe96a405b
2009-12-23 19:14:05 +00:00
dvossel 2125013a5f update CHANGES to reflect new 'R' app_queue option plus a minor optimization to the feature patch
(issue #16384)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@236306 f38db490-d61c-443f-a65b-d21fe96a405b
2009-12-23 18:45:54 +00:00
dvossel 73d1a699c3 new parameter 'R' to the Queue application
The 'R' argument stops moh and indicates ringing once the agent is
ringing.  This allows the person in the queue to know their call
is potentially about to be answered.

(closes issue #16384)
Reported by: haakon
Patches:
      new_app_queue.c.patch uploaded by haakon (license 880)
Tested by: haakon, loloski, dvossel


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@236304 f38db490-d61c-443f-a65b-d21fe96a405b
2009-12-23 18:39:37 +00:00
tilghman ef50431e9d AGI may be invoked from outside the dialplan
(closes issue #16510)
 Reported by: atis
 Patches: 
       20091223__issue16510.diff.txt uploaded by tilghman (license 14)
 Tested by: atis


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@236300 f38db490-d61c-443f-a65b-d21fe96a405b
2009-12-23 18:25:27 +00:00
tilghman b2eaaff6e8 Actually use tmp for something (brings trunk back into sync with 1.6 branches).
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@236183 f38db490-d61c-443f-a65b-d21fe96a405b
2009-12-23 02:52:30 +00:00
alecdavis 66093136f6 app_dial optional parameter to option 'r' to allow play indication from indications.conf
(closes issue #14504)
  Reported by: alecdavis
  Tested by: alecdavis,jsmith
  Patch
	 app_dial.play_ring_indications.diff7.txt uploaded by alecdavis (license 585)



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@235740 f38db490-d61c-443f-a65b-d21fe96a405b
2009-12-19 08:59:31 +00:00
kpfleming c495daa3ce spandsp does in fact support V.17 modulation at 14.4 kilobits per second,
so we should generate T38MaxBitRate of 14400 (even though that doesn't really
affect the FAX transmission much at all)



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@235010 f38db490-d61c-443f-a65b-d21fe96a405b
2009-12-15 14:35:46 +00:00
alecdavis 211684784d Support option 'n', as applications like Playback, Background etc.
Suggested on asterisk-dev as trivial application change.
 
Reported by: alecdavis
Tested by: alecdavis


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@234976 f38db490-d61c-443f-a65b-d21fe96a405b
2009-12-15 07:18:31 +00:00
alecdavis d2b7fda497 fixes escape to extensions 'o' and 'a', for digits '0' and '*'
(closes issue #16437)
Reported by: alecdavis
Tested by: alecdavis
Patch
	extension_o_a_fix.diff.txt uploaded by alecdavis (license 585)



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@234893 f38db490-d61c-443f-a65b-d21fe96a405b
2009-12-15 02:29:50 +00:00
alecdavis 6cb3e6142f ast_stream_and_wait(chan,dir-usingkeypad) didn't capture the dialled DTMF.
(closes issue #16409)
  Reported by: alecdavis
  Tested by: alecdavis
  Patch
	bug_16409.diff.txt uploaded by alecdavis (license 585)



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@234855 f38db490-d61c-443f-a65b-d21fe96a405b
2009-12-15 00:54:44 +00:00
tilghman e503798c9f Allow greetings-only mailboxes for Voicemail.
(closes issue #15132)
 Reported by: floletarmo
 Patches: 
       voicemail_changes.patch uploaded by floletarmo (license 784)
       (with some additional changes by me)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@234820 f38db490-d61c-443f-a65b-d21fe96a405b
2009-12-14 23:16:00 +00:00
qwell 18a4f74b96 Allow tonelist as argument to ReadExten.
ReadExten already supported playing a tonezone from indications.conf.
It now has the ability to use a tonelist like 440+480/2000|0/4000

(closes issue #15185)
Reported by: jcovert
Patches:
      app_readexten.c.patch uploaded by jcovert (license 551)
Tested by: qwell
Patch modified by me, to maintain backwards compatibility.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@234776 f38db490-d61c-443f-a65b-d21fe96a405b
2009-12-14 21:32:03 +00:00
jpeeler 9e5f61485c Merged revisions 234379 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r234379 | jpeeler | 2009-12-11 16:37:21 -0600 (Fri, 11 Dec 2009) | 11 lines
  
  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: http://svn.digium.com/svn/asterisk/trunk@234380 f38db490-d61c-443f-a65b-d21fe96a405b
2009-12-11 23:17:09 +00:00
jpeeler 85b106c45c Add audio announcement option to app_page
As described in the CHANGES file:
* MeetMe has a new option 'G' to play an announcement before joining a
  conference.
* Page has a new option 'A(x)' which will playback an announcement 
  simultaneously to all paged phones (and optionally excluding the caller's one 
  using the new option 'n') before the call is bridged.

To add the new option to meetme, the conference flag options had to be extended 
to 64 bits.

(closes issue #14365)
Reported by: dferrer
Patches:
      page_announce.patch uploaded by dferrer (license 525)
      modified by me

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


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@234173 f38db490-d61c-443f-a65b-d21fe96a405b
2009-12-10 17:31:23 +00:00
diruggles 464b0269fa Fix TCP Client interface
Fix a couple of very minor bugs that prevent the socket client from working. The wrong set of properties were used in one place and the size of the address variable isn't set if the host name is an ip address. Also includes a fix for a bug that was introduced previously.

(closes issue #16121)
Reported by: thedavidfactor
Tested by: thedavidfactor

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


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@233545 f38db490-d61c-443f-a65b-d21fe96a405b
2009-12-07 19:48:14 +00:00
dvossel 1a3af8a472 .m3u support for Mp3Player app
(closes issue #14823)
Reported by: macli
Patches:
      app_mp3.diff1 uploaded by macli (license )
Tested by: macli, dvossel



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@233234 f38db490-d61c-443f-a65b-d21fe96a405b
2009-12-04 20:19:53 +00:00
dvossel 7b37dfc9da changes penaltymemberslimit to use scanf for config value parsing
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@233197 f38db490-d61c-443f-a65b-d21fe96a405b
2009-12-04 18:55:21 +00:00
dvossel c5a9de130e new queue option, penaltymemberslimit, disregards penalty on too few queue members when enabled
(closes issue #14559)
Reported by: fiddur
Patches:
      trunk-199584-1.diff uploaded by fiddur (license 678)
Tested by: fiddur, dvossel


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@233196 f38db490-d61c-443f-a65b-d21fe96a405b
2009-12-04 18:48:31 +00:00
dvossel 3e936b42a8 Merged revisions 233116 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r233116 | dvossel | 2009-12-04 11:21:34 -0600 (Fri, 04 Dec 2009) | 6 lines
  
  document and rename strip_control() in app_voicemail
  
  (closes issue #16291)
  Reported by: wdoekes
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@233121 f38db490-d61c-443f-a65b-d21fe96a405b
2009-12-04 17:22:31 +00:00
tilghman dc26f23367 Add pagerdateformat, to allow shorter dates for SMS messages.
(closes issue #16263)
 Reported by: andrew
 Patches: 
       pagerdate.patch uploaded by andrew (license 240)
       (with a slight modification by me)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@232916 f38db490-d61c-443f-a65b-d21fe96a405b
2009-12-03 22:13:56 +00:00
tilghman 76c6c5584a Merged revisions 232820 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r232820 | tilghman | 2009-12-03 14:10:19 -0600 (Thu, 03 Dec 2009) | 8 lines
  
  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: http://svn.digium.com/svn/asterisk/trunk@232854 f38db490-d61c-443f-a65b-d21fe96a405b
2009-12-03 20:47:07 +00:00
transnexus c167b4ab3e Replaced two deprecated functions of OSP Toolkit.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@232771 f38db490-d61c-443f-a65b-d21fe96a405b
2009-12-03 08:47:38 +00:00
transnexus 6539a1c31b Added custom info support.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@232738 f38db490-d61c-443f-a65b-d21fe96a405b
2009-12-03 03:56:14 +00:00
jpeeler 986b92971b Extend voicemail to allow IMAP folders to be specified per mailbox.
Previously only possible per context, new option called imapfolder.

(closes issue #14298)
Reported by: jablko
Patches: 
      patch-200906202 uploaded by jablko (license 675)



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@232700 f38db490-d61c-443f-a65b-d21fe96a405b
2009-12-03 00:38:03 +00:00
diruggles 0b213d0b00 Prevent double closing of FDs by EIVR
This caused a problem when asterisk was under heavy load and running both AGI and EIVR applications.
EIVR would close an FD at which point it would be considered freed and be used by a new AGI instance
the second close would then close the FD now in use by AGI.

(closes issue #16305)
Reported by: diLLec
Tested by: thedavidfactor, diLLec

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


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@232587 f38db490-d61c-443f-a65b-d21fe96a405b
2009-12-02 22:17:22 +00:00
file 41e4f7d707 Add an option to Record which enables a mode where any DTMF digit will terminate recording.
(closes issue #15436)
Reported by: Vince
Patches:
      app_record.diff uploaded by Vince (license 823)
Tested by: dbrooks


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@232442 f38db490-d61c-443f-a65b-d21fe96a405b
2009-12-02 18:35:47 +00:00
file 5be37a1bcb Merged revisions 232355 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r232355 | file | 2009-12-02 13:04:52 -0400 (Wed, 02 Dec 2009) | 5 lines
  
  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: http://svn.digium.com/svn/asterisk/trunk@232356 f38db490-d61c-443f-a65b-d21fe96a405b
2009-12-02 17:06:54 +00:00
mnicholson 60d1d4196a Merged revisions 231614 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r231614 | mnicholson | 2009-11-30 15:11:44 -0600 (Mon, 30 Nov 2009) | 8 lines
  
  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: http://svn.digium.com/svn/asterisk/trunk@231688 f38db490-d61c-443f-a65b-d21fe96a405b
2009-11-30 21:31:55 +00:00
mnicholson 8531434222 Reverted 231616
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@231637 f38db490-d61c-443f-a65b-d21fe96a405b
2009-11-30 21:21:29 +00:00
mnicholson 7b0b50b4da Merged revisions 231614 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r231614 | mnicholson | 2009-11-30 15:11:44 -0600 (Mon, 30 Nov 2009) | 8 lines
  
  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: http://svn.digium.com/svn/asterisk/trunk@231616 f38db490-d61c-443f-a65b-d21fe96a405b
2009-11-30 21:13:42 +00:00
dvossel e9f38c8cb5 app_queue crashes randomly, often during call-transfers
This patch adds a ref to the queue_ent object's parent call_queue
in queue_exec() so the call_queue won't be destroyed
while the the queue_ent still holds a pointer to it.

(closes issue 0015686)
Tested by: dvossel, aragon




git-svn-id: http://svn.digium.com/svn/asterisk/trunk@231556 f38db490-d61c-443f-a65b-d21fe96a405b
2009-11-30 18:55:07 +00:00
transnexus cd32ec38a5 1. Modified exported variable names.
2. Added destination port support.
3. Added new protocols.
4. Added QoS.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@231401 f38db490-d61c-443f-a65b-d21fe96a405b
2009-11-27 08:47:18 +00:00
tilghman 5eaba09d98 Found a few places where queue refcounts were counted incorrectly. Also add debug statements.
(closes issue #15982, closes issue #15984)
 Reported by: atis
 Patches: 
       20091111__issue15982.diff.txt uploaded by tilghman (license 14)
 Tested by: atis


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@231134 f38db490-d61c-443f-a65b-d21fe96a405b
2009-11-24 20:31:28 +00:00
mnicholson 37e372ea62 Add an option to app_followme to disable the "please hold" announcement.
(closes issue #14155)
Reported by: junky
Patches:
      M14555-trunk.diff uploaded by junky (license 177) (modified)
Tested by: junky


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@230964 f38db490-d61c-443f-a65b-d21fe96a405b
2009-11-23 22:37:39 +00:00
diruggles 01b456e553 Fix/Implement error events for non-existing files
also include a better cmd define for S command

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


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@230584 f38db490-d61c-443f-a65b-d21fe96a405b
2009-11-20 17:28:01 +00:00
dvossel abe842330c Merged revisions 230508 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r230508 | dvossel | 2009-11-19 15:22:46 -0600 (Thu, 19 Nov 2009) | 10 lines
  
  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: http://svn.digium.com/svn/asterisk/trunk@230509 f38db490-d61c-443f-a65b-d21fe96a405b
2009-11-19 21:26:21 +00:00
diruggles cf4ff5141c Basic cleanup of ExternalIVR: cleaned up argument parsing; implemented good coding practices where applicable; replaced most notice level logging with verbose logging; replaced warning messages that terminated with error messages; fixed memory leak identified by russellb
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@230438 f38db490-d61c-443f-a65b-d21fe96a405b
2009-11-19 14:53:58 +00:00
kpfleming 5b063ffef9 Fix another buglet in T.38 session teardown at the end of FAX sessions.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@230381 f38db490-d61c-443f-a65b-d21fe96a405b
2009-11-16 16:40:25 +00:00
kpfleming 7872126dea Ensure that only one end of a T.38 session initiates teardown at completion.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@230343 f38db490-d61c-443f-a65b-d21fe96a405b
2009-11-16 12:51:59 +00:00
transnexus cc53f9a318 1. Added SIP Diversion support.
2. Fixed compile warning for UUID.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@230314 f38db490-d61c-443f-a65b-d21fe96a405b
2009-11-16 01:49:41 +00:00
tilghman 317ea2e45d Display a list of channel variables in each channel-oriented event.
(Closes AST-33)
Reviewboard:	https://reviewboard.asterisk.org/r/368/


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@230111 f38db490-d61c-443f-a65b-d21fe96a405b
2009-11-13 20:42:03 +00:00
file 58f16a0044 Store the cause code that is returned when trying to create a channel in ChanIsAvail in the
AVAILCAUSECODE dialplan variable instead of overwriting the device state in AVAILSTATUS.

(closes issue #14426)
Reported by: macli


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@229970 f38db490-d61c-443f-a65b-d21fe96a405b
2009-11-13 17:22:47 +00:00
transnexus 83a24475c2 Added full number portability parameter support.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@229788 f38db490-d61c-443f-a65b-d21fe96a405b
2009-11-13 03:16:39 +00:00
dbrooks 060cd853ac Flags not initialized in app_softhangup.c, causing undefined behavior
Trivial patch [kobaz] to initialize an ast_flags = {0}

(closes issue #16129)
Reported by: kobaz


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@229460 f38db490-d61c-443f-a65b-d21fe96a405b
2009-11-11 18:13:56 +00:00
tilghman a95833c332 When GOSUB is invoked within an AGI, it may not exit correctly.
(closes issue #16216)
 Reported by: atis
 Patches: 
       20091110__atis_work.diff.txt uploaded by tilghman (license 14)
 Tested by: atis


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@229351 f38db490-d61c-443f-a65b-d21fe96a405b
2009-11-10 21:22:50 +00:00
mnicholson d41ff717eb Add the 'relative-periodic-announce' option to app_queue to allow for calculating the time of announcments from the end of the previous announcment rather than from the beginning.
(closes issue #15260)
Reported by: tonils


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@228947 f38db490-d61c-443f-a65b-d21fe96a405b
2009-11-09 16:28:31 +00:00
tilghman 87daacf0e3 Yet another error message in the dialplan (thanks, rmudgett/russellb)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@228196 f38db490-d61c-443f-a65b-d21fe96a405b
2009-11-05 22:12:45 +00:00
tilghman feeca11e8c MEETME_INFO should not return a literal error message to the dialplan.
(closes issue #15450)
 Reported by: JimVanM
 Patches: 
       meetmeinfopatch.diff.txt uploaded by dbrooks (license 790)
 Tested by: JimVanM


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@228191 f38db490-d61c-443f-a65b-d21fe96a405b
2009-11-05 21:24:21 +00:00
jpeeler 39a676a838 Fix the fix for chanspy option o
In 224178, I assumed the uploaded patch was correct as it had received positive
feedback. The flags were being checked in the incorrect location. Upon testing
the fix this time it was also found that the flags from the dialplan weren't
being copied to the chanspy_translation_helper.

(closes issue #16167)
Reported by: marhbere



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@228189 f38db490-d61c-443f-a65b-d21fe96a405b
2009-11-05 21:23:06 +00:00
tilghman 2d94b4609d Don't crash if no arguments are passed.
(closes issue #16119)
 Reported by: thedavidfactor


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@228015 f38db490-d61c-443f-a65b-d21fe96a405b
2009-11-05 17:08:02 +00:00
mnicholson b30cbb1a91 Added the 'a' option to app dial and modified app_dial to set the answertime when the called channel answers.
This change causes answertime to be correct even if the called channel hangs up during an announcement triggered by the A() option.

(closes issue #15936)
Reported by: falves11
Patches:
      dial-macro-billsec-fix1.diff uploaded by mnicholson (license 96)
      dial-caller-answer1.diff uploaded by mnicholson (license 96)
Tested by: falves11, mnicholson


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@227897 f38db490-d61c-443f-a65b-d21fe96a405b
2009-11-04 21:39:33 +00:00
mnicholson 25af22c924 Merged revisions 227827 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r227827 | mnicholson | 2009-11-04 14:52:27 -0600 (Wed, 04 Nov 2009) | 10 lines
  
  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: http://svn.digium.com/svn/asterisk/trunk@227829 f38db490-d61c-443f-a65b-d21fe96a405b
2009-11-04 21:03:33 +00:00
tilghman 3bacd4082e Expand codec bitfield from 32 bits to 64 bits.
Reviewboard: https://reviewboard.asterisk.org/r/416/


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@227580 f38db490-d61c-443f-a65b-d21fe96a405b
2009-11-04 14:05:12 +00:00
tilghman 6c1dc06922 Don't crash when state_interface is NULL.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@227509 f38db490-d61c-443f-a65b-d21fe96a405b
2009-11-04 03:15:10 +00:00
mnicholson 899c3fed76 This patch adds a sequence field to CDRs that can be combined with the linkedid or uniqueid field to uniquely identify a CDR.
(closes issue #15180)
Reported by: Nick_Lewis
Patches:
      cdr-sequence10.diff uploaded by mnicholson (license 96)
Tested by: mnicholson


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@227435 f38db490-d61c-443f-a65b-d21fe96a405b
2009-11-03 21:21:09 +00:00
file 930620c029 Add support for using a hint when configuring a state interface using the format hint:<extension>@<context>.
(closes issue #15168)
Reported by: p_lindheimer
Patches:
      queue_extenstate5_1.4.svn.patch uploaded by GameGamer43 (license 894)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@227424 f38db490-d61c-443f-a65b-d21fe96a405b
2009-11-03 21:16:14 +00:00
lmadsen 51baadc56b Change warning message to debug message.
app_controlplayback outputs a warning, when in fact it is normal.

(closes issue #16071)
Reported by: atis
Patches:
      controlplayback_warning.patch uploaded by atis (license 242)

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@227368 f38db490-d61c-443f-a65b-d21fe96a405b
2009-11-03 19:48:53 +00:00
file ea8276040c Merged revisions 226889 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r226889 | file | 2009-11-02 14:08:11 -0400 (Mon, 02 Nov 2009) | 11 lines
  
  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: http://svn.digium.com/svn/asterisk/trunk@226890 f38db490-d61c-443f-a65b-d21fe96a405b
2009-11-02 18:08:54 +00:00
dvossel 226347511b SIP TCP/TLS: move client connection setup/write into tcp helper thread, various related locking/memory fixes.
What this patch fixes
1.Moves sip TCP/TLS connection setup into the TCP helper thread:
  Connection setup takes awhile and before this it was being
  done while holding the monitor lock.
2.Moves TCP/TLS writing to the TCP helper thread:  Through the
  use of a packet queue and an alert pipe, the TCP helper thread
  can now be woken up to write data as well as read data.
3.Locking error: sip_xmit returned an XMIT_ERROR without giving
  up the tcptls_session lock.  This lock has been completely removed
  from sip_xmit and placed in the new sip_tcptls_write() function.
4.Memory leak:  When creating a tcptls_client the tls_cfg was alloced
  but never freed unless the tcptls_session failed to start.  Now the
  session_args for a sip client are an ao2 object which frees the
  tls_cfg on destruction.
5.Pointer to stack variable: During sip_prepare_socket the creation
  of a client's ast_tcptls_session_args was done on the stack and
  stored as a pointer in the newly created tcptls_session.  Depending
  on the events that followed, there was a slight possibility that
  pointer could have been accessed after the stack returned.  Given
  the new changes, it is always accessed after the stack returns
  which is why I found it.

Notable code changes
1.I broke tcptls.c's ast_tcptls_client_start() function into two
  functions.  One for creating and allocating the new tcptls_session,
  and a separate one for starting and handling the new connection.
  This allowed me to create the tcptls_session, launch the helper
  thread, and then establish the connection within the helper thread.
2.Writes to a tcptls_session are now done within the helper thread.
  This is done by using an alert pipe to wake up the thread if new
  data needs to be sent.  The thread's sip_threadinfo object contains
  the alert pipe as well as the packet queue.
3.Since the threadinfo object contains the alert pipe, it must now be
  accessed outside of the helper thread for every write (queuing of a
  packet).  For easy lookup, I moved the threadinfo objects from a
  linked list to an ao2_container.

(closes issue #13136)
Reported by: pabelanger
Tested by: dvossel, whys

(closes issue #15894)
Reported by: dvossel
Tested by: dvossel

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



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@225445 f38db490-d61c-443f-a65b-d21fe96a405b
2009-10-22 19:55:51 +00:00
tilghman ebf4490c90 Permit storage of voicemail secrets in a separate file, located within the spool directory.
(closes issue #14276)
 Reported by: klaus3000
 Patches: 
       app_voicemail.c-svn-trunk-r214898.txt uploaded by klaus3000 (license 65)
 Tested by: jamesgolovich


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@225406 f38db490-d61c-443f-a65b-d21fe96a405b
2009-10-22 19:10:04 +00:00
tilghman 3c27a56e3e Merged revisions 225105 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r225105 | tilghman | 2009-10-21 11:02:12 -0500 (Wed, 21 Oct 2009) | 4 lines
  
  Fix documentation for ast_softhangup() and correct the misuse thereof.
  (closes issue #16103)
   Reported by: majorbloodnok
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@225360 f38db490-d61c-443f-a65b-d21fe96a405b
2009-10-22 17:11:23 +00:00
kpfleming 4f428997ca Finish implementaton of astobj2 OBJ_MULTIPLE, and convert ast_channel_iterator to use it.
This patch finishes the implementation of OBJ_MULTIPLE in astobj2 (the
case where multiple results need to be returned; OBJ_NODATA mode
already was supported). In addition, it converts ast_channel_iterators
(only the targeted versions, not the ones that iterate over all
channels) to use this method.

During this work, I removed the 'ao2_flags' arguments to the
ast_channel_iterator constructor functions; there were no uses of that
argument yet, there is only one possible flag to pass, and it made the
iterators less 'opaque'. If at some point in the future someone really
needs an ast_channel_iterator that does not lock the container, we can
provide constructor(s) for that purpose.

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



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@225244 f38db490-d61c-443f-a65b-d21fe96a405b
2009-10-21 21:08:47 +00:00
tilghman 0d9493012f Apparently, I don't need to specify the ".so" suffix to get a match
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@225102 f38db490-d61c-443f-a65b-d21fe96a405b
2009-10-21 15:42:47 +00:00
tilghman 3814937448 Turn on DENOISE filter for all conference participants.
(Fixes SWP-238)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@225048 f38db490-d61c-443f-a65b-d21fe96a405b
2009-10-21 15:21:30 +00:00
file 810aa2890d Merged revisions 224565 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r224565 | file | 2009-10-19 16:47:50 -0300 (Mon, 19 Oct 2009) | 5 lines
  
  Do not attempt early media bridging (ie: direct RTP setup) if options are enabled that should prevent it.
  
  (closes issue #14763)
  Reported by: cupotka
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@224567 f38db490-d61c-443f-a65b-d21fe96a405b
2009-10-19 19:49:09 +00:00
tilghman 551392732a Allow ODBC storage to be queried with multiple mailboxes, and remove multiple goto's.
This corrects an issue reported on the -users list.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@224448 f38db490-d61c-443f-a65b-d21fe96a405b
2009-10-19 00:05:56 +00:00
jpeeler 3531d342bf Readd removed ability to allow listening to one side of the call in app_chanspy
(Option o)

(closes issue #15675)
Reported by: john8675309
Patches:
      issue15675patchtrunk.txt uploaded by dbrooks (license 790)
Tested by: jgutierrez on users list:
 http://lists.digium.com/pipermail/asterisk-users/2009-October/239155.html


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@224178 f38db490-d61c-443f-a65b-d21fe96a405b
2009-10-15 15:57:14 +00:00
twilson cf73e6b22f Revert inadvertant code commit to app_originate
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@223875 f38db490-d61c-443f-a65b-d21fe96a405b
2009-10-13 01:58:09 +00:00
twilson 0e46ff9d32 Fix handling of notification calls w/ the dialing api
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@223874 f38db490-d61c-443f-a65b-d21fe96a405b
2009-10-13 01:51:46 +00:00
jpeeler a29053887d Merged revisions 223804 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r223804 | jpeeler | 2009-10-12 18:12:50 -0500 (Mon, 12 Oct 2009) | 8 lines
  
  Ensure ringing continues for branched calls after progress is received
  
  While waiting for an answer, don't send progress for branched calls
  for which ringing was sent.
  
  (closes issue #15028)
  Reported by: fnordian
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@223832 f38db490-d61c-443f-a65b-d21fe96a405b
2009-10-12 23:48:09 +00:00
kpfleming ab9e4d6141 Remove automatic switching from T.38 to voice mode in chan_sip.
chan_sip has some code to automatically switch from T.38 mode to voice mode when
a voice frame is written to the channel while it is in T.38 mode; this was
intended to handle the situation when a FAX transmission has ended and the channel
is not yet hung up, but is causing problems at the beginning of FAX sessions as
well when there are still voice frames 'in flight' at the time the T.38 negotiation
completes. This patch removes the automatic switchover, and changes app_fax to
explicitly switch off T.38 mode when the FAX transmission process ends.

(closes issue #16025)
Reported by: jamicque


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@223652 f38db490-d61c-443f-a65b-d21fe96a405b
2009-10-12 14:25:29 +00:00
kpfleming a5d47ad2dd Initiate T.38 switchover when acting as called party, regardless of FAX direction.
SendFAX() and ReceiveFAX() can be given options to indicate whether they should
act as the calling or called party; this mode should be used to decide whether
to initiate a switchover to T.38, not the direction that the FAX transfer will
take place.

(closes issue #16039)
Reported by: jamicque


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@223330 f38db490-d61c-443f-a65b-d21fe96a405b
2009-10-09 20:58:44 +00:00
mmichelson 16b21b562a Fix potential memory leaks.
ABE-1998



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@223211 f38db490-d61c-443f-a65b-d21fe96a405b
2009-10-09 18:13:57 +00:00
kpfleming e299cf0653 Recorded merge of revisions 222152 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r222152 | kpfleming | 2009-10-05 20:16:36 -0500 (Mon, 05 Oct 2009) | 20 lines
  
  Fix ao2_iterator API to hold references to containers being iterated.
  
  See Mantis issue for details of what prompted this change.
  
  Additional notes:
  
  This patch changes the ao2_iterator API in two ways: F_AO2I_DONTLOCK
  has become an enum instead of a macro, with a name that fits our
  naming policy; also, it is now necessary to call
  ao2_iterator_destroy() on any iterator that has been
  created. Currently this only releases the reference to the container
  being iterated, but in the future this could also release other
  resources used by the iterator, if the iterator implementation changes
  to use additional resources.
  
  (closes issue #15987)
  Reported by: kpfleming
  
  Review: https://reviewboard.asterisk.org/r/383/
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@222176 f38db490-d61c-443f-a65b-d21fe96a405b
2009-10-06 01:24:24 +00:00
mnick fcc65f93ca Prevents from division by zero
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@221436 f38db490-d61c-443f-a65b-d21fe96a405b
2009-09-30 21:15:01 +00:00
seanbright ae274885e7 Modify VoiceMailMain()'s a() argument to allow mailboxes to be specified by name.
(closes issue #14740)
Reported by: pj
Patches:
      issue14740_09022009.diff uploaded by seanbright (license 71)
Tested by: seanbright, lmadsen


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@221090 f38db490-d61c-443f-a65b-d21fe96a405b
2009-09-30 15:11:21 +00:00
seanbright 225f472801 Clarify documentation for VoiceMailMain()'s a() option.
We require box numbers, not names as the documentation implies.
(issue #14740)
Reported by: pj
Patches:
      __20090729-app_voicemail-documentation.patch uploaded by lmadsen (license 10)
Tested by: seanbright, lmadsen


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@221085 f38db490-d61c-443f-a65b-d21fe96a405b
2009-09-30 14:47:58 +00:00
mnicholson a0a9ce4a16 Fix options 'm' and 's'. They were swapped in the code. Also document the fact that app_confbridge does not automatically answer the channel.
(closes issue #15964)
Reported by: shrift


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@220904 f38db490-d61c-443f-a65b-d21fe96a405b
2009-09-29 19:49:02 +00:00
jpeeler 68dac7d7c4 Make deletion of temporary greetings work properly with IMAP_STORAGE
When imapgreetings was set to yes, the message was being deleted but wasn't
actually being expunged. When imapgreetings was set to no, the file based
message was not being deleted at all. All good now!

(closes issue #14949)
Reported by: noahisaac
Patches:
      vm_tempgreeting_removal.patch uploaded by noahisaac (license 748), 
      modified by me


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@220833 f38db490-d61c-443f-a65b-d21fe96a405b
2009-09-29 16:58:29 +00:00
jpeeler 4e9238c881 Add bridge related dial flags to the bridge app
Most of the functionality here is gained simply by setting the feature flag
on the bridge config. However, the dial limit functionality has been moved from
app_dial to the features code and has been made public so both app_dial and
the bridge app can use it.

(closes issue #13165)
Reported by: tim_ringenbach
Patches:
      app_bridge_options_r138998.diff uploaded by tim ringenbach (license 540),
      modified by me


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@220344 f38db490-d61c-443f-a65b-d21fe96a405b
2009-09-24 20:29:51 +00:00
tilghman a0a179b39a Merged revisions 220288 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r220288 | tilghman | 2009-09-24 14:39:41 -0500 (Thu, 24 Sep 2009) | 6 lines
  
  Implicitly sending a progress signal breaks some applications.
  Call Progress() in your dialplan if you explicitly want progress to be sent.
  (Reverts change 216430, closes issue #15957)
  Reported by: Pavel Troller on the Asterisk-Dev mailing list
  http://lists.digium.com/pipermail/asterisk-dev/2009-September/039897.html
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@220289 f38db490-d61c-443f-a65b-d21fe96a405b
2009-09-24 19:41:02 +00:00
tilghman 35bf72ba3a Fix two possible crashes, one only in 1.6.1 and one in 1.6.1 forward.
(closes issue #15739)
 Reported by: DLNoah, jeffg
 Patches: 
       20090914__issue15739.diff.txt uploaded by tilghman (license 14)
       20090922__issue15739.diff.txt uploaded by tilghman (license 14)
 Tested by: DLNoah, jeffg


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@219987 f38db490-d61c-443f-a65b-d21fe96a405b
2009-09-24 07:39:44 +00:00
tilghman 701d6f46ce Merged revisions 219816 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r219816 | tilghman | 2009-09-22 16:37:03 -0500 (Tue, 22 Sep 2009) | 10 lines
  
  When IMAP variables were changed during a reload, Voicemail did not use the new values.
  This change introduces a configuration version variable, which ensures that
  connections with the old values are not reused but are allowed to expire
  normally.
  (closes issue #15934)
   Reported by: viniciusfontes
   Patches: 
         20090922__issue15934.diff.txt uploaded by tilghman (license 14)
   Tested by: viniciusfontes
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@219818 f38db490-d61c-443f-a65b-d21fe96a405b
2009-09-22 21:43:22 +00:00
tilghman 4fce81f48a Missing value setting line for maxsecs/maxmessage
(closes issue #15696)
 Reported by: fhackenberger
 Patches: 
       maxsecs.patch uploaded by fhackenberger (license 592)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@219412 f38db490-d61c-443f-a65b-d21fe96a405b
2009-09-18 13:54:51 +00:00
seanbright 805af36f64 Get this compiling under dev-mode.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@219230 f38db490-d61c-443f-a65b-d21fe96a405b
2009-09-17 16:25:38 +00:00
tilghman a679fc0bd5 Add the 'E' option to exit ChanSpy, once the single channel it spied upon hangs up.
In addition, there's a bit of cleanup to the arguments and documentation, in which
I discovered that the last feature added to this application duplicated an option
(oops!) and changed that option so that it now works.
(closes issue #14909)
 Reported by: junky
 Patches: 
       __20090901-spy_hangup_trunk.diff uploaded by lmadsen (license 10)
 Tested by: amilcar, junky, flujan, lmadsen


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@219105 f38db490-d61c-443f-a65b-d21fe96a405b
2009-09-17 00:58:10 +00:00
tilghman 1d9adcb648 Merged revisions 218730 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r218730 | tilghman | 2009-09-15 17:27:41 -0500 (Tue, 15 Sep 2009) | 6 lines
  
  If the user enters the same password as before, don't signal an error when the change does nothing.
  (closes issue #15492)
   Reported by: cbbs70a
   Patches: 
         20090713__issue15492.diff.txt uploaded by tilghman (license 14)
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@218731 f38db490-d61c-443f-a65b-d21fe96a405b
2009-09-15 22:33:10 +00:00
tilghman 8e007e9068 Merged revisions 218577 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r218577 | tilghman | 2009-09-15 11:01:17 -0500 (Tue, 15 Sep 2009) | 9 lines
  
  Ensure FollowMe sets language in channels it creates.
  Also, not in the original bug report, but related fields are accountcode and
  musicclass, and the inheritance of datastores.
  (closes issue #15372)
   Reported by: Romik
   Patches: 
         20090828__issue15372.diff.txt uploaded by tilghman (license 14)
   Tested by: cervajs
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@218579 f38db490-d61c-443f-a65b-d21fe96a405b
2009-09-15 16:04:41 +00:00
tilghman f22238a005 Recorded merge of revisions 218331 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r218331 | tilghman | 2009-09-14 14:16:35 -0500 (Mon, 14 Sep 2009) | 4 lines
  
  Don't say "Please try again" if we don't give the user another chance to try again.
  (issue #15055, SWP-129)
   Reported by: jthurman
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@218361 f38db490-d61c-443f-a65b-d21fe96a405b
2009-09-14 19:29:48 +00:00
mnicholson c847a454ce Merged revisions 218223 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r218223 | mnicholson | 2009-09-14 09:53:57 -0500 (Mon, 14 Sep 2009) | 8 lines
  
  Ensure we don't pickup ourselves when doing pickup by exten.
  
  (closes issue #15100)
  Reported by: lmsteffan
  Patches:
        (modified) pickup.patch uploaded by lmsteffan (license 779)
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@218224 f38db490-d61c-443f-a65b-d21fe96a405b
2009-09-14 14:57:23 +00:00
tilghman e989bdfb6d Merged revisions 217989 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r217989 | tilghman | 2009-09-10 18:52:22 -0500 (Thu, 10 Sep 2009) | 3 lines
  
  Don't ring another channel, if there's not enough time for a queue member to answer.
  (Fixes AST-228)
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@217990 f38db490-d61c-443f-a65b-d21fe96a405b
2009-09-10 23:54:51 +00:00
seanbright 1946a33958 Fix compilation of app_meetme.
Reported by ebroad in #asterisk-bugs


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@217286 f38db490-d61c-443f-a65b-d21fe96a405b
2009-09-08 22:17:08 +00:00
tilghman e51388aa4c Merged revisions 217156 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r217156 | tilghman | 2009-09-08 15:01:45 -0500 (Tue, 08 Sep 2009) | 7 lines
  
  When MOH is playing on the channel, announcements sent through the conference are not heard.
  (closes issue #14588)
   Reported by: voipas
   Patches: 
         20090716__issue14588__2.diff.txt uploaded by tilghman (license 14)
   Tested by: lmadsen, twisted, tilghman
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@217199 f38db490-d61c-443f-a65b-d21fe96a405b
2009-09-08 20:28:41 +00:00
seanbright 0c2710adad Use ast_free() instead of free().
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@216593 f38db490-d61c-443f-a65b-d21fe96a405b
2009-09-04 19:29:02 +00:00
oej 6a9ca399c1 Merged revisions 216430 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r216430 | oej | 2009-09-04 15:45:48 +0200 (Fre, 04 Sep 2009) | 27 lines

Make apps send PROGRESS control frame for early media and fix too early media issue in SIP

The issue at hand is that some legacy (dying) PBX systems send empty media frames on PRI
links *before* any call progress. The SIP channel receives these frames and by default
signals 183 Session progress and starts sending media. This will cause phones to 
play silence and ignore the later 180 ringing message. A bad user experience.

The fix is twofold:
- We discovered that asterisk apps that support early media ("noanswer") did not send
  any PROGRESS frame to indicate early media. Fixed.
- We introduce a setting in chan_sip so that users can disable any relay of media frames
  before the outbound channel actually indicates any sort of call progress.
  In 1.4, 1.6.0 and 1.6.1, this will be disabled for backward compatibility. In later versions
  of Asterisk, this will be enabled. We don't assume that it will change your Asterisk
  phone experience - only for the better.

We encourage third-party application developers to make sure that if they have applications
that wants to send early media, add a PROGRESS control frame transmission to make sure that
all channel drivers actually will start sending early media. This has not been the default
in Asterisk previous to this patch, so if you got inspiration from our code, you need to
update accordingly. Sorry for the trouble and thanks for your support.

This code has been running for a few months in a large scale installation (over 250
servers with PRI and/or BRI links to old PBX systems). 
That's no proof that this is an excellent patch, but, well, it's tested :-)


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@216438 f38db490-d61c-443f-a65b-d21fe96a405b
2009-09-04 14:02:34 +00:00
dhubbard fe5bade2f7 Merged revisions 215270 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r215270 | dhubbard | 2009-09-01 18:04:52 -0500 (Tue, 01 Sep 2009) | 12 lines
  
  Use strrchr() so SoftHangup will correctly truncate multi-hyphen channel names
  
  In general channel names are in the form Foo/Bar-Z, but the channel name
  could have multiple hyphens and look like Foo/B-a-r-Z.  Use strrchr to
  truncate the channel name at the last hyphen.
  
  (closes issue #15810)
  Reported by: dhubbard
  Patches:
        dw-softhangup-1.4.patch uploaded by dhubbard (license 733)
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@215338 f38db490-d61c-443f-a65b-d21fe96a405b
2009-09-02 01:16:59 +00:00
jpeeler 0f52f549ee Fix storage of greetings when using IMAP_STORAGE
The store macro was not getting called preventing storage of IMAP greetings
at all. This has been corrected along with fixing checking if the
imapgreetings option is turned on to store the greeting in IMAP. Lastly,
the attachment filename was incorrectly using the full path instead of just
the basename, which was causing problems with retrieval of the greeting.

(closes issue #14950)
Reported by: noahisaac

(closes issue #15729)
Reported by: lmadsen


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@213833 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-24 16:43:57 +00:00
kpfleming cbd7edb7c8 Ensure that realtime mailboxes properly report status on subscription.
This patch modifies app_voicemail's response to mailbox status subscriptions
(via the internal event system) to ensure that a subscription triggers an
explicit poll of the mailbox, so the subscriber can get an immediate cached
event with that status. Previously, the cache was only populated with the
status of non-realtime mailboxes.

(closes issue #15717)
Reported by: natmlt



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@213697 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-21 21:39:51 +00:00
tilghman 910260c619 Add original position, when logging a caller entering a queue.
(closes issue #15146)
 Reported by: arabe
 Patches: 
       asterisk-trunk.patch uploaded by arabe (license 786)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@213414 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-20 22:13:26 +00:00
jpeeler d7460ab190 Fix greeting retrieval from IMAP
Properly check for the current voicemail state and if it doesn't exist,
create it.

(closes issue #14597)
Reported by: wtca
Patches:
      14597_v2.patch uploaded by mmichelson (license 60)
Tested by: jpeeler



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@213404 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-20 21:33:11 +00:00
jpeeler ada2a88d85 Merged revisions 213283 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r213283 | jpeeler | 2009-08-20 14:53:34 -0500 (Thu, 20 Aug 2009) | 2 lines
  
  Make all the symbols for the C-client callbacks global
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@213284 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-20 19:56:14 +00:00
dvossel ce45a171bb Merged revisions 213103 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r213103 | dvossel | 2009-08-19 16:18:37 -0500 (Wed, 19 Aug 2009) | 8 lines
  
  Fixes memory leak caused by incorrectly freeing mixmonitor
  
  (closes issue #15699)
  Reported by: edantie
  Patches:
        mixmonitor.patch uploaded by edantie (license 862)
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@213113 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-19 21:21:00 +00:00
oej 2df678ca71 Small doxygen changes
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@212844 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-18 18:57:28 +00:00
tilghman ff93d9c264 Check the return value of opendir(3), or we may crash.
(closes issue #15720)
 Reported by: tobias_e


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@212627 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-17 19:57:42 +00:00
mnicholson fb6378f77d Merged revisions 211953 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r211953 | mnicholson | 2009-08-12 18:04:02 -0500 (Wed, 12 Aug 2009) | 10 lines
  
  This patch adds additional checking when generating queue log TRANSFER events.
  
  The additional checks prevent generation of false TRANSFER events in certain situations.
  
  (closes issue #14536)
  Reported by: aragon
  Patches:
        queue-log-xfer-fix1.diff uploaded by mnicholson (license 96)
  Tested by: aragon, mnicholson
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@211957 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-12 23:14:36 +00:00
tilghman d1ec1aa57d AST-2009-005
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@211539 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-10 19:20:57 +00:00
tilghman 1a4692a9fa Check for NULL frame, before dereferencing pointer.
(closes issue #15617)
 Reported by: rain


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@211232 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-09 07:11:22 +00:00
tilghman b68a676f22 Merged revisions 211038 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r211038 | tilghman | 2009-08-07 13:16:28 -0500 (Fri, 07 Aug 2009) | 14 lines
  
  QUEUE_MEMBER_LIST _really_ wants the interface name, not the membername.
  
  This is a partial revert of revision 82590, which was an attempted cleanup,
  but in reality, it broke QUEUE_MEMBER_LIST, which has always been intended
  as a method by which component interfaces could be queried from the queue.
  Membername isn't useful here, because that field cannot be used to obtain
  further information about the member.  See the documentation on
  QUEUE_MEMBER_LIST, RemoveQueueMember, QUEUE_MEMBER_PENALTY, and the various
  AMI commands which take a member argument for further justification.
  (closes issue #15664)
   Reported by: rain
   Patches: 
         app_queue-queue_member_list.diff uploaded by rain (license 327)
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@211040 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-07 18:17:41 +00:00
tilghman e32af8f0cf Allow Gosub to recognize quote delimiters without consuming them.
(closes issue #15557)
 Reported by: rain
 Patches: 
       20090723__issue15557.diff.txt uploaded by tilghman (license 14)
 Tested by: rain
 
Review: https://reviewboard.asterisk.org/r/316/


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@210908 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-06 21:29:26 +00:00
kpfleming 48e7babc54 Minor improvements to app_fax.
This patch makes some small changes to handle watchdog timeouts in a better way,
and also uses a 'cleaner' method of including the spandsp header files.

(closes issue #14769)
Reported by: andrew
Patches:
      app_fax-20090406.diff uploaded by andrew (license 240)
      v1-14769.patch uploaded by dimas (license 88)
Tested by: freh, deti, caspy, dimas, sgimeno, Dovid


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@210777 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-06 16:07:15 +00:00
russell 66f240af8e Merged revisions 209838 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r209838 | russell | 2009-08-01 05:59:05 -0500 (Sat, 01 Aug 2009) | 13 lines
  
  Modify how Playtones() is used in Milliwatt() to resolve gain issue.
  
  When Milliwatt() was changed internally to use Playtones() so that the proper
  tone was used, it introduced a drop in gain in the output signal.  So, use
  the playtones API directly and specify a volume argument such that the output
  matches the gain of the original Milliwatt() code.
  
  (closes issue #15386)
  Reported by: rue_mohr
  Patches:
        issue_15386.rev2.diff uploaded by russell (license 2)
  Tested by: rue_mohr
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@209839 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-01 11:02:07 +00:00
dbrooks 041c6da20c Fixes numerous spelling errors. Patch submitted by alecdavis.
(closes issue #15595)
Reported by: alecdavis



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@209554 f38db490-d61c-443f-a65b-d21fe96a405b
2009-07-30 16:07:05 +00:00
kpfleming 067e38493a Cleanup T.38 negotiation changes.
Convert LOG_NOTICE messages about T.38 negotiation in debug level 1 messages,
clean up some looping logic, and correct an improper use of ast_free() for 
freeing an ast_frame.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@209279 f38db490-d61c-443f-a65b-d21fe96a405b
2009-07-27 21:43:36 +00:00
kpfleming 930c5befcc Make T.38 switchover in ReceiveFAX synchronous.
In receive mode, if the channel that ReceiveFAX is running on supports T.38,
we should *always* attempt to switch T.38, rather than listening for an incoming
CNG tone and only triggering on that. The channel may be using a low-bitrate
codec that distorts the CNG tone, the sending FAX endpoint may not send CNG
at all, or there could be a variety of other reasons that we don't detect it,
but in all those cases if T.38 is available we certainly want to use it.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@209256 f38db490-d61c-443f-a65b-d21fe96a405b
2009-07-27 21:21:43 +00:00
dbrooks 3a578de20c Fixing typos. Replaces "recieved" with "received" and "initilize" with "initialize"
(closes issue #15571)
Reported by: alecdavis



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@209098 f38db490-d61c-443f-a65b-d21fe96a405b
2009-07-27 16:33:50 +00:00
russell f6d7bef81b Merged revisions 208592 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r208592 | russell | 2009-07-24 13:38:24 -0500 (Fri, 24 Jul 2009) | 7 lines
  
  Do not log an ERROR if autoservice_stop() returns -1.
  
  This does not indicate an error.  A return of -1 just means that the channel
  has been hung up.
  
  (reported in #asterisk-dev)
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@208593 f38db490-d61c-443f-a65b-d21fe96a405b
2009-07-24 18:42:32 +00:00
kpfleming aa4f4e142d Rework of T.38 negotiation and UDPTL API to address interoperability problems
Over the past couple of months, a number of issues with Asterisk
negotiating (and successfully completing) T.38 sessions with various
endpoints have been found. This patch attempts to address many of
them, primarily focused around ensuring that the endpoints'
MaxDatagram size is honored, and in addition by ensuring that T.38
session parameter negotiation is performed correctly according to the
ITU T.38 Recommendation.

The major changes here are:

1) T.38 applications in Asterisk (app_fax) only generate/receive IFP
packets, they do not ever work with UDPTL packets. As a result of
this, they cannot be allowed to generate packets that would overflow
the other endpoints' MaxDatagram size after the UDPTL stack adds any
error correction information. With this patch, the application is told
the maximum *IFP* size it can generate, based on a calculation using
the far end MaxDatagram size and the active error correction mode on
the T.38 session. The same is true for sending *our* MaxDatagram size
to the remote endpoint; it is computed from the value that the
application says it can accept (for a single IFP packet) combined with
the active error correction mode.

2) All treatment of T.38 session parameters as 'capabilities' in
chan_sip has been removed; these parameters are not at all like
audio/video stream capabilities. There are strict rules to follow for
computing an answer to a T.38 offer, and chan_sip now follows those
rules, using the desired parameters from the application (or channel)
that wants to accept the T.38 negotiation.

3) chan_sip now stores and forwards ast_control_t38_parameters
structures for tracking 'our' and 'their' T.38 session parameters;
this greatly simplifies negotiation, especially for pass-through
calls.

4) Since T.38 negotiation without specifying parameters or receiving
the final negotiated parameters is not very worthwhile, the
AST_CONTROL_T38 control frame has been removed. A note has been added
to UPGRADE.txt about this removal, since any out-of-tree applications
that use it will no longer function properly until they are upgraded
to use AST_CONTROL_T38_PARAMETERS.

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



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@208464 f38db490-d61c-443f-a65b-d21fe96a405b
2009-07-23 21:57:24 +00:00
qwell 271c225a41 Restore an int declaration on PPC platforms.
This x is one crafty little bugger...
It was used for 2 different things (one of which was only done on PPC) in 1.4.
One of the uses were removed in trunk, and with it went the declaration.

(closes issue #14038)
Reported by: ffloimair


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@208113 f38db490-d61c-443f-a65b-d21fe96a405b
2009-07-22 21:43:57 +00:00
mmichelson 77cb25555d Fix the crash in directed pickups. For real this time.
A shallow pointer copy was causing an ast_party_connected_line
structure to be freed multiple times, thus causing a crash.

(closes issue #15441)
Reported by: lmsteffan
Patches:
      15441.patch uploaded by mmichelson (license 60)
Tested by: lmsteffan	  



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@208017 f38db490-d61c-443f-a65b-d21fe96a405b
2009-07-22 14:35:01 +00:00
mmichelson 3e37e9940a Okay, that didn't fix the crash. It didn't really do anything useful.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@207551 f38db490-d61c-443f-a65b-d21fe96a405b
2009-07-20 23:08:56 +00:00
mmichelson 834f975588 Initialize connected line instance when doing a directed pickup.
This helps to prevent a crash which may occur due to our freeing
garbage due to a struct being uninitialized.




git-svn-id: http://svn.digium.com/svn/asterisk/trunk@207522 f38db490-d61c-443f-a65b-d21fe96a405b
2009-07-20 22:13:34 +00:00
tilghman 20f1a24aae Flag field in wrong position.
Reported by "Hoggins!" on asterisk-dev list.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@207317 f38db490-d61c-443f-a65b-d21fe96a405b
2009-07-18 04:16:44 +00:00
tilghman 951ab4cce7 Document all meetme realtime fields, and in the process, make some field lengths more consistent.
(closes issue #15493)
 Reported by: lasko
 Patches: 
       meetme.diff uploaded by lasko (license 833)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@206567 f38db490-d61c-443f-a65b-d21fe96a405b
2009-07-14 20:14:45 +00:00
mmichelson f18341c680 I AM A TERRIBLE PERSON
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@206490 f38db490-d61c-443f-a65b-d21fe96a405b
2009-07-14 17:03:58 +00:00
mmichelson c84930e937 Reset the sentringing indication when redirects occur.
If a redirecting control frame is processed or a call forward occurs,
we need to reset the sentringing flag so that we can send another ringing
indication to the phone that may contain a connected line update.

AST-164



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@206455 f38db490-d61c-443f-a65b-d21fe96a405b
2009-07-14 16:09:38 +00:00
tilghman 04c929358d Remove reference to non-existent help file
(closes issue #15427)
 Reported by: brushtyler
 Patches: 
       app_voicemail.c.diff uploaded by brushtyler (license 821)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@206185 f38db490-d61c-443f-a65b-d21fe96a405b
2009-07-13 16:23:07 +00:00
kpfleming 321a959986 Eliminate extraneous LOG_DEBUG messages generated by app_fax.
The transmit_audio() and transmit_t38() functions in app_fax have processing
loops that are supposed to wait for frames to arrive on the channel and then
handle them, but they also have short timeouts so that the loops can have
watchdog timers and do other required processing. This commit changes the loops
to not actually call ast_read() and attempt to process the returned frame
unless a frame actually arrived, eliminating hundreds of LOG_DEBUG messages
and slightly improving performance.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@205780 f38db490-d61c-443f-a65b-d21fe96a405b
2009-07-10 16:00:44 +00:00
kpfleming 6f95546080 Fix some remaining T.38 negotiation problems in app_fax.
Revision 205696 did not quite fix all the issues with the T.38 negotiation
changes and app_fax; this patch corrects them, along with a couple of other
minor issues.

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



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@205770 f38db490-d61c-443f-a65b-d21fe96a405b
2009-07-10 15:28:11 +00:00
kpfleming 358f6c409e Repair ability of SendFAX/ReceiveFAX to respond to T.38 switchover.
Recent changes in T.38 negotiation in Asterisk caused these applications to
not respond when the other endpoint initiated a switchover to T.38; this
resulted in the T.38 switchover failing, and the FAX attempt to be made
using an audio connection, instead of T.38 (which would usually cause the
FAX to fail completely).

This patch corrects this problem, and the applications will now correctly
respond to the T.38 switchover request. In addition, the response will include
the appopriate T.38 session parameters based on what the other end offered
and what our end is capable of.

(closes issue #14849)
Reported by: afosorio


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@205696 f38db490-d61c-443f-a65b-d21fe96a405b
2009-07-09 21:20:23 +00:00
mmichelson 34effc32a8 Merged revisions 205349 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r205349 | mmichelson | 2009-07-08 14:26:13 -0500 (Wed, 08 Jul 2009) | 14 lines
  
  Prevent phantom calls to queue members.
  
  If a caller were to hang up while a periodic announcement or position
  were being said, the return value for those functions would incorrectly
  indicate that the caller was still in the queue. With these changes,
  the problem does not occur.
  
  (closes issue #14631)
  Reported by: latinsud
  Patches:
        queue_announce_ghost_call2.diff uploaded by latinsud (license 745)
  	  (with small modification from me)
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@205350 f38db490-d61c-443f-a65b-d21fe96a405b
2009-07-08 19:26:55 +00:00
seanbright 4ac63de1f7 A bunch of CODING_GUIDELINES related fixes. Not even close to done.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@204622 f38db490-d61c-443f-a65b-d21fe96a405b
2009-07-01 16:06:18 +00:00
seanbright f9702f7111 Remove an unnecessary #ifdef
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@204561 f38db490-d61c-443f-a65b-d21fe96a405b
2009-06-30 20:39:39 +00:00
tilghman cff1504cc5 Recorded merge of revisions 204469 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r204469 | tilghman | 2009-06-30 13:23:35 -0500 (Tue, 30 Jun 2009) | 11 lines
  
  "tw" is the language specification for Twi (from Ghana) not Taiwanese.
  (closes issue #15346)
   Reported by: volivier
   Patches: 
         20090617__issue15346__1.4.diff.txt uploaded by tilghman (license 14)
         20090617__issue15346__trunk.diff.txt uploaded by tilghman (license 14)
         20090617__issue15346__1.6.0.diff.txt uploaded by tilghman (license 14)
         20090617__issue15346__1.6.1.diff.txt uploaded by tilghman (license 14)
         20090617__issue15346__1.6.2.diff.txt uploaded by tilghman (license 14)
   Tested by: volivier
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@204470 f38db490-d61c-443f-a65b-d21fe96a405b
2009-06-30 18:36:24 +00:00
seanbright b85bdd32a7 A few const changes in app_meetme.c that I noticed while browsing the source.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@204355 f38db490-d61c-443f-a65b-d21fe96a405b
2009-06-29 23:50:46 +00:00
seanbright a8fb5ac279 Get app_rpt compiling again. I doubt seriously that it actually works.
Also, the code in this module is horrendous and we should remove it from the
tree.  I'm not sure who is supposed to be maintaning this thing, but they
clearly are not.  I don't see the sense of leaving it in the main tree.  If it
lives *anywhere* it should be in addons.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@204143 f38db490-d61c-443f-a65b-d21fe96a405b
2009-06-29 18:44:44 +00:00
russell 23cd457af9 Add 's' option to ChanSpy, which makes the app exit when no channels are left to spy on.
(closes issue #14594)
Reported by: JimDickenson
Patches:
      chanspy.diff uploaded by JimDickenson (license 710)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@203842 f38db490-d61c-443f-a65b-d21fe96a405b
2009-06-26 21:48:41 +00:00
dbrooks 6092a3511b Fixing voicemail's error in checking max silence vs min message length
Max silence was represented in milliseconds, yet vmminsecs (minmessage) was represented
as seconds.

Also, the inequality was reversed. The warning, if triggered, was "Max silence should 
be less than minmessage or you may get empty messages", which should have been logged 
if max silence was greater than minmessage, but the check was for less than.

Also, conforming if statement to coding guidelines.

closes issue #15331)
Reported by: markd

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


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@203721 f38db490-d61c-443f-a65b-d21fe96a405b
2009-06-26 20:13:51 +00:00
file c26b86e763 Improve T.38 negotiation by exchanging session parameters between application and channel.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@203699 f38db490-d61c-443f-a65b-d21fe96a405b
2009-06-26 19:27:24 +00:00
russell ac3b35dcc7 Merge the new Channel Event Logging (CEL) subsystem.
CEL is the new system for logging channel events.  This was inspired after
facing many problems trying to represent what is possible to happen to a call
in Asterisk using CDR records.  For more information on CEL, see the built in
HTML or PDF documentation generated from the files in doc/tex/.

Many thanks to Steve Murphy (murf) and Brian Degenhardt (bmd) for their hard
work developing this code.  Also, thanks to Matt Nicholson (mnicholson) and
Sean Bright (seanbright) for their assistance in the final push to get this
code ready for Asterisk trunk.

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


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@203638 f38db490-d61c-443f-a65b-d21fe96a405b
2009-06-26 15:28:53 +00:00
seanbright 6668be953e Fix version detection for API changes in spandsp.
(closes issue #15355)
Reported by: deuffy


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@202183 f38db490-d61c-443f-a65b-d21fe96a405b
2009-06-20 19:09:47 +00:00
tilghman addda12d75 One of the changes in 1.6.1 was to allow app_directory to use functionality
within app_voicemail for directory functions.  It is therefore no longer
necessary for app_directory to be linked against the ODBC libraries (and it
never was necessary for app_directory to be linked against IMAP, though it
was).


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@201783 f38db490-d61c-443f-a65b-d21fe96a405b
2009-06-18 20:52:36 +00:00
dvossel 7803be8ee4 fixes some memory leaks and redundant conditions
(closes issue #15269)
Reported by: contactmayankjain
Patches:
      patch.txt uploaded by contactmayankjain (license 740)
      memory_leak_stuff.trunk.diff uploaded by dvossel (license 671)
Tested by: contactmayankjain, dvossel




git-svn-id: http://svn.digium.com/svn/asterisk/trunk@201678 f38db490-d61c-443f-a65b-d21fe96a405b
2009-06-18 16:37:42 +00:00
tilghman dccc1fc38f Initialize additional variables, to prevent a possible crash.
(closes issue #15186)
 Reported by: ajohnson
 Patches: 
       20090528__issue15186.diff.txt uploaded by tilghman (license 14)
 Tested by: ajohnson


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@201531 f38db490-d61c-443f-a65b-d21fe96a405b
2009-06-17 21:31:39 +00:00
dvossel a3d46eec8c Merged revisions 201423 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r201423 | dvossel | 2009-06-17 14:28:12 -0500 (Wed, 17 Jun 2009) | 19 lines
  
  StopMixMonitor race condition (not giving up file immediately)
  
  StopMixMonitor only indicates to the MixMonitor thread to stop
  writing to the file.  It does not guarantee that the recording's
  file handle is available to the dialplan immediately after execution.
  This results in a race condition.  To resolve this, the filestream
  pointer is placed in a datastore on the channel. When StopMixMonitor
  is called, the datastore is retrieved from the channel and the
  filestream is closed immediately before returning to the dialplan.
  Documentation indicating the use of StopMixMonitor to free files
  has been updated as well.
  
  (closes issue #15259)
  Reported by: travisghansen
  Tested by: dvossel
  
  Review: https://reviewboard.asterisk.org/r/283/
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@201445 f38db490-d61c-443f-a65b-d21fe96a405b
2009-06-17 19:45:35 +00:00
kpfleming 0d442a7c2c Enable applications to enable/disable digit and tone detection.
Some applications (notably app_fax) do not need digit detection nor FAX tone
detection while they are running, and if Asterisk is using software DSPs to provide
the detection, this consumes extra CPU cycles that could be better spent on the
actual application. This patch allows applications to query and control the state
of digit and tone detection on a channel, and modifies app_fax to disable them
while the FAX operations are occurring (and re-enable digit detection afterwards).



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@201139 f38db490-d61c-443f-a65b-d21fe96a405b
2009-06-16 21:10:15 +00:00
kpfleming ea5a74f18b Merged revisions 200991 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r200991 | kpfleming | 2009-06-16 12:05:38 -0500 (Tue, 16 Jun 2009) | 11 lines
  
  Improve support for media paths that can generate multiple frames at once.
  
  There are various media paths in Asterisk (codec translators and UDPTL, primarily)
  that can generate more than one frame to be generated when the application calling
  them expects only a single frame. This patch addresses a number of those cases,
  at least the primary ones to solve the known problems. In addition it removes the
  broken TRACE_FRAMES support, fixes a number of bugs in various frame-related API
  functions, and cleans up various code paths affected by these changes.
  
  https://reviewboard.asterisk.org/r/175/
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@201056 f38db490-d61c-443f-a65b-d21fe96a405b
2009-06-16 18:54:30 +00:00
mvanbaak dff9ec720f add FILE_STORAGE to Voicemail Build Options
Voicemail can only use one storage module at the moment.
Because it's unclear that selecting one of the storage modules
in menuselect will disable filesystem storage we now have
a FILE_STORAGE option that conflicts with the other modules.

(closes issue #15333)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@200943 f38db490-d61c-443f-a65b-d21fe96a405b
2009-06-16 15:51:36 +00:00
kpfleming a2c426f29f Last batch of 'static' qualifiers for module-level global variables.
Fix up modules in the 'apps' directory, and also correct the bad example of
enum definitions in include/asterisk/app.h, which many developers followed
(thanks for reading the documentation!). In addition, add some basic usage
examples of the 'pahole' and 'pglobal' tools to the coding guidelines.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@200656 f38db490-d61c-443f-a65b-d21fe96a405b
2009-06-15 19:10:10 +00:00
kpfleming 12ab0bbe15 Redesigned 'optional API' support.
This patch provides a new implementation of the optional API support defined
in asterisk/optional_api.h; this new version provides solves compatibility
issues with the use of linker version scripts for suppressing global symbols.
In addition, there is now a functional (and tested!) implementation for Mac OS/X,
so module writers no longer need to use special tests before calling optional
API functions. All future implementations must provide these same semantics,
so that module writers can rely on them.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@200519 f38db490-d61c-443f-a65b-d21fe96a405b
2009-06-15 16:07:23 +00:00
mmichelson 94226ca1dc Fix some bad locking stemming from trying to forward a call to a non-existent
extension from a queue.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@200326 f38db490-d61c-443f-a65b-d21fe96a405b
2009-06-12 15:37:30 +00:00
mmichelson becbe9d01a Fix a potential crash from trying to access a NULL channel pointer.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@200290 f38db490-d61c-443f-a65b-d21fe96a405b
2009-06-12 14:55:07 +00:00
eliel a37f6c2e90 Move OSP* applications static documentation to XML.
Move OSP* applications static documentation to the new AstXML form.

(closes issue #15245)
Reported by: eliel
Patches:
      app_osplookup_static_conversion.txt uploaded by lmadsen (license 10)



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@199547 f38db490-d61c-443f-a65b-d21fe96a405b
2009-06-07 19:15:41 +00:00
eliel 82dc093073 Move application ExternalIVR static documentation to XML.
Move application ExternalIVR static documentation to the new AstXML form.

(issue #15245)
Reported by: eliel
Patches:
      app_externalivr.diff uploaded by eliel (license 64)



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@199514 f38db490-d61c-443f-a65b-d21fe96a405b
2009-06-07 17:29:44 +00:00
russell f63398715e Global var cleanup - constification and removing unused vars.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@199479 f38db490-d61c-443f-a65b-d21fe96a405b
2009-06-07 14:55:51 +00:00
eliel 08f4ed038a Move AGI command 'gosub' static documentation to XML.
Move AGI command 'gosub' statis documentation to the new AstXML form.

(issue #15245)
Reported by: eliel
Patches:
      app_stack_static_conversion.txt uploaded by lmadsen (license 10)
      (with minor changes by me)



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@199446 f38db490-d61c-443f-a65b-d21fe96a405b
2009-06-06 23:28:38 +00:00
eliel ef9d7f5ecf Move function MEETME_INFO documentation to XML.
Move function MEETME_INFO static documentation to the new AstXML form.

(issue #15245)
Reported by: eliel
Patches:
      app_meetme_static_conversion.txt uploaded by lmadsen (license 10)



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@199409 f38db490-d61c-443f-a65b-d21fe96a405b
2009-06-06 22:27:48 +00:00
eliel 6f5c7561af Move function MINIVMACCOUNT and MINIVMCOUNTER static documentation to XML.
Move function MINIVMACCOUNT and MINIVMCOUNTER statis documentation to the new
AstXML form.

(issue #15245)
Reported by: eliel
Patches:
      app_minivm_static_conversion.txt uploaded by lmadsen (license 10)
      (with minor changes by me)



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@199376 f38db490-d61c-443f-a65b-d21fe96a405b
2009-06-06 22:16:47 +00:00
russell 29c97659ab minor tweak
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@199372 f38db490-d61c-443f-a65b-d21fe96a405b
2009-06-06 21:42:31 +00:00
russell 63616444ba Constify a string and strip trailing whitespace.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@199370 f38db490-d61c-443f-a65b-d21fe96a405b
2009-06-06 21:40:56 +00:00
dvossel ad49e93e9b ast_call_forward() todo notes and originate flag copy.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@198954 f38db490-d61c-443f-a65b-d21fe96a405b
2009-06-03 20:30:10 +00:00
mmichelson ce47d41510 Add the ability to execute connected line interception macros.
When connected line updates are received or generated in the middle
of an application call, it is now possible to execute a macro to
manipulate the connected line data. This way, phone numbers may be
manipulated to be more presentable to users, names may be changed 
for...whatever reason, or whatever else needs to be done may be.

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

AST-165



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@198727 f38db490-d61c-443f-a65b-d21fe96a405b
2009-06-01 20:57:31 +00:00
mmichelson 0838f068ca Remove extra lock from app_queue.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@198530 f38db490-d61c-443f-a65b-d21fe96a405b
2009-06-01 14:45:43 +00:00
seanbright 962ca70083 Merged revisions 198251 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r198251 | seanbright | 2009-05-29 22:46:41 -0400 (Fri, 29 May 2009) | 8 lines
  
  Treat an empty FORWARD_CONTEXT the same way we treat a missing one.
  
  (closes issue #15056)
  Reported by: p_lindheimer
  Patches:
        05292009_bug15056.diff uploaded by seanbright (license 71)
  Tested by: p_lindheimer
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@198285 f38db490-d61c-443f-a65b-d21fe96a405b
2009-05-30 03:26:06 +00:00
lmadsen 0b7cb06db7 Update documentation in MixMonitor.
Updated the MixMonitor documentation for the 'b' option so that
it is more obvious that you must not optimize away the Local
channel when using this option.

(closes issue #14829)
Reported by: licedey
Tested by: mmichelson, licedey, lmadsen

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@197828 f38db490-d61c-443f-a65b-d21fe96a405b
2009-05-28 22:04:00 +00:00
tilghman 7e7b82276d Eliminate several needless checks and fix a few memory leaks
(closes issue #14833)
 Reported by: contactmayankjain
 Patches: 
       all_changes.patch uploaded by contactmayankjain (license 740)
       slightly modified by me


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@197616 f38db490-d61c-443f-a65b-d21fe96a405b
2009-05-28 15:35:23 +00:00
mmichelson 6553d7e59e Merged revisions 197537 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r197537 | mmichelson | 2009-05-28 09:49:13 -0500 (Thu, 28 May 2009) | 21 lines
  
  Add flags to chanspy audiohook so that audio stays in sync.
  
  There are two flags being added to the chanspy audiohook here. One
  is the pre-existing AST_AUDIOHOOK_TRIGGER_SYNC flag. With this set,
  we ensure that the read and write slinfactories on the audiohook do
  not skew beyond a certain tolerance.
  
  In addition, there is a new audiohook flag added here,
  AST_AUDIOHOOK_SMALL_QUEUE. With this flag set, we do not allow for
  a slinfactory to build up a substantial amount of audio before 
  flushing it. For this particular issue, this means that the person 
  spying on the call will hear the conversations in real time with very 
  little delay in the audio.
  
  (closes issue #13745)
  Reported by: geoffs
  Patches:
        13745.patch uploaded by mmichelson (license 60)
  Tested by: snblitz
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@197543 f38db490-d61c-443f-a65b-d21fe96a405b
2009-05-28 14:58:06 +00:00
mmichelson c1ae3106d7 Remove some redundant or unnecessary connected line-related function calls.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@196893 f38db490-d61c-443f-a65b-d21fe96a405b
2009-05-26 19:50:07 +00:00