List Info

Thread: zaptel ' device not configured'




zaptel ' device not configured'
country flaguser name
Germany
2007-05-28 10:50:47
Hi all.

Trying to install asterisk on FreeBSD 6.1-RELEASE.
asterisk is 1.4.3 and zaptel is 1.4.1, which seem to be the
latest  
releases.

We want to use a Sitecom HFC based card.
After installing Hans Selaksys i4b the card ist recognized:
ihfc0: <HFC-2BDS0 128K PCI ISDN adapter> port
0xbc00-0xbc07 mem  
0xff900000-0xff9000ff irq 19 at device 3.0 on pci2
ihfc0: Attaching I4B controller 0.
ihfc0: Creating /dev/ihfc0.X.

Zaptel seems to run:
Zapata Telephony Interface Registered on major 196
Echo Canceller: MG2

But when running ztcfg -vvv we get:
Keyword: [loadzone], Value: [nl]
Keyword: [defaultzone], Value: [nl]
Keyword: [span], Value: [1,1,3,ccs,ami]
Keyword: [bchan], Value: [1-2]
Keyword: [dchan], Value: [3]

Zaptel Version: 1.4.0-BSD
Echo Canceller: MG2
Configuration
======================

SPAN 1: CCS/ AMI Build-out: 399-533 feet (DSX-1)

Channel map:

Channel 01: Clear channel (Default) (Slaves: 01)
Channel 02: Clear channel (Default) (Slaves: 02)
Channel 03: D-channel (Default) (Slaves: 03)

3 channels configured.

ZT_SPANCONFIG failed on span 1: Device not configured (6)



We did not find really helpful on google concerning htis
"device not  
configured".

Are we missing something really obvious here?
Thanks for any hint!

Christian

P.S. vmstat -i
interrupt                          total       rate
irq1: atkbd0                          26          0
irq15: ata1                           47          0
irq18: em0 uhci2+                  10672         12
irq19: ihfc0 uhci1                     2          0
cpu0: timer                      1768972       1996
Total                            1779719       2008

We changed the pci slot, because ihfc was shared with the
ethernet  
NIC....But no change.....

_______________________________________________
Asterisk-BSD mailing list
Asterisk-BSDlists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-bsd

Re: zaptel ' device not configured'
country flaguser name
Sweden
2007-05-28 11:00:23
On Monday 28 May 2007 17:50, Christian Lox wrote:
> Hi all.
>
> Trying to install asterisk on FreeBSD 6.1-RELEASE.
> asterisk is 1.4.3 and zaptel is 1.4.1, which seem to be
the latest
> releases.
>
> We want to use a Sitecom HFC based card.
> After installing Hans Selaksys i4b the card ist
recognized:
> ihfc0: <HFC-2BDS0 128K PCI ISDN adapter> port
0xbc00-0xbc07 mem
> 0xff900000-0xff9000ff irq 19 at device 3.0 on pci2
> ihfc0: Attaching I4B controller 0.
> ihfc0: Creating /dev/ihfc0.X.
>
> Zaptel seems to run:
> Zapata Telephony Interface Registered on major 196
> Echo Canceller: MG2
>
> But when running ztcfg -vvv we get:
> Keyword: [loadzone], Value: [nl]
> Keyword: [defaultzone], Value: [nl]
> Keyword: [span], Value: [1,1,3,ccs,ami]
> Keyword: [bchan], Value: [1-2]
> Keyword: [dchan], Value: [3]
>
> Zaptel Version: 1.4.0-BSD
> Echo Canceller: MG2
> Configuration
> ======================
>
> SPAN 1: CCS/ AMI Build-out: 399-533 feet (DSX-1)
>
> Channel map:
>
> Channel 01: Clear channel (Default) (Slaves: 01)
> Channel 02: Clear channel (Default) (Slaves: 02)
> Channel 03: D-channel (Default) (Slaves: 03)
>
> 3 channels configured.
>
> ZT_SPANCONFIG failed on span 1: Device not configured
(6)
>
>
>
> We did not find really helpful on google concerning
htis "device not
> configured".
>
> Are we missing something really obvious here?
> Thanks for any hint!
>

Hello!

Did you install and configure "chan_capi" which is
also part of the SVN trunk?

--HPS
_______________________________________________
Asterisk-BSD mailing list
Asterisk-BSDlists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-bsd

Re: zaptel ' device not configured'
country flaguser name
Germany
2007-05-28 11:06:07

Am 28.05.2007 um 18:00 schrieb Hans Petter Selasky:


Are we missing something really obvious here?

Thanks for any hint!



Hello!


Did you install and configure "chan_capi" which is also part of the SVN trunk?


Hi.

Ahem. This did not seem that obvious to us. No, we did not. A quick try ends with:

[rootbreakout /home/lox/chan_capi_1_6_1]# gmake
gcc -pipe -fPIC -Wall -Wmissing-prototypes -Wmissing-declarations -g  -I/usr/local/include -I/usr/include/i4b/include -D_REENTRANT -D_GNU_SOURCE  -O6 -march=i386  -Wformat -DASTERISKVERSION="" -Wno-missing-prototypes -Wno-missing-declarations -DCRYPTO   -c -o chan_capi.o chan_capi.c
chan_capi.c:89: warning: type defaults to `int' in declaration of `STANDARD_LOCAL_USER'
chan_capi.c:89: warning: data definition has no type or storage class
chan_capi.c:90: warning: type defaults to `int' in declaration of `LOCAL_USER_DECL'
chan_capi.c:90: warning: data definition has no type or storage class
chan_capi.c:1373:2: warning: #warning "What about cd->next after free? Currently 'cd' is not freed by cd_free()."
chan_capi.c: In function `cd_alloc':
chan_capi.c:2346: error: too few arguments to function `ast_channel_alloc'
chan_capi.c:2355: error: structure has no member named `type'
chan_capi.c: In function `cd_set_cep':
chan_capi.c:2497: warning: passing arg 1 of `strlcpy' discards qualifiers from pointer target type
chan_capi.c:2500: warning: passing arg 1 of `strlcpy' discards qualifiers from pointer target type
chan_capi.c: In function `chan_capi_request':
chan_capi.c:3728: warning: passing arg 1 of `snprintf' discards qualifiers from pointer target type
chan_capi.c: In function `__chan_capi_call':
chan_capi.c:3826: warning: assignment discards qualifiers from pointer target type
chan_capi.c:3853: warning: assignment discards qualifiers from pointer target type
chan_capi.c:3887: warning: assignment discards qualifiers from pointer target type
chan_capi.c:3898: warning: assignment discards qualifiers from pointer target type
chan_capi.c:3910: warning: assignment discards qualifiers from pointer target type
chan_capi.c:3925: warning: assignment discards qualifiers from pointer target type
chan_capi.c:4784:2: warning: #warning "Should send a messages, but which?"
chan_capi.c:4937:2: warning: #warning "Cannot do this, because one cannot lock 'pbx_chan' here!"
chan_capi.c:5462:2: warning: #warning "Maybe cannot write these variables here! Locking issue!"
chan_capi.c:5473:2: warning: #warning "Does not handle length == 0xFF"
chan_capi.c: In function `cd_copy_telno_ext':
chan_capi.c:5668: warning: passing arg 1 of `snprintf' discards qualifiers from pointer target type
chan_capi.c: In function `chan_capi_command_exec':
chan_capi.c:6739: warning: implicit declaration of function `LOCAL_USER_ADD'
chan_capi.c:6770: error: structure has no member named `type'
chan_capi.c:6821: warning: implicit declaration of function `LOCAL_USER_REMOVE'
chan_capi.c:6892:2: warning: #warning "TODO: check for calls that never received connect_conf;"
chan_capi.c: At top level:
chan_capi.c:7213: error: unknown field `send_digit' specified in initializer
chan_capi.c:7213: warning: initialization from incompatible pointer type
chan_capi.c:7222: warning: initialization from incompatible pointer type
chan_capi.c:7837: warning: initialization from incompatible pointer type
chan_capi.c: In function `load_module':
chan_capi.c:8001: warning: implicit declaration of function `unload_module'
gmake: *** [chan_capi.o] Error 1
[rootbreakout /home/lox/chan_capi_1_6_1]# 


Thanks,
Christian
Re: zaptel ' device not configured'
country flaguser name
Germany
2007-05-28 11:23:46

Am 28.05.2007 um 18:00 schrieb Hans Petter Selasky:

Did you install and configure "chan_capi" which is also part of the SVN trunk?


The version from svn thrwos similar errors:

rootbreakout /home/lox/test/i4b/trunk/chan_capi]# gmake
./create_config.sh "/usr/local/include"
Checking Asterisk version...
* no 'struct ast_codec_pref'
* found 'struct ast_channel_tech'
* found 'ast_bridged_channel'
* found 'ast_bridge_result'
* found bridge with timeoutms
* ast_dsp_process() without 'needlock'
* found 'struct ast_callerid'
* found 'struct timeval delivery'
* found 'transfercapability'
* found 'ast_set_read_format'
* found 'ast_set_write_format'
* found 'ast_config_load'
* found 'AST_CONTROL_HOLD'
* found 'struct ast_custom_function'
* found 'devicestate.h'
* found Asterisk version 1.4.x
config.h complete.
gcc -pipe -fPIC -Wall -Wmissing-prototypes -Wmissing-declarations -g  -I/usr/local/include -I/usr/include/i4b/include -D_REENTRANT -D_GNU_SOURCE  -O6 -march=i386  -Wformat -DASTERISKVERSION="" -Wno-missing-prototypes -Wno-missing-declarations -DCRYPTO   -c -o chan_capi.o chan_capi.c
chan_capi.c:1398:2: warning: #warning "What about cd->next after free? Currently 'cd' is not freed by cd_free()."
chan_capi.c: In function `capi_send_connect_resp':
chan_capi.c:3161: warning: implicit declaration of function `CONNECT_RESP_DATE_TIME'
chan_capi.c:3161: error: invalid lvalue in assignment
chan_capi.c:4969:2: warning: #warning "Should send a messages, but which?"
chan_capi.c:5122:2: warning: #warning "Cannot do this, because one cannot lock 'pbx_chan' here!"
chan_capi.c: In function `capi_handle_connect_active_indication':
chan_capi.c:5542: warning: implicit declaration of function `CONNECT_ACTIVE_IND_DATE_TIME'
chan_capi.c:5542: warning: assignment makes pointer from integer without a cast
chan_capi.c:5650:2: warning: #warning "Maybe cannot write these variables here! Locking issue!"
chan_capi.c:5661:2: warning: #warning "Does not handle length == 0xFF"
chan_capi.c:7132:2: warning: #warning "TODO: check for calls that never received connect_conf;"
gmake: *** [chan_capi.o] Error 1


All the best,
Christian
Re: zaptel ' device not configured'
country flaguser name
Sweden
2007-05-28 11:32:55
On Monday 28 May 2007 18:06, Christian Lox wrote:
> Am 28.05.2007 um 18:00 schrieb Hans Petter Selasky:
> >> Are we missing something really obvious here?
> >> Thanks for any hint!
> >
> > Hello!
> >
> > Did you install and configure
"chan_capi" which is also part of the
> > SVN trunk?
>

I think I've seen those errors before.

Could you do a "svn update".

Then re-install my I4B and compile a new kernel. After that
I4B is installed 
you goto the "chan_capi" directory. There you
first type: "gmake clean". Then 
try "gmake all" and "gmake install" as
root.

"chan_capi" should compile fine with
"Asterisk 1.4.2" and earlier, if you 
installed it from FreeBSD ports.

--HPS
_______________________________________________
Asterisk-BSD mailing list
Asterisk-BSDlists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-bsd

Re: zaptel ' device not configured'
country flaguser name
Sweden
2007-05-28 11:48:39
On Monday 28 May 2007 18:32, Hans Petter Selasky wrote:
> On Monday 28 May 2007 18:06, Christian Lox wrote:
> > Am 28.05.2007 um 18:00 schrieb Hans Petter
Selasky:
> > >> Are we missing something really obvious
here?
> > >> Thanks for any hint!
> > >
> > > Hello!
> > >
> > > Did you install and configure
"chan_capi" which is also part of the
> > > SVN trunk?
>
> I think I've seen those errors before.
>
> Could you do a "svn update".
>
> Then re-install my I4B and compile a new kernel. After
that I4B is
> installed you goto the "chan_capi" directory.
There you first type: "gmake
> clean". Then try "gmake all" and
"gmake install" as root.
>
> "chan_capi" should compile fine with
"Asterisk 1.4.2" and earlier, if you
> installed it from FreeBSD ports.
>

I just upgraded to Asterisk 1.4.3 and "chan_capi"
compiles and works fine!

--HPS

BTW: I don't think you need to install Zaptel. I'm not sure
if there is a 
dependency between Zaptel and IAX2 any more.
_______________________________________________
Asterisk-BSD mailing list
Asterisk-BSDlists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-bsd

[1-6]

about | contact  Other archives ( Real Estate discussion Medical topics )