Joshua Colp
48f166e87b
Code cleanup of res_agi
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@74713 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-07-11 21:09:42 +00:00
Joshua Colp
21e30f9d7d
Code cleanup of res_smdi
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@74705 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-07-11 20:57:25 +00:00
Russell Bryant
4f84931f12
Merged revisions 74657 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.4
................
r74657 | russell | 2007-07-11 13:34:51 -0500 (Wed, 11 Jul 2007) | 12 lines
Merged revisions 74656 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r74656 | russell | 2007-07-11 13:33:23 -0500 (Wed, 11 Jul 2007) | 4 lines
Make sure that the ESCAPE immediately follows the condition that uses LIKE.
This fixes realtime extensions with ODBC.
(closes issue #10175 , reported by stuarth, patch by me)
........
................
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@74658 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-07-11 18:35:36 +00:00
Joshua Colp
7e015109a2
Use the linkedlists.h AST_LIST_NEXT macro for modifying the list of results.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@74616 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-07-11 17:34:30 +00:00
Joshua Colp
f8e605fe25
Allow the native formats of a channel to influence the audio that is going to the engine. The best format will try to be chosen with an ultimate fallback to signed linear if possible.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@74570 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-07-11 16:19:00 +00:00
Joshua Colp
b314d6ee08
Can't forget to remember what format is in use for writing.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@74560 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-07-11 16:10:03 +00:00
Joshua Colp
406c3df40e
Change the speech API to allow passing the format through to the engine.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@74551 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-07-11 16:03:31 +00:00
Russell Bryant
e9290d5178
Merged revisions 74323 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r74323 | russell | 2007-07-10 11:00:11 -0500 (Tue, 10 Jul 2007) | 1 line
fix an uninitialized variable
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@74324 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-07-10 16:01:27 +00:00
Russell Bryant
760649be75
Merged revisions 74314 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.4
................
r74314 | russell | 2007-07-10 10:31:41 -0500 (Tue, 10 Jul 2007) | 11 lines
Merged revisions 74313 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r74313 | russell | 2007-07-10 10:30:20 -0500 (Tue, 10 Jul 2007) | 3 lines
Only use ESCAPE when LIKE is used.
(issue #10075 , this part reported by jmls on IRC, patch by me)
........
................
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@74315 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-07-10 15:32:21 +00:00
Jason Parker
76e2e39f77
Fix building that was broken by recent monitor.h changes. Thanks Russell for pointing this out (and pointing out what I probably did to prevent gcc from fixing it - don't ctrl-C builds)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@74272 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-07-10 15:07:25 +00:00
Jason Parker
ef94957540
(closes issue #7596 )
...
Reported by: julien23
Patches submitted by: julien23
Add the ability to disable recording the input or output streams in res_monitor.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@74164 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-07-09 20:58:22 +00:00
Russell Bryant
7f10fccec1
Merged revisions 74162 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r74162 | russell | 2007-07-09 15:53:46 -0500 (Mon, 09 Jul 2007) | 9 lines
(closes issue #10123 )
Reported by: blitzrage
Patches submitted by: juggie, qwell, me
Tested by: blitzrage
When trying to find a music on hold class to use, try all of the options,
instead of only the first one that is set. Also, change the MusicOnHold
applications to not hang up on the channel when a class can not be found.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@74163 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-07-09 20:54:34 +00:00
Joshua Colp
f80af1ff80
Use linkedlist macros for parking.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@73964 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-07-09 02:29:00 +00:00
Russell Bryant
cf6ee48b5b
ast_exists_extension() does not return an ast_device_state, so change this
...
function to explicitly check for the int return value. Also, make a few
other minor changes such as removing a variable.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@73886 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-07-08 13:22:30 +00:00
Russell Bryant
53756e6716
Merged revisions 73696 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.4
................
r73696 | russell | 2007-07-06 11:12:51 -0500 (Fri, 06 Jul 2007) | 16 lines
Merged revisions 73684 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r73684 | russell | 2007-07-06 11:06:27 -0500 (Fri, 06 Jul 2007) | 8 lines
(closes issue #10075 )
Reported by: apsaras
Patches submitted by: Corydon76
Tested by: apsaras
Fix a problem with MSSQL 2005 by explicitly stating that '\' is being used as
an escape character.
........
................
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@73701 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-07-06 16:14:39 +00:00
Russell Bryant
6643934403
Merged revisions 73512 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r73512 | russell | 2007-07-05 15:50:08 -0500 (Thu, 05 Jul 2007) | 5 lines
Pass HOLD and UNHOLD frames to the other channel when they are returned from a
native bridge function. This fixes a problem where when two zap channels are
natively bridged and one does a flash hook, the other channel did not receive
music on hold. (Reported to me directly by Doug Bailey at Digium)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@73513 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-07-05 20:51:08 +00:00
Jason Parker
685c48b19c
Correct an issue where the wrong type was being used to start sasl.
...
Pointed out by and patch provided by mog.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@72987 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-07-03 02:51:08 +00:00
Russell Bryant
d2a85e5f64
After some discussion on the asterisk-dev list, we determined that this approach
...
for extracting application, function, manager, and agi documentation is the wrong
one to take. The most severe problem is that the output depends on which modules
are loaded as well as compile time options, which both determine which parts are
available.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@72986 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-07-02 23:02:16 +00:00
Russell Bryant
8d99a2004b
Fix up the AGI doc dump CLI command and update the AGI commands tex file to not
...
include a bunch of empty entries.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@72939 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-07-02 20:45:53 +00:00
Joshua Colp
0f36e1ef75
Fix building under Solaris.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@72935 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-07-02 20:27:28 +00:00
Russell Bryant
93229b0fed
Add a CLI command to export the AGI command docs
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@72931 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-07-02 19:29:50 +00:00
Russell Bryant
625dbb6f89
Add a note that the AGI commands array is not handled in a thread-safe way
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@72930 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-07-02 19:01:16 +00:00
Tilghman Lesher
a952147446
Remove the ill-advised ast_restrdupa API call and related structures
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@72492 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-28 19:41:18 +00:00
Jason Parker
b1d53e8fc3
Fix building with -Wdeclaration-after-statement
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@72490 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-28 19:30:39 +00:00
Luigi Rizzo
ad42dfe1dd
move variable declarations to the beginning of a block.
...
Not applicable to previous branches.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@72457 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-28 19:02:31 +00:00
Jason Parker
e3cf86f4b3
Simplify some code in res_jabber relating to SASL support.
...
Issue 9988, patch by phsultan.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@71830 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-26 16:39:22 +00:00
Tilghman Lesher
82e2033519
Merged revisions 71657 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.4
................
r71657 | tilghman | 2007-06-25 13:14:59 -0500 (Mon, 25 Jun 2007) | 10 lines
Merged revisions 71656 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r71656 | tilghman | 2007-06-25 13:12:37 -0500 (Mon, 25 Jun 2007) | 2 lines
Issue 10035 - handle_exec returns a result inconsistent with all of the other AGI commands
........
................
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@71658 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-25 18:20:18 +00:00
Joshua Colp
9b23b9b3b2
Minor header inclusion tweak for new usage of stat()
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@71521 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-25 13:00:49 +00:00
Tilghman Lesher
2e4b41841d
Merged revisions 71291 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r71291 | tilghman | 2007-06-24 12:50:24 -0500 (Sun, 24 Jun 2007) | 2 lines
Issue 10044 - chan->cdr is NULL here, so peer->cdr is what we really wanted to use
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@71292 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-24 17:51:55 +00:00
Steve Murphy
d17beedd5a
Merged revisions 71230 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r71230 | murf | 2007-06-22 21:29:48 -0600 (Fri, 22 Jun 2007) | 1 line
This patch is meant to fix 8433; where clid and src are lost via bridging.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@71231 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-23 03:32:59 +00:00
Joshua Colp
c00428b0b0
Use stat to determine whether the file exists or not. (issue #10038 reported by Mike Anikienko)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@71158 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-22 16:19:53 +00:00
Jason Parker
68ac7f7633
Merged revisions 71068 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.4
................
r71068 | qwell | 2007-06-22 10:00:30 -0500 (Fri, 22 Jun 2007) | 12 lines
Merged revisions 71065 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r71065 | qwell | 2007-06-22 09:52:18 -0500 (Fri, 22 Jun 2007) | 4 lines
Fix a few silly usages of ast_playstream() - it only ever returns 0...
Issue 10035
........
................
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@71069 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-22 15:03:32 +00:00
Tilghman Lesher
a1bc823136
Issue 9990 - New API ast_mkdir, which creates parent directories as necessary (and is faster than an outcall to mkdir -p)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@71040 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-22 04:35:12 +00:00
Joshua Colp
fd9057423a
Expand AGISTATUS variable to include NOTFOUND which is set when the AGI file could not be found. (issue #9285 reported by srdjan)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@70731 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-21 15:58:05 +00:00
Joshua Colp
c6755754d1
Merged revisions 69847 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.4
................
r69847 | file | 2007-06-19 09:00:57 -0400 (Tue, 19 Jun 2007) | 10 lines
Merged revisions 69846 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r69846 | file | 2007-06-19 08:57:55 -0400 (Tue, 19 Jun 2007) | 2 lines
Add parked call extension AFTER the parking slot has been announced, otherwise two threads will try to handle the same channel and it will go kaboom. (issue #9191 reported by japple)
........
................
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@69850 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-19 13:04:24 +00:00
Russell Bryant
43658278ff
Merged revisions 69702 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r69702 | russell | 2007-06-18 11:35:02 -0500 (Mon, 18 Jun 2007) | 6 lines
To prevent 92138749238754 more reports of "I have unixodbc installed, but
still can't build *_odbc.so!", check for ltdl directly, instead of just listing
it as another library to include in the unixodbc check in the configure script.
This also makes ltdl show up as a dependency in menuselect so people know what
to go install. (related to issue #9989 , patch by me)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@69703 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-18 16:35:51 +00:00
Russell Bryant
b179e2155f
Convert uses of strdup() to ast_strdup()
...
(issue #9983 , eliel)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@69436 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-14 23:01:01 +00:00
Russell Bryant
055d82cbce
Add a massive set of changes for converting to use the ast_debug() macro.
...
(issue #9957 , patches from mvanbaak, caio1982, critch, and dimas)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@69327 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-14 19:39:12 +00:00
Jason Parker
f25db8cc78
Continuation of issue 9968 (revision 69081). This should be the last one.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@69108 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-13 17:37:06 +00:00
Russell Bryant
f379df9773
Simplify some logic and convert spaces to tabs
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@69068 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-13 16:19:37 +00:00
Russell Bryant
5d350e0f81
The variable used for the return value must be declared as static. I broke
...
this when applying the patch, sorry!
(issue #9637 , jeffg)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@69067 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-13 16:05:22 +00:00
Russell Bryant
3b9a36109f
Add support for retrieving the number of channels that are currently bridged
...
via SNMP.
(closes issue #9637 , initial patch from jeffg, modified by me)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@68507 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-08 21:31:33 +00:00
Russell Bryant
68492b239c
Add an option for ControlPlayback to be able to start at an offset from
...
the beginning of the file. Also, add a channel variable that indicates
the location in the file where the Playback was stopped.
(closes issue #7655 , patch from sharkey)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@68502 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-08 21:02:46 +00:00
Jason Parker
77012734eb
Fix incorrect logic for param count.
...
Issue 9918.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@68449 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-08 15:51:53 +00:00
Russell Bryant
1d57ccb6f7
Fix a bunch of doxygen errors and document more things
...
(issue #9842 , snuffy)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@68339 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-07 23:07:25 +00:00
Russell Bryant
1cd610ddbe
Doxygenify a lot of the functions in res_jabber
...
(issue #9886 , snuffy)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@68289 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-07 21:22:25 +00:00
Russell Bryant
bc0702ba23
Minor formatting change ... testing mantis stuff to see if we're done
...
(issue #9790 )
(closes issue #9816 )
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@68118 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-07 15:48:14 +00:00
Olle Johansson
9af51baee7
Merged revisions 68030 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r68030 | oej | 2007-06-07 12:00:17 +0200 (Thu, 07 Jun 2007) | 2 lines
Adding a few Todo's to res_jabber so we don't forget.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@68040 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-07 10:06:32 +00:00
Olle Johansson
ddb10bf8c7
Merged revisions 68028 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r68028 | oej | 2007-06-07 11:55:13 +0200 (Thu, 07 Jun 2007) | 4 lines
Ok, we found out that this is not about if you have any *active* clients using TLS, but
if you have initialized TLS at all during the lifetime of the module. So if you reload
to disable TLS, it won't help.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@68031 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-07 10:00:37 +00:00
Olle Johansson
18a9f4d805
Merged revisions 68027 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r68027 | oej | 2007-06-07 11:42:26 +0200 (Thu, 07 Jun 2007) | 8 lines
If you have a jabber client that uses TLS, refuse unload. Bad fix, but will prevent
crashes while we are trying to find a workaround.
Iksemel development seems to have stalled and we might have to stop using the
TCP/TLS connections in that library and use our own, which would scale better
from a poll/select perspective I guess. It would also make it easier to migrate
to OpenSSL and stop Asterisk from depending on both OpenSSL and GnuTLS.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@68029 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-07 09:57:52 +00:00