Archived
14
0
Fork 0
Commit graph

14213 commits

Author SHA1 Message Date
crichter
3059048325 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: http://svn.digium.com/svn/asterisk/trunk@96221 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-03 14:47:30 +00:00
tilghman
3929e42198 Add coordination between AMI and AGI applications, with an asyncagi method
Feature proposed and patched by: moy
(Closes issue #11282)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@96174 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-03 06:16:48 +00:00
tilghman
2790a8dc3e Compatibility fix for OpenBSD
Report and fix by: mvanbaak
(Closes issue #11669)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@96147 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-03 01:59:27 +00:00
mmichelson
ba67b872f3 Merged revisions 96102 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r96102 | mmichelson | 2008-01-02 17:46:02 -0600 (Wed, 02 Jan 2008) | 4 lines

We need to reset the membername to NULL on each iteration of this loop, otherwise the result is that
multiple members can have the same name, since the variable was not reset on each iteration of the loop.


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@96103 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-02 23:48:43 +00:00
russell
245fbece26 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: http://svn.digium.com/svn/asterisk/trunk@96079 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-02 23:22:25 +00:00
russell
fafd23dfeb Note that this module doesn't actually play a ringing sound for an incoming call
... oops


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@96077 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-02 22:52:13 +00:00
russell
16ec2e0402 Show the correct CLI command to answer the call
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@96076 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-02 22:50:09 +00:00
kpfleming
bcc9a193e3 actually parse and store echocan parameters from zapata.conf... this *should* work <G>
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@96073 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-02 22:41:23 +00:00
file
9b2eb64fcc Don't use AST_C_DEFINE_CHECK for the two pthread things that may not actually be definitions, they could be enums for example.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@96071 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-02 22:40:55 +00:00
mmichelson
d58696d360 Add curly braces around a compound if statement so that trunk will build properly
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@96028 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-02 22:29:15 +00:00
russell
df976656d0 Blocked revisions 96024 via svnmerge
........
r96024 | russell | 2008-01-02 16:14:28 -0600 (Wed, 02 Jan 2008) | 2 lines

Convert locks of the contexts list in pbx_config to the appropriate rdlock or wrlock

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@96025 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-02 22:15:58 +00:00
russell
498a94ba16 Blocked revisions 96022 via svnmerge
........
r96022 | russell | 2008-01-02 16:04:47 -0600 (Wed, 02 Jan 2008) | 2 lines

pbx_dundi only needs a rdlock on the contexts list.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@96023 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-02 22:05:31 +00:00
russell
ed4df60311 Blocked revisions 96020 via svnmerge
........
r96020 | russell | 2008-01-02 16:00:21 -0600 (Wed, 02 Jan 2008) | 2 lines

app_macro only needs a rdlock on the contexts list.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@96021 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-02 22:00:50 +00:00
kpfleming
3b9ff99221 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: http://svn.digium.com/svn/asterisk/trunk@96019 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-02 21:51:37 +00:00
russell
73b4b3d645 Add doxygen documentation to libresample.h while it's still fresh on my mind
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@96018 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-02 21:49:44 +00:00
mmichelson
eff3a6e5af 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: http://svn.digium.com/svn/asterisk/trunk@95994 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-02 21:08:33 +00:00
file
a192502092 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: http://svn.digium.com/svn/asterisk/trunk@95947 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-02 20:26:25 +00:00
mmichelson
d6aaa3bd82 Since ',' is the standard argument separator in trunk, change app_queue
to use AST_STANDARD_APP_ARGS instead of AST_NONSTANDARD_APP_ARGS for determining
member data.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@95945 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-02 20:23:23 +00:00
mmichelson
410f535eba Fix a typo in a comment. AST_STANDARD_APP_ARGS uses ',' as the separator,
not '|'.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@95944 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-02 20:19:40 +00:00
kpfleming
e6a8f95f77 clean up hwgain CLI command and improve docs for swgain CLI command
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@95939 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-02 19:47:25 +00:00
kpfleming
96852f698d improve AC_C_DEFINE_CHECK to not try to evaluate the macro being checked for, but just check for its existence
finish implementation of check for Zaptel HWGAIN support
add check for Zaptel ECHOCANCEL_PARAMS support


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@95937 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-02 19:34:33 +00:00
kpfleming
3f0b6d8d86 and now just to keep the libresample party going... if the functions from libresample are going to be in the main Asterisk binary, it makes sense for the header that defines them to be available without any special CFLAGS and to out-of-tree modules building against /usr/include/asterisk
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@95894 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-02 18:21:04 +00:00
kpfleming
a7c4d3677c 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: http://svn.digium.com/svn/asterisk/trunk@95893 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-02 18:17:15 +00:00
mmichelson
3cea8e1b9c Merged revisions 95890 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r95890 | mmichelson | 2008-01-02 11:51:22 -0600 (Wed, 02 Jan 2008) | 9 lines

A change to improve the accuracy of queue logging in the case where a member does not
answer during the specified timeout period. Prior to this change, there was a small chance
that the member name recorded in this case would be blank. Also prior to this change, if using
the ringall strategy, if no one answered the call during the specified timeout, the member name
listed in the queue log would randomly be one of the members that was rung.

(closes issue #11498, reported and tested by hloubser, patched by me)


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@95891 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-02 18:05:57 +00:00
qwell
5816bf7537 Update osplookup documentation to use commas instead of pipes.
Closes issue #11666, patch by Laureano.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@95888 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-02 17:38:02 +00:00
russell
3e8971d88f For some odd reason, the last set of libresample build changes from Kevin did
not work for everyone, but it did for some.  This set of changes makes trunk
start again for those having problems.  Instead of building libresample as a
static library, it just links the object files in directly with the asterisk
binary.


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