dect
/
asterisk
Archived
13
0
Fork 0
Commit Graph

14275 Commits

Author SHA1 Message Date
rizzo 4ff493aff5 call directly the cli command to implement hangup.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@95673 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-01 23:55:19 +00:00
rizzo 02e1d2fdce prevent a panic when destroying a channel with no incoming video.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@95672 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-01 23:54:40 +00:00
rizzo 2632ca870c remove a leftover sleep(1) used for debugging
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@95671 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-01 23:53:43 +00:00
file 59bc75d1f8 Fix building of codec_resample on platforms other then Cygwin. On everything else it actually gets built after codec_resample, so you can't exactly link it in since it doesn't exist.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@95648 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-01 23:09:32 +00:00
rizzo 5503f69d4c make codec_resample build on __CYGWIN__, and make it load on FreeBSD
(and probably other systems as well).
Both need libresample.a to be specified in the linking phase,
and cygwin needs <float.h> as other BSD.

The checks for OS-specific headers should really be moved to some
common header though.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@95625 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-01 22:21:39 +00:00
rizzo 206811e881 implement "configure" checks for libiconv, and add the
iconv dependency for func_iconv.
This fixes some build issues on CYGWIN and FreeBSD and probably
other platforms where libiconv is not there by default



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@95624 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-01 22:08:32 +00:00
mmichelson 39f1c43148 Merged revisions 95577 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r95577 | mmichelson | 2007-12-31 17:43:13 -0600 (Mon, 31 Dec 2007) | 9 lines

Avoiding a potentially bad locking situation. ast_merge_contexts_and_delete writelocks the conlock, then
calls ast_hint_extension, which attempts to readlock the same lock. Recursion with read-write locks is 
dangerous, so the inner lock needs to be removed. I did this by copying the "guts" of ast_hint_extension
into ast_merge_contexts_and_delete (sans the extra lock).

(this change is inspired by the locking problems seen in issue #11080, but I have no idea if this is the
problematic area experienced by the reporters of that issue)


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@95578 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-31 23:44:45 +00:00
russell 250f46db38 Use float.h to fix the build on FreeBSD. Also, add some other platforms as
they are likely the same.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@95550 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-31 22:41:39 +00:00
russell 982aedfab4 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: http://svn.digium.com/svn/asterisk/trunk@95527 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-31 21:33:45 +00:00
russell 04838b9d59 Merge changes from team/russell/codec_resample
This commit imports libresample for use in Asterisk.  It also adds a new codec
module, codec_resample.  This module uses libresample to re-sample signed linear
audio between 8 kHz and 16 kHz.

It also provides an alternative for converting between 16 kHz G.722 and 8 kHz
signed linear when using G.722, which will likely be useful as some people have
complained about volume issues when the current codec_g722 converts to 8 kHz 
signed linear.  But, to test this, you will have to disable the g722-to-slin and
g722-to-slin16 translators in codec_g722.c.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@95501 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-31 21:22:31 +00:00
tilghman 9c384ade94 Merged revisions 95470 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r95470 | tilghman | 2007-12-31 14:27:26 -0600 (Mon, 31 Dec 2007) | 3 lines

Allow the default "0" to be returned if the STAT fails
(Closes issue #11659)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@95490 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-31 20:33:21 +00:00
mmichelson 0fade46c82 Fix a compiler warning
(closes issue #11658, reported and patched by eliel)



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@95443 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-31 18:46:12 +00:00
russell 4bc50170da 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: http://svn.digium.com/svn/asterisk/trunk@95412 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-31 16:13:26 +00:00
russell 1321156549 fix a spelling error in a comment
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@95411 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-31 15:55:22 +00:00
russell 897b24fc91 Add CV_STRINGFIELD() macro. This lets you set a config variable to a string field.
(from team/russell/chan_console)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@95410 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-31 15:53:11 +00:00
russell 9d7f647421 Regenerate configure script to include check for portaudio.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@95384 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-31 15:21:15 +00:00
russell ec43bc2e6a Add configure script checking for portaudio.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@95383 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-31 15:20:30 +00:00
rizzo d35a061a76 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: http://svn.digium.com/svn/asterisk/trunk@95313 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-29 02:02:03 +00:00
rizzo 2f8edd72db 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: http://svn.digium.com/svn/asterisk/trunk@95288 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-29 01:10:14 +00:00
rizzo 026cd63b05 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: http://svn.digium.com/svn/asterisk/trunk@95264 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-28 23:15:11 +00:00
rizzo 6341df8cbf change the interface of video encapsulation routines, they only
need the buffer and mtu as input.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@95263 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-28 23:04:04 +00:00
rizzo 956da6a580 various rearrangements and renaming of console_video stuff
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@95262 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-28 22:37:40 +00:00
mmichelson 55fa664279 The diff for this change looks really bad, but all I did here was decrease the indentation of most
of the queue_exec function by reversing the logic of an if statement. This change makes the function
comply better with the coding guidelines. Since this change is purely a cosmetic change to the code, I am
only committing the change to trunk.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@95233 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-28 18:39:29 +00:00
russell b1e06567ce Merged revisions 95191 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r95191 | russell | 2007-12-28 12:24:59 -0600 (Fri, 28 Dec 2007) | 6 lines

Remove duplicate increment of the header count in the add_header() function.

(closes issue #11648)
Reported by: makoto
Patch provided by sergee, committed patch by me, inspired by comments from putnopvut

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@95192 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-28 18:26:26 +00:00
mmichelson a0cbc07523 Some changes to app_amd.
The channel name is printed in verbose messages
maximumWordLength option added.
Duration of words that do not meet the minimum word duration will be logged
The duration of pre-greeting silence will be logged
Only consider us in the greeting if we actually detected a valid word duration.

(closes issue #11650, reported and patched by davevg)



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@95167 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-28 16:12:06 +00:00
rizzo 02ba367421 fix a small bug in printing out geometries - wrong input.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@95139 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-28 08:57:01 +00:00
mmichelson 25abe0abaf Merged revisions 95095 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r95095 | mmichelson | 2007-12-27 18:16:15 -0600 (Thu, 27 Dec 2007) | 8 lines

I found a bug while browsing the queue code and managed to reproduce it in a small setup.

If a queue uses the ringall strategy, it was possible through unfortunate coincidence for a single member at a given penalty level to
make app_queue think that all members at that penalty level were unavailable and cause the members at the
next penalty level to be rung. With this patch, we will only move to the next penalty level if ALL the members
at a given penalty level are unreachable.


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@95096 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-28 00:17:41 +00:00
rizzo 13b6df5c3f remove more unnecessary casts for NULL.
main/say.c is a big offender in this respect.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@95073 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-27 23:32:18 +00:00
qwell eaa6eea1b7 Fix -s socket option, and document it as well.
Closes issue #11645, patch by Laureano.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@95070 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-27 23:28:01 +00:00
rizzo 7c985dc90c NULL does not need to be cast to (char *)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@95069 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-27 23:13:15 +00:00
rizzo 99038eda0d remove useless casts
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@95068 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-27 23:00:55 +00:00
russell 80b48d41c5 Merged revisions 95024 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r95024 | russell | 2007-12-27 15:40:02 -0600 (Thu, 27 Dec 2007) | 9 lines

Don't report a syntax error when an empty string is passed to ast_get_group.
Just return 0.

(closes issue #11540)
Reported by: tzafrir
Patches: 
      group_empty.diff uploaded by tzafrir (license 46)
	   -- slightly changed by me

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@95025 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-27 21:41:22 +00:00
mmichelson d35e2bf77c Merged revisions 94977 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r94977 | mmichelson | 2007-12-27 14:09:06 -0600 (Thu, 27 Dec 2007) | 3 lines

Fixing a typo in a comment.


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94978 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-27 20:11:20 +00:00
file dedbfb6302 Merged revisions 94924 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r94924 | file | 2007-12-27 13:32:15 -0400 (Thu, 27 Dec 2007) | 6 lines

Include types.h in chan_h323 as without it it can not be compiled on some operating systems like FreeBSD to name one.
(closes issue #11585)
Reported by: sobomax
Patches:
      chan_h323.c.diff uploaded by sobomax (license 359)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94934 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-27 17:34:00 +00:00
file b8f41ba0bb Merged revisions 94905 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r94905 | file | 2007-12-27 13:27:11 -0400 (Thu, 27 Dec 2007) | 4 lines

Use ast_strlen_zero to see if our_contact is set or not on the dialog. It is possible for it to be a pointer to NULL.
(closes issue #11557)
Reported by: FuriousGeorge

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94908 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-27 17:28:52 +00:00
rizzo 115c729a35 more localization of gui stuff
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94904 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-27 17:26:16 +00:00
mmichelson 1c3afe8876 Adding documentation for new manager actions and events in app_queue
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94903 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-27 17:18:39 +00:00
rizzo ecca5a0232 clarify the type of video support in chan_oss
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94902 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-27 16:51:08 +00:00
russell 806b3cfdd3 I went looking for where we downloaded the g722 implementation and came across
these two links.  So, I'm adding them so they are available for reference later.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94877 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-27 16:11:41 +00:00
russell 5481f9ab8d Blocked revisions 94831 via svnmerge
........
r94831 | russell | 2007-12-27 09:16:56 -0600 (Thu, 27 Dec 2007) | 5 lines

Now that the contexts lock is a read/write lock, it should not be locked here
in ast_hint_state_changed().  This makes it get locked recursively which now
causes a deadlock.
(closes issue #11080, thanks to callguy for the access to a deadlocked machine)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94832 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-27 15:17:31 +00:00
russell 36f2ec39bc Merged revisions 94828-94829 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r94828 | russell | 2007-12-27 08:33:21 -0600 (Thu, 27 Dec 2007) | 9 lines

Change ast_translator_best_choice() to only pay attention to audio formats.
This fixes a problem where Asterisk claims that a translation path can not be
found for channels involving video.

(closes issue #11638)
Reported by: cwhuang
Tested by: cwhuang
Patch suggested by cwhuang, with some additional changes by me.

........
r94829 | russell | 2007-12-27 08:44:29 -0600 (Thu, 27 Dec 2007) | 2 lines

Use the constant that I really meant to use here ...

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94830 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-27 14:52:07 +00:00
oej 086b05e131 This function checks more than just contexts...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94827 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-27 09:13:07 +00:00
oej 417c8d8c97 - Add Copyright
- Doxygen fixes

Note:
- This application needs better documentation and a RESULT code in the
  dialplan.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94826 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-27 09:08:23 +00:00
kpfleming 3c7dd8c954 Merged revisions 94824 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r94824 | kpfleming | 2007-12-26 18:01:47 -0700 (Wed, 26 Dec 2007) | 2 lines

make this comment explain the situation in an even more explicit fashion

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94825 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-27 01:03:16 +00:00
rizzo 3873b83f28 more steps to decouple the gui from the rest of the code.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94823 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-27 00:48:38 +00:00
rizzo 3362e1caef Enable building the code even if SDL is not present (similarly,
SDL is also detected at runtime).
Now we should be able to stream video even without a rendering device
(useful for remote monitoring).



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94822 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-27 00:21:02 +00:00
rizzo 7a2d553924 more localizations around sdl_setup
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94821 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-26 23:40:23 +00:00
rizzo e7bc9bf26e use fread instead of mmap to read in the comment area from the keypad.
fread is simpler and more portable, and there is no performance gain
in using mmap.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94820 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-26 23:00:29 +00:00
rizzo 5715ce80b5 update the region description with an empty line at the beginning.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94819 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-26 22:52:43 +00:00
tilghman 254edbf055 Allow more spans than 32. Also, rearrange compiler flags so the most often
used flags appear closer to the top.
Reported by: tzafrir
Patch by: tzafrir,tilghman
(Closes issue #11528)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94818 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-26 22:38:02 +00:00