Commit Graph

4858 Commits

Author SHA1 Message Date
Tilghman Lesher 857e3412f4 Several manager changes:
1) Add the Dialplan class, for NewExten and VarSet events, which should cut
down on the volume of traffic in the Call class.
2) Permit some commands to be run from multiple classes, such as allowing
DBGet to be run from either the System or the Reporting class.
3) Heavily document each class in the sample config, as there were several
that made no sense to be in the write= line, and two that made no sense to be
in the read= line (since they controlled no permissions there).

(Closes issue #10386)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97651 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-10 00:12:35 +00:00
Luigi Rizzo 84d4c3d801 remove a wrong 'const'
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97533 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-09 18:12:44 +00:00
Luigi Rizzo cdf6974dea Two changes:
- support scrolling of message window;
- simplify the code for creating a message window,
  and try it using a second one in the top of
  the keypad (where we echo the dialed number).

The 'skin' that supports these two windows will be
committed separately.

 


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97530 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-09 18:03:40 +00:00
Philippe Sultan 55240a4e35 Merged revisions 97489 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r97489 | phsultan | 2008-01-09 17:44:24 +0100 (Wed, 09 Jan 2008) | 7 lines

Set the caller id within the gtalk_alloc function.

As underlined in issue #10437 by Josh, we need to prevent a possible
memory leak. We only set the name part of the caller id, the number
part is not relevant when dealing with JIDs.

Closes issue #11549.
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97490 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-09 16:59:09 +00:00
Luigi Rizzo aaddb77f42 Implement keyboard handling, and use it to enter
a number to dial in the 'message' area under the
keypad.

Now you can make calls using the keypad as a regular phone
(or the keyboard for chars not present on the keypad)



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97488 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-09 16:44:20 +00:00
Kevin P. Fleming dae22c9567 Merged revisions 97448 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r97448 | kpfleming | 2008-01-09 09:43:19 -0600 (Wed, 09 Jan 2008) | 2 lines

pass the right variable to get an error string... oops

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97449 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-09 15:45:34 +00:00
Kevin P. Fleming 1f390863eb Merged revisions 97410 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r97410 | kpfleming | 2008-01-09 09:26:23 -0600 (Wed, 09 Jan 2008) | 2 lines

add error number output to ioctl failure messages to help with debugging

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97421 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-09 15:31:56 +00:00
Luigi Rizzo b4fbb1916d implement the "console startgui" and "console stopgui"
commands so you can start and stop the gui even outside
of a call. This is convenient for testing, and also for
using the keypad to pick up a call, and to dial a number
(the latter not yet implemented, but should be close).



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97390 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-09 12:23:18 +00:00
Luigi Rizzo bbbef73276 make get_video_desc() return the active console if
passed a null argument (channel).



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97389 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-09 12:13:32 +00:00
Luigi Rizzo fda25337b3 add copyright (most of this code was written by Marta Carbone),
remove some unused code, add/clarify some comments.



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97303 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-08 23:35:05 +00:00
Luigi Rizzo 11c492aaec add support for textareas, used for various dialog windows on the gui.
The main code to implement the textarea is in console_board.c,
and uses a simple png image with the font, blitting characters
on the designated areas of the main screen.
Additionally we provide some annotations in the image used
as a skin to indicate which areas are used for text messages.
(images will be committed separately).
At the moment the dialog area is only used to display a running
counter, just as a proof of concept.



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97280 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-08 23:09:44 +00:00
Olle Johansson 2905e69622 Change reference to external library so it appears on the extref listing
http://www.asterisk.org/doxygen/trunk/extref.html



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97200 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-08 21:01:46 +00:00
Joshua Colp 186a5febd5 One line documentation ftw!
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97197 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-08 20:52:07 +00:00
Joshua Colp 98e93bc80b Merged revisions 97195 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r97195 | file | 2008-01-08 16:48:20 -0400 (Tue, 08 Jan 2008) | 6 lines

Fix various DTMF issues in chan_mgcp.
(closes issue #11443)
Reported by: eferro
Patches:
      dtmf_control_hybrid-inband-mode.patch uploaded by eferro (license 337)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97196 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-08 20:50:57 +00:00
Joshua Colp 21fe29f818 Move common code for setting T38 capabilities and fix a bug with fax detection in the SIP RTP read callback. It's still sort of silly... but more on that later.
(closes issue #11239)
Reported by: dimas
Patches:
      sipt38prop.patch uploaded by dimas (license 88)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97154 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-08 20:06:52 +00:00
Tilghman Lesher 3ad9a66e0f Merged revisions 97077 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r97077 | tilghman | 2008-01-08 12:02:13 -0600 (Tue, 08 Jan 2008) | 3 lines

Apply multiple crash fixes, found in issue #11386, but not completely
closing that issue.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97125 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-08 19:06:27 +00:00
Luigi Rizzo afe68c2323 add support for cropping the keypad image while displaying it.
This way it can contain additional elements (e.g. fonts, buttons,
widgets) without having to use a zillion files to store them.



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@96988 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-07 23:03:11 +00:00
Luigi Rizzo 17d76401f1 update comments to reflect reality (or at least planned behaviour).
minor code cleanups



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@96836 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-07 15:06:54 +00:00
Luigi Rizzo eb86067cba resolve a load-time problem avoiding a call to console_do_answer.
On passing, fix dialling from the keypad.



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@96776 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-07 11:22:01 +00:00
Russell Bryant 54bc2c20b6 Now that the version.h file was getting properly regenerated every time the svn
revision changed, every module that used the version was getting rebuilt after
every svn update.  This severly annoyed me pretty quickly, so I have improved
the situation.

Now, instead of generating version.h, main/version.c is generated.  version.c
includes the version information, as well as a couple of API calls for modules
to retrieve the version.  So now, only version.c will get rebuilt, and the main
asterisk binary relinked, which is must faster than rebuilding http.c, manager.c,
asterisk.c, relinking the asterisk binary, chan_sip.c, func_version.c, res_agi ...

The only minor change in behavior here is that the version information reported by
chan_sip, for example, is the version of the Asterisk core, and not necessarily the
Asterisk version that the chan_sip module came from.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@96717 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-05 22:09:06 +00:00
Russell Bryant f5580269e1 Add the URL to the home page for portaudio. Also add the location of the
svn repository to check out portaudio v19.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@96692 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-05 21:25:45 +00:00
Kevin P. Fleming 5d7ee7e9bf improve chan_usbradio to use indications just like chan_alsa/chan_oss do now
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@96621 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-05 01:05:50 +00:00
Tilghman Lesher 2fac359db6 Merged revisions 96525 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r96525 | tilghman | 2008-01-04 13:27:25 -0600 (Fri, 04 Jan 2008) | 4 lines

If you change the bindaddr in sip.conf to a non-bound address and reload, sip goes kablooie.
Reported and patched by: one47
(Closes issue #11535)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@96547 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-04 19:35:00 +00:00
Kevin P. Fleming f4fba89489 [commit message]
(closes issue #10393)
Reported by: tzafrir
Patches:
      chan_alarm_asterisk.diff uploaded by tzafrir (license 46) (modified by me and added configure script support)



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@96500 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-04 17:21:25 +00:00
Russell Bryant c51ee0c6ae Merged revisions 96449 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r96449 | russell | 2008-01-04 10:19:22 -0600 (Fri, 04 Jan 2008) | 7 lines

Make use of the temporary channel pointer while the pvt is unlocked.

(closes issue #11675)
Reported by: flefoll
Patches:
      chan_zap.c.patch-store-owner-before-unlock uploaded by flefoll (license 244)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@96450 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-04 16:21:08 +00:00
Russell Bryant 4d6c570974 Merged revisions 96394 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r96394 | russell | 2008-01-03 16:44:22 -0600 (Thu, 03 Jan 2008) | 3 lines

Don't crash if the iax2 pvt structure has been destroyed before we get to this point
(closes issue #11672, reported by snuffy, patched by me)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@96395 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-03 22:46:37 +00:00
Kevin P. Fleming e566f4eda7 eliminiate sound_thread() and other stuff from chan_oss since Asterisk indications can handle it
remove gentone and all the headers containing tones that are no longer needed


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@96270 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-03 19:56:29 +00:00
Kevin P. Fleming 2e5cc8f3c0 coding guidelines cleanup
remove background thread and all sound generation mechanisms, as the built-in indications can handle everything that is needed


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@96245 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-03 18:10:13 +00:00
Christian Richter c9f70f995b Merged revisions 96198 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r96198 | crichter | 2008-01-03 13:08:40 +0100 (Do, 03 Jan 2008) | 1 line

when overlapdial was used and no number was dialed, the call was dropped, now we just jump into the s extension, which makes a lot more sense.
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@96221 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-03 14:47:30 +00:00
Russell Bryant fa39abb50b Add support for generating a ringing sound on an incoming call. This is a bit
of a hack.  It just asks the core to generate the same tone that it would when
you hear ringback when making an outbound call.  But hey, it works, and you get
the localized ring tone for the appropriate language set on the channel.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@96079 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-02 23:22:25 +00:00
Russell Bryant b8caf43b3a Note that this module doesn't actually play a ringing sound for an incoming call
... oops


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@96077 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-02 22:52:13 +00:00
Russell Bryant d6c016a5aa Show the correct CLI command to answer the call
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@96076 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-02 22:50:09 +00:00
Kevin P. Fleming e4d1524c23 actually parse and store echocan parameters from zapata.conf... this *should* work <G>
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@96073 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-02 22:41:23 +00:00
Mark Michelson 426d9beceb Add curly braces around a compound if statement so that trunk will build properly
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@96028 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-02 22:29:15 +00:00
Kevin P. Fleming 9d3ee005b0 another checkpoint... chan_zap can now use the new ZT_ECHOCAN_PARAMS ioctl if it is present, but doesn't parse any supplied parameters yet
(this implementation is not very memory efficient as the parameters and their values will be duplicated for each channel that has the same settings, but we can worry about that later once it is working)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@96019 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-02 21:51:37 +00:00
Mark Michelson 5107c5474c Change instances of AST_NONSTANDARD_APP_ARGS(foo, bar, ',') to AST_STANDARD_APP_ARGS(foo, bar)
(closes issue #11668, reported and patched by mvanbaak)



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@95994 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-02 21:08:33 +00:00
Joshua Colp 70071915e1 Merged revisions 95946 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r95946 | file | 2008-01-02 16:24:09 -0400 (Wed, 02 Jan 2008) | 4 lines

Allocate a SIP refer structure when performing a transfer using BYE with Also so that the transfer information is properly stored. (AST-2008-001)
(closes issue #11637)
Reported by: greyvoip

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@95947 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-02 20:26:25 +00:00
Kevin P. Fleming 29800b0540 clean up hwgain CLI command and improve docs for swgain CLI command
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@95939 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-02 19:47:25 +00:00
Kevin P. Fleming 027cb522d9 umm... this did not compile on x86-64, and could not possibly have worked on any platform as it was passing string pointers to a function expecting ints
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@95893 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-02 18:17:15 +00:00
Kevin P. Fleming c69eb1082a fix some long-time breakage that kept chan_misdn from being embedded
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@95841 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-02 14:53:26 +00:00
Kevin P. Fleming 005cb3329c use the proper technique for including submodules so that embedding will work
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@95840 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-02 14:50:46 +00:00
Luigi Rizzo e7f195e82a call directly the cli command to implement hangup.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@95673 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-01 23:55:19 +00:00
Luigi Rizzo afc18baa1a prevent a panic when destroying a channel with no incoming video.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@95672 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-01 23:54:40 +00:00
Luigi Rizzo 38c1dbb39a remove a leftover sleep(1) used for debugging
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@95671 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-01 23:53:43 +00:00
Russell Bryant 067fcc2a03 Update chan_console to natively use a 16 kHz sample rate. If it is talking
to an 8 kHz endpoint, then codec_resample will automatically be used to properly
resample the audio before sending it to/from chan_console.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@95527 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-31 21:33:45 +00:00
Russell Bryant 4e99cc88e2 Merge the main set of changes from team/russell/chan_console.
Add a new console channel driver, chan_console, which is a console channel
driver that uses portaudio as a cross platform audio interface.  It was written
to provide a console channel driver that works with Mac CoreAudio, but it
supports a number of other audio interfaces, as well, including OSS and ALSA.
It could one day be the single console channel driver, but does not yet have
as many features as chan_oss.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@95412 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-31 16:13:26 +00:00
Luigi Rizzo d6d39dfee9 Move grabbers definitions to a separate file, vgrabbers.c, so it is easier
to add more entries. This required moving struct grab_desc to the common
header, and adding an entry in the Makefile.

On passing, cleanup some comments and file headers (some are still missing).



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@95313 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-29 02:02:03 +00:00
Luigi Rizzo f2702ec721 virtualize the interface for video grabbers, which should
make it easier to add support for more grabbers (V4L2,
firewire, and so on).



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@95288 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-29 01:10:14 +00:00
Luigi Rizzo a799456578 Add a few entries up to 1408x1152 in the table of known video resolutions.
This makes it very convenient to enlarge images using the right-click
on the video window.



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@95264 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-28 23:15:11 +00:00
Luigi Rizzo 6b33a01692 change the interface of video encapsulation routines, they only
need the buffer and mtu as input.



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@95263 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-28 23:04:04 +00:00