Mark Michelson
ddc5bf5b47
Fix a small error I made in my previous commit
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@89495 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-11-21 19:27:51 +00:00
Mark Michelson
d105c24a57
Changing an inaccurate debug message to be less inaccurate. Under the circumstances, this
...
message would always report that there were 0 members available, even though that may not be true.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@89493 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-11-21 19:24:22 +00:00
Mark Michelson
891b3bab2a
Make realtime queues accessible from the QUEUE_MEMBER_COUNT function.
...
(closes issue #11271 , reported and patched by atis, with small modifications from me)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@89323 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-11-16 15:28:22 +00:00
Russell Bryant
bd5b8a4014
Update the SLAStation application to account for the case where the SLA thread
...
has a call out to the station, but the user has pressed a line button to answer
the call instead of picking up the handset. If they do, the phone sends out a
new INVITE. So, the SLAStation app must check to see if it is picking up a
ringing trunk, and ensure that the other stations stop ringing.
(reported internally, patched by me, tested by mogorman)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@89296 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-11-15 17:19:28 +00:00
Mark Michelson
dc6e3e9d5d
Reverting commit made in revision 89205 since it is unnecessary.
...
Thanks to Kevin for pointing this out
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@89241 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-11-13 16:02:02 +00:00
Mark Michelson
4155b5f984
Some sanity checking for MixMonitor. If only 1 argument is given, then the args.options
...
and args.post_process strings are uninitialized and could contain garbage. This change
handles this situation properly by only using arguments that we have parsed.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@89205 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-11-13 00:56:46 +00:00
Mark Michelson
9f5cf47a6f
I made this same adjustment in trunk to fix a bug, and it makes sense to do it in 1.4 as
...
well. If an imapfolder is specified in voicemail.conf, don't ever explicitly connect to
INBOX since it may not exist.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@89111 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-11-08 16:47:23 +00:00
Tilghman Lesher
45c16cc29b
The member refcount must be incremented, to avoid using it after deallocation.
...
A huge thanks go to lvl- for patiently providing the necessary valgrind output
that was necessary to finding this problem of memory corruption.
Reported by: lvl-
Patch by: tilghman
Closes issue #11174
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@89093 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-11-07 23:39:37 +00:00
Luigi Rizzo
a0edff2477
Rename ast_string_field_free_pool to ast_string_field_free_memory,
...
and ast_string_field_free_all to ast_string_field_reset_all
to avoid misuse (due to too similar names and an error in
documentation). Fix two related memory leaks in app_meetme.
No need to merge to trunk, different fix already applied there.
Not applicable to 1.2
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@88471 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-11-04 22:38:13 +00:00
Joshua Colp
f66e8c91ea
Fix up commit for my Zap channel with spies in Meetme fix. (thanks Tony Mountifield!)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@88026 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-11-01 13:27:37 +00:00
Joshua Colp
7ee6cdf0c7
If a Zap channel contains a spy or a spy is added take it out of the conference in kernel space and make it go through Asterisk so the spy gets audio from both sides.
...
(closes issue #10060 )
Reported by: mparker
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@87970 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-11-01 01:53:55 +00:00
Joshua Colp
06e768e60d
Return 1.4 to a state where it builds. Changing the arguments to a function and not changing where they are used is bad, mmmk?
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@87534 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-10-30 15:10:13 +00:00
BJ Weschke
c0d2b5b16d
Fix issue where the recorded name wasn't getting removed correctly.
...
(closes issue #11115 )
Reported by: davevg
Patches:
followme-v3.diff
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@87514 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-10-30 14:31:45 +00:00
Mark Michelson
a4c50fdd7b
Removing a completely unnecessary quota check from IMAP code.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@87427 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-10-29 21:06:31 +00:00
Joshua Colp
27ab9bdd82
Make sure res is a positive value before performing the check to determine whether the user stopped it or not.
...
(closes issue #11023 )
Reported by: cfc
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@86754 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-10-22 16:15:18 +00:00
Mark Michelson
222302c0a2
Account for the fact that sometimes headers may be terminated with \r\n instead of just \n
...
(closes issue #11043 , reported by yehavi)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@86694 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-10-22 14:48:46 +00:00
TransNexus OSP Development
36ffd8e75b
Fixed OSP module did not report source/devinfo IP in correct format.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@86438 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-10-19 01:45:53 +00:00
Mark Michelson
c9935ba132
If a non-existent file is specified to be played either as a periodic announcement
...
or as a hold/position announcement, the caller would be kicked out of the queue.
No longer does this happen.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@86328 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-10-18 17:38:26 +00:00
Mark Michelson
cb55155ef1
Changing the strategy field of the call_queue struct to be signed instead of unsigned,
...
since the code attempts to set the strategy to -1 if you specify a bogus strategy.
While this isn't a huge issue in 1.4, it could be a problem for someone who, say, tries
to use the roundrobin strategy in trunk (despite all the deprecation warnings in 1.4).
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@86202 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-10-17 21:39:05 +00:00
Mark Michelson
1ced2ef939
Adding deprecated warning to monitor-join option, since the plan is to
...
no longer support this in favor of monitor-type = mixmonitor
(related to issue #10885 )
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@86028 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-10-16 22:49:10 +00:00
Mark Michelson
eb154e963c
Trying to remove a non-dynamic queue member via dynamic means can lead to some
...
interesting (read nasty) situations. This patch clears up the issue by making
only dynamic queue members removable via dynamic methods.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@85958 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-10-16 21:14:34 +00:00
Russell Bryant
f192689840
Remove a pointless lock.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@85896 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-10-16 19:10:01 +00:00
Mark Michelson
661aa4ba35
Fixing a double free which happens in the statechange thread.
...
(closes issue #10987 , reported by andrew)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@85852 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-10-16 15:21:58 +00:00
Joshua Colp
ed25613860
Check to make sure a value has been given to the VMCOUNT dialplan function.
...
(closes issue #10996 )
Reported by: marsosa
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@85850 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-10-16 14:52:22 +00:00
Russell Bryant
d63883be92
Ensure that no pending state changes are leaked when the device state change
...
thread gets stopped on module unload.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@85720 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-10-15 21:10:02 +00:00
Russell Bryant
87dc20fc03
Previously, app_queue created a thread to handle every single device state
...
change. I changed this a while ago in trunk for performance reasons. However,
bug 8407 points out that it is actually a race condition, causing device state
changes to get processed in random order. So, I backported my changes from
trunk to 1.4.
(closes issue #8407 , patch provided by tim_ringenbach, committed patch by me)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@85717 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-10-15 20:59:27 +00:00
Tilghman Lesher
47b21bae6e
Don't execute a gosub if the arguments is zero-len (not just NULL)
...
Reported by davevg
Fixed by me
Closes issue #10985
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@85687 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-10-15 20:29:35 +00:00
Mark Michelson
deb480f124
A bunch of changes from sprintf to snprintf.
...
See security advisory AST-2002-022
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@85276 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-10-10 14:26:31 +00:00
Joshua Colp
3151af0015
Close voicemail message description file if duration did not meet the minimum, or else we will eventually run out of file descriptors.
...
(closes issue #10918 )
Reported by: brak2718
Patches:
vm1.4.12.1.patch uploaded by brak2718 (license 279)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@85242 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-10-10 14:14:56 +00:00
Mark Michelson
74cc6754af
Don't allocate space for queue members unless it's needed. You end up deleting dynamic members on a reload. Not good.
...
closes issue (#10879 , reported by dazza76, patched by me)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@84692 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-10-04 21:57:03 +00:00
Joshua Colp
03a7b06959
Create a duplicate of the channel's member name as the tab completion stuff will free it.
...
(closes issue #10884 )
Reported by: adamg
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@84637 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-10-04 14:51:57 +00:00
Russell Bryant
db1ab4db58
Simplify the CAN_EARLY_BRIDGE macro a bit.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@84166 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-10-01 14:24:49 +00:00
Joshua Colp
e7f6101587
Only attempt early bridging if the options given to Dial() permit it.
...
(closes issue #10861 )
Reported by: peekyb
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@84158 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-10-01 13:49:36 +00:00
Jason Parker
f1467addf7
If # is pressed after dialing an extension in DISA, stop trying to collect more digits.
...
(issue #10754 )
Reported by: atis
Patches:
app_disa.c.branch.patch uploaded by atis (license 242)
app_disa.c.trunk.patch uploaded by atis (license 242)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@83246 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-09-20 17:09:14 +00:00
Russell Bryant
47dc1101eb
The System() and TrySystem() applications can take a substantial amount of
...
time to execute while not servicing the channel. So, put the channel in
autoservice while the command is being executed.
(closes issue #10726 , reported by mnicholson)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@83179 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-09-19 19:50:48 +00:00
Joshua Colp
2187f79e54
Protect the CDR record from modification by pbx_exec so that the application data contains the Queue data.
...
(closes issue #10761 )
Reported by: snar
Patches:
app-queue-mixmonitor.patch uploaded by snar (license 245)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@83074 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-09-19 13:47:59 +00:00
Russell Bryant
0728297127
Change the description of app_flash to note how it can be a useful tool instead
...
of just saying that it is generally a worthless feature.
(Thanks to Jim Van Meggelen for pointing it out and providing the proposed text)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@82992 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-09-19 00:19:49 +00:00
Joshua Colp
88cfb003df
Initialize a variable to NULL to make the world happy.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@82961 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-09-18 23:41:02 +00:00
Mark Michelson
3d1a567df0
Moving the logic for handling an empty membername to the create_member function so that there is a common place
...
where this occurs instead of being spread out to several different places.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@82865 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-09-18 20:09:02 +00:00
Kevin P. Fleming
a809a030d9
there is no need for conditional logic to select ->interface or ->membername, snince ->membername will always be populated
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@82834 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-09-18 18:59:52 +00:00
Russell Bryant
82a6309168
Put a memset in ast_localtime() instead of a couple places in app_voicemail
...
to prevent the problem everywhere instead of just a couple of places.
(related to issue #10746 )
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@82676 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-09-17 20:16:25 +00:00
Russell Bryant
a67e593e66
Initialize some memory to fix crashes when leaving voicemail. This problem
...
was fixed by running Asterisk under valgrind.
(closes issue #10746 , reported by arcivanov, patched by me)
*** IMPORTANT NOTE: We need to check to see if this same bug exists elsewhere.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@82644 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-09-17 20:00:32 +00:00
Kevin P. Fleming
43c2cf7938
fix a couple of places where a logical member name (if specified) was not used, but instead the direct interface was listed
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@82590 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-09-17 16:33:30 +00:00
Mark Michelson
e53d7231dd
Crap, I broke the build. Fixed.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@82398 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-09-14 18:35:48 +00:00
Mark Michelson
c7b6c42ef5
Adding member name field to manager events where they were missing before
...
(closes issue #10721 , reported by snar)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@82396 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-09-14 18:28:36 +00:00
Jim Dixon
903fba1b1d
Fixed problem with changes made to cdr functionality
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@82368 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-09-14 01:24:07 +00:00
Jim Dixon
1a9fc13dbe
Added channel driver for USB Radio device and
...
support thereof.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@82366 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-09-14 00:34:13 +00:00
Mark Michelson
d6b1a0bfd6
Preemptively fixing a possible segfault. It is possible that queuename is NULL
...
(meaning pause ALL queues), so use q->name instead.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@82346 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-09-13 20:16:37 +00:00
Mark Michelson
1cf6ee98e0
Added logic to handle the unlikely case that someone has two queues with the same name.
...
Asterisk will log a warning message letting the user know that one was already defined with that
name and is it skipping all further instances. This also will work for realtime queues but in order
for that to happen, the user would have to trigger a perfectly timed reload as a realtime queue is being
looked up, which is highly unlikely (but taken care of nonetheless).
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@82326 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-09-13 16:25:59 +00:00
Dwayne M. Hubbard
e2611d2f54
remove a race condition for the creation of recordthread's, and fix a small memory leak. This closes issue# 10636
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@82286 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-09-12 20:24:24 +00:00