[Asterisk-cvs] asterisk/channels chan_iax2.c,1.169,1.170 iax2-provision.c,1.3,1.4 iax2-provision.h,1.1,1.2
markster at lists.digium.com
markster at lists.digium.com
Fri Jul 9 03:51:57 CDT 2004
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv9848/channels
Modified Files:
chan_iax2.c iax2-provision.c iax2-provision.h
Log Message:
Fix provisioning for unload/reload
Index: chan_iax2.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_iax2.c,v
retrieving revision 1.169
retrieving revision 1.170
diff -u -d -r1.169 -r1.170
--- chan_iax2.c 7 Jul 2004 09:34:01 -0000 1.169
+++ chan_iax2.c 9 Jul 2004 07:37:44 -0000 1.170
@@ -7108,6 +7108,7 @@
ast_unregister_switch(&iax2_switch);
ast_channel_unregister(type);
delete_users();
+ iax_provision_unload();
return 0;
}
Index: iax2-provision.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/iax2-provision.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- iax2-provision.c 8 Jul 2004 19:35:42 -0000 1.3
+++ iax2-provision.c 9 Jul 2004 07:37:44 -0000 1.4
@@ -455,6 +455,13 @@
return 0;
}
+int iax_provision_unload(void)
+{
+ provinit = 0;
+ ast_cli_unregister(&cli_show_provisioning);
+ return 0;
+}
+
int iax_provision_reload(void)
{
struct ast_config *cfg;
Index: iax2-provision.h
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/iax2-provision.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- iax2-provision.h 7 Jul 2004 09:34:01 -0000 1.1
+++ iax2-provision.h 9 Jul 2004 07:37:44 -0000 1.2
@@ -38,6 +38,7 @@
extern char *iax_provflags2str(char *buf, int buflen, unsigned int flags);
extern int iax_provision_reload(void);
+extern int iax_provision_unload(void);
extern int iax_provision_build(struct iax_ie_data *provdata, unsigned int *signature, const char *template, int force);
extern int iax_provision_version(unsigned int *signature, const char *template, int force);
extern char *iax_prov_complete_template(char *line, char *word, int pos, int state);
More information about the svn-commits
mailing list