dect
/
asterisk
Archived
13
0
Fork 0
Commit Graph

14237 Commits

Author SHA1 Message Date
kpfleming d1bc2f34f0 fix some long-time breakage that kept chan_misdn from being embedded
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@95841 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-02 14:53:26 +00:00
kpfleming 392b2695dd use the proper technique for including submodules so that embedding will work
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@95840 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-02 14:50:46 +00:00
kpfleming 16a0b3a8a6 note that chan_console requires portaudio v19
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@95839 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-02 14:37:50 +00:00
kpfleming 7eb5322b5b actually check for a function present in libiconv (don't know how this test could have worked before) and don't do the check on Linux/GNU systems because libiconv is not present there and attempting to link with '-liconv' always fails (it's not necessary as the iconv functionality is always available)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@95817 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-02 14:20:46 +00:00
kpfleming 933ddf410a go back to including libresample in the main Asterisk binary, but this time including a small hack to ensure that it does get linked in (and also modify the strip_nonapi script to leave the resample_<foo> symbols alone)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@95816 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-02 14:05:30 +00:00
phsultan 5bdb7dc6b7 Set stream flags to zero upon initialization.
When the XMPP over TLS/SSL connection resets for some reason, it is
wrongly believed as being secured, which makes the re-connection
process endlessly fail. This was reported by mvanbaak in issue #11644.

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@95794 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-02 11:34:26 +00:00
rizzo 01a256ce24 some cleanup of this code while I am trying to debug a problem with
gdb dying while debugging asterisk. The problem seems to be related
with a race in the handling of module_list, which in turn is triggeded
by calling dlopen() on a system which uses initializers to create
locks.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@95772 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-02 09:16:17 +00:00
rizzo bbd7d8014b There are three instances of the module definition macros,
which make maintaining this file very error prone.

This commit merges the embedded and !embedded versions,
and fixes the C++ version. Eventually we should move to
a single version of the macro.

Too bad C++ doesn't like the C-style struct initializers
    .foo = some_value



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@95771 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-02 08:53:16 +00:00
russell b68637439f Don't make libresample print out debugging output
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@95746 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-02 04:33:53 +00:00
russell dd19681920 Make the translation table show slin16
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@95735 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-02 04:31:23 +00:00
russell 230f6b84bd fix a spacing issue introduced in revision 95443.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@95723 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-02 03:36:39 +00:00
russell 21969815a0 Instead of linking libresample into the main Asterisk binary, build it as
res_resample, and mark codec_resample as dependent upon res_resample.  This
prevents the linker from optimizing away libresample, and also makes it so the
libresample code isn't linked in to multiple places.  (I have another module
in a branch that needs it, too.)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@95697 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-02 01:00:44 +00:00
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