Posted: Thu Jul 19, 2007 5:44 pm Post subject: [Asterisk-bsd] I4B by HPS + chan_capi + 1.4.8 on 6.2 = chopp
Hello everyone,
I finally have ISDN up and running on my soekris net4801 test system
here using the components mentioned above. Many thanks to Hans Petter
Selasky for getting support added for the card I'm using and
troubleshooting.
Here's how everything is connected.
ISDN Phone (2600) <--> ISDN pbx <--> ISDN TE Port (2601) on Asterisk System
Calling the conference (and other internal phones) from the ISDN phone
results in choppy audio from the music on hold as well as from other
conference members. ztdummy is loaded but seems to not be working
properly.
Even before attempting ISDN support, conferences were accumulating
delay. I have already enabled "internal_timing" and "highpriority" in
asterisk.conf to give it priority over other processes on the machine.
zttest gives me a worst score of 99.975586 after 10 passes. This gets
much worse if I attempt to do other things on the box while it runs.
Shouldn't it be accurate as long as the CPU isn't completely
overwhelmed? Any pointers here? Is there a way to pull timing from the
ISDN card?
Also, when calling extensions connected to the Asterisk system (SIP,
conferences, etc) from the ISDN phone (2600) sometimes they are
hung-up after a few hundred milliseconds. Calling back repeatedly
results in some calls being successfully connected and other silently
canceled. I have seen this issue before and resolved it by adding a
Wait(1) to give the ISDN systems time to sync and be happy. This has
not solved the issue this time. Has anyone seen something like this?
Let me know what additional output would be of use.
Thanks in advance for any insight into these problems!
-Michael I.
------ capi debug fail -------
-- capi_handle_connect_indication:6045:ENTRY=:PLCI=0x1f09:PBX_CHAN=**Unknown**:
-- Incoming call from '2600' to '2601', CIP=0x0010,
sending_complete=no
== cd_start_pbx:5935:ENTRY=ISDN-PROVIDER-1925636366469e045b28b82:PLCI=0x1f09:PBX_CHAN=CAPI/ISDN-PROVIDER-1925636366469e045b28b82/2601-1c:
== Started PBX
-- Executing [2601@ISDN-PROVIDER-1925636366469e045b28b82:1]
Wait("CAPI/ISDN-PROVIDER-1925636366469e045b28b82/2601-1c", "1") in new
stack
== cd_free:2150:ENTRY=ISDN-PROVIDER-1925636366469e045b28b82:PLCI=0x1f09:PBX_CHAN=CAPI/ISDN-PROVIDER-1925636366469e045b28b82/2601-1c:
==
> CAPI: Command=DISCONNECT_IND, 0x848c: no call descriptor for
PLCI=0x1f09, MSGNUM=0x0000:
== Spawn extension (ISDN-PROVIDER-1925636366469e045b28b82, 2601, 1)
exited non-zero on
'CAPI/ISDN-PROVIDER-1925636366469e045b28b82/2601-1c'
------ capi debug success -------
-- capi_handle_connect_indication:6045:ENTRY=:PLCI=0x1a09:PBX_CHAN=**Unknown**:
-- Incoming call from '2600' to '2601', CIP=0x0010,
sending_complete=no
== cd_start_pbx:5935:ENTRY=ISDN-PROVIDER-1925636366469e045b28b82:PLCI=0x1a09:PBX_CHAN=CAPI/ISDN-PROVIDER-1925636366469e045b28b82/2601-17:
== Started PBX
-- Executing [2601@ISDN-PROVIDER-1925636366469e045b28b82:1]
Wait("CAPI/ISDN-PROVIDER-1925636366469e045b28b82/2601-17", "1") in new
stack
-- Executing [2601@ISDN-PROVIDER-1925636366469e045b28b82:2]
Answer("CAPI/ISDN-PROVIDER-1925636366469e045b28b82/2601-17", "") in
new stack
-- Executing [2601@ISDN-PROVIDER-1925636366469e045b28b82:3]
MeetMe("CAPI/ISDN-PROVIDER-1925636366469e045b28b82/2601-17", "2663|M")
in new stack
------ kernel conf --------
machine i386
cpu I586_CPU
ident ASKOZIAPBX_NET48XX
# ATA and ATAPI devices
device ata
device atadisk # ATA disk drives
options ATA_STATIC_ID # Static device numbering
device scbus # SCSI bus (required for SCSI)
device da # Direct Access (disks)
# Add suspend/resume support for the i8254.
device pmtimer
# Serial (COM) ports
device sio # 8250, 16[45]50 based serial ports
# PCI Ethernet NICs that use the common MII bus controller code.
# NOTE: Be sure to keep the 'device miibus' line in order to use these NICs!
device miibus # MII bus support
device sis # Silicon Integrated Systems SiS 900/SiS 7016
# The `bpf' device enables the Berkeley Packet Filter.
# Be aware of the administrative consequences of enabling this!
# Note that 'bpf' is required for DHCP.
device bpf # Berkeley packet filter
# USB support
device ohci # OHCI PCI->USB interface
device usb # USB Bus (required)
device ugen # Generic
device uhid # "Human Interface Devices"
device ukbd # Keyboard
device umass # Disks/Mass storage - Requires scbus and da
# USB Ethernet, requires miibus
device aue # ADMtek USB Ethernet
device axe # ASIX Electronics USB Ethernet
device cdce # Generic USB over Ethernet
device cue # CATC USB Ethernet
device kue # Kawasaki LSI USB Ethernet
device rue # RealTek RTL8150 USB Ethernet
_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--
Posted: Thu Jul 19, 2007 9:54 pm Post subject: [Asterisk-bsd] I4B by HPS + chan_capi + 1.4.8 on 6.2 = chopp
Hi Michael,
Michael Iedema wrote:
Quote:
ISDN Phone (2600) <--> ISDN pbx <--> ISDN TE Port (2601) on Asterisk System
I have the ISDN card in Asterisk (which is connected with my ISDN PBX)
in NT mode running (with crossed ISDN cable), work without problems now
for nearly two years.
Are you using the current SVN version?
Best regards,
Matthias
_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--
Posted: Fri Jul 20, 2007 6:30 am Post subject: [Asterisk-bsd] I4B by HPS + chan_capi + 1.4.8 on 6.2 = chopp
On Thursday 19 July 2007 23:42, Matthias Fechner wrote:
Quote:
Hi Michael,
Michael Iedema wrote:
> ISDN Phone (2600) <--> ISDN pbx <--> ISDN TE Port (2601) on Asterisk
> System
I have the ISDN card in Asterisk (which is connected with my ISDN PBX)
in NT mode running (with crossed ISDN cable), work without problems now
for nearly two years.
Are you using the current SVN version?
Maybe you forgot to recompile chan_capi after upgrading!
--HPS
_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--
Posted: Fri Jul 20, 2007 12:05 pm Post subject: [Asterisk-bsd] I4B by HPS + chan_capi + 1.4.8 on 6.2 = chopp
Hans Petter,
Quote:
First of all, Asterisk 1.4.8 is not in ports yet.
How did you build the software?
Straight from the source. I looked at the patches in the port and,
perhaps naively, thought they were not crucial to my options.
Quote:
What warnings do you get when you compile "chan_capi" ?
After installing asterisk 1.4.8's new headers I now get the following
errors compiling chan_capi.
MiniBSD # gmake
./create_config.sh "/usr/local/include"
Checking Asterisk structures and files ...
* 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
* found version header file: /usr/local/include/asterisk/version.h
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:33:1: invalid digit "8" in octal constant
chan_capi.c:92:1: invalid digit "8" in octal constant
chan_capi.c:93: warning: type defaults to `int' in declaration of
`STANDARD_LOCAL_USER'
chan_capi.c:93: warning: data definition has no type or storage class
chan_capi.c:94: warning: type defaults to `int' in declaration of
`LOCAL_USER_DECL'
chan_capi.c:94: warning: data definition has no type or storage class
chan_capi.c:1396:2: warning: #warning "What about cd->next after free?
Currently 'cd' is not freed by cd_free()."
chan_capi.c:2375:1: invalid digit "8" in octal constant
chan_capi.c: In function `cd_alloc':
chan_capi.c:2382: error: too few arguments to function `ast_channel_alloc'
chan_capi.c:2392:1: invalid digit "8" in octal constant
chan_capi.c:2393: error: structure has no member named `type'
chan_capi.c:2542:1: invalid digit "8" in octal constant
chan_capi.c: In function `cd_set_cep':
chan_capi.c:2547: warning: passing arg 1 of `strlcpy' discards
qualifiers from pointer target type
chan_capi.c:2550: warning: passing arg 1 of `strlcpy' discards
qualifiers from pointer target type
chan_capi.c: In function `capi_send_connect_resp':
chan_capi.c:3150: warning: implicit declaration of function
`__dont_use_localtime_r_use_ast_localtime_instead__'
chan_capi.c:3849:1: invalid digit "8" in octal constant
chan_capi.c: In function `chan_capi_request':
chan_capi.c:3854: warning: passing arg 1 of `snprintf' discards
qualifiers from pointer target type
chan_capi.c:4625:1: invalid digit "8" in octal constant
chan_capi.c:4809:1: invalid digit "8" in octal constant
chan_capi.c:4845:1: invalid digit "8" in octal constant
chan_capi.c:4967:2: warning: #warning "Should send a messages, but which?"
chan_capi.c:5120:2: warning: #warning "Cannot do this, because one
cannot lock 'pbx_chan' here!"
chan_capi.c:5648:2: warning: #warning "Maybe cannot write these
variables here! Locking issue!"
chan_capi.c:5659:2: warning: #warning "Does not handle length == 0xFF"
chan_capi.c:5846:1: invalid digit "8" in octal constant
chan_capi.c: In function `cd_copy_telno_ext':
chan_capi.c:5851: warning: passing arg 1 of `snprintf' discards
qualifiers from pointer target type
chan_capi.c:6920:1: invalid digit "8" in octal constant
chan_capi.c:6940:1: invalid digit "8" in octal constant
chan_capi.c: In function `chan_capi_command_exec':
chan_capi.c:6943: warning: implicit declaration of function `LOCAL_USER_ADD'
chan_capi.c:6974:1: invalid digit "8" in octal constant
chan_capi.c:6977: error: structure has no member named `type'
chan_capi.c:7028:1: invalid digit "8" in octal constant
chan_capi.c:7031: warning: implicit declaration of function `LOCAL_USER_REMOVE'
chan_capi.c:7130:2: warning: #warning "TODO: check for calls that
never received connect_conf;"
chan_capi.c:7531:1: invalid digit "8" in octal constant
chan_capi.c: At top level:
chan_capi.c:7535: error: unknown field `send_digit' specified in initializer
chan_capi.c:7535: warning: initialization from incompatible pointer type
chan_capi.c:7545: warning: initialization from incompatible pointer type
chan_capi.c:8161: warning: initialization from incompatible pointer type
chan_capi.c:8168:1: invalid digit "8" in octal constant
chan_capi.c: In function `load_module':
chan_capi.c:8336: warning: implicit declaration of function `unload_module'
chan_capi.c:8346:1: invalid digit "8" in octal constant
chan_capi.c:8416:1: invalid digit "8" in octal constant
gmake: *** [chan_capi.o] Error 1
MiniBSD #
Quote:
Try "Asterisk 1.4.4" from ports first, even though it has some security issues
with IAX2.
I may have to resort to using that but I would rather figure out what
is causing these issues and either get the port updated to 1.4.8 or
apply these patches manually.
Regards,
-Michael I.
_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--
Posted: Fri Jul 20, 2007 3:15 pm Post subject: [Asterisk-bsd] I4B by HPS + chan_capi + 1.4.8 on 6.2 = chopp
On Friday 20 July 2007 13:58, Michael Iedema wrote:
Quote:
Hans Petter,
> First of all, Asterisk 1.4.8 is not in ports yet.
> How did you build the software?
Straight from the source. I looked at the patches in the port and,
perhaps naively, thought they were not crucial to my options.
> What warnings do you get when you compile "chan_capi" ?
After installing asterisk 1.4.8's new headers I now get the following
errors compiling chan_capi.
Aha, that won't work.
I will have to update my "chan_capi" to work with Asterisk 1.4.8 .
--HPS
Quote:
MiniBSD # gmake
./create_config.sh "/usr/local/include"
Checking Asterisk structures and files ...
* 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
* found version header file: /usr/local/include/asterisk/version.h
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:33:1: invalid digit "8" in octal constant
chan_capi.c:92:1: invalid digit "8" in octal constant
chan_capi.c:93: warning: type defaults to `int' in declaration of
`STANDARD_LOCAL_USER'
chan_capi.c:93: warning: data definition has no type or storage class
chan_capi.c:94: warning: type defaults to `int' in declaration of
`LOCAL_USER_DECL'
chan_capi.c:94: warning: data definition has no type or storage class
chan_capi.c:1396:2: warning: #warning "What about cd->next after free?
Currently 'cd' is not freed by cd_free()."
chan_capi.c:2375:1: invalid digit "8" in octal constant
chan_capi.c: In function `cd_alloc':
chan_capi.c:2382: error: too few arguments to function `ast_channel_alloc'
chan_capi.c:2392:1: invalid digit "8" in octal constant
chan_capi.c:2393: error: structure has no member named `type'
chan_capi.c:2542:1: invalid digit "8" in octal constant
chan_capi.c: In function `cd_set_cep':
chan_capi.c:2547: warning: passing arg 1 of `strlcpy' discards
qualifiers from pointer target type
chan_capi.c:2550: warning: passing arg 1 of `strlcpy' discards
qualifiers from pointer target type
chan_capi.c: In function `capi_send_connect_resp':
chan_capi.c:3150: warning: implicit declaration of function
`__dont_use_localtime_r_use_ast_localtime_instead__'
chan_capi.c:3849:1: invalid digit "8" in octal constant
chan_capi.c: In function `chan_capi_request':
chan_capi.c:3854: warning: passing arg 1 of `snprintf' discards
qualifiers from pointer target type
chan_capi.c:4625:1: invalid digit "8" in octal constant
chan_capi.c:4809:1: invalid digit "8" in octal constant
chan_capi.c:4845:1: invalid digit "8" in octal constant
chan_capi.c:4967:2: warning: #warning "Should send a messages, but which?"
chan_capi.c:5120:2: warning: #warning "Cannot do this, because one
cannot lock 'pbx_chan' here!"
chan_capi.c:5648:2: warning: #warning "Maybe cannot write these
variables here! Locking issue!"
chan_capi.c:5659:2: warning: #warning "Does not handle length == 0xFF"
chan_capi.c:5846:1: invalid digit "8" in octal constant
chan_capi.c: In function `cd_copy_telno_ext':
chan_capi.c:5851: warning: passing arg 1 of `snprintf' discards
qualifiers from pointer target type
chan_capi.c:6920:1: invalid digit "8" in octal constant
chan_capi.c:6940:1: invalid digit "8" in octal constant
chan_capi.c: In function `chan_capi_command_exec':
chan_capi.c:6943: warning: implicit declaration of function
`LOCAL_USER_ADD' chan_capi.c:6974:1: invalid digit "8" in octal constant
chan_capi.c:6977: error: structure has no member named `type'
chan_capi.c:7028:1: invalid digit "8" in octal constant
chan_capi.c:7031: warning: implicit declaration of function
`LOCAL_USER_REMOVE' chan_capi.c:7130:2: warning: #warning "TODO: check for
calls that
never received connect_conf;"
chan_capi.c:7531:1: invalid digit "8" in octal constant
chan_capi.c: At top level:
chan_capi.c:7535: error: unknown field `send_digit' specified in
initializer chan_capi.c:7535: warning: initialization from incompatible
pointer type chan_capi.c:7545: warning: initialization from incompatible
pointer type chan_capi.c:8161: warning: initialization from incompatible
pointer type chan_capi.c:8168:1: invalid digit "8" in octal constant
chan_capi.c: In function `load_module':
chan_capi.c:8336: warning: implicit declaration of function `unload_module'
chan_capi.c:8346:1: invalid digit "8" in octal constant
chan_capi.c:8416:1: invalid digit "8" in octal constant
gmake: *** [chan_capi.o] Error 1
MiniBSD #
> Try "Asterisk 1.4.4" from ports first, even though it has some security
> issues with IAX2.
I may have to resort to using that but I would rather figure out what
is causing these issues and either get the port updated to 1.4.8 or
apply these patches manually.
_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--
Posted: Sat Jul 21, 2007 6:53 pm Post subject: [Asterisk-bsd] I4B by HPS + chan_capi + 1.4.8 on 6.2 = chopp
Hans Petter,
Quote:
After installing asterisk 1.4.8's new headers I now get the following
errors compiling chan_capi.
MiniBSD # gmake
...
Quote:
chan_capi.c:33:1: invalid digit "8" in octal constant
...
For some reason, the constant ASTERISK_VERSION_NUM in
asterisk/version.h is being seen as an octal constant. Since its value
is now 10408 with 1.4.8, it is an invalid octal value and breaks all
of the #ifdefs found throughout chan_capi.
I changed the value back to 10407 and now it compiles successfully
with the output attached below. I'm away from the test box right now
so I can't test the audio with this fresh version. I just wanted you
to know that the compile errors were perhaps simply due to a minor
bug.
Best Regards,
-Michael I.
MiniBSD # gmake
./create_config.sh "/usr/local/include"
Checking Asterisk structures and files ...
* 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
* found version header file: /usr/local/include/asterisk/version.h
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:1396: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:3150: warning: implicit declaration of function
`__dont_use_localtime_r_use_ast_localtime_instead__'
chan_capi.c:4967:2: warning: #warning "Should send a messages, but which?"
chan_capi.c:5120:2: warning: #warning "Cannot do this, because one
cannot lock 'pbx_chan' here!"
chan_capi.c:5648:2: warning: #warning "Maybe cannot write these
variables here! Locking issue!"
chan_capi.c:5659:2: warning: #warning "Does not handle length == 0xFF"
chan_capi.c:7130:2: warning: #warning "TODO: check for calls that
never received connect_conf;"
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
c20msg.o c20msg.c
gcc -shared -Xlinker -x -o chan_capi.so chan_capi.o c20msg.o -lcapi20
MiniBSD #
_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--
Posted: Sat Jul 21, 2007 7:11 pm Post subject: [Asterisk-bsd] I4B by HPS + chan_capi + 1.4.8 on 6.2 = chopp
did you try recompiling chan_capi?
On Saturday 21 July 2007 11:46:23 am Michael Iedema wrote:
Quote:
Hans Petter,
> After installing asterisk 1.4.8's new headers I now get the following
> errors compiling chan_capi.
>
> MiniBSD # gmake
...
> chan_capi.c:33:1: invalid digit "8" in octal constant
...
For some reason, the constant ASTERISK_VERSION_NUM in
asterisk/version.h is being seen as an octal constant. Since its value
is now 10408 with 1.4.8, it is an invalid octal value and breaks all
of the #ifdefs found throughout chan_capi.
I changed the value back to 10407 and now it compiles successfully
with the output attached below. I'm away from the test box right now
so I can't test the audio with this fresh version. I just wanted you
to know that the compile errors were perhaps simply due to a minor
bug.
Best Regards,
-Michael I.
MiniBSD # gmake
./create_config.sh "/usr/local/include"
Checking Asterisk structures and files ...
* 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
* found version header file: /usr/local/include/asterisk/version.h
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:1396: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:3150: warning: implicit declaration of function
`__dont_use_localtime_r_use_ast_localtime_instead__'
chan_capi.c:4967:2: warning: #warning "Should send a messages, but which?"
chan_capi.c:5120:2: warning: #warning "Cannot do this, because one
cannot lock 'pbx_chan' here!"
chan_capi.c:5648:2: warning: #warning "Maybe cannot write these
variables here! Locking issue!"
chan_capi.c:5659:2: warning: #warning "Does not handle length == 0xFF"
chan_capi.c:7130:2: warning: #warning "TODO: check for calls that
never received connect_conf;"
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
c20msg.o c20msg.c
gcc -shared -Xlinker -x -o chan_capi.so chan_capi.o c20msg.o -lcapi20
MiniBSD #
_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--
Posted: Mon Jul 23, 2007 6:20 am Post subject: [Asterisk-bsd] I4B by HPS + chan_capi + 1.4.8 on 6.2 = chopp
On Saturday 21 July 2007 20:46, Michael Iedema wrote:
Quote:
Hans Petter,
> After installing asterisk 1.4.8's new headers I now get the following
> errors compiling chan_capi.
>
> MiniBSD # gmake
...
> chan_capi.c:33:1: invalid digit "8" in octal constant
...
For some reason, the constant ASTERISK_VERSION_NUM in
asterisk/version.h is being seen as an octal constant. Since its value
is now 10408 with 1.4.8, it is an invalid octal value and breaks all
of the #ifdefs found throughout chan_capi.
I think that I have resolved this issue, by inserting a "0" in front so that
the number always becomes octal.
Could you send me your "asterisk/version.h" ?
It is important that you compile with the right Asterisk header files!
What version of my SVN repo are you using?
--HPS
_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--
Posted: Mon Jul 23, 2007 10:23 am Post subject: [Asterisk-bsd] I4B by HPS + chan_capi + 1.4.8 on 6.2 = chopp
Hans Petter,
Quote:
I think that I have resolved this issue, by inserting a "0" in front so that
the number always becomes octal.
The problem is that it already is being seen as octal. An "8" cannot
be represented then. Adding the "0" doesn't change anything for me.
Switching my number to end in a "7" in version.h didn't work either as
then chan_capi.so was not allowed to load.
After reading this
(http://bugs.digium.com/print_bug_page.php?bug_id=9051) I went through
chan_capi and switched all of the AST_VERSION_NUM tests to use decimal
comparisons. The create_config.sh file needed to be changed a bit so
it would generate appropriate values for the comparisons as well.
Also, there was a reference to localtime_r which should now be
ast_localtime (as I understand it).
A diff of these perhaps misguided changes is attached.
This diff has solved my audio problems but my incoming dialing success
is still only around 50%. If I call and it fails, then I call
immediately again, there is a much higher chance that the call will
succeed.
I need to get some better debug info together on this.
-Michael I.
_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--
Posted: Tue Jul 24, 2007 11:17 am Post subject: [Asterisk-bsd] I4B by HPS + chan_capi + 1.4.8 on 6.2 = chopp
Greetings Everyone,
I have a bit more info about my call setup problem. Below is a trace
from the ISDN PBX that AskoziaPBX is attached to. It shows again a
failed call and then a successful call directly afterward.
The first call fails due to either AskoziaPBX not waiting for a
Receiver Ready response long enough or the ISDN PBX waiting too long
to send them. (lines 18-24)
Regards,
-Michael I.
line, time, command/response, MSG, NR, NS, call-reference, layer-3
// call 1 (fail)
04 10:29:25:078N C UI Setup o/106
BEA:Speech DSP:COMfortel CGN:2600 CDN:2601 HLC:Telephony
07 10:29:25:078T C UI Identity request Ri:44375 Ai:127
08 10:29:25:078N C UI Identity remove Ri:0 Ai:72
09 10:29:25:078N C UI Identity assigned Ri:44375 Ai:81
12 10:29:25:281T C SABME
13 10:29:25:281T C INFO 0 0 Status Enquiry o/127
14 10:29:25:281T C INFO 0 1 Status Enquiry o/127
15 10:29:25:281N R UA
16 10:29:25:281N R RR 1
17 10:29:25:281N R RR 2
18 10:29:25:281T C INFO 0 2 Setup Acknowledge d/106
19 10:29:25:281T C INFO 0 3 Call Proceeding d/106
20 10:29:25:281T C INFO 0 4 Alerting d/106
21 10:29:25:281N R RR 3
22 10:29:25:281N R RR 4
23 10:29:25:281N R RR 5
24 10:29:25:281N C INFO 5 0 Release o/106
CAU:Message not comp. with call state or type non-exist.
25 10:29:25:484T C RR 1
26 10:29:25:484N C INFO 5 1 Status o/106
CAU:Message not comp. with call state or type non-exist.
27 10:29:25:484T C RR 2
30 10:29:29:203N C INFO 5 2 Release o/106
CAU:Message not comp. with call state or type non-exist.
31 10:29:29:390T C RR 3
// call 2 (success)
48 10:29:37:343N C UI Setup o/107
BEA:Speech DSP:COMfortel CGN:2600 CDN:2601 HLC:Telephony
51 10:29:37:359T C INFO 3 5 Setup Acknowledge d/107
53 10:29:37:359N R RR 6
56 10:29:37:546T C INFO 3 6 Call Proceeding d/107
57 10:29:37:546T C INFO 3 7 Alerting d/107
58 10:29:37:546N R RR 7
59 10:29:37:546N R RR 8
62 10:29:41:750T C INFO 3 8 Connect d/107
63 10:29:41:875N R RR 9
64 10:29:41:875N C INFO 9 3 Connect Acknowledge o/107
67 10:29:41:875T C RR 4
72 10:29:44:781T C INFO 4 9 Release Complete d/107
CAU:Normal call clearing
73 10:29:44:781N R RR 10
_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum