[Asterisk-cvs] asterisk/res res_parking.c,1.14,1.15
markster at lists.digium.com
markster at lists.digium.com
Fri Jan 30 00:22:46 CST 2004
Update of /usr/cvsroot/asterisk/res
In directory mongoose.digium.com:/tmp/cvs-serv31531/res
Modified Files:
res_parking.c
Log Message:
Fix res_parking
Index: res_parking.c
===================================================================
RCS file: /usr/cvsroot/asterisk/res/res_parking.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- res_parking.c 30 Jan 2004 05:49:44 -0000 1.14
+++ res_parking.c 30 Jan 2004 06:31:25 -0000 1.15
@@ -162,11 +162,11 @@
"Exten: %d\r\n"
"Channel: %s\r\n"
"From: %s\r\n"
- "Timeout: %d\r\n"
+ "Timeout: %ld\r\n"
"CallerID: %s\r\n"
"\r\n"
,pu->parkingnum, pu->chan->name, peer->name
- ,pu->start.tv_sec + (pu->parkingtime/1000) - time(NULL)
+ ,(long)pu->start.tv_sec + (long)(pu->parkingtime/1000) - (long)time(NULL)
,(pu->chan->callerid ? pu->chan->callerid : "")
);
@@ -620,7 +620,7 @@
{
struct parkeduser *cur;
- astman_send_ack(s, "Parked calls will follow");
+ astman_send_ack(s, m, "Parked calls will follow");
ast_mutex_lock(&parking_lock);
@@ -629,11 +629,11 @@
ast_cli(s->fd, "Event: ParkedCall\r\n"
"Exten: %d\r\n"
"Channel: %s\r\n"
- "Timeout: %d\r\n"
+ "Timeout: %ld\r\n"
"CallerID: %s\r\n"
"\r\n"
,cur->parkingnum, cur->chan->name
- ,cur->start.tv_sec + (cur->parkingtime/1000) - time(NULL)
+ ,(long)cur->start.tv_sec + (long)(cur->parkingtime/1000) - (long)time(NULL)
,(cur->chan->callerid ? cur->chan->callerid : "")
);
@@ -698,10 +698,10 @@
ast_add_extension2(con, 1, exten, 1, NULL, parkedcall, strdup(exten), free, registrar);
}
pthread_create(&parking_thread, NULL, do_parking_thread, NULL);
+ res = ast_register_application(parkedcall, park_exec, synopsis, descrip);
if (!res) {
ast_manager_register( "ParkedCalls", 0, manager_parking_status, "List parked calls" );
}
- res = ast_register_application(parkedcall, park_exec, synopsis, descrip);
return res;
}
More information about the svn-commits
mailing list