Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv19853/channels

Modified Files:
        chan_oss.c 
Log Message:
Fix chan_oss buglets (bug #5618)


Index: chan_oss.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_oss.c,v
retrieving revision 1.60
retrieving revision 1.61
diff -u -d -r1.60 -r1.61
--- chan_oss.c  27 Oct 2005 02:19:37 -0000      1.60
+++ chan_oss.c  6 Nov 2005 04:44:19 -0000       1.61
@@ -845,6 +845,7 @@
 
        case -1:
                o->cursound = -1;
+               o->nosound = 0; /* when cursound is -1 nosound must be 0 */
                return 0;
 
        case AST_CONTROL_VIDUPDATE:
@@ -1081,6 +1082,7 @@
        if (argc != 1)
                return RESULT_SHOWUSAGE;
        o->cursound = -1;
+       o->nosound = 0; /* when cursound is -1 nosound must be 0 */
        if (!o->owner) { /* XXX maybe !o->hookstate too ? */
                ast_cli(fd, "No call to flash\n");
                return RESULT_FAILURE;
@@ -1293,6 +1295,7 @@
                o->name = strdup(ctg);
        }
 
+       o->lastopen = ast_tvnow(); /* don't leave it 0 or tvdiff may wrap */
        /* fill other fields from configuration */
        for (v = ast_variable_browse(cfg, ctg);v; v=v->next) {
                M_START(v->name, v->value);

_______________________________________________
Asterisk-Cvs mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-cvs

Reply via email to