- fixed peerlink verbose message.
- added version info to CLI command 'capi info'.
This commit is contained in:
parent
643081eb2f
commit
2b907882eb
|
@ -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) {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue