- fixed peerlink verbose message.

- added version info to CLI command 'capi info'.
This commit is contained in:
MelwareDE 2007-04-24 08:35:44 +00:00
parent 643081eb2f
commit 2b907882eb
2 changed files with 5 additions and 2 deletions

View File

@ -5159,6 +5159,8 @@ static int pbxcli_capi_info(int fd, int argc, char *argv[])
if (argc != 2)
return RESULT_SHOWUSAGE;
ast_cli(fd, "%s www.chan-capi.org\n", tdesc);
for (i = 1; i <= capi_num_controllers; i++) {
if (capi_controllers[i] != NULL) {

View File

@ -893,10 +893,11 @@ struct ast_channel *cc_get_peer_link_id(const char *p)
if ((id >= 0) && (id < CAPI_MAX_PEERLINKCHANNELS)) {
chan = peerlinkchannel[id].channel;
peerlinkchannel[id].channel = NULL;
} else {
cc_verbose(3, 1, VERBOSE_PREFIX_4 "capi: peerlink %d allocated, peer is %s\n",
id, (chan)?chan->name:"unlinked");
}
cc_mutex_unlock(&peerlink_lock);
cc_verbose(3, 1, VERBOSE_PREFIX_4 "capi: peerlink %d allocated, peer is %s\n",
id, (chan)?chan->name:"unlinked");
return chan;
}