Jason Parker [Fri, 17 Nov 2006 20:46:36 +0000 (20:46 +0000)]
Add ability to add custom queue log via manager interface.
Issue 7806, patch by alexrch, with slight modifications by me.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47806
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Matthew Fredrickson [Fri, 17 Nov 2006 18:26:33 +0000 (18:26 +0000)]
Add some sense of link state. Don't make calls if link is down. Only reset if we're bringing the
link up for the first time.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47801
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Luigi Rizzo [Fri, 17 Nov 2006 12:26:15 +0000 (12:26 +0000)]
merge the implemenmtation of "core set debug" and "core set verbose".
No externally visible changes.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47790
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Luigi Rizzo [Fri, 17 Nov 2006 11:31:55 +0000 (11:31 +0000)]
remove an unused function
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47789
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Luigi Rizzo [Fri, 17 Nov 2006 11:15:54 +0000 (11:15 +0000)]
use the regexp cli support on some of the command
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47788
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Luigi Rizzo [Fri, 17 Nov 2006 11:12:13 +0000 (11:12 +0000)]
introduce a bit of regexp support in the internal CLI api.
Now you can specify a cli command as
"console autoanswer [on|off]"
which means the on|off argument is optional, or
"console {mute|unmute}"
which means the mute|unmute argument is mandatory.
The blocks in [] or {} do not necessarily need to be at the
end of the string.
Completions for the variant parts are generated automatically.
This should significantly simplify the implementation of
the various handlers.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47787
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Matthew Fredrickson [Fri, 17 Nov 2006 01:05:28 +0000 (01:05 +0000)]
Make sure we choose the last channel as the dchannel if it's not E1 (for BRI). (#8077) Thanks Tzafrir.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47784
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Jason Parker [Thu, 16 Nov 2006 23:20:52 +0000 (23:20 +0000)]
Merged revisions 47782 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r47782 | qwell | 2006-11-16 17:19:46 -0600 (Thu, 16 Nov 2006) | 2 lines
Fix a couple of typos. Initially pointed out by mrobinson.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47783
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Luigi Rizzo [Thu, 16 Nov 2006 23:05:50 +0000 (23:05 +0000)]
convert two entries to new style
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47779
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Kevin P. Fleming [Thu, 16 Nov 2006 23:00:51 +0000 (23:00 +0000)]
Merged revisions 47777 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
................
r47777 | kpfleming | 2006-11-16 17:00:10 -0600 (Thu, 16 Nov 2006) | 12 lines
update documentation regarding IAX2 transfers and CDRs
Merged revisions 47776 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r47776 | kpfleming | 2006-11-16 16:57:31 -0600 (Thu, 16 Nov 2006) | 2 lines
update clearly wrong documentation regarding cdr_custom
........
................
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47778
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Jason Parker [Thu, 16 Nov 2006 22:51:00 +0000 (22:51 +0000)]
Remove the interim variable for range modifications, and set it on the structure directly.
Also move the default checking to where it gets set initially.
Fixes suggested by file.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47775
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Luigi Rizzo [Thu, 16 Nov 2006 22:44:29 +0000 (22:44 +0000)]
convert some handlers to new style.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47772
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Jason Parker [Thu, 16 Nov 2006 22:32:23 +0000 (22:32 +0000)]
Add ability to modify range for dring matching.
Issue #8369, patch by ssuehring, modified slightly by me.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47771
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Luigi Rizzo [Thu, 16 Nov 2006 22:03:27 +0000 (22:03 +0000)]
fix indentation
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47770
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Luigi Rizzo [Thu, 16 Nov 2006 21:57:23 +0000 (21:57 +0000)]
remove an unused function
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47769
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Thu, 16 Nov 2006 21:13:17 +0000 (21:13 +0000)]
Merged revisions 47764 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r47764 | file | 2006-11-16 16:11:06 -0500 (Thu, 16 Nov 2006) | 2 lines
Compare technology using the pointers instead of a straight comparison based on name. (issue #8228 reported by dean bath)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47765
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Thu, 16 Nov 2006 20:32:17 +0000 (20:32 +0000)]
Blocked revisions 47762 via svnmerge
................
r47762 | file | 2006-11-16 15:30:54 -0500 (Thu, 16 Nov 2006) | 9 lines
Blocked revisions 47761 via svnmerge
........
r47761 | file | 2006-11-16 15:29:28 -0500 (Thu, 16 Nov 2006) | 2 lines
Look for the header file specifically in all cases, not just the existence of the directory. (issue #8358 reported by mrness)
........
................
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47763
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Kevin P. Fleming [Thu, 16 Nov 2006 20:10:59 +0000 (20:10 +0000)]
Merged revisions 47758 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r47758 | kpfleming | 2006-11-16 14:09:10 -0600 (Thu, 16 Nov 2006) | 2 lines
check for pre-1.4 versions of Zaptel and abort the configure script if found with an appropriate error message
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47759
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Olle Johansson [Thu, 16 Nov 2006 19:29:28 +0000 (19:29 +0000)]
Make it possible to enable/disable onhold tracking, in order to make life easier
for realtime users.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47756
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Thu, 16 Nov 2006 18:32:27 +0000 (18:32 +0000)]
Merged revisions 47751 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
................
r47751 | file | 2006-11-16 13:29:12 -0500 (Thu, 16 Nov 2006) | 10 lines
Merged revisions 47750 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r47750 | file | 2006-11-16 13:26:50 -0500 (Thu, 16 Nov 2006) | 2 lines
Because of the way chan_local is written we should be extra careful and make sure our callback functions have a tech_pvt. (issue #8275 reported by mflorell)
........
................
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47752
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Thu, 16 Nov 2006 17:53:58 +0000 (17:53 +0000)]
Merged revisions 47748 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r47748 | file | 2006-11-16 12:52:48 -0500 (Thu, 16 Nov 2006) | 2 lines
Don't unreference the SLA object if there is no SLA object in the devicestate callback. (issue #8354 reported by loloski)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47749
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Thu, 16 Nov 2006 17:17:16 +0000 (17:17 +0000)]
Be gone 1.2 props!
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47747
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Olle Johansson [Thu, 16 Nov 2006 17:15:42 +0000 (17:15 +0000)]
Merging a fix that was already fixed.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47746
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Olle Johansson [Thu, 16 Nov 2006 16:02:41 +0000 (16:02 +0000)]
Merging implementation of invite states from my "invitestate" branch for 1.2. This is a bit more
clean platform for the handling of BYE/CANCEL than what we had. It might also need to changes
in other parts of the code, since we know the state of the INVITE transaction.
Please observe that this is is not dialog states at all, this is INVITE transaction states.
Hello Michael Proctor, and thank you! :-)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47740
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Olle Johansson [Thu, 16 Nov 2006 15:22:24 +0000 (15:22 +0000)]
Block upgrade to UPGRADE
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47737
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Olle Johansson [Thu, 16 Nov 2006 15:12:30 +0000 (15:12 +0000)]
- CANCEL never uses authentication
- Add docs on canreinvite
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47734
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Luigi Rizzo [Thu, 16 Nov 2006 14:58:24 +0000 (14:58 +0000)]
reduce indentation on a large function.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47732
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Luigi Rizzo [Thu, 16 Nov 2006 14:41:28 +0000 (14:41 +0000)]
use atomic instructions to update the inuse counters
for CLI entriesC. The lock is not protecting this field.
I wonder if the field should be declared 'volatile' as well.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47731
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Luigi Rizzo [Thu, 16 Nov 2006 14:21:30 +0000 (14:21 +0000)]
make kevin (and 64 bit machines) happy and
remove a cast from char* to int in handling the return
values from new-style handlers.
On passing, note that main/loader.c::ast_load_resource() always return 0
so errors are not propagated up. I am not sure this is the intended
behaviour.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47727
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Paul Cadach [Thu, 16 Nov 2006 08:18:41 +0000 (08:18 +0000)]
Merged revisions 44809 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r44809 | pcadach | 2006-10-10 23:44:54 +0700 (Втр, 10 Окт 2006) | 1 line
CHANNEL() function sometime mix parameter and value
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47718
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Wed, 15 Nov 2006 22:32:51 +0000 (22:32 +0000)]
Merged revisions 47712 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
................
r47712 | file | 2006-11-15 17:31:17 -0500 (Wed, 15 Nov 2006) | 10 lines
Merged revisions 47711 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r47711 | file | 2006-11-15 17:29:30 -0500 (Wed, 15 Nov 2006) | 2 lines
Make sure that the pvt structure exists before trying to do fixup on Local channels. (issue #7937 reported by mada123, fix by alamantia with mods by me)
........
................
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47713
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Wed, 15 Nov 2006 21:57:57 +0000 (21:57 +0000)]
Merged revisions 47709 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r47709 | tilghman | 2006-11-15 15:56:55 -0600 (Wed, 15 Nov 2006) | 2 lines
Fix ODBC_STORAGE for when context is NULL
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47710
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Wed, 15 Nov 2006 21:36:13 +0000 (21:36 +0000)]
Merged revisions 47707 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r47707 | file | 2006-11-15 16:33:41 -0500 (Wed, 15 Nov 2006) | 2 lines
We need to ensure timelimit stuff is included as well so warnings get played. (issue #8050 reported by KNK)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47708
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Olle Johansson [Wed, 15 Nov 2006 21:21:21 +0000 (21:21 +0000)]
Hunting the initreq change for an ACK
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47706
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
TransNexus OSP Development [Wed, 15 Nov 2006 20:59:37 +0000 (20:59 +0000)]
1. Fix the bug that Asterisk hangs up the calls if the OSP AuthRsp messages without destination protocol infomation.
2. Fix the bug that Asterisk generats wrong dial string (no in IAX2/[username[:password]@]peer[:port][/exten[@context]][/options] format) for IAX.
3. Add support for oh323 channel driver.
4. Re-formate the code.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47704
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
TransNexus OSP Development [Wed, 15 Nov 2006 20:55:17 +0000 (20:55 +0000)]
1. Re-format the code.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47703
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Kevin P. Fleming [Wed, 15 Nov 2006 20:51:18 +0000 (20:51 +0000)]
Merged revisions 47701 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r47701 | kpfleming | 2006-11-15 14:50:06 -0600 (Wed, 15 Nov 2006) | 2 lines
don't try to call fclose() if fopen() failed
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47702
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Olle Johansson [Wed, 15 Nov 2006 20:40:22 +0000 (20:40 +0000)]
- Don't reply to ACK
- Improve SIP history for debugging
(Imported from 1.4)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47700
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Kevin P. Fleming [Wed, 15 Nov 2006 20:28:25 +0000 (20:28 +0000)]
Merged revisions 47693 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
................
r47693 | kpfleming | 2006-11-15 14:27:38 -0600 (Wed, 15 Nov 2006) | 12 lines
Merged revisions 47677 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r47677 | kpfleming | 2006-11-15 11:56:42 -0600 (Wed, 15 Nov 2006) | 4 lines
ensure that message duration is included in email notifications for forwarded messages (BE-96, fix by me after corydon used his clue-bat on me)
ensure that duration in the message metadata is updated if prepending is done during forwarding (related to BE-96)
remove prototype for API call that does not exist
........
................
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47694
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Kevin P. Fleming [Wed, 15 Nov 2006 20:05:26 +0000 (20:05 +0000)]
Merged revisions 47690 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
................
r47690 | kpfleming | 2006-11-15 14:01:22 -0600 (Wed, 15 Nov 2006) | 20 lines
Merged revisions 47686,47688-47689 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r47686 | kpfleming | 2006-11-15 13:42:05 -0600 (Wed, 15 Nov 2006) | 2 lines
clear the category's variable tail pointer as well when variables are detached from it
........
r47688 | kpfleming | 2006-11-15 13:47:43 -0600 (Wed, 15 Nov 2006) | 2 lines
when appending a list of variable to a category, ensure the tail pointer points to the last variable in the list
........
r47689 | kpfleming | 2006-11-15 13:58:46 -0600 (Wed, 15 Nov 2006) | 2 lines
when re-writing the config file, don't repeat the path if it hasn't changed
........
................
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47691
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Kevin P. Fleming [Wed, 15 Nov 2006 18:44:29 +0000 (18:44 +0000)]
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: https://origsvn.digium.com/svn/asterisk/trunk@47685
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Luigi Rizzo [Wed, 15 Nov 2006 17:40:09 +0000 (17:40 +0000)]
fix indentation
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47669
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Luigi Rizzo [Wed, 15 Nov 2006 17:17:07 +0000 (17:17 +0000)]
small simplifications and localization of variables.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47667
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Luigi Rizzo [Wed, 15 Nov 2006 17:05:55 +0000 (17:05 +0000)]
new-style "core show channels"
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47665
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Luigi Rizzo [Wed, 15 Nov 2006 16:39:38 +0000 (16:39 +0000)]
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: https://origsvn.digium.com/svn/asterisk/trunk@47664
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Luigi Rizzo [Wed, 15 Nov 2006 16:20:23 +0000 (16:20 +0000)]
move another deprecated command to the new style
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47663
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Luigi Rizzo [Wed, 15 Nov 2006 16:13:30 +0000 (16:13 +0000)]
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: https://origsvn.digium.com/svn/asterisk/trunk@47662
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Olle Johansson [Wed, 15 Nov 2006 16:09:48 +0000 (16:09 +0000)]
Messed up earlier, cleaning up...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47661
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Olle Johansson [Wed, 15 Nov 2006 16:04:24 +0000 (16:04 +0000)]
Send proper SIP error message improperly when we can't allocate dialog (out of file handles is one cause)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47660
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Olle Johansson [Wed, 15 Nov 2006 15:27:46 +0000 (15:27 +0000)]
Update doxygen docs to reflect the code...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47657
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Luigi Rizzo [Wed, 15 Nov 2006 15:02:56 +0000 (15:02 +0000)]
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: https://origsvn.digium.com/svn/asterisk/trunk@47654
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Luigi Rizzo [Wed, 15 Nov 2006 14:11:28 +0000 (14:11 +0000)]
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: https://origsvn.digium.com/svn/asterisk/trunk@47652
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Wed, 15 Nov 2006 04:47:52 +0000 (04:47 +0000)]
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: https://origsvn.digium.com/svn/asterisk/trunk@47646
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Kevin P. Fleming [Wed, 15 Nov 2006 00:19:35 +0000 (00:19 +0000)]
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: https://origsvn.digium.com/svn/asterisk/trunk@47642
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Wed, 15 Nov 2006 00:15:38 +0000 (00:15 +0000)]
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: https://origsvn.digium.com/svn/asterisk/trunk@47640
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Kevin P. Fleming [Wed, 15 Nov 2006 00:06:37 +0000 (00:06 +0000)]
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: https://origsvn.digium.com/svn/asterisk/trunk@47636
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Tue, 14 Nov 2006 22:19:18 +0000 (22:19 +0000)]
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: https://origsvn.digium.com/svn/asterisk/trunk@47633
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Luigi Rizzo [Tue, 14 Nov 2006 22:08:20 +0000 (22:08 +0000)]
add missing casts and remove an unused function.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47630
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Tue, 14 Nov 2006 22:07:20 +0000 (22:07 +0000)]
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: https://origsvn.digium.com/svn/asterisk/trunk@47629
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Tue, 14 Nov 2006 21:33:59 +0000 (21:33 +0000)]
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: https://origsvn.digium.com/svn/asterisk/trunk@47626
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Tue, 14 Nov 2006 20:09:10 +0000 (20:09 +0000)]
Make local copy of arguments to parse. (issue #8362 reported by homesick)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47623
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Tue, 14 Nov 2006 18:58:15 +0000 (18:58 +0000)]
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: https://origsvn.digium.com/svn/asterisk/trunk@47622
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Luigi Rizzo [Tue, 14 Nov 2006 17:00:39 +0000 (17:00 +0000)]
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: https://origsvn.digium.com/svn/asterisk/trunk@47620
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Luigi Rizzo [Tue, 14 Nov 2006 16:55:27 +0000 (16:55 +0000)]
partly convert to new style set-verbose, with completion fixes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47619
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Tue, 14 Nov 2006 16:48:03 +0000 (16:48 +0000)]
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: https://origsvn.digium.com/svn/asterisk/trunk@47618
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Luigi Rizzo [Tue, 14 Nov 2006 16:38:35 +0000 (16:38 +0000)]
replace two deprecated functions with calls to the standard ones,
with fixes to argc/argv
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47616
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Luigi Rizzo [Tue, 14 Nov 2006 16:31:57 +0000 (16:31 +0000)]
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: https://origsvn.digium.com/svn/asterisk/trunk@47614
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Olle Johansson [Tue, 14 Nov 2006 16:15:34 +0000 (16:15 +0000)]
need to check quoting in the doxygen docs...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47611
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Olle Johansson [Tue, 14 Nov 2006 16:10:32 +0000 (16:10 +0000)]
Some improvements to doxygen docs
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47610
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Luigi Rizzo [Tue, 14 Nov 2006 16:09:08 +0000 (16:09 +0000)]
new-style for 'core show uptime', include 'complete' support and better error checking
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47609
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Luigi Rizzo [Tue, 14 Nov 2006 15:55:18 +0000 (15:55 +0000)]
apply previous fix to old-style cli entries as well.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47608
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Luigi Rizzo [Tue, 14 Nov 2006 15:39:03 +0000 (15:39 +0000)]
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: https://origsvn.digium.com/svn/asterisk/trunk@47607
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Luigi Rizzo [Tue, 14 Nov 2006 15:23:35 +0000 (15:23 +0000)]
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: https://origsvn.digium.com/svn/asterisk/trunk@47606
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Olle Johansson [Tue, 14 Nov 2006 13:17:38 +0000 (13:17 +0000)]
Adding some debug output to trace bug in realtime
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47600
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Olle Johansson [Tue, 14 Nov 2006 12:32:46 +0000 (12:32 +0000)]
Adding a new debug line for issue #7351 - trying to find where an ACK can overwrite the initreq...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47599
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Olle Johansson [Tue, 14 Nov 2006 11:26:06 +0000 (11:26 +0000)]
Issue #8272 imported from 1.2/1.4 - Let the peerpoke system destroy it's own packets, please.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47598
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Olle Johansson [Tue, 14 Nov 2006 11:00:33 +0000 (11:00 +0000)]
Remove flags not used any more (thanks Luigi)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47595
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Matt O'Gorman [Mon, 13 Nov 2006 22:40:01 +0000 (22:40 +0000)]
oops no parens
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47587
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Matt O'Gorman [Mon, 13 Nov 2006 22:01:43 +0000 (22:01 +0000)]
fix bytesize to 5.3kb for g723 codec and add support for multimode of tc400p
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47586
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Mon, 13 Nov 2006 21:32:13 +0000 (21:32 +0000)]
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: https://origsvn.digium.com/svn/asterisk/trunk@47585
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Mon, 13 Nov 2006 20:21:33 +0000 (20:21 +0000)]
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: https://origsvn.digium.com/svn/asterisk/trunk@47582
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Olle Johansson [Mon, 13 Nov 2006 19:20:54 +0000 (19:20 +0000)]
Small fix for uncommon scenario.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47579
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Steve Murphy [Mon, 13 Nov 2006 19:19:16 +0000 (19:19 +0000)]
Blocking 47576 from merging into trunk. Already done in 47577
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47578
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Steve Murphy [Mon, 13 Nov 2006 19:15:45 +0000 (19:15 +0000)]
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: https://origsvn.digium.com/svn/asterisk/trunk@47577
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Mon, 13 Nov 2006 19:14:39 +0000 (19:14 +0000)]
Make chan_h323 build again and make the CLI commands work. (reported on asterisk-dev mailing list by Di-Shi Sun)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47575
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Mon, 13 Nov 2006 19:12:23 +0000 (19:12 +0000)]
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: https://origsvn.digium.com/svn/asterisk/trunk@47574
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Steve Murphy [Mon, 13 Nov 2006 18:24:20 +0000 (18:24 +0000)]
blocked 47564 from 1.4 to be merged onto trunk; 47566 already did it
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47568
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Mon, 13 Nov 2006 18:23:55 +0000 (18:23 +0000)]
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: https://origsvn.digium.com/svn/asterisk/trunk@47567
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Steve Murphy [Mon, 13 Nov 2006 18:20:56 +0000 (18:20 +0000)]
Eager people beat me to fixing the messed if, but we all forgot to update the regressions. Until now.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47566
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Mon, 13 Nov 2006 17:55:24 +0000 (17:55 +0000)]
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: https://origsvn.digium.com/svn/asterisk/trunk@47560
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Mon, 13 Nov 2006 17:41:22 +0000 (17:41 +0000)]
Blocked revisions 47558 via svnmerge
........
r47558 | file | 2006-11-13 12:38:44 -0500 (Mon, 13 Nov 2006) | 2 lines
Clean up last commit to better conform to standards.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47559
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Mon, 13 Nov 2006 17:36:28 +0000 (17:36 +0000)]
Clean up last commit to better conform to standards.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47556
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Steve Murphy [Mon, 13 Nov 2006 17:36:01 +0000 (17:36 +0000)]
Blocking 47553 from 1.4 to trunk... 47554 is done for it.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47555
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Steve Murphy [Mon, 13 Nov 2006 17:32:16 +0000 (17:32 +0000)]
AEL need not complain about parkedcalls not being found... just confuses users
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47554
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Mon, 13 Nov 2006 17:10:21 +0000 (17:10 +0000)]
Merged revisions 47551 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
................
r47551 | file | 2006-11-13 12:08:07 -0500 (Mon, 13 Nov 2006) | 10 lines
Merged revisions 47549 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r47549 | file | 2006-11-13 12:05:32 -0500 (Mon, 13 Nov 2006) | 2 lines
When sending an SMS with a user data header properly set the UDH flag in the first byte. (issue #8347 reported by hoffmeis)
........
................
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47552
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Mon, 13 Nov 2006 16:41:45 +0000 (16:41 +0000)]
Return module show to a working state. (issue #8353 reported by jserve)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47544
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Mon, 13 Nov 2006 16:33:46 +0000 (16:33 +0000)]
Blocked revisions 47542 via svnmerge
........
r47542 | file | 2006-11-13 11:30:38 -0500 (Mon, 13 Nov 2006) | 2 lines
Free full command string upon unregistering of CLI command. Backported from revision 47536 from rizzo.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47543
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Olle Johansson [Mon, 13 Nov 2006 16:08:12 +0000 (16:08 +0000)]
Only produce error message once, don't fill the screen with them...
(Testing SIPP thanks to JerJer and Greg)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47541
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Luigi Rizzo [Mon, 13 Nov 2006 14:29:31 +0000 (14:29 +0000)]
merge from astobj2-r47450: use UNLINK to remove a packet from its queue,
and related code rearrangement.
Approved by: oej
This could be made better if we declared
struct sip_pvt *dialpg = pkt->owner;
at the beginning of the function, and use it throughout the function.
I'll let the boss decide :)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47539
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Luigi Rizzo [Mon, 13 Nov 2006 14:14:54 +0000 (14:14 +0000)]
merge from codename-pineapple and astobj2 47499:
simplify __sip_ack() removing a strcmp for looking up packets.
no functional change, only performance, so don't need to merging
to earlier branches now.
Approved By: oej
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47538
65c4cc65-6c06-0410-ace0-
fbb531ad65f3