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

Modified Files:
        res_osp.c 
Log Message:
use API call for setting call time limit (issue #5227)


Index: res_osp.c
===================================================================
RCS file: /usr/cvsroot/asterisk/res/res_osp.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- res_osp.c   14 Sep 2005 20:46:50 -0000      1.22
+++ res_osp.c   14 Sep 2005 21:24:50 -0000      1.23
@@ -534,7 +534,6 @@
        OSPTCALLID *callid;
        OSPE_DEST_PROT prot;
        OSPE_DEST_OSP_ENABLED ospenabled;
-       time_t now;
 
        result->handle = -1;
        result->numresults = 0;
@@ -597,8 +596,7 @@
                                                sizeof(callednum), callednum, 
sizeof(callingnum), callingnum, sizeof(destination), destination, 0, NULL, 
&tokenlen, token)) {
                                                ast_log(LOG_DEBUG, "Got 
destination '%s' and called: '%s' calling: '%s' for '%s' (provider '%s')\n",
                                                        destination, callednum, 
callingnum, extension, provider);
-                                               time (&now);
-                                               chan->whentohangup = now + 
timelimit;   // Only support OSP server with only one duration limit
+                                               ast_channel_setwhentohangup 
(chan, timelimit);  /* Only support OSP server with only one duration limit */
                                                do {
                                                        if 
(!OSPPTransactionIsDestOSPEnabled (result->handle, &ospenabled) && (ospenabled 
== OSPE_OSP_FALSE)) {
                                                                
result->token[0] = 0;

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

Reply via email to