dect
/
asterisk
Archived
13
0
Fork 0
Commit Graph

10455 Commits

Author SHA1 Message Date
kpfleming 6fc0e35c5e Merged revisions 47684 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r47684 | kpfleming | 2006-11-15 12:43:30 -0600 (Wed, 15 Nov 2006) | 10 lines

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

........
r47682 | kpfleming | 2006-11-15 12:39:47 -0600 (Wed, 15 Nov 2006) | 2 lines

ouch... don't use printf, use ast_log/ast_verbose

........

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


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47685 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-15 18:44:29 +00:00
rizzo 42f6a7b706 fix indentation
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47669 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-15 17:40:09 +00:00
rizzo 28823899ca small simplifications and localization of variables.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47667 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-15 17:17:07 +00:00
rizzo 8840b9eb9d new-style "core show channels"
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47665 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-15 17:05:55 +00:00
rizzo 62e792a352 more changes to new style of "module load" and "load".
Under FreeBSD, the filename_completion used in the above commands does
not work. Not sure why, but on passing i note that the function is
part of readline and is not reentrant, so it needs to be fixed one way
or another.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47664 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-15 16:39:38 +00:00
rizzo 10ba53709e move another deprecated command to the new style
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47663 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-15 16:20:23 +00:00
rizzo fd41174e4a move "core set debug" to the new style, and remove duplicated
code for the deprecated handler.

On passing fix a long standing bug in find_cli() which would not
find the longest match - this part (trivial, basically
just update matchlen on a match) must go in 1.4 and possibly 1.2 as well.




git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47662 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-15 16:13:30 +00:00
oej e35b7ff066 Messed up earlier, cleaning up...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47661 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-15 16:09:48 +00:00
oej 00eaa09eba Send proper SIP error message improperly when we can't allocate dialog (out of file handles is one cause)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47660 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-15 16:04:24 +00:00
oej 636969ce98 Update doxygen docs to reflect the code...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47657 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-15 15:27:46 +00:00
rizzo 0c19d9d24a one more step cleaning the internal CLI interface:
the NEW_CLI macro now supports extra arguments (to deprecate other commands).
use this to implement unload and reload, and remove some unused functions.
usual completion fixes (as these function accept multiple arguments).

The summary is still a bit inconsistent.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47654 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-15 15:02:56 +00:00
rizzo f9e2a5e530 update the internal cli api following comments from kevin.
This change basically simplifies the interface of the
new-style handler removing almost all the tricks used in
the previous implementation to achieve backward compatibility
(which is still present and guaranteed.)



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47652 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-15 14:11:28 +00:00
file 34bc6cdd59 Merged revisions 47645 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r47645 | file | 2006-11-14 23:45:24 -0500 (Tue, 14 Nov 2006) | 2 lines

If NAT detection is turned on or already detected then say NAT is active when setting the remote RTP peer when doing early bridging. (issue #8365 reported by marcelbarbulescu)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47646 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-15 04:47:52 +00:00
kpfleming 39724221b9 Merged revisions 47641 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r47641 | kpfleming | 2006-11-14 18:19:05 -0600 (Tue, 14 Nov 2006) | 2 lines

more formatting cleanup, and avoid running off the end of the string

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47642 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-15 00:19:35 +00:00
file 651d90dae6 Merged revisions 47639 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r47639 | file | 2006-11-14 19:14:07 -0500 (Tue, 14 Nov 2006) | 2 lines

Turn notice about unknown RTCP packet type into a debug message instead.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47640 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-15 00:15:38 +00:00
kpfleming 12c5c16099 Merged revisions 47635 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r47635 | kpfleming | 2006-11-14 18:05:44 -0600 (Tue, 14 Nov 2006) | 2 lines

silence compiler warning on 64-bit platforms (this variable is an 'int' anyway, comparing it to 'signed long' is not useful)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47636 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-15 00:06:37 +00:00
file 55cddeadbb Merged revisions 47632 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r47632 | file | 2006-11-14 17:17:16 -0500 (Tue, 14 Nov 2006) | 10 lines

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

........
r47631 | file | 2006-11-14 17:15:10 -0500 (Tue, 14 Nov 2006) | 2 lines

Update copyright information in the ADSI logo blob.

........

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


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47633 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-14 22:19:18 +00:00
rizzo 0421f7a065 add missing casts and remove an unused function.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47630 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-14 22:08:20 +00:00
file bab9d7c18e Merged revisions 47628 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r47628 | file | 2006-11-14 17:05:03 -0500 (Tue, 14 Nov 2006) | 2 lines

Only keep the video RTP structure around if 1. Video support is enabled and 2. A video codec is enabled on the dialog

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47629 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-14 22:07:20 +00:00
file c744624e6f Merged revisions 47625 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r47625 | file | 2006-11-14 16:30:44 -0500 (Tue, 14 Nov 2006) | 2 lines

Small documentation clarification for URIENCODE. (issue #8294 reported by salaud)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47626 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-14 21:33:59 +00:00
file dcd1ec87b6 Make local copy of arguments to parse. (issue #8362 reported by homesick)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47623 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-14 20:09:10 +00:00
tilghman d6e691ae01 Merged revisions 47621 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r47621 | tilghman | 2006-11-14 12:54:40 -0600 (Tue, 14 Nov 2006) | 3 lines

Conversion of res_odbc API to include ast_ prefix did not completely transition app_voicemail
when ODBC_STORAGE is used (reported on IRC by caio1982, not in bugtracker)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47622 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-14 18:58:15 +00:00
rizzo 3e8f01e053 fix completion for "module reload mod_1 mod_2 ... "
(should do the same for the other similar commands, "reload", "module unload" and so on.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47620 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-14 17:00:39 +00:00
rizzo 4956491321 partly convert to new style set-verbose, with completion fixes
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47619 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-14 16:55:27 +00:00
file 717e42ac58 Merged revisions 47617 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r47617 | file | 2006-11-14 11:45:57 -0500 (Tue, 14 Nov 2006) | 2 lines

Use LOG_DEBUG to print out the indication that app_amd is using default settings instead of using LOG_NOTICE. This stops needless logging of this information under normal circumstances. (issue #8361 reported by Seb7)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47618 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-14 16:48:03 +00:00
rizzo d0d9984214 replace two deprecated functions with calls to the standard ones,
with fixes to argc/argv



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47616 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-14 16:38:35 +00:00
rizzo db1aece679 remove duplicated implementation for a deprecated function, use the
original one instead with appropriate changes in argc/argv.

This is not always applicable, but in some simple cases it is.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47614 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-14 16:31:57 +00:00
oej 35318d7349 need to check quoting in the doxygen docs...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47611 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-14 16:15:34 +00:00
oej d5f159c55a Some improvements to doxygen docs
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47610 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-14 16:10:32 +00:00
rizzo d5afd43f2c new-style for 'core show uptime', include 'complete' support and better error checking
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47609 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-14 16:09:08 +00:00
rizzo eec3f00ad3 apply previous fix to old-style cli entries as well.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47608 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-14 15:55:18 +00:00
rizzo 9372c9e409 fix "core set debug atleast ",
and fix the simple case where a command can have multiple completions,
the first ones coming from keywords in previous CLI entries.

There is no solution yet for the complex case of N1 completions
from a CLI entry, followed by N2 from the next one, and so on,
because the _complete() handlers do not tell us how many matches
it generates, so we don't know how many to skip when interrogating
the other handlers.

The only solution is to avoid, as much as possible, multiple
CLI entries with the same prefix.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47607 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-14 15:39:03 +00:00
rizzo 0e4858d26a Bring in the improved internal API for the CLI.
WATCH OUT: this changes the binary interface (ABI) for modules,
so e.g. users of g729 codecs need a rebuilt module (but read below).

The new way to write CLI handlers is described in detail in cli.h,
and there are a few converted handlers in cli.c, look for NEW_CLI.

After converting a couple of commands i am convinced that
it is reasonably convenient to use, and it makes it easier to fix the
pending CLI issues.

On passing, note a bug with the current 'complete' architecture:
if a command is a prefix of multiple CLI entries, we miss some
of the possible options. As an example, "core set debug" can
continue with "channel" from one CLI entry, and "off" or "atleast"
from another one.

We address this problem in a separate commit
(when i have figured out a fix, that is).

ABI issues:
I asked Kevin if it was ok to make this change and he said yes.
While it would have been possible to make the change without breaking
the module ABI, the code would have been more convoluted.

I am happy to restore the old ABI (while still being able
to use the "new style" handlers) if there is demand.




git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47606 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-14 15:23:35 +00:00
oej 8426096bec Adding some debug output to trace bug in realtime
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47600 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-14 13:17:38 +00:00
oej b59f34d960 Adding a new debug line for issue #7351 - trying to find where an ACK can overwrite the initreq...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47599 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-14 12:32:46 +00:00
oej 2b41d1ee70 Issue #8272 imported from 1.2/1.4 - Let the peerpoke system destroy it's own packets, please.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47598 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-14 11:26:06 +00:00
oej 990f79b1f8 Remove flags not used any more (thanks Luigi)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47595 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-14 11:00:33 +00:00
mogorman 2cb1f3cd3a oops no parens
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47587 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-13 22:40:01 +00:00
mogorman 40c81526fe fix bytesize to 5.3kb for g723 codec and add support for multimode of tc400p
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47586 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-13 22:01:43 +00:00
file bca8e89c10 Merged revisions 47584 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r47584 | file | 2006-11-13 16:28:57 -0500 (Mon, 13 Nov 2006) | 10 lines

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

........
r47583 | file | 2006-11-13 16:26:36 -0500 (Mon, 13 Nov 2006) | 2 lines

Initialize global pointers for connection and result to NULL. (issue #8356 reported by james)

........

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


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47585 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-13 21:32:13 +00:00
tilghman bbd7578ad2 Merged revisions 47581 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r47581 | tilghman | 2006-11-13 14:20:01 -0600 (Mon, 13 Nov 2006) | 10 lines

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

........
r47580 | tilghman | 2006-11-13 14:18:30 -0600 (Mon, 13 Nov 2006) | 2 lines

Having more than 255 old messages caused corruption in the new/old count

........

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


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47582 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-13 20:21:33 +00:00
oej 61fb405acd Small fix for uncommon scenario.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47579 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-13 19:20:54 +00:00
murf df34be1201 Blocking 47576 from merging into trunk. Already done in 47577
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47578 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-13 19:19:16 +00:00
murf 6e9131d2e7 This solves bug 8342, whereby a crash occurs under certain circumstances while reading a config file with comments-- a call to CB_ADD shouldn't happen if withcomments is zero
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47577 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-13 19:15:45 +00:00
file 2ebbeceba3 Make chan_h323 build again and make the CLI commands work. (reported on asterisk-dev mailing list by Di-Shi Sun)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47575 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-13 19:14:39 +00:00
tilghman 48c789f43e Blocked revisions 47573 via svnmerge
........
r47573 | tilghman | 2006-11-13 13:11:15 -0600 (Mon, 13 Nov 2006) | 2 lines

Re-enable old deprecated commands

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47574 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-13 19:12:23 +00:00
murf d0b7a4baec blocked 47564 from 1.4 to be merged onto trunk; 47566 already did it
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47568 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-13 18:24:20 +00:00
file 46489d816d Add 'loose' option to joinempty and leavewhenempty which is almost exactly like 'strict' except it does not count paused queue members as unavailable. (issue #8263 reported by gnarf)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47567 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-13 18:23:55 +00:00
murf d9a503cf36 Eager people beat me to fixing the messed if, but we all forgot to update the regressions. Until now.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47566 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-13 18:20:56 +00:00
file caa25dd02a Don't play the "entering conference number <insert number here>" prompts if the 'q' option is used. If others believe this should be in 1.2/1.4 then we can put it in, but I'm uncomfortable doing so right now as it is a change of behavior. (issue #8138 reported by tmancill)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47560 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-13 17:55:24 +00:00