........
r153578 | russell | 2008-11-02 00:55:46 -0500 (Sun, 02 Nov 2008) | 3 lines
Add a handy makefile target so that you can validate the documentation against the DTD
by running "make validate-docs"
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@153579 65c4cc65-6c06-0410-ace0-fbb531ad65f3
........
r153541 | eliel | 2008-11-02 02:57:02 -0200 (Sun, 02 Nov 2008) | 2 lines
Fix a typo in the name of the application.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@153542 65c4cc65-6c06-0410-ace0-fbb531ad65f3
........
r153507 | seanbright | 2008-11-02 00:14:20 -0400 (Sun, 02 Nov 2008) | 5 lines
There is a troublesome assert() in the alsa/control.h header that causes
GCC 4.3.2 to complain that the passed argument will always evaluate to
true. So to get things to compile, disable assert when building
chan_usbradio.so.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@153508 65c4cc65-6c06-0410-ace0-fbb531ad65f3
........
r153437 | russell | 2008-11-01 21:20:10 -0500 (Sat, 01 Nov 2008) | 3 lines
- Use a for loop instead of a while loop
- Get rid of an unnecessary variable
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@153438 65c4cc65-6c06-0410-ace0-fbb531ad65f3
........
r153435 | russell | 2008-11-01 21:14:19 -0500 (Sat, 01 Nov 2008) | 3 lines
Instead of doing a couple of strlen() calls each iteration of the loop, only do it once
at the beginning of the function
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@153436 65c4cc65-6c06-0410-ace0-fbb531ad65f3
........
r153403 | russell | 2008-11-01 18:46:12 -0500 (Sat, 01 Nov 2008) | 2 lines
Don't ignore the result of find_peer() when looking for a peer by IP in check_peer_ok().
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@153404 65c4cc65-6c06-0410-ace0-fbb531ad65f3
........
r153296 | seanbright | 2008-10-31 21:55:04 -0400 (Fri, 31 Oct 2008) | 3 lines
The default in chan_sip for notifyringing is yes, so update the sample
conf to reflect that.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@153297 65c4cc65-6c06-0410-ace0-fbb531ad65f3
https://origsvn.digium.com/svn/asterisk/trunk
........
r153181 | twilson | 2008-10-31 13:55:33 -0500 (Fri, 31 Oct 2008) | 5 lines
Recent CDR fixes moved execution of the 'h' exten into the bridging code, so variables that were set after ast_bridge_call was called would not show up in the 'h' exten. Added a callback function to handle setting variables, etc. from w/in the bridging code. Calls back into a nested function within the function calling ast_bridge_call
(closes issue #13793)
Reported by: greenfieldtech
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@153266 65c4cc65-6c06-0410-ace0-fbb531ad65f3
which were committed to trunk in revision 153223. I blocked that
commit from 1.6.1 since it also contained a new feature.
Note to self: Separate commits so that you don't end up with
a situation where part of a commit should be merged but part
should be blocked from stable branches.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@153225 65c4cc65-6c06-0410-ace0-fbb531ad65f3
........
r153223 | mmichelson | 2008-10-31 15:05:46 -0500 (Fri, 31 Oct 2008) | 8 lines
* Fixed timeout logic in the dialing API as setting timeouts
had no effect
* Updated dialing API documentation to indicate that timeouts
are specified in milliseconds
* Added a new timeout argument to the Page application. If time
expires, any endpoints which have not answered will be hung up.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@153224 65c4cc65-6c06-0410-ace0-fbb531ad65f3
........
r153057 | russell | 2008-10-31 04:31:10 -0500 (Fri, 31 Oct 2008) | 7 lines
Use the ast_str API call to reset the string instead of manually editing its internals
(closes issue #13816)
Reported by: eliel
Patches:
channel.c.patch uploaded by eliel (license 64)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@153058 65c4cc65-6c06-0410-ace0-fbb531ad65f3
........
r152990 | russell | 2008-10-30 15:46:17 -0500 (Thu, 30 Oct 2008) | 3 lines
Add a todo for a new timing API implementation that would work for Linux systems
as of kernel 2.6.25 and glibc 2.8
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@152991 65c4cc65-6c06-0410-ace0-fbb531ad65f3
https://origsvn.digium.com/svn/asterisk/trunk
........
r152887 | russell | 2008-10-30 14:28:06 -0500 (Thu, 30 Oct 2008) | 7 lines
Fix a bug in AST_SCHED_REPLACE_UNREF(). The reference count of the object
_must_ be increased before creating the scheduler entry. Otherwise, you
create a race condition where the reference count may hit zero and the
object can disappear out from under you. This could also would have
incorrectly decreased the reference count in the case that the scheduler
add failed.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@152900 65c4cc65-6c06-0410-ace0-fbb531ad65f3
........
r152879 | mmichelson | 2008-10-30 14:23:16 -0500 (Thu, 30 Oct 2008) | 7 lines
I just noticed this construct and thought it was
silly to have a bunch of case statements with duplicated
code in each case. Instead, just use the built-in fallthrough
capability of case statements and reduce the code to
a single instance
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@152880 65c4cc65-6c06-0410-ace0-fbb531ad65f3
https://origsvn.digium.com/svn/asterisk/trunk
........
r152877 | russell | 2008-10-30 14:21:53 -0500 (Thu, 30 Oct 2008) | 9 lines
Modify the documentation of the sip_registry struct
- Remove a comment that says that the monitor thread is the only one that
ever touches these objects. This is no longer the case with TCP. Also,
I would eventually like to get the scheduler in its own thread, so this
is just a poor assumption to make.
- Note that reference counting of these objects with respect to scheduler
entries is not complete. There are some leaked references when deleting
scheduler entries.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@152878 65c4cc65-6c06-0410-ace0-fbb531ad65f3
........
r152807 | mmichelson | 2008-10-30 11:38:19 -0500 (Thu, 30 Oct 2008) | 6 lines
After seeing another problem in #asterisk stemming from
the low default value of featuredigittimeout, I decided it
was high time to change it. I have changed the default to
2000 ms based on a suggestion from Leif Madsen.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@152808 65c4cc65-6c06-0410-ace0-fbb531ad65f3
https://origsvn.digium.com/svn/asterisk/trunk
........
r152646 | mmichelson | 2008-10-29 15:53:53 -0500 (Wed, 29 Oct 2008) | 9 lines
If there was no named defined in a voicemail.conf mailbox
entry, then app_directory would crash when attempting to
read that entry from the file. We now check for the NULL
or empty string properly so that there will be no crash.
(closes issue #13804)
Reported by: bluecrow76
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@152648 65c4cc65-6c06-0410-ace0-fbb531ad65f3
https://origsvn.digium.com/svn/asterisk/trunk
................
r152605 | murf | 2008-10-28 23:47:13 -0600 (Tue, 28 Oct 2008) | 22 lines
Merged revisions 152538 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r152538 | murf | 2008-10-28 23:19:04 -0600 (Tue, 28 Oct 2008) | 14 lines
A little documentation cross-ref between features and
dial and queue... I wasted some time (stupidly) trying
to get the one-touch parking stuff working, because it
didn't occur to me that I had to also have the corresponding
options in the dial command! Duh! (In all this time, I never
set this up before!)
So, to keep some poor fool from suffering the same fate,
I made the features.conf.sample file mention the corresponding
opts in dial/queue; and the docs for dial/app specifically
mention the corresponding decls in the feature.conf file.
I hope this doesn't spoil some vast, eternal plan...
........
................
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@152606 65c4cc65-6c06-0410-ace0-fbb531ad65f3
https://origsvn.digium.com/svn/asterisk/trunk
................
r152536 | murf | 2008-10-28 23:01:00 -0600 (Tue, 28 Oct 2008) | 57 lines
Merged revisions 152535 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r152535 | murf | 2008-10-28 22:36:32 -0600 (Tue, 28 Oct 2008) | 46 lines
The magic trick to avoid this crash is not to
try to find the channel by name in the list,
which is slow and resource consuming, but rather
to pay attention to the result codes from the
ast_bridge_call, to which I added the
AST_PBX_NO_HANGUP_PEER_PARKED value, which
now are returned when a channel is parked.
Why? because CDR's aren't generated via parking,
so nothing is needed, but if a transfer occurred,
there are critical things I need.
If you get AST_PBX_KEEPALIVE,
then don't touch the channel pointer.
If you get AST_PBX_NO_HANGUP_PEER, or
AST_PBX_NO_HANGUP_PEER_PARKED, then don't
touch the peer pointer.
Updated the several places where the results
from a bridge were not being properly obeyed,
and fixed some code I had introduced so that
the results of the bridge were not overridden
(in trunk).
All the places that previously tested for
AST_PBX_NO_HANGUP_PEER now have to check for
both AST_PBX_NO_HANGUP_PEER and AST_PBX_NO_HANGUP_PEER_PARKED.
I tested this against the 4 common parking
scenarios:
1. A calls B; B answers; A parks B; B hangs up while A is getting the parking
slot announcement, immediately after being put on hold.
2. A calls B; B answers; A parks B; B hangs up after A has been hung up, but
before the park times out.
3. A calls B; B answers; B parks A; A hangs up while B is getting the parking slot announcement, immediately after being put on hold.
4. A calls B; B answers; B parks A; A hangs up after B has been hung up, but before the park times out.
No crash.
I also ran the scenarios above against valgrind, and accesses looked good.
........
................
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@152537 65c4cc65-6c06-0410-ace0-fbb531ad65f3
https://origsvn.digium.com/svn/asterisk/trunk
................
r152369 | tilghman | 2008-10-28 12:07:39 -0500 (Tue, 28 Oct 2008) | 15 lines
Merged revisions 152368 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r152368 | tilghman | 2008-10-28 12:04:56 -0500 (Tue, 28 Oct 2008) | 8 lines
Reset all DIAL variables back to blank, in case Dial is called multiple times
per call (which could otherwise lead to inconsistent status reports).
(closes issue #13216)
Reported by: ruddy
Patches:
20081014__bug13216.diff.txt uploaded by Corydon76 (license 14)
Tested by: ruddy
........
................
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@152370 65c4cc65-6c06-0410-ace0-fbb531ad65f3
........
r152174 | tilghman | 2008-10-27 11:44:55 -0500 (Mon, 27 Oct 2008) | 2 lines
Set ARGC in subroutines with the number of arguments passed.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@152175 65c4cc65-6c06-0410-ace0-fbb531ad65f3