[Asterisk-Dev] i->controllers
Maurizio Marini
maumar at datalogica.com
Wed Aug 4 07:03:22 MST 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi kpj
in chan_capi.c line 1149, you check:
if (i->controllers & (1 << c)) {
now, if i've 4 controller and 1 interface card, i->controllers should be 30 (imho)
at the moment, i->controllers is equal to last defined controller;
this apply to conf with 1 block per controller, like this one:
;
; CAPI config
;
;
[general]
nationalprefix=0
internationalprefix=00
rxgain=0.8
txgain=0.8
[interfaces]
;
msn=855285
incomingmsn=*
controller=3
softdtmf=1
accountcode=
context=local
echosquelch=1
echocancel=yes
;echotail=64
;callgroup=1
;deflect=12345678
devices=1
mode=immediate
isdnmode=ptm
msn=855285
incomingmsn=*
controller=1
softdtmf=1
accountcode=
context=local
echosquelch=1
echocancel=yes
;echotail=64
;callgroup=1
;deflect=12345678
devices=1
mode=immediate
isdnmode=ptm
;
msn=855285
incomingmsn=*
controller=2
softdtmf=1
accountcode=
context=local
echosquelch=1
echocancel=yes
;echotail=64
;callgroup=1
;deflect=12345678
devices=1
mode=immediate
isdnmode=ptm
;
;
msn=855285
incomingmsn=*
controller=4
softdtmf=1
accountcode=
context=local
echosquelch=1
echocancel=yes
;echotail=64
;callgroup=1
;deflect=12345678
devices=1
mode=immediate
isdnmode=ptm
i've put some debug meessages and i get tmp->controllers=30 when i use capi.conf with:
controller=1,2,3,4
within one only block:
msn=855285
incomingmsn=*
controller=1,2,3,4
softdtmf=1
accountcode=
context=local
echosquelch=1
echocancel=yes
;echotail=64
;callgroup=1
;deflect=12345678
devices=1
mode=immediate
isdnmode=ptm
i get: Aug 4 15:15:00 NOTICE[1076992544]: chan_capi.c:2355 mkif: tmp->controllers=30 capi_used_controllers 30
i get tmp->controllers=16 capi_used_controllers 30
in previuos configuration (with 4 blocks)
in a few words, when i use 4 blocks to configure 4 controllers, the only used controller is always the last one.
m.
- --
Maurizio Marini GSM +39-335-8259739
Work: +39-0721-855285 Fax +39-0721-859609
Home: +39-0721-950396 IAXTel: (700) 350-1234
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQFBEOyq4Q/49nIJTlwRAjFlAJ9WipB2emjE7iH1ze78ZG/jz2NUaQCfU3Db
Y2QQjCFD5Uf+1qlplI2czDA=
=oalk
-----END PGP SIGNATURE-----
More information about the asterisk-dev
mailing list