Commit Graph

2811 Commits

Author SHA1 Message Date
Jeff Peeler
969aac85dd Fix inprocess_container in voicemail to correctly restrict max messages.
The comparison function logic was off, so the number of sessions for a given
mailbox were not being incremented properly. This problem caused the maximum
number of messages per folder to not be respected when simultaneously leaving
multiple voicemails just below the threshold. 

These problems should be fixed by the above, but just in case:
Fixed resequence_mailbox to rely on the actual number of detected number of
files in a directory rather than just assuming only 10 messages more than the
maximum had been left. Also if more messages than the maximum are deleted they
are actually removed now.


The second purpose of this commit should have been separated out probably, but
is related to the above. Again, if the number of messages in a given voicemail
folder exceeds the maximum set limit make sure to allocate enough space for the
deleted and heard index tracking array.

A few random fixes:
There was a forgotten decrement of the inprocess count in imap_store_file.

When using IMAP storage, do not look in the directory where file based storage
messages may still reside and influence the message count.

Ensure to use only the first format in sendmail.

ABE-2516


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@293004 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-10-25 22:55:28 +00:00
Paul Belanger
c560e9994b Record priv-recordintro as sln, not gsm
This removes the gsm->sln step when transcoding
priv-recordintro.

(closes issue #18176)
Reported by: pabelanger
Patches: 
      chan_sip.diff uploaded by pabelanger (license 224)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@292411 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-10-21 00:00:51 +00:00
Jeff Peeler
c7fd3b73d3 Fix improper operator key acceptance and clean up temp recording files.
This is a fix for when pressing the operator key after recording an unavailable,
busy, name, or temporary message in mailbox options. The operator key should not
be accepted here, but should be allowed during the message recording. If the
operator key is pressed during ensure the file is saved or deleted as
apporopriate.  Also, ensure removal of temporary recorded files after an early
hang up or when message acceptance confirmation times out.

ABE-2518


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@292223 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-10-18 21:50:30 +00:00
Tilghman Lesher
e93fc235b1 When forwarding a message, a prepend means that the filesystem will always have a better copy.
(closes issue #17803)
 Reported by: dpetersen
 Patches: 
       20100923__issue17803.diff.txt uploaded by tilghman (license 14)
 Tested by: dpetersen


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@289873 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-10-02 04:42:08 +00:00
Russell Bryant
c4f3f68e43 Fix a crash in app_sms.
Since the data being passed to the generator callback is on the stack of the
SMS() application, we must ensure that the generator is stopped before the
application exits.

ABE-2587


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@289424 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-09-30 15:34:29 +00:00
Brett Bryant
3702c0cc02 Fix misvalidation of meetme pins in conjunction with the 'a' MeetMe flag.
When using the 'a' MeetMe flag and having a user and admin pin setup for your
conference, using the user pin would gain you admin priviledges. Also, when no
user pin was set, an admin pin was, the 'a' MeetMe flag wasn't used, and the
user tried to enter a conference then they were still prompted for a pin and
forced to hit #.

(closes issue #17908)
Reported by: kuj
Patches:
      pins_2.patch uploaded by kuj (license 1111)
      Tested by: kuj

      Review: [full review board URL with trailing slash]


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@287758 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-09-20 23:57:08 +00:00
Tilghman Lesher
41969111bd Blank columns should get set on reload, not ignored.
(closes issue #16893)
 Reported by: haakon
 Patches: 
       20100818__issue16893.diff.txt uploaded by tilghman (license 14)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@287386 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-09-17 21:06:03 +00:00
Jeff Peeler
a91c96ba5d whitespace fix
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@286956 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-09-15 20:20:05 +00:00
Jeff Peeler
fa2b4c0196 Ensure mailbox is not filled to capacity before doing message forwarding.
Specifically, before prompting to record a prepended message the capacity is
checked first. If the mailbox is full the extension will be reprompted.

ABE-2517


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@286941 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-09-15 20:08:52 +00:00
Brett Bryant
1811246e48 Fixes voicemail.conf issues where mailboxes with passwords that don't precede a comma would throw unnecessary error messages.
(closes issue #15726)
Reported by: 298
Patches: 
      M15726.diff uploaded by junky (license 177)
Tested by: junky

Review: [full review board URL with trailing slash]


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@285194 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-09-07 17:45:41 +00:00
Terry Wilson
a2bf7447e2 Properly detect when a sound file doesn't exist
ast_fileexists returns -1 for error and 0 for a non-existant file. The existing
code treated missing files as though they were existed.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@284881 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-09-03 16:10:23 +00:00
Russell Bryant
1c72a8ab49 Reset visible indication after answer.
(closes issue #17641)
Reported by: klaus3000
Patches:
      ast1.6.2.9-app_dial-visible_indication.patch.txt uploaded by klaus3000 (license 65)
Tested by: schmidts


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@281566 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-08-10 17:45:45 +00:00
Jean Galarneau
cf0d36226d Fix a dsp structure leak occuring when a local channel is put into a meetme
conference, then masquaraded away.
ABE-2422


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@280341 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-29 15:52:31 +00:00
Richard Mudgett
08883af231 SIP promiscuous redirect could fail to dial the redirect.
The ast_channel was created with one variable to ast_request() but the
call to ast_call() that initiates the outgoing call was using a different
variable.  The two variables are not equivalent if the call_forward string
included a channel technology specifier.  e.g., SIP/200


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@279206 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-23 21:56:44 +00:00
Tilghman Lesher
7df9bcf5e7 Delete IMAP messages in reverse order, to ensure reordering after each expunge does not cause deletion of the wrong message.
(closes issue #16350)
 Reported by: noahisaac
 Patches: 
       20100623__issue16350.diff.txt uploaded by tilghman (license 14)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@278261 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-20 22:23:13 +00:00
Paul Belanger
d9e34da4ae Total analysis time error with SIP and silence suppression
When using app_amd with SIP providers that have silence
suppression on, the iTotalTime count increases exponentially.

(closes issue #17656)
Reported by: juls


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@277182 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-16 17:10:36 +00:00
Jeff Peeler
c66d95c8e5 Make user removals and traversals thread safe in meetme.
Race conditions present in meetme involving the user list where a lack of
locking has the potential for a user to be removed during a traversal or as in
the case of the reporter after checking if the list is empty could cause a
crash. Fixing this was done by convering the userlist to an ao2 container.

(closes issue #17390)
Reported by: Vince

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@275773 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-12 20:34:51 +00:00
Matthew Nicholson
fa79e11a91 Clear the AST_CDR_FLAG_DIALED flag for channels going into the pbx via the G option in app_dial
(closes issue #17592)
Reported by: jamicque
Patches:
      G-flag-cdr-fix1.diff uploaded by mnicholson (license 96)
Tested by: jamicque, mnicholson


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@275027 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-09 16:04:21 +00:00
Matthew Nicholson
989ecebcb0 Make get_member_status return QUEUE_NO_MEMBERS instead of QUEUE_NO_REACHABLE_MEMBERS to make joinempty=no work again. This regression was introduced in 273639. Also fixed whitespace.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@274093 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-06 13:52:28 +00:00
Tzafrir Cohen
97f61244f9 Fix various typos, reported by Lintian
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@273640 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-02 15:54:17 +00:00
Tilghman Lesher
358159c2b0 If all members are paused, the wrong status is indicated.
(closes issue #17576)
 Reported by: ramonpeek
 Patches: 
       diff.txt uploaded by ramonpeek (license 266)
 Tested by: ramonpeek


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@273639 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-02 15:46:27 +00:00
Jeff Peeler
9bae102b7c Allow admin user to join conference without using admin mode and no user pin.
Configuring the conference in meetme.conf like the following:
conf => 2345,,6666 
did not prompt for pin when used without admin mode. This meant that the
conference could not be joined as an admin even if the user knew the correct
pin. The original bug report was submitted claiming that the blank user pin
should deny entry into the conference. I think a better way to handle this
would be with a feature enhancement that used the following syntax:
conf => 2345,X,6666 - where X denotes no acceptable pin allowed

(closes issue #15704)
Reported by: modelnine


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@273474 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-01 20:19:16 +00:00
Jeff Peeler
f5310e3bc7 Ensure channel placed in meetme in ringing state is properly hung up.
An outgoing channel placed in meetme while still ringing which was then hung up
would not exit meetme and the channel was not properly destroyed. Specifically
checking for this scenario by looking at the appropriate control frames resolves
the issue.

(closes issue #15871)
Reported by: Ivan
Patches: 
      meetme_congestion_trunk_v2.patch uploaded by Ivan (license 229)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@273354 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-01 15:05:43 +00:00
Matthew Nicholson
d1292255d1 Send AgentComplete manager events in the event of blind and attended transfers.
(closes issue #16819)
Reported by: elbriga
Patches:
      app_queue.diff uploaded by elbriga (license 482)



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@272367 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-06-23 22:33:51 +00:00
Paul Belanger
2f6313a1c8 First caller into a dynamic conference now enter pin once.
If MeetMe is configured to use dynamic conference
numbers, then the first caller (which creates the
conference) had to enter the PIN number twice.

(closes issue #15878)
Reported by: shawkris
Patches:
      issue15878.patch uploaded by pabelanger (license 224)
Tested by: pabelanger


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@272255 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-06-23 20:57:01 +00:00
Tilghman Lesher
28e9afee31 Backport part of revision 136715 to fix callerid in voicemail text files (IMAP only).
(closes issue #16945)
 Reported by: mneuhauser


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@272147 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-06-23 18:40:28 +00:00
Mark Michelson
a69a5d0772 Make AgentComplete message more consistent.
At times, the "Member" field was not specified during the event.
It's there now.

(closes issue #15638)
Reported by: elbriga
Patches:
      patchAppQueueAgentComplete.diff uploaded by elbriga (license 482)




git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@266004 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-05-26 18:21:10 +00:00
Matthew Nicholson
2fc3375a89 Don't mark the cdr records of unanswered queue calls with "NOANSWER". This restores the behavior prior to r258670.
(closes issue #17334)
Reported by: jvandal
Patches:
      queue-cdr-fixes1.diff uploaded by mnicholson (license 96)
Tested by: aragon, jvandal


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@265610 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-05-25 16:48:19 +00:00
Mark Michelson
ed585b5bb3 Don't hang up on a queue caller if the file we attempt to play does not exist.
This also fixes a documentation mistake in file.h that made my original attempt
to correct this problem not work correctly.

(closes issue #17061)
Reported by: RoadKill


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@265089 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-05-21 20:59:14 +00:00
Matthew Nicholson
f428d9bfdb Set quieted flag when receiving a dtmf tone during playback in speechbackground.
(closes issue #16966)
Reported by: asackheim


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@264334 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-05-19 20:01:38 +00:00
Jeff Peeler
4a168f6578 Modify directory name reading to be interrupted with operator or pound escape.
In the case of accidentally entering the wrong first three letters for the
reading, users could be very frustrated if the name listing is very long. This
allows interrupting the reading by pressing 0 or #. 0 will attempt to execute
a configured operator (o) extension and # will exit and proceed in the
dialplan.

ABE-2200


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@263769 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-05-18 18:54:58 +00:00
David Vossel
dbcb9d1577 fixes app_meetme dsp error
We attempted to detect silence after translating a frame
from signed linear.  This caused a flooding of errors.  To
resolve this the code to detect silence was moved before the
translation.

(closes issue #17133)
Reported by: jsdyer



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@262662 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-05-12 17:00:04 +00:00
Tilghman Lesher
98c114f991 Fix issue #17302 a slightly different way (mad props to Qwell)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@262321 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-05-11 17:22:07 +00:00
Jeff Peeler
2edad509ce Only allow the operator key to be accepted after leaving a voicemail.
Or rather disallow the operator key from being accepted when not offered,
such as after finishing a recording from within the mailbox options menu.

ABE-2121
SWP-1267


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@261735 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-05-06 20:10:59 +00:00
Jeff Peeler
544c49c200 Revert 261698, code in trunk leads me to believe unadvertised options are supported.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@261699 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-05-06 18:47:28 +00:00
Jeff Peeler
7fd6beb054 Remove some hidden broken code in the voicemail mailbox options menu.
After finishing a recording from within the mailbox options menu, pressing 0
exhibited strange behavior with operator=yes turned on. Pressing 0 was not
even advertised as an option and the options from the vm-saveoper prompt:
"Press 1 to accept this recording. Otherwise, please continue to hold" did
not function correctly. While this of course could be fixed, it didn't really
seem to make sense even if it was working properly.

ABE-2121
SWP-1267


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@261698 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-05-06 18:39:06 +00:00
Jeff Peeler
8e05e30a2d Voicemail transfer to operator should occur immediately, not after main menu.
There were two scenarios in the advanced options that while using the
operator=yes and review=yes options, the transfer occurred only after exiting
the main menu (after sending a reply or leaving a message for an extension).
Now after the audio is processed for the reply or message the transfer occurs
immediately as expected.

ABE-2107
ABE-2108



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@260923 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-05-04 18:46:46 +00:00
Jeff Peeler
4e6d8d2774 Do not play goodbye prompt after timeout of message review.
ABE-2124


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@259664 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-04-28 17:13:29 +00:00
Jeff Peeler
5c5677868d 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: https://origsvn.digium.com/svn/asterisk/branches/1.4@258432 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-04-21 21:45:36 +00:00
Jeff Peeler
4af3d8699b 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: https://origsvn.digium.com/svn/asterisk/branches/1.4@258029 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-04-20 16:16:33 +00:00
Jeff Peeler
f5b5f848be make app_voicemail compile with IMAP_STORAGE
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@257856 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-04-19 19:09:46 +00:00
Dwayne M. Hubbard
4f19fa6fd0 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: https://origsvn.digium.com/svn/asterisk/branches/1.4@257686 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-04-16 21:15:43 +00:00
Tilghman Lesher
91a8a41d8a When forwarding a message, ensure that prepending works correctly.
This is a regression in 1.4, only.

(closes issue #17103)
 Reported by: mglazer
 Patches: 
       20100408__issue17103.diff.txt uploaded by tilghman (license 14)
 Tested by: tilghman


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@257266 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-04-14 23:08:11 +00:00
Tilghman Lesher
498d885133 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: https://origsvn.digium.com/svn/asterisk/branches/1.4@255591 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-03-31 19:09:46 +00:00
Leif Madsen
1d9be78f12 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: https://origsvn.digium.com/svn/asterisk/branches/1.4@255503 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-03-31 17:42:58 +00:00
Russell Bryant
43393bd1a9 Resolve a number of FreeBSD build issues.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@253631 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-03-20 19:17:28 +00:00
Leif Madsen
4deaae7482 Typo found while fixing issue #16961.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@253349 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-03-18 17:57:31 +00:00
Sean Bright
85f79116ac Use ast_strlen_zero to avoid a crash when a Dial() string isn't passed to ParkAndAnnounce
(closes issue #16731)
Reported by: sebele67
Patches:
      issue16731_20100129.diff uploaded by seanbright (license 71)
Tested by: sebele67


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

(issue #16880)



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

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



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@249845 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-03-02 09:11:56 +00:00