[asterisk-commits] oej: branch oej/videocaps r99974 - in /team/oej/videocaps: ./ apps/ channels/...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Jan 23 13:49:18 CST 2008
Author: oej
Date: Wed Jan 23 13:49:18 2008
New Revision: 99974
URL: http://svn.digium.com/view/asterisk?view=rev&rev=99974
Log:
Reset automerge
Modified:
team/oej/videocaps/ (props changed)
team/oej/videocaps/apps/app_chanspy.c
team/oej/videocaps/channels/chan_h323.c
team/oej/videocaps/channels/chan_zap.c
team/oej/videocaps/main/tcptls.c
Change Statistics:
0 files changed
Propchange: team/oej/videocaps/
------------------------------------------------------------------------------
--- automerge (original)
+++ automerge Wed Jan 23 13:49:18 2008
@@ -1,1 +1,1 @@
-http://www.asteriskideas.org
+http://www.codename-pineapple.org/
Propchange: team/oej/videocaps/
------------------------------------------------------------------------------
Binary property 'branch-1.4-blocked' - no diff available.
Propchange: team/oej/videocaps/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.
Propchange: team/oej/videocaps/
------------------------------------------------------------------------------
--- svnmerge-integrated (original)
+++ svnmerge-integrated Wed Jan 23 13:49:18 2008
@@ -1,1 +1,1 @@
-/trunk:1-99858
+/trunk:1-99973
Modified: team/oej/videocaps/apps/app_chanspy.c
URL: http://svn.digium.com/view/asterisk/team/oej/videocaps/apps/app_chanspy.c?view=diff&rev=99974&r1=99973&r2=99974
==============================================================================
--- team/oej/videocaps/apps/app_chanspy.c (original)
+++ team/oej/videocaps/apps/app_chanspy.c Wed Jan 23 13:49:18 2008
@@ -409,6 +409,7 @@
int res;
char *ptr;
int num;
+ int num_spyed_upon = 1;
if (ast_test_flag(flags, OPTION_EXIT)) {
const char *c;
@@ -428,7 +429,7 @@
waitms = 100;
for (;;) {
- if (!ast_test_flag(flags, OPTION_QUIET)) {
+ if (!ast_test_flag(flags, OPTION_QUIET) && num_spyed_upon) {
res = ast_streamfile(chan, "beep", chan->language);
if (!res)
res = ast_waitstream(chan, "");
@@ -465,6 +466,7 @@
/* reset for the next loop around, unless overridden later */
waitms = 100;
peer = prev = next = NULL;
+ num_spyed_upon = 0;
for (peer = next_channel(peer, spec, exten, context);
peer;
@@ -530,7 +532,8 @@
waitms = 5000;
res = channel_spy(chan, peer, &volfactor, fd, flags, exitcontext);
-
+ num_spyed_upon++;
+
if (res == -1) {
goto exit;
} else if (res == -2) {
Modified: team/oej/videocaps/channels/chan_h323.c
URL: http://svn.digium.com/view/asterisk/team/oej/videocaps/channels/chan_h323.c?view=diff&rev=99974&r1=99973&r2=99974
==============================================================================
--- team/oej/videocaps/channels/chan_h323.c (original)
+++ team/oej/videocaps/channels/chan_h323.c Wed Jan 23 13:49:18 2008
@@ -1031,6 +1031,8 @@
ch->rawwriteformat = fmt;
ch->readformat = fmt;
ch->rawreadformat = fmt;
+ if (!pvt->rtp)
+ __oh323_rtp_create(pvt);
#if 0
ast_channel_set_fd(ch, 0, ast_rtp_fd(pvt->rtp));
ast_channel_set_fd(ch, 1, ast_rtcp_fd(pvt->rtp));
Modified: team/oej/videocaps/channels/chan_zap.c
URL: http://svn.digium.com/view/asterisk/team/oej/videocaps/channels/chan_zap.c?view=diff&rev=99974&r1=99973&r2=99974
==============================================================================
--- team/oej/videocaps/channels/chan_zap.c (original)
+++ team/oej/videocaps/channels/chan_zap.c Wed Jan 23 13:49:18 2008
@@ -13100,7 +13100,7 @@
strcpy(confp->chan.echocancel.params[confp->chan.echocancel.head.param_count].name, param.name);
if (param.value) {
- if (sscanf(param.value, "%ud", &confp->chan.echocancel.params[confp->chan.echocancel.head.param_count].value) != 1) {
+ if (sscanf(param.value, "%d", &confp->chan.echocancel.params[confp->chan.echocancel.head.param_count].value) != 1) {
ast_log(LOG_WARNING, "Invalid echocancel parameter value supplied at line %d: '%s'\n", line, param.value);
continue;
}
Modified: team/oej/videocaps/main/tcptls.c
URL: http://svn.digium.com/view/asterisk/team/oej/videocaps/main/tcptls.c?view=diff&rev=99974&r1=99973&r2=99974
==============================================================================
--- team/oej/videocaps/main/tcptls.c (original)
+++ team/oej/videocaps/main/tcptls.c Wed Jan 23 13:49:18 2008
@@ -83,22 +83,20 @@
HOOK_T server_read(struct server_instance *ser, void *buf, size_t count)
{
- if (!ser->ssl)
- return read(ser->fd, buf, count);
#ifdef DO_SSL
- else
+ if (ser->ssl)
return ssl_read(ser->ssl, buf, count);
#endif
+ return read(ser->fd, buf, count);
}
HOOK_T server_write(struct server_instance *ser, void *buf, size_t count)
{
- if (!ser->ssl)
- return write(ser->fd, buf, count);
#ifdef DO_SSL
- else
+ if (ser->ssl)
return ssl_write(ser->ssl, buf, count);
#endif
+ return write(ser->fd, buf, count);
}
void *server_root(void *data)
@@ -356,9 +354,11 @@
void *ast_make_file_from_fd(void *data)
{
struct server_instance *ser = data;
+#ifdef DO_SSL
int (*ssl_setup)(SSL *) = (ser->client) ? SSL_connect : SSL_accept;
int ret;
char err[256];
+#endif
/*
* open a FILE * as appropriate.
More information about the asterisk-commits
mailing list