dect
/
asterisk
Archived
13
0
Fork 0
Commit Graph

10606 Commits

Author SHA1 Message Date
rizzo 35b5ab3bc1 comments-only change:
document a bit more when manager events are delivered
to the clients.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47834 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-18 22:14:20 +00:00
rizzo 6ac9a1df79 ESS-ification.
no need to bring this in 1.4, it is just code cleanup



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47829 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-18 20:17:06 +00:00
rizzo 34f862cfb9 Move this macro from cli.c to cli.h so apps can use it
without duplicating the macro or the code:

/*!
 * In many cases we need to print singular or plural
 * words depending on a count. This macro helps us e.g.
 *     printf("we have %d object%s", n, ESS(n));
 */
#define ESS(x) ((x) == 1 ? "" : "s")



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47827 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-18 20:08:17 +00:00
rizzo ed3d16c4d0 Merged revisions 47823 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r47823 | rizzo | 2006-11-18 18:59:35 +0100 (Sat, 18 Nov 2006) | 5 lines

fix bug 7450 - Parsing fails if From header contains angle brackets 
(the bug was only in a corner case where the < was right after the
opening quote, and the fix is trivial).


........



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47824 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-18 18:03:42 +00:00
rizzo 8528483236 prevent the sound thread from consuming all the available CPU
doing busy-wait on the output audio device.
As it is set now, it tries to push a frame every 10ms,
which is still too frequent but avoids deep restructuring
of the code (which i should do, though).

Note, this is only for ring tones, regular audio coming
from the network is still delivered as soon as it is
available.

Eventually this could well end up in the 1.4 branch, but
since i am probably the only user of chan_oss there isn't
much urgency to do that.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47822 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-18 08:19:41 +00:00
murf 9ed9bbabf4 This update fulfils the request of bug 7109, which claimed the language arg to ast_stream_and_wait() was redundant. Almost all calls just used chan->language, and seeing how chan is the first argument, this certainly seems redundant. A change of language could just as easily be done by simply changing the channel language before calling.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47821 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-17 23:18:51 +00:00
rizzo 9c02454023 remove a debugging message
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47818 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-17 22:56:58 +00:00
rizzo 0d322d21da convert "help" to new style,
fix completion of arguments past the first one
that i broke earlier today.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47817 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-17 22:53:57 +00:00
rizzo f908b78fdb standardize "module show [like]"
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47815 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-17 22:02:15 +00:00
qwell 9f5ca42bcf Add ability to notify an external application/script that the voicemail password was,
while also still changing the password "internally".

Issue 7371, initial patch by pdunkel, with rewrite/config comments by me.
Additional modifications (yay bitmask) by pdunkel.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47814 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-17 21:51:42 +00:00
rizzo eaad3b43af describe a bit the patterns that you can have in the commands,
and add support for wildcard (spelled as '%').

On passing fix a bug in the expansion code which was hidden and
appeared when implementing the wildcard
The fix is just the line 'src != argindex', in case someone wants
to test this on 1.4 - but i would just keep this in trunk.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47813 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-17 21:50:55 +00:00
qwell 232e671637 Add ability to add custom queue log via manager interface.
Issue 7806, patch by alexrch, with slight modifications by me.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47806 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-17 20:46:36 +00:00
mattf 6c02c77780 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: http://svn.digium.com/svn/asterisk/trunk@47801 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-17 18:26:33 +00:00
rizzo 40d3daf0ad merge the implemenmtation of "core set debug" and "core set verbose".
No externally visible changes.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47790 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-17 12:26:15 +00:00
rizzo 33d72ed5de remove an unused function
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47789 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-17 11:31:55 +00:00
rizzo f7f05c0d50 use the regexp cli support on some of the command
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47788 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-17 11:15:54 +00:00
rizzo 5cea0449f7 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: http://svn.digium.com/svn/asterisk/trunk@47787 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-17 11:12:13 +00:00
mattf c1a0a787fa Make sure we choose the last channel as the dchannel if it's not E1 (for BRI). (#8077) Thanks Tzafrir.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47784 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-17 01:05:28 +00:00
qwell 9c3b6be654 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: http://svn.digium.com/svn/asterisk/trunk@47783 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-16 23:20:52 +00:00
rizzo 82ff2ea9bf convert two entries to new style
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47779 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-16 23:05:50 +00:00
kpfleming 90f5a57702 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: http://svn.digium.com/svn/asterisk/trunk@47778 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-16 23:00:51 +00:00
qwell e58c7f265f 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: http://svn.digium.com/svn/asterisk/trunk@47775 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-16 22:51:00 +00:00
rizzo bbb93fe126 convert some handlers to new style.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47772 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-16 22:44:29 +00:00
qwell 3805a39eef Add ability to modify range for dring matching.
Issue #8369, patch by ssuehring, modified slightly by me.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47771 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-16 22:32:23 +00:00
rizzo a6beb6ec19 fix indentation
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47770 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-16 22:03:27 +00:00
rizzo 3b59d07cc5 remove an unused function
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47769 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-16 21:57:23 +00:00
file 6c6053d67a 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: http://svn.digium.com/svn/asterisk/trunk@47765 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-16 21:13:17 +00:00
file f105c2df5b 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: http://svn.digium.com/svn/asterisk/trunk@47763 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-16 20:32:17 +00:00
kpfleming 1f207a8422 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: http://svn.digium.com/svn/asterisk/trunk@47759 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-16 20:10:59 +00:00
oej c4f8f8d6b3 Make it possible to enable/disable onhold tracking, in order to make life easier
for realtime users.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47756 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-16 19:29:28 +00:00
file 630a8583c3 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: http://svn.digium.com/svn/asterisk/trunk@47752 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-16 18:32:27 +00:00
file a42547e25e 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: http://svn.digium.com/svn/asterisk/trunk@47749 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-16 17:53:58 +00:00
file 46458e4541 Be gone 1.2 props!
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47747 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-16 17:17:16 +00:00
oej a328cfd75f Merging a fix that was already fixed.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47746 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-16 17:15:42 +00:00
oej 5881e1dc21 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: http://svn.digium.com/svn/asterisk/trunk@47740 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-16 16:02:41 +00:00
oej eef9c246bd Block upgrade to UPGRADE
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47737 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-16 15:22:24 +00:00
oej 735aaa7959 - CANCEL never uses authentication
- Add docs on canreinvite


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47734 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-16 15:12:30 +00:00
rizzo e48a9fd51b reduce indentation on a large function.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47732 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-16 14:58:24 +00:00
rizzo eb37a79bc1 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: http://svn.digium.com/svn/asterisk/trunk@47731 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-16 14:41:28 +00:00
rizzo db4a58f62f 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: http://svn.digium.com/svn/asterisk/trunk@47727 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-16 14:21:30 +00:00
pcadach 5b74ecfcfa 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: http://svn.digium.com/svn/asterisk/trunk@47718 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-16 08:18:41 +00:00
file 558f435de4 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: http://svn.digium.com/svn/asterisk/trunk@47713 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-15 22:32:51 +00:00
tilghman d834b150ad 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: http://svn.digium.com/svn/asterisk/trunk@47710 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-15 21:57:57 +00:00
file 84387a1880 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: http://svn.digium.com/svn/asterisk/trunk@47708 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-15 21:36:13 +00:00
oej 19fe166d57 Hunting the initreq change for an ACK
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47706 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-15 21:21:21 +00:00
transnexus fddec108b1 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: http://svn.digium.com/svn/asterisk/trunk@47704 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-15 20:59:37 +00:00
transnexus d4780aa5aa 1. Re-format the code.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47703 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-15 20:55:17 +00:00
kpfleming b1986af159 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: http://svn.digium.com/svn/asterisk/trunk@47702 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-15 20:51:18 +00:00
oej d6510bdcee - Don't reply to ACK
- Improve SIP history for debugging
(Imported from 1.4)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47700 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-15 20:40:22 +00:00
kpfleming 2650e360ab 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: http://svn.digium.com/svn/asterisk/trunk@47694 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-15 20:28:25 +00:00