asterisk/asterisk.git
16 years agoMake sure we don't use 32bits for a value that only requires 1 bit. Also, fix a...
Matthew Fredrickson [Fri, 10 Nov 2006 22:06:11 +0000 (22:06 +0000)]
Make sure we don't use 32bits for a value that only requires 1 bit.  Also, fix a compiler warning for one of the SS7 functions.

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

16 years agoAdd some history and fix some debug output for autodestruct.
Olle Johansson [Fri, 10 Nov 2006 21:55:31 +0000 (21:55 +0000)]
Add some history and fix some debug output for autodestruct.

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

16 years agoProper fix for adding debug...
Olle Johansson [Fri, 10 Nov 2006 21:39:58 +0000 (21:39 +0000)]
Proper fix for adding debug...

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

16 years agoMake sure we destroy dialog in case of loop
Olle Johansson [Fri, 10 Nov 2006 20:31:57 +0000 (20:31 +0000)]
Make sure we destroy dialog in case of loop

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

16 years agoCleanup imported from 1.4
Olle Johansson [Fri, 10 Nov 2006 20:25:32 +0000 (20:25 +0000)]
Cleanup imported from 1.4

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

16 years agoFine, take this.
Joshua Colp [Fri, 10 Nov 2006 20:05:31 +0000 (20:05 +0000)]
Fine, take this.

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

16 years agoA trunk that builds is a productive trunk.
Joshua Colp [Fri, 10 Nov 2006 19:51:15 +0000 (19:51 +0000)]
A trunk that builds is a productive trunk.

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

16 years agoHello compiler working, goodbye compiler warning. (fix compiler warning introduced...
Joshua Colp [Fri, 10 Nov 2006 19:42:15 +0000 (19:42 +0000)]
Hello compiler working, goodbye compiler warning. (fix compiler warning introduced from pbx_dundi optimizations)

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

16 years agoMerged revisions 47457 via svnmerge from
Joshua Colp [Fri, 10 Nov 2006 19:40:01 +0000 (19:40 +0000)]
Merged revisions 47457 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r47457 | file | 2006-11-10 14:36:25 -0500 (Fri, 10 Nov 2006) | 2 lines

Let's give this a go...

........

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

16 years agoAdd fix for 7321. Ability to hide calleridname from zapata.conf
Matthew Fredrickson [Fri, 10 Nov 2006 19:35:41 +0000 (19:35 +0000)]
Add fix for 7321.  Ability to hide calleridname from zapata.conf

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

16 years agoIssue 8336- fix support for multipart SDP (imported from 1.2/1.4). (Alphaque)
Olle Johansson [Fri, 10 Nov 2006 19:01:12 +0000 (19:01 +0000)]
Issue 8336- fix support for multipart SDP (imported from 1.2/1.4). (Alphaque)

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

16 years agoBlocked revisions 47444 via svnmerge
Russell Bryant [Fri, 10 Nov 2006 17:53:46 +0000 (17:53 +0000)]
Blocked revisions 47444 via svnmerge

........
r47444 | rizzo | 2006-11-10 12:13:34 -0500 (Fri, 10 Nov 2006) | 3 lines

grep -m is not available on BSD, so use head -1 instead

........

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

16 years agomanual merge from 1.4:
Luigi Rizzo [Fri, 10 Nov 2006 17:22:51 +0000 (17:22 +0000)]
manual merge from 1.4:
grep -m not available on bsd, use head -1 which works for all

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

16 years agoMerged revisions 47436 via svnmerge from
Tilghman Lesher [Fri, 10 Nov 2006 17:01:06 +0000 (17:01 +0000)]
Merged revisions 47436 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r47436 | tilghman | 2006-11-10 10:51:55 -0600 (Fri, 10 Nov 2006) | 2 lines

Discussion of these CLI changes resulted in more consistency (Bug 8236)

........

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

16 years agoMerged revisions 47437 via svnmerge from
Joshua Colp [Fri, 10 Nov 2006 16:55:13 +0000 (16:55 +0000)]
Merged revisions 47437 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r47437 | file | 2006-11-10 11:53:16 -0500 (Fri, 10 Nov 2006) | 2 lines

Only split up extension and context if a value exists. (issue #8332 reported by loloski)

........

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

16 years agoMerged revisions 47433 via svnmerge from
Kevin P. Fleming [Fri, 10 Nov 2006 16:38:33 +0000 (16:38 +0000)]
Merged revisions 47433 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r47433 | kpfleming | 2006-11-10 10:36:49 -0600 (Fri, 10 Nov 2006) | 2 lines

if adding a queue member is LOG_NOTICE, then removing them should be LOG_NOTICE, not LOG_DEBUG

........

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

16 years agoMerged revisions 47432 via svnmerge from
Kevin P. Fleming [Fri, 10 Nov 2006 16:37:42 +0000 (16:37 +0000)]
Merged revisions 47432 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r47432 | kpfleming | 2006-11-10 10:34:04 -0600 (Fri, 10 Nov 2006) | 2 lines

reflect addition/removal of dynamic queue members in queue_log, so that people using dialplan replacement for AgentCallbackLogin can still track login/logout (issue #7736, reported/patched by whoiswes but this commit was written by me and covers all three paths for AQM/RQM)

........

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

16 years agoRipping out bad support for 491 replies to INVITE's. Let's try again properly later.
Olle Johansson [Fri, 10 Nov 2006 13:14:44 +0000 (13:14 +0000)]
Ripping out bad support for 491 replies to INVITE's. Let's try again properly later.

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

16 years agoFix badly defined flag. Thanks fenlander!
Olle Johansson [Fri, 10 Nov 2006 12:22:44 +0000 (12:22 +0000)]
Fix badly defined flag. Thanks fenlander!

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

16 years agoSmall simplification and documentation correction.
Olle Johansson [Fri, 10 Nov 2006 12:11:06 +0000 (12:11 +0000)]
Small simplification and documentation correction.

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

16 years agoVarious little bits of code cleanup to reduce nesting, remove useless casts,
Russell Bryant [Fri, 10 Nov 2006 04:30:23 +0000 (04:30 +0000)]
Various little bits of code cleanup to reduce nesting, remove useless casts,
and to remove a duplicated error message after a memory allocation error

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

16 years agoAdd the ability to specify multiple prompts to the Read() dialplan application,
Russell Bryant [Fri, 10 Nov 2006 03:59:48 +0000 (03:59 +0000)]
Add the ability to specify multiple prompts to the Read() dialplan application,
similar to Background() and Playback().
(issue #7897, jsmith, with some modifications)

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

16 years agoMerged revisions 47405 via svnmerge from
Joshua Colp [Fri, 10 Nov 2006 03:45:59 +0000 (03:45 +0000)]
Merged revisions 47405 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r47405 | file | 2006-11-09 22:44:36 -0500 (Thu, 09 Nov 2006) | 2 lines

Fix building of chan_h323 by completeing some structure definitions. (issue #8327 reported by Mithraen)

........

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

16 years agoThis should already be called while locked.
Joshua Colp [Fri, 10 Nov 2006 03:34:13 +0000 (03:34 +0000)]
This should already be called while locked.

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

16 years agoMerged revisions 47398 via svnmerge from
Joshua Colp [Thu, 9 Nov 2006 22:34:00 +0000 (22:34 +0000)]
Merged revisions 47398 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r47398 | file | 2006-11-09 17:32:30 -0500 (Thu, 09 Nov 2006) | 2 lines

Do conversion in a more easier to read and working way for \r, \n, and \t. (issue #8324 reported by johnlange)

........

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

16 years agoMerged revisions 47391 via svnmerge from
Russell Bryant [Thu, 9 Nov 2006 21:32:27 +0000 (21:32 +0000)]
Merged revisions 47391 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r47391 | russell | 2006-11-09 16:26:27 -0500 (Thu, 09 Nov 2006) | 7 lines

Work around an issue that caused menuselect to display a bogus description for
app_voicemail and chan_zap.  These modules use some preprocessor directives to
determine what it will report to Asterisk as its description.  However, the way
we extract this information from the source files for menuselect is not smart
enough to figure this out.
(issue #8326, #8328)

........

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

16 years agoMerged revisions 47380 via svnmerge from
Joshua Colp [Thu, 9 Nov 2006 17:08:29 +0000 (17:08 +0000)]
Merged revisions 47380 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r47380 | file | 2006-11-09 11:53:25 -0500 (Thu, 09 Nov 2006) | 10 lines

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

........
r47379 | file | 2006-11-09 11:48:05 -0500 (Thu, 09 Nov 2006) | 2 lines

Don't include compiler.h on kernels 2.6.18 and higher as, well, it's apparently going to be removed. This should make all you FC6 fans happy as your Asterisk will now build without any mods.

........

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

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

16 years agoMerged revisions 47377 via svnmerge from
Russell Bryant [Thu, 9 Nov 2006 16:30:06 +0000 (16:30 +0000)]
Merged revisions 47377 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r47377 | russell | 2006-11-09 11:28:15 -0500 (Thu, 09 Nov 2006) | 2 lines

fix tab completion for "core debug channel" and "core no debug channel"

........

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

16 years agoMerged revisions 47375 via svnmerge from
Russell Bryant [Thu, 9 Nov 2006 16:26:47 +0000 (16:26 +0000)]
Merged revisions 47375 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

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

Fix "core show channel".  Also, fix tab completion for both "core show channel"
and "core show channels".

........

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

16 years agoMerged revisions 47372 via svnmerge from
Russell Bryant [Thu, 9 Nov 2006 16:20:43 +0000 (16:20 +0000)]
Merged revisions 47372 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r47372 | russell | 2006-11-09 11:18:33 -0500 (Thu, 09 Nov 2006) | 3 lines

Fix "core debug channel <whatever>".  I guess someone needs to go through and
audit every CLI command that changed number of arguments ...

........

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

16 years agoBlocked revisions 47369 via svnmerge
Russell Bryant [Thu, 9 Nov 2006 16:15:49 +0000 (16:15 +0000)]
Blocked revisions 47369 via svnmerge

........
r47369 | russell | 2006-11-09 11:04:38 -0500 (Thu, 09 Nov 2006) | 3 lines

Fix argument parsing for the "core show profile" CLI command
(fixed by rizzo in his branch, team/rizzo/astobj2)

........

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

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

........
r47366 | russell | 2006-11-09 10:49:39 -0500 (Thu, 09 Nov 2006) | 3 lines

Fix another CLI command, "core show uptime" ...
(issue #8323, reported by johnlange, fixed by myself)

........

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

16 years agoMerged revisions 47352 via svnmerge from
Russell Bryant [Thu, 9 Nov 2006 06:35:05 +0000 (06:35 +0000)]
Merged revisions 47352 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r47352 | russell | 2006-11-09 01:31:37 -0500 (Thu, 09 Nov 2006) | 3 lines

fix "core show version" to reflect the new number of arguments for this
CLI command (issue #8316, kshumard)

........

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

16 years agoBlocking 47344 from automerging into trunk
Steve Murphy [Thu, 9 Nov 2006 00:46:24 +0000 (00:46 +0000)]
Blocking 47344 from automerging into trunk

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

16 years agoBlocking 47348 from automerging into trunk
Steve Murphy [Thu, 9 Nov 2006 00:40:14 +0000 (00:40 +0000)]
Blocking 47348 from automerging into trunk

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

16 years agoThis mod via bug 7531
Steve Murphy [Wed, 8 Nov 2006 23:17:27 +0000 (23:17 +0000)]
This mod via bug 7531

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

16 years agocommitted in behalf of bug 8190
Steve Murphy [Wed, 8 Nov 2006 22:52:01 +0000 (22:52 +0000)]
committed in behalf of bug 8190

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

16 years ago- Add Max-Forwards higher in the packet, following recommendations
Olle Johansson [Wed, 8 Nov 2006 22:35:22 +0000 (22:35 +0000)]
- Add Max-Forwards higher in the packet, following recommendations
- Fix documentation for sip_pvt_lock/unlock - doxygen does not inherit like zapata.conf !!!
- Change doc for a sip_pvt setting

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

16 years agorestore display of G.722 codec
Kevin P. Fleming [Wed, 8 Nov 2006 21:59:51 +0000 (21:59 +0000)]
restore display of G.722 codec

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

16 years agoMerged revisions 47333 via svnmerge from
Kevin P. Fleming [Wed, 8 Nov 2006 18:28:53 +0000 (18:28 +0000)]
Merged revisions 47333 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r47333 | kpfleming | 2006-11-08 12:07:16 -0600 (Wed, 08 Nov 2006) | 2 lines

add simple fix for SDP to report proper sample rate for G.722 media sessions

........

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

16 years agoDisplay CID matching information when using dialplan show. (issue #8279 reported...
Joshua Colp [Wed, 8 Nov 2006 18:26:52 +0000 (18:26 +0000)]
Display CID matching information when using dialplan show. (issue #8279 reported by caio1982)

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

16 years agoMerged revisions 47331 via svnmerge from
Russell Bryant [Wed, 8 Nov 2006 17:06:33 +0000 (17:06 +0000)]
Merged revisions 47331 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r47331 | russell | 2006-11-08 12:03:09 -0500 (Wed, 08 Nov 2006) | 5 lines

I occasionally get email from users that are trying to figure out what this
does, or due to some misunderstanding as to what it is supposed to do, can't
get it to work.  So, I have added some text here to hopefully explain what
this application does and does not do.

........

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

16 years agoBlocked revisions 47329 via svnmerge
Russell Bryant [Wed, 8 Nov 2006 16:59:04 +0000 (16:59 +0000)]
Blocked revisions 47329 via svnmerge

........
r47329 | russell | 2006-11-08 11:55:35 -0500 (Wed, 08 Nov 2006) | 2 lines

Make this module build again

........

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

16 years agoMerged revisions 47327 via svnmerge from
Russell Bryant [Wed, 8 Nov 2006 16:36:45 +0000 (16:36 +0000)]
Merged revisions 47327 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r47327 | russell | 2006-11-08 11:31:59 -0500 (Wed, 08 Nov 2006) | 4 lines

Copy the macros from libtool.m4 to our own acinclude.m4 such that libtool is
no longer required to be installed to be able to generate the configure
script.

........

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

16 years agoBlocked revisions 47323 via svnmerge
Russell Bryant [Wed, 8 Nov 2006 16:29:41 +0000 (16:29 +0000)]
Blocked revisions 47323 via svnmerge

........
r47323 | russell | 2006-11-08 11:08:50 -0500 (Wed, 08 Nov 2006) | 3 lines

Remove aclocal.m4 from the tree since it is just an intermediate file created
while generating the configure script.

........

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

16 years agocoding guidelines, coding guidelines, coding guidelines
Kevin P. Fleming [Wed, 8 Nov 2006 15:28:39 +0000 (15:28 +0000)]
coding guidelines, coding guidelines, coding guidelines

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

16 years agomerge from team/rizzo/astobj2 rev.47271
Luigi Rizzo [Wed, 8 Nov 2006 13:59:32 +0000 (13:59 +0000)]
merge from team/rizzo/astobj2 rev.47271

avoid doing p > 0 when p is a pointer;
move a lock closer to the place where it is needed

Approved By: oej

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

16 years agomerge from team/rizzo/astobj2 rev.47246
Luigi Rizzo [Wed, 8 Nov 2006 13:53:01 +0000 (13:53 +0000)]
merge from team/rizzo/astobj2 rev.47246

Same as for peers and users, replace ASTOBJ_UNREF(r, sip_registry_destroy)
with unref_registry(r);

Approved By: oej

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

16 years agomerge from team/rizzo/astobj2, rev 47243, 47244, 47245:
Luigi Rizzo [Wed, 8 Nov 2006 13:49:25 +0000 (13:49 +0000)]
merge from team/rizzo/astobj2, rev 47243, 47244, 47245:

Replace ASTOBJ_UNREF(peer, sip_destroy_peer) with unref_peer(peer);

This places the name of the destructor in one place only (where it
should be), eliminates the chance of errors in case you specify the wrong
destructor, and also lets the compiler do type checking on the argument,
again helping with keeping the code clean.

Same for users.
remove two duplicate definitions.

Approved By: oej

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

16 years agomerge rev.47224 from team/rizzo/astobj2:
Luigi Rizzo [Wed, 8 Nov 2006 13:44:27 +0000 (13:44 +0000)]
merge rev.47224 from team/rizzo/astobj2:

hide dialoglist lock/unlocking in wrapper functions.

Approved By: oej

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

16 years agosilence compiler about uninitialized variables.
Luigi Rizzo [Wed, 8 Nov 2006 13:43:06 +0000 (13:43 +0000)]
silence compiler about uninitialized variables.
The compiler is wrong, but it has the last word.

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

16 years agoDestroy dialog properly at unload (rizzo)
Olle Johansson [Wed, 8 Nov 2006 08:01:44 +0000 (08:01 +0000)]
Destroy dialog properly at unload (rizzo)

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

16 years agofix compilation.
Luigi Rizzo [Wed, 8 Nov 2006 07:21:45 +0000 (07:21 +0000)]
fix compilation.
Overall i think the previous change to ast_channel_alloc()
to close bug 7506 should have been done by defining
an ast_set_callerid_noevent() function that does the
setting without generating the event.
Lot less code duplication, and easier to handle.

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

16 years agoadd a comment about where AC_PROG_LD comes from
Russell Bryant [Wed, 8 Nov 2006 03:13:46 +0000 (03:13 +0000)]
add a comment about where AC_PROG_LD comes from

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

16 years agoremove aclocal.m4 from the tree since it is just an intermediate file created
Russell Bryant [Wed, 8 Nov 2006 03:12:31 +0000 (03:12 +0000)]
remove aclocal.m4 from the tree since it is just an intermediate file created
while generating the configure script.

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

16 years agofix "core show profile" parsing.
Luigi Rizzo [Tue, 7 Nov 2006 23:14:04 +0000 (23:14 +0000)]
fix "core show profile" parsing.

Needs to go in 1.4 too, but ENOTIME now

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

16 years ago%ld and time_t don't match, so cast the argument to long
Luigi Rizzo [Tue, 7 Nov 2006 22:26:48 +0000 (22:26 +0000)]
%ld and time_t don't match, so cast the argument to long
to ease portability problems

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

16 years agoA fair number of changes for the sake of bug 7506
Steve Murphy [Tue, 7 Nov 2006 21:47:49 +0000 (21:47 +0000)]
A fair number of changes for the sake of bug 7506

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

16 years agoMerged revisions 47287 via svnmerge from
Joshua Colp [Tue, 7 Nov 2006 20:16:02 +0000 (20:16 +0000)]
Merged revisions 47287 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r47287 | file | 2006-11-07 15:14:58 -0500 (Tue, 07 Nov 2006) | 2 lines

This is not the commit you are looking for...

........

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

16 years agoMerged revisions 47284 via svnmerge from
Joshua Colp [Tue, 7 Nov 2006 20:12:30 +0000 (20:12 +0000)]
Merged revisions 47284 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r47284 | file | 2006-11-07 15:08:52 -0500 (Tue, 07 Nov 2006) | 2 lines

Make MOH work as it did before in chan_local, without this then it can go funky when transfers and MOH are involved. (issue #7671 reported by jmls)

........

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

16 years agoMerged revisions 47279 via svnmerge from
Kevin P. Fleming [Tue, 7 Nov 2006 18:56:56 +0000 (18:56 +0000)]
Merged revisions 47279 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r47279 | kpfleming | 2006-11-07 12:56:21 -0600 (Tue, 07 Nov 2006) | 2 lines

clean up sample config, and make native file playback the more obvious default choice

........

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

16 years agorge overhaul to voicemail imap support. Allows support for more imap servers,
Matt O'Gorman [Tue, 7 Nov 2006 18:50:58 +0000 (18:50 +0000)]
rge overhaul to voicemail imap support.  Allows support for more imap servers,
also a better implementation of several parts of the original work.
patch provided by 8033 with major upgrades. minor differences from 1.4 patch do to
changes in app_voicemail

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

16 years agoBreak -> continue to make stuff work... Thanks, Luigi!
Olle Johansson [Tue, 7 Nov 2006 17:33:24 +0000 (17:33 +0000)]
Break -> continue to make stuff work... Thanks, Luigi!

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

16 years agoremove another broken property merge
Kevin P. Fleming [Tue, 7 Nov 2006 14:25:00 +0000 (14:25 +0000)]
remove another broken property merge

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

16 years agoremove properties that shouldn't be merged to this branch
Kevin P. Fleming [Tue, 7 Nov 2006 14:24:19 +0000 (14:24 +0000)]
remove properties that shouldn't be merged to this branch

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

16 years agouse editable URL for menuselect, and switch to trunk
Kevin P. Fleming [Tue, 7 Nov 2006 14:17:53 +0000 (14:17 +0000)]
use editable URL for menuselect, and switch to trunk

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

16 years agoissue #8265 - don't reply to ACK. Imported from 1.2, 1.4
Olle Johansson [Tue, 7 Nov 2006 13:26:31 +0000 (13:26 +0000)]
issue #8265 - don't reply to ACK. Imported from 1.2, 1.4

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

16 years agoStealing Tilghman's explanation from the -dev list and producing documentation...
Olle Johansson [Tue, 7 Nov 2006 13:16:05 +0000 (13:16 +0000)]
Stealing Tilghman's explanation from the -dev list and producing documentation...

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

16 years agoexplain why ast_carefulwrite is written the way it is,
Luigi Rizzo [Tue, 7 Nov 2006 08:34:26 +0000 (08:34 +0000)]
explain why ast_carefulwrite is written the way it is,
and also that it doesn't really work as claimed.

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

16 years agoMerged revisions 47239 via svnmerge from
Russell Bryant [Tue, 7 Nov 2006 01:28:08 +0000 (01:28 +0000)]
Merged revisions 47239 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r47239 | russell | 2006-11-06 20:25:10 -0500 (Mon, 06 Nov 2006) | 13 lines

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

........
r47238 | russell | 2006-11-06 20:22:58 -0500 (Mon, 06 Nov 2006) | 5 lines

If random order is enabled for files mode music on hold, set a random initial
position, instead of always starting at the first file, and doing the random
operation only when switching to the next file.
(bug reported by John Lange on the asterisk-dev mailing list)

........

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

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

16 years agocheck for failure after call to calloc() (issue #8295)
Russell Bryant [Mon, 6 Nov 2006 18:05:11 +0000 (18:05 +0000)]
check for failure after call to calloc() (issue #8295)

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

16 years agominor change to test live syncing
Kevin P. Fleming [Mon, 6 Nov 2006 17:27:28 +0000 (17:27 +0000)]
minor change to test live syncing

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

16 years agoAdd support for manager hooks, so you could fire off manager events over IRC if you...
Joshua Colp [Mon, 6 Nov 2006 17:05:04 +0000 (17:05 +0000)]
Add support for manager hooks, so you could fire off manager events over IRC if you were crazy enough. (issue #5161 reported by anthm with mods by moi)

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

16 years agoMake pbx_dundi compile again. Sorry. :(
Russell Bryant [Sun, 5 Nov 2006 01:04:29 +0000 (01:04 +0000)]
Make pbx_dundi compile again.  Sorry.  :(

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

16 years agoList ss7 with the rest of the valid signalling types. Group SS7 options
Russell Bryant [Sat, 4 Nov 2006 22:41:12 +0000 (22:41 +0000)]
List ss7 with the rest of the valid signalling types.  Group SS7 options
together and comment them out by default.

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

16 years agoDon't lock dialoglist if monitor runs __sip_destroy.
Olle Johansson [Sat, 4 Nov 2006 22:16:57 +0000 (22:16 +0000)]
Don't lock dialoglist if monitor runs __sip_destroy.

Hmmm. I did not change pbx_dundi and yet it doesn't compile ;-)

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

16 years agouse the AST_MODULE_LOAD_* return codes from load_module()
Russell Bryant [Sat, 4 Nov 2006 22:08:35 +0000 (22:08 +0000)]
use the AST_MODULE_LOAD_* return codes from load_module()

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

16 years agosimplify a couple of loops
Russell Bryant [Sat, 4 Nov 2006 21:54:37 +0000 (21:54 +0000)]
simplify a couple of loops

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

16 years agoMove IP address selection for media out of add_sdp
Olle Johansson [Sat, 4 Nov 2006 21:48:02 +0000 (21:48 +0000)]
Move IP address selection for media out of add_sdp

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

16 years agoDo some minor cleanup to the section of code that sets the EID by getting the
Russell Bryant [Sat, 4 Nov 2006 21:44:48 +0000 (21:44 +0000)]
Do some minor cleanup to the section of code that sets the EID by getting the
mac address for an ethernet interface

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

16 years agoMake srvlookup global_srvlookup to follow the rest of the code
Olle Johansson [Sat, 4 Nov 2006 21:17:40 +0000 (21:17 +0000)]
Make srvlookup global_srvlookup to follow the rest of the code

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

16 years agoSimplify previous patch
Olle Johansson [Sat, 4 Nov 2006 19:20:30 +0000 (19:20 +0000)]
Simplify previous patch

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

16 years agoAdding new config option "limitpeersonly" to only apply call limits
Olle Johansson [Sat, 4 Nov 2006 19:13:30 +0000 (19:13 +0000)]
Adding new config option "limitpeersonly" to only apply call limits
to the peer side of a type=friend.

This is for trying to support BJ in his quest to solve some issues
with the queue system and type=friend objects.

BJ: Please test!

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

16 years agoImporting patch for Invite/replaces from 1.4
Olle Johansson [Sat, 4 Nov 2006 18:40:51 +0000 (18:40 +0000)]
Importing patch for Invite/replaces from 1.4

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

16 years agoMerged revisions 47196 via svnmerge from
Russell Bryant [Sat, 4 Nov 2006 18:12:31 +0000 (18:12 +0000)]
Merged revisions 47196 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r47196 | russell | 2006-11-04 13:10:22 -0500 (Sat, 04 Nov 2006) | 2 lines

Fix another bug in "core set debug" ...

........

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

16 years agoMerged revisions 47195 via svnmerge from
Russell Bryant [Sat, 4 Nov 2006 18:11:18 +0000 (18:11 +0000)]
Merged revisions 47195 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r47195 | russell | 2006-11-04 12:59:39 -0500 (Sat, 04 Nov 2006) | 2 lines

Really fix the "core set debug" and "core set verbose" CLI commands.

........

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

16 years agoReverting rev 47093 until we have an agreement on how to
Olle Johansson [Sat, 4 Nov 2006 17:45:47 +0000 (17:45 +0000)]
Reverting rev 47093 until we have an agreement on how to
implement this, if at all.

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

16 years agoMerged revisions 47192 via svnmerge from
Russell Bryant [Sat, 4 Nov 2006 17:40:42 +0000 (17:40 +0000)]
Merged revisions 47192 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r47192 | russell | 2006-11-04 12:38:24 -0500 (Sat, 04 Nov 2006) | 3 lines

fix the "atleast" option to the "core set verbose" and "core set debug"
CLI commands

........

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

16 years agomove out another large block to a large function, and document
Luigi Rizzo [Sat, 4 Nov 2006 11:00:49 +0000 (11:00 +0000)]
move out another large block to a large function, and document
some possibly missing parts in the privacy screening code.
Now that it is more streamlined it is easier to see differences
in handling the various cases.

Have not tested the code in depth.

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

16 years agouseless cast removal...
Luigi Rizzo [Sat, 4 Nov 2006 01:40:49 +0000 (01:40 +0000)]
useless cast removal...

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

16 years agoremove many unnecessary casts
Luigi Rizzo [Sat, 4 Nov 2006 01:34:59 +0000 (01:34 +0000)]
remove many unnecessary casts

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

16 years agoremove a useless cast
Luigi Rizzo [Sat, 4 Nov 2006 01:32:31 +0000 (01:32 +0000)]
remove a useless cast

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

16 years agodocument the "debug" parameter, and the change
Luigi Rizzo [Sat, 4 Nov 2006 01:20:38 +0000 (01:20 +0000)]
document the "debug" parameter, and the change
manager list -> manager show

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

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