[Asterisk-cvs] asterisk/channels chan_skinny.c,1.93,1.94
jeremy
jeremy
Wed Nov 16 16:17:57 CST 2005
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv8117/channels
Modified Files:
chan_skinny.c
Log Message:
don't register channel type until we are ready, coding format updates
Index: chan_skinny.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_skinny.c,v
retrieving revision 1.93
retrieving revision 1.94
diff -u -d -r1.93 -r1.94
--- chan_skinny.c 6 Nov 2005 15:09:46 -0000 1.93
+++ chan_skinny.c 16 Nov 2005 21:07:52 -0000 1.94
@@ -1084,19 +1084,21 @@
req->len = htolel(sizeof(struct call_info_message));
req->e = htolel(CALL_INFO_MESSAGE);
- if (fromname)
+ if (fromname) {
ast_copy_string(req->data.callinfo.callingPartyName, fromname, sizeof(req->data.callinfo.callingPartyName));
- if (fromnum)
+ }
+ if (fromnum) {
ast_copy_string(req->data.callinfo.callingParty, fromnum, sizeof(req->data.callinfo.callingParty));
- if (toname)
[...1270 lines suppressed...]
+ /* Announce our presence to Asterisk */
+ if (!res) {
+ /* Make sure we can register our skinny channel type */
+ if (ast_channel_register(&skinny_tech)) {
+ ast_log(LOG_ERROR, "Unable to register channel class %s\n", type);
+ return -1;
+ }
+ }
return res;
}
@@ -3355,8 +3320,6 @@
/* close all IP connections */
if (!ast_mutex_lock(&devicelock)) {
/* Terminate tcp listener thread */
-
-
} else {
ast_log(LOG_WARNING, "Unable to lock the monitor\n");
return -1;
More information about the svn-commits
mailing list