chan_capi error after update
Andreas Longwitz
longwitz at incore.de
Sat Feb 20 14:13:51 UTC 2016
Hi,
thanks for investigating in this problem !
> I found a minor bug there. I've made v2.0.15 available. Just SVN up and
> install the port. I've also fixed a build issue with later versions of
> asterisk, that it needs the "-fblocks" CFLAG when compiling.
>
> I'm currently using the exact same setup with Asterisk 11.x without any
> such problems.
OK, at the moment I am a little bit late with versions because I use a
consistent portstree 2014Q4 running poudriere on all of my servers.
>
> --HPS
After update to chan_capi 2.0.15 (without the -fblocks CFLAG, because
the compiler does not know in V8: cc1: error: unrecognized command line
option "-fblocks") the problem has not gone away. But the order of the
messages is a little bit different now:
[2016-02-20 14:55:37.071] VERBOSE[21261] config.c: [2016-02-20
14:55:37.071] == Parsing '/usr/local/etc/asterisk/capi.conf':
[2016-02-20 14:55:37
.072] VERBOSE[21261] config.c: [2016-02-20 14:55:37.072] == Found
[2016-02-20 14:55:37.072] VERBOSE[21261] chan_capi.c: [2016-02-20
14:55:37.072] == Reading config for ISDN
[2016-02-20 14:55:37.072] VERBOSE[21261] chan_capi.c: [2016-02-20
14:55:37.072] -- config entry 'ISDN' T=(4982871,isdn-in,2) C=[0,0]
E=(0,4,64)
G=(1.000000/1.000000) H=(0)
[2016-02-20 14:55:37.073] ERROR[21261] chan_capi.c: CAPI error sending
CAPI_FACILITY_REQ {
header {
WORD wLen = 0x0000
WORD wApp = 0xffff
WORD wCmd = 0x8468
WORD wNum = 0x0001
DWORD dwCid = 0x00000000
}
data {
WORD wSelector = 0x0003
STRUCT Param.ptr = 0x03 '?', 0x00 '?', 0x00 '?', 0x00 '?'.
}
}
(NCCI=0) (error=0x1101)
[2016-02-20 14:55:37.073] NOTICE[21261] chan_capi.c: could not send
FACILITY REQUEST!
[2016-02-20 14:55:37.073] VERBOSE[21261] chan_capi.c: [2016-02-20
14:55:37.073] -- CAPI controller 0 supports: [DTMF][echo
cancellation][supplementary]
[2016-02-20 14:55:37.073] ERROR[21261] chan_capi.c: CAPI error sending
CAPI_LISTEN_REQ {
header {
WORD wLen = 0x0000
WORD wApp = 0xffff
WORD wCmd = 0x8462
WORD wNum = 0x0002
DWORD dwCid = 0x00000000
}
data {
DWORD dwInfoMask = 0x0000ffff
DWORD dwCipMask1 = 0x1fff03ff
DWORD dwCipMask2 = 0x00000000
STRUCT src_telno.ptr = (empty)
STRUCT src_subaddr.ptr = (empty)
}
}
(NCCI=0) (error=0x1101)
[2016-02-20 14:55:37.073] ERROR[21261] chan_capi.c: Unable to listen on
controller=0!
[2016-02-20 14:55:37.074] VERBOSE[21261] channel.c: [2016-02-20
14:55:37.074] == Registered channel type 'CAPI' (Common ISDN API 2.0
Driver 2.0.1
5)
[2016-02-20 14:55:37.074] VERBOSE[21261] pbx.c: [2016-02-20
14:55:37.074] == Registered application 'capiCommand'
[2016-02-20 14:55:37.074] VERBOSE[21261] loader.c: [2016-02-20
14:55:37.074] chan_capi.so => (Common ISDN API 2.0 Driver 2.0.15)
Some seconds later:
[2016-02-20 14:55:37.125] VERBOSE[21261] asterisk.c: [2016-02-20
14:55:37.125] Asterisk Ready.
[2016-02-20 14:55:39.469] VERBOSE[21261] chan_capi.c: [2016-02-20
14:55:39.469] -- CAPI controller 0 supports: [DTMF][echo
cancellation][supplementary]
[2016-02-20 14:55:40.854] VERBOSE[21261] chan_capi.c: [2016-02-20
14:55:40.854] -- listening on controller=0, cip_mask=0x1fff03ff
[2016-02-20 14:55:40.855] WARNING[21261] chan_capi.c: CAPI application
was restarted
[2016-02-20 14:55:40.855] ERROR[21261] lock.c: chan_capi.c line 2586
(capi_check_wait_get_cmsg): mutex '&p_app->lock' freed more times than
we've locked!
[2016-02-20 14:55:40.855] ERROR[21261] lock.c: chan_capi.c line 2586
(capi_check_wait_get_cmsg): Error releasing mutex: Operation not permitted
Regards
Andreas Longwitz
More information about the freebsd-isdn
mailing list