[Asterisk-cvs] asterisk/channels chan_h323.c,1.14,1.15
jeremy at lists.digium.com
jeremy at lists.digium.com
Thu Dec 18 13:57:08 CST 2003
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv20881/channels
Modified Files:
chan_h323.c
Log Message:
don't create another endpoint on a reload
Index: chan_h323.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_h323.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- chan_h323.c 18 Dec 2003 18:48:47 -0000 1.14
+++ chan_h323.c 18 Dec 2003 19:48:42 -0000 1.15
@@ -212,7 +212,7 @@
} else if (!strcasecmp(v->name, "secret")) {
strncpy(alias->secret, v->value, sizeof(alias->secret)-1);
} else {
- if (strcasecmp(v->name, "h323")) {
+ if (strcasecmp(v->value, "h323")) {
ast_log(LOG_WARNING, "Keyword %s does not make sense in type=h323\n", v->value);
}
}
@@ -1402,9 +1402,10 @@
return 1;
}
- /* fire up the H.323 Endpoint */
- h323_end_point_create();
-
+ /* fire up the H.323 Endpoint */
+ if (!h323_end_point_exist()) {
+ h323_end_point_create();
+ }
h323debug=0;
dtmfmode = H323_DTMF_RFC2833;
More information about the svn-commits
mailing list