[Asterisk-cvs] asterisk/channels chan_zap.c,1.357,1.358
markster at lists.digium.com
markster at lists.digium.com
Sat Oct 16 18:35:02 CDT 2004
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv28830/channels
Modified Files:
chan_zap.c
Log Message:
Make chan_zap reloadable (bug #2637)
Index: chan_zap.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_zap.c,v
retrieving revision 1.357
retrieving revision 1.358
diff -u -d -r1.357 -r1.358
--- chan_zap.c 14 Oct 2004 04:03:24 -0000 1.357
+++ chan_zap.c 16 Oct 2004 22:34:57 -0000 1.358
@@ -6007,34 +6007,6 @@
return 0;
}
-static int reset_channel(struct zt_pvt *p)
-{
- int ioctlflag = 1;
- int res = 0;
- int i = 0;
-
- ast_log(LOG_DEBUG, "reset_channel()\n");
- if (p->owner) {
[...1443 lines suppressed...]
+
int reload(void)
{
- if (reload_zt()) {
- ast_log(LOG_WARNING, "Reload of chan_zap is unsuccessful\n");
+ int res = 0;
+
+ res = setup_zap(1);
+ if (res) {
+ ast_log(LOG_WARNING, "Reload of chan_zap.so is unsuccessful!\n");
return -1;
}
-
return 0;
}
-#endif
+
int usecount()
{
int res;
More information about the svn-commits
mailing list