asterisk/asterisk.git
16 years agofix indentation of a block, and do minor simplifications at the end of
Luigi Rizzo [Sat, 4 Nov 2006 01:16:20 +0000 (01:16 +0000)]
fix indentation of a block, and do minor simplifications at the end of
another one.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47182 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agocomplete previous commit.
Luigi Rizzo [Sat, 4 Nov 2006 00:56:02 +0000 (00:56 +0000)]
complete previous commit.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47181 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agomove another block into a function.
Luigi Rizzo [Sat, 4 Nov 2006 00:50:18 +0000 (00:50 +0000)]
move another block into a function.
On passing, avoid two null-pointer string dereference
while printing messages (which are
sometimes not fatal in some platforms, but still wrong).
These two lines at least should be merged to 1.4 once i am
done with all the changes here.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47180 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agomove a large block into a separate function.
Luigi Rizzo [Sat, 4 Nov 2006 00:01:40 +0000 (00:01 +0000)]
move a large block into a separate function.
Mark with XXX a possible bug in previous code which used
the wrong source in case of a forwarded call.

the function do_forward() needs to be split further, as the initial
part is replicated in another places (with some minor differences, most likely
forgotten when updating after the copy).

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47179 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoThis fix introduced via bug 8233
Steve Murphy [Fri, 3 Nov 2006 23:27:58 +0000 (23:27 +0000)]
This fix introduced via bug 8233

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47178 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoanother small set of simplifications
Luigi Rizzo [Fri, 3 Nov 2006 23:24:21 +0000 (23:24 +0000)]
another small set of simplifications

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47177 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agochange HANDLE_CAUSE into a function.
Luigi Rizzo [Fri, 3 Nov 2006 22:36:17 +0000 (22:36 +0000)]
change HANDLE_CAUSE into a function.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47175 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoremove redundant checks
Luigi Rizzo [Fri, 3 Nov 2006 22:01:34 +0000 (22:01 +0000)]
remove redundant checks

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47170 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agostart integrating the simplifications proposed in bug 0005860,
Luigi Rizzo [Fri, 3 Nov 2006 21:51:16 +0000 (21:51 +0000)]
start integrating the simplifications proposed in bug 0005860,
as usual a bit at a time to ease locating new bugs or fixes
worth merging into other branches.

In this commit, introduce a macro, S_REPLACE, that replaces
a string possibly freeing the previous value.
In one of these places (see the comment marked XXX) the previous
code might leak memory - if so, this ought to be merged in 1.4

The macro might be worth putting in one of the global headers
(e.g. include/asterisk/strings.h) as the construct is used
in a million places in the asterisk code.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47160 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoOne has to create the path and filename in order to copy a file there. (issue #8278...
Joshua Colp [Fri, 3 Nov 2006 19:15:07 +0000 (19:15 +0000)]
One has to create the path and filename in order to copy a file there. (issue #8278 reported by davebath)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47146 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoadd a new cli/manager.conf option "debug" to enable/disable
Luigi Rizzo [Fri, 3 Nov 2006 18:53:26 +0000 (18:53 +0000)]
add a new cli/manager.conf option "debug" to enable/disable
debugging code in the manager.
At the moment the debugging code is very lightweight, if the option
is enabled manager messages also carry a sequence number and
the info where they have been generated e.g.

SequenceNumber: 10
File: chan_sip.c
Line: 11927
Func: handle_response_register

It is not worthwhile having this as a compile time option
right now, because the extra work involved at runtime is
just checking one variable.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47132 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoremove old/useless usecnt stuff
Luigi Rizzo [Fri, 3 Nov 2006 18:17:08 +0000 (18:17 +0000)]
remove old/useless usecnt stuff

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47131 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoremove old/useless usecnt stuff.
Luigi Rizzo [Fri, 3 Nov 2006 18:16:20 +0000 (18:16 +0000)]
remove old/useless usecnt stuff.
I think this module doesn't compile, anyways, because
it has not been updated to the new module interface.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47130 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoFix "core show channels" and "core show modules".
Luigi Rizzo [Fri, 3 Nov 2006 18:13:26 +0000 (18:13 +0000)]
Fix "core show channels" and "core show modules".
Not sure it applies like this to 1.4 because of
deprecate versions of the same command(s).

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47129 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agomove variable declarations to the beginning of a block.
Luigi Rizzo [Fri, 3 Nov 2006 18:10:44 +0000 (18:10 +0000)]
move variable declarations to the beginning of a block.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47128 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoblock other changes of mine already applied to trunk.
Luigi Rizzo [Fri, 3 Nov 2006 18:09:24 +0000 (18:09 +0000)]
block other changes of mine already applied to trunk.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47127 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoblock more changes of mine already applied to trunk
Luigi Rizzo [Fri, 3 Nov 2006 18:05:41 +0000 (18:05 +0000)]
block more changes of mine already applied to trunk

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47126 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoblocking 47107
Luigi Rizzo [Fri, 3 Nov 2006 18:00:31 +0000 (18:00 +0000)]
blocking 47107

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47113 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoblocking 47108
Luigi Rizzo [Fri, 3 Nov 2006 17:59:42 +0000 (17:59 +0000)]
blocking 47108

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47110 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoSave the 'From' header received in a REGISTER message so we can show it
Luigi Rizzo [Fri, 3 Nov 2006 16:59:52 +0000 (16:59 +0000)]
Save the 'From' header received in a REGISTER message so we can show it
e.g. in the Manager interface. This information is available as
a callerid (or something like that) during a call, but not when a
device is registered but silent.
It may be useful to have it available e.g. when developing a user
interface/operator panel, to map numbers to names.

experimental, so not committed to 1.4

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47093 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoremove useless usecnt stuff
Luigi Rizzo [Fri, 3 Nov 2006 12:24:08 +0000 (12:24 +0000)]
remove useless usecnt stuff

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47077 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoremove useless usecnt stuff
Luigi Rizzo [Fri, 3 Nov 2006 12:22:24 +0000 (12:22 +0000)]
remove useless usecnt stuff

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47076 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoremove useless usecnt stuff
Luigi Rizzo [Fri, 3 Nov 2006 12:21:40 +0000 (12:21 +0000)]
remove useless usecnt stuff

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47075 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoremove useless usecnt stuff
Luigi Rizzo [Fri, 3 Nov 2006 12:19:22 +0000 (12:19 +0000)]
remove useless usecnt stuff

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47074 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoremove useless usecnt handling
Luigi Rizzo [Fri, 3 Nov 2006 12:15:13 +0000 (12:15 +0000)]
remove useless usecnt handling

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47073 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoremove useless usecnt handling code
Luigi Rizzo [Fri, 3 Nov 2006 12:14:00 +0000 (12:14 +0000)]
remove useless usecnt handling code

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47072 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 47053 via svnmerge from
Tilghman Lesher [Thu, 2 Nov 2006 23:55:59 +0000 (23:55 +0000)]
Merged revisions 47053 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r47053 | tilghman | 2006-11-02 17:49:13 -0600 (Thu, 02 Nov 2006) | 2 lines

More changes making the CLI more consistent with "category verb arguments" (continuation of issue 8236)

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47054 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 47051 via svnmerge from
Tilghman Lesher [Thu, 2 Nov 2006 23:16:09 +0000 (23:16 +0000)]
Merged revisions 47051 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r47051 | tilghman | 2006-11-02 17:00:20 -0600 (Thu, 02 Nov 2006) | 2 lines

Reverse change of "show" to "list" and make several other commands more consistent with "category verb arguments"

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47052 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoLet's make application/function/hint lists read/write lists... just for kicks
Joshua Colp [Thu, 2 Nov 2006 21:40:53 +0000 (21:40 +0000)]
Let's make application/function/hint lists read/write lists... just for kicks

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47037 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoUpdates to do unblock correctly
Matthew Fredrickson [Thu, 2 Nov 2006 21:34:03 +0000 (21:34 +0000)]
Updates to do unblock correctly

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47035 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMove check for codec translators to an earlier place in the call, so we can fail...
Olle Johansson [Thu, 2 Nov 2006 20:24:10 +0000 (20:24 +0000)]
Move check for codec translators to an earlier place in the call, so we can fail gracefully (imported from 1.4)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47021 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoDisable code for not implemented functionality (T38 over RTP/TCP)
Olle Johansson [Thu, 2 Nov 2006 19:01:02 +0000 (19:01 +0000)]
Disable code for not implemented functionality (T38 over RTP/TCP)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46999 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoSure enough, some of the uses of astobj are doing recursive locking. This
Russell Bryant [Thu, 2 Nov 2006 18:34:50 +0000 (18:34 +0000)]
Sure enough, some of the uses of astobj are doing recursive locking.  This
doesn't work with rwlocks, so, this is reverted for now.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46994 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoastobj was already set up to use read and write locks. Now that we have wrappers
Russell Bryant [Thu, 2 Nov 2006 18:12:08 +0000 (18:12 +0000)]
astobj was already set up to use read and write locks.  Now that we have wrappers
for them, use them here.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46991 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoConvert translation core linked list over to read/write based one, since it spends...
Joshua Colp [Thu, 2 Nov 2006 18:01:10 +0000 (18:01 +0000)]
Convert translation core linked list over to read/write based one, since it spends most of it's time only reading.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46972 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoAdd AST_RWLIST_* set of macros which implement linked lists using read/write locks...
Joshua Colp [Thu, 2 Nov 2006 17:56:33 +0000 (17:56 +0000)]
Add AST_RWLIST_* set of macros which implement linked lists using read/write locks, the actual list manipulation is still done via the old macros.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46967 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 46965 via svnmerge from
Russell Bryant [Thu, 2 Nov 2006 17:51:56 +0000 (17:51 +0000)]
Merged revisions 46965 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r46965 | russell | 2006-11-02 12:49:54 -0500 (Thu, 02 Nov 2006) | 11 lines

Merged revisions 46964 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r46964 | russell | 2006-11-02 12:47:56 -0500 (Thu, 02 Nov 2006) | 3 lines

ignore files in a music on hold directory that begin with '.'
(issue #8249, cboie)

........

................

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46966 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoSet the AST_RWLOCK_INIT_VALUE to the PTHREAD_RWLOCK_INIT_VALUE if it is available...
Joshua Colp [Thu, 2 Nov 2006 16:51:27 +0000 (16:51 +0000)]
Set the AST_RWLOCK_INIT_VALUE to the PTHREAD_RWLOCK_INIT_VALUE if it is available, that way outside stuff can determine whether to use a constructor or deconstructor for initialization instead of using the init value.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46940 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoChanges to show blocked/unblocked states, as well as in service, out of service state
Matthew Fredrickson [Thu, 2 Nov 2006 16:50:55 +0000 (16:50 +0000)]
Changes to show blocked/unblocked states, as well as in service, out of service state

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46939 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 46937 via svnmerge from
Kevin P. Fleming [Thu, 2 Nov 2006 16:45:50 +0000 (16:45 +0000)]
Merged revisions 46937 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r46937 | kpfleming | 2006-11-02 10:45:32 -0600 (Thu, 02 Nov 2006) | 2 lines

don't send INVITE when we have determined that we can't offer any audio formats due to lack of trancoding support (or incorrect configuration)

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46938 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoI'm crazy so I will add this... pthread rwlock wrappers, along with autoconf stuff...
Joshua Colp [Thu, 2 Nov 2006 16:28:13 +0000 (16:28 +0000)]
I'm crazy so I will add this... pthread rwlock wrappers, along with autoconf stuff that detects the presence of the initializer and the ability to set the kind of lock (in our case we rather like writer preferred locks so writer starvation doesn't occur... but on something like Darwin we don't get that)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46935 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 46930 via svnmerge from
Joshua Colp [Thu, 2 Nov 2006 16:14:03 +0000 (16:14 +0000)]
Merged revisions 46930 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r46930 | file | 2006-11-02 11:06:39 -0500 (Thu, 02 Nov 2006) | 10 lines

Merged revisions 46920 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r46920 | file | 2006-11-02 11:02:27 -0500 (Thu, 02 Nov 2006) | 2 lines

Repeat after me oej: I will at least make sure my code compiles before I commit it.

........

................

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46931 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoAdd simple down event support
Matthew Fredrickson [Thu, 2 Nov 2006 16:03:12 +0000 (16:03 +0000)]
Add simple down event support

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46926 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agofind_free_chan_in_stack: cleanup buggy usage
Nadi Sarrar [Thu, 2 Nov 2006 15:47:23 +0000 (15:47 +0000)]
find_free_chan_in_stack: cleanup buggy usage

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46906 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoDon't overwrite pkt->flags (imported from 1.2/1.4)
Olle Johansson [Thu, 2 Nov 2006 15:31:53 +0000 (15:31 +0000)]
Don't overwrite pkt->flags (imported from 1.2/1.4)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46902 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agovarious whitespace changes to reduce indentation and to better conform to
Russell Bryant [Thu, 2 Nov 2006 14:15:12 +0000 (14:15 +0000)]
various whitespace changes to reduce indentation and to better conform to
formatting guidelines

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46886 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoChange the buffer used in callerid_feed() and callerid_feed_jp() to be
Russell Bryant [Thu, 2 Nov 2006 14:07:48 +0000 (14:07 +0000)]
Change the buffer used in callerid_feed() and callerid_feed_jp() to be
allocated on the stack using alloca() instead of using malloc() since
they are only used locally to these functions.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46885 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoBlocked revisions 46883 via svnmerge
Russell Bryant [Thu, 2 Nov 2006 14:03:42 +0000 (14:03 +0000)]
Blocked revisions 46883 via svnmerge

........
r46883 | russell | 2006-11-02 09:02:37 -0500 (Thu, 02 Nov 2006) | 3 lines

Add the missing call to free described in issue #8268.  Also, add a bunch of
missing calls to free in callerid_feed_jp().

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46884 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 46857 via svnmerge from
Russell Bryant [Wed, 1 Nov 2006 23:04:14 +0000 (23:04 +0000)]
Merged revisions 46857 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r46857 | russell | 2006-11-01 18:01:48 -0500 (Wed, 01 Nov 2006) | 2 lines

fix saying one hundred and two hundred in hebrew (issue #7810, eldadran)

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46863 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoAdd a couple of things to the CHANGES file
Russell Bryant [Wed, 1 Nov 2006 22:58:34 +0000 (22:58 +0000)]
Add a couple of things to the CHANGES file

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46849 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 46847 via svnmerge from
Russell Bryant [Wed, 1 Nov 2006 22:54:15 +0000 (22:54 +0000)]
Merged revisions 46847 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r46847 | russell | 2006-11-01 17:51:21 -0500 (Wed, 01 Nov 2006) | 3 lines

Fixes for cross-compilation on mips
(issue #8058, ywalther, with some modifications)

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46848 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 46845 via svnmerge from
Russell Bryant [Wed, 1 Nov 2006 22:35:52 +0000 (22:35 +0000)]
Merged revisions 46845 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r46845 | russell | 2006-11-01 17:32:12 -0500 (Wed, 01 Nov 2006) | 5 lines

Add a check in the configure script to determine whether ld is GNU ld or not.
This is needed because module embedding only works for gnu ld.  GNU ld is now
listed as a dependency for all of the module embedding options in menuselect.
(issue #8143)

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46846 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 46822 via svnmerge from
Matt O'Gorman [Wed, 1 Nov 2006 20:38:05 +0000 (20:38 +0000)]
Merged revisions 46822 via svnmerge from
https://svn.digium.com/svn/asterisk/branches/1.4

........
r46822 | mogorman | 2006-11-01 14:35:41 -0600 (Wed, 01 Nov 2006) | 2 lines

bind address support from bug 8164

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46823 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoa fix for bug 8251; the var_val needs to accept longer strings or mass confusion...
Steve Murphy [Wed, 1 Nov 2006 19:48:40 +0000 (19:48 +0000)]
a fix for bug 8251; the var_val needs to accept longer strings or mass confusion and a lot of lost time is the result

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46801 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 46780 via svnmerge from
Joshua Colp [Wed, 1 Nov 2006 18:41:49 +0000 (18:41 +0000)]
Merged revisions 46780 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r46780 | file | 2006-11-01 13:39:47 -0500 (Wed, 01 Nov 2006) | 2 lines

Force poll() emulation for Darwin to always be on. It's too broken to consider being used. This resolves the console issue OSX users have been seeing. I would have liked to autoconf this but I haven't been able to come up with a test case that works. Que sera.

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46782 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoAdd the ability to pass options to the Dial application when using the DUNDi
Russell Bryant [Wed, 1 Nov 2006 18:40:13 +0000 (18:40 +0000)]
Add the ability to pass options to the Dial application when using the DUNDi
switch in the dialplan by setting the DUNDIDIALARGS channel variable.
(issue #8084, patch by bluecrow76, with small modifications and documentation
updates)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46781 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 46778 via svnmerge from
Russell Bryant [Wed, 1 Nov 2006 18:29:05 +0000 (18:29 +0000)]
Merged revisions 46778 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r46778 | russell | 2006-11-01 13:26:35 -0500 (Wed, 01 Nov 2006) | 17 lines

Merged revisions 46776 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r46776 | russell | 2006-11-01 13:24:17 -0500 (Wed, 01 Nov 2006) | 9 lines

soxmix and Asterisk expect different file extensions for certain formats.  This
was already handled for the wav49 format.  However, it was not handled for
ulaw and alaw.  I fixed this in such a way that using the alternate extensions
for ulaw and alaw will only happen if we know we're calling soxmix, and not a
custom script defined using the MONITOR_EXEC variable.  The wav49 processing
was left alone so that external scripts will see no behavior change.
(issue #7550, reported by mnicholson, proposed patch by junky, committed fix
is a bit different)

........

................

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46779 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 46775 via svnmerge from
Joshua Colp [Wed, 1 Nov 2006 18:26:12 +0000 (18:26 +0000)]
Merged revisions 46775 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r46775 | file | 2006-11-01 13:21:34 -0500 (Wed, 01 Nov 2006) | 2 lines

It's another round of chan_iax2 fixes! Should hopefully fix the deadlock issues people have been reporting. IAXtel now has qualify turned on for 800 peers and it is handling it fine.

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46777 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoOOps. forgot to add this to CHANGES
Steve Murphy [Wed, 1 Nov 2006 18:16:28 +0000 (18:16 +0000)]
OOps. forgot to add this to CHANGES

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46774 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoThis introduces Brazilian Portuguese via 7663
Steve Murphy [Wed, 1 Nov 2006 18:14:17 +0000 (18:14 +0000)]
This introduces Brazilian Portuguese via 7663

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46773 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoCleanups suggested by Russell.
Steve Murphy [Wed, 1 Nov 2006 17:46:40 +0000 (17:46 +0000)]
Cleanups suggested by Russell.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46759 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agomove variable declaration in the middle of a block
Luigi Rizzo [Wed, 1 Nov 2006 17:09:47 +0000 (17:09 +0000)]
move variable declaration in the middle of a block

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46758 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 46744 via svnmerge from
Russell Bryant [Wed, 1 Nov 2006 16:51:26 +0000 (16:51 +0000)]
Merged revisions 46744 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r46744 | russell | 2006-11-01 11:39:09 -0500 (Wed, 01 Nov 2006) | 2 lines

Prevent an infinite loop when config processing gets to a jitterbuffer option

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46745 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agochange default return extension after parking timeout.
Matt O'Gorman [Wed, 1 Nov 2006 00:07:37 +0000 (00:07 +0000)]
change default return extension after parking timeout.
6953 with minor changes.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46732 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 46714 via svnmerge from
Kevin P. Fleming [Tue, 31 Oct 2006 22:19:08 +0000 (22:19 +0000)]
Merged revisions 46714 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r46714 | kpfleming | 2006-10-31 15:47:48 -0600 (Tue, 31 Oct 2006) | 2 lines

add an API so that translators can activate/deactivate themselves when needed

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46719 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoFix "core show translation" output. Issue #8243, patch by Damin.
Jason Parker [Tue, 31 Oct 2006 22:07:18 +0000 (22:07 +0000)]
Fix "core show translation" output.  Issue #8243, patch by Damin.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46718 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoBlocked revisions 46716 via svnmerge
Jason Parker [Tue, 31 Oct 2006 22:06:27 +0000 (22:06 +0000)]
Blocked revisions 46716 via svnmerge

........
r46716 | qwell | 2006-10-31 16:02:15 -0600 (Tue, 31 Oct 2006) | 2 lines

Fix "core show translation" output.  Issue #8243, patch by Damin.

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46717 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoremove old/useless usecount handling
Luigi Rizzo [Tue, 31 Oct 2006 18:10:21 +0000 (18:10 +0000)]
remove old/useless usecount handling

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46696 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoremove old/useless usecount stuff.
Luigi Rizzo [Tue, 31 Oct 2006 18:04:19 +0000 (18:04 +0000)]
remove old/useless usecount stuff.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46695 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoremove old/useless usecount management code.
Luigi Rizzo [Tue, 31 Oct 2006 17:58:49 +0000 (17:58 +0000)]
remove old/useless usecount management code.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46683 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoFix the new send text manager command. There is no way this could have worked.
Russell Bryant [Tue, 31 Oct 2006 15:22:28 +0000 (15:22 +0000)]
Fix the new send text manager command.  There is no way this could have worked.

- Check the channel name string length to be zero, not non-zero
- Check the message string length to be zero, not non-zero
- unlock the channel *after* calling sendtext

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46661 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoSet #define for TIMER T1 value
Olle Johansson [Tue, 31 Oct 2006 13:56:33 +0000 (13:56 +0000)]
Set #define for TIMER T1 value

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46650 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoCleaning up code
Olle Johansson [Tue, 31 Oct 2006 13:51:30 +0000 (13:51 +0000)]
Cleaning up code

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46649 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoIssue #80898 - Restoring func_enum (otmar)
Olle Johansson [Tue, 31 Oct 2006 11:01:06 +0000 (11:01 +0000)]
Issue #80898 - Restoring func_enum (otmar)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46635 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoAdd manager sendtext action. (Issue 6131, ZX81 - thanks!)
Olle Johansson [Tue, 31 Oct 2006 10:42:22 +0000 (10:42 +0000)]
Add manager sendtext action. (Issue 6131, ZX81 - thanks!)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46630 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoFix rport handling.
Olle Johansson [Tue, 31 Oct 2006 10:29:24 +0000 (10:29 +0000)]
Fix rport handling.

...where did the 1.2 properties come from, really? they're back.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46629 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years ago- If peer that register fails ACL, fail him
Olle Johansson [Tue, 31 Oct 2006 09:24:55 +0000 (09:24 +0000)]
- If peer that register fails ACL, fail him
- Remove the 1.2 props I've set by mistake earlier

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46609 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoBlock patch that only applies to 1.4
Olle Johansson [Tue, 31 Oct 2006 08:35:54 +0000 (08:35 +0000)]
Block patch that only applies to 1.4

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46584 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoTake two, using find_resource on Kevin's suggestion.
Olle Johansson [Tue, 31 Oct 2006 08:08:56 +0000 (08:08 +0000)]
Take two, using find_resource on Kevin's suggestion.
Might need better locking support, giving up if we can't get the lock. Right now,
using existing locking in find_resource

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46582 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoadd author doxygen tag (issue #8241, kshumard)
Russell Bryant [Tue, 31 Oct 2006 06:37:48 +0000 (06:37 +0000)]
add author doxygen tag (issue #8241, kshumard)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46565 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 46563 via svnmerge from
Russell Bryant [Tue, 31 Oct 2006 06:31:34 +0000 (06:31 +0000)]
Merged revisions 46563 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r46563 | russell | 2006-10-31 01:30:53 -0500 (Tue, 31 Oct 2006) | 3 lines

Start Asterisk later in the boot process to ensure it starts after stuff like
MySQL (issue #8253, Alric)

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46564 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 46561 via svnmerge from
Russell Bryant [Tue, 31 Oct 2006 06:21:40 +0000 (06:21 +0000)]
Merged revisions 46561 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r46561 | russell | 2006-10-31 01:19:56 -0500 (Tue, 31 Oct 2006) | 11 lines

Merged revisions 46560 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r46560 | russell | 2006-10-31 01:18:36 -0500 (Tue, 31 Oct 2006) | 3 lines

When handling the case where the hostname is just an IPV4 numeric address,
be sure to set the address type.  (issue #8247, alexr)

........

................

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46562 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 46558 via svnmerge from
Russell Bryant [Tue, 31 Oct 2006 06:15:12 +0000 (06:15 +0000)]
Merged revisions 46558 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r46558 | russell | 2006-10-31 01:14:13 -0500 (Tue, 31 Oct 2006) | 11 lines

Merged revisions 46557 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r46557 | russell | 2006-10-31 01:13:09 -0500 (Tue, 31 Oct 2006) | 3 lines

fix some copy/paste bugs in the checking of arguments for the
"control stream file" AGI command (issue #8255, mnicholson)

........

................

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46559 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 46554 via svnmerge from
Russell Bryant [Tue, 31 Oct 2006 06:10:59 +0000 (06:10 +0000)]
Merged revisions 46554 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r46554 | russell | 2006-10-31 00:55:07 -0500 (Tue, 31 Oct 2006) | 5 lines

Add a small tweak to the code that checks to see whether destination formats
are translatable based on the source format.  If we have already determined
that there is no translation path in one direction, don't bother checking the
other direction.

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46556 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoThese changes submitted by moy via bug 6992, to add a Dial 'End' event to asterisk...
Steve Murphy [Mon, 30 Oct 2006 23:11:55 +0000 (23:11 +0000)]
These changes submitted by moy via bug 6992, to add a Dial 'End' event to asterisk. I include some changes to astman to cover other events that have been added.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46541 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 46526 via svnmerge from
Kevin P. Fleming [Mon, 30 Oct 2006 22:27:56 +0000 (22:27 +0000)]
Merged revisions 46526 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r46526 | kpfleming | 2006-10-30 16:19:55 -0600 (Mon, 30 Oct 2006) | 3 lines

when unregistering a translator, don't rebuild the translation matrix unless needed
when filtering formats out of an offer, ensure we check for translation ability in both directions

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46529 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoshow, list, view, display... whatever.
Olle Johansson [Mon, 30 Oct 2006 21:56:48 +0000 (21:56 +0000)]
show, list, view, display... whatever.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46514 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoAdding dialplan function IFMODULE, so you can create dialplans that handle
Olle Johansson [Mon, 30 Oct 2006 21:48:41 +0000 (21:48 +0000)]
Adding dialplan function IFMODULE, so you can create dialplans that handle
various PBX installations and checks if a module is loaded before using
it.
example IFMODULE(chan_sip3.so)

issue #6671 in the bug tracker, finally gone. Thanks to mithraen for keeping
it updated.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46513 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 46511 via svnmerge from
Kevin P. Fleming [Mon, 30 Oct 2006 21:46:34 +0000 (21:46 +0000)]
Merged revisions 46511 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r46511 | kpfleming | 2006-10-30 15:46:07 -0600 (Mon, 30 Oct 2006) | 2 lines

ensure that items removed from a list are always unlinked from the list (next pointer set to NULL)

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46512 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoUpdate sip list to eventlist format.
Olle Johansson [Mon, 30 Oct 2006 21:22:41 +0000 (21:22 +0000)]
Update sip list to eventlist format.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46509 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoIssue #3930 - Add manager command for listing dialplan (coded april 2005, in bugtrack...
Olle Johansson [Mon, 30 Oct 2006 21:18:39 +0000 (21:18 +0000)]
Issue #3930 - Add manager command for listing dialplan (coded april 2005, in bugtracker since)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46508 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 46506 via svnmerge from
Joshua Colp [Mon, 30 Oct 2006 21:11:37 +0000 (21:11 +0000)]
Merged revisions 46506 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r46506 | file | 2006-10-30 16:09:13 -0500 (Mon, 30 Oct 2006) | 2 lines

Don't explicitly link in crypt as it is not used on some platforms.

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46507 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoChange name of "contact" setting to "callback" which better reflects what it
Olle Johansson [Mon, 30 Oct 2006 19:56:14 +0000 (19:56 +0000)]
Change name of "contact" setting to "callback" which better reflects what it
is to the person that configures asterisk. That we use it internally in the
contact header is a totally different story.

Still not convinced this is a good option.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46489 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoGlobals need the "global_" prefix in chan_sip, and need to be reset to default value...
Olle Johansson [Mon, 30 Oct 2006 18:34:51 +0000 (18:34 +0000)]
Globals need the "global_" prefix in chan_sip, and need to be reset to default value at reload.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46476 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 46474 via svnmerge from
Joshua Colp [Mon, 30 Oct 2006 18:17:02 +0000 (18:17 +0000)]
Merged revisions 46474 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r46474 | file | 2006-10-30 13:13:07 -0500 (Mon, 30 Oct 2006) | 2 lines

We need to lock the pvt structure during retransmission as another worker thread may be doing something as well.

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46475 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMake sure we give the linkset number, not the offset in the linksets array
Matthew Fredrickson [Mon, 30 Oct 2006 18:04:28 +0000 (18:04 +0000)]
Make sure we give the linkset number, not the offset in the linksets array

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46466 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoSmall conversion to ast_channel_unlock
Olle Johansson [Mon, 30 Oct 2006 18:02:37 +0000 (18:02 +0000)]
Small conversion to ast_channel_unlock

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46461 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoSpecify which linkset we're getting the messages from in the message
Matthew Fredrickson [Mon, 30 Oct 2006 17:32:04 +0000 (17:32 +0000)]
Specify which linkset we're getting the messages from in the message

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46459 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoIn debug mode, recognize that someone is sending zrtp, even though we
Olle Johansson [Mon, 30 Oct 2006 16:59:02 +0000 (16:59 +0000)]
In debug mode, recognize that someone is sending zrtp, even though we
can't do anything with it yet. Ideally a first step would be a
passthrough mode.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46439 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoDon't make errors when we don't need them
Matthew Fredrickson [Mon, 30 Oct 2006 16:50:22 +0000 (16:50 +0000)]
Don't make errors when we don't need them

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46436 65c4cc65-6c06-0410-ace0-fbb531ad65f3