[Freeswitch-users] SegFault: Sangoma A101, openzap, freeswitch 1.0pre4

Helmut Kuper helmut.kuper at ewetel.de
Wed May 21 07:13:10 PDT 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

hm, I still can't find a reproducable way for setting up FS with sangoma
A101. I comiled wanpipe with Compilation mode 3 (TDM Voice (Zaptel) +
WAN Protocol Support).


My last way leds to a seg fault (GD-Backtrace):

Program terminated with signal 11, Segmentation fault.
#0  0xa3c9d465 in zap_channel_open_any (span_id=5566664,
direction=ZAP_TOP_DOWN, caller_data=0x9f823ed8, zchan=0x9f823ed4) at
src/zap_io.c:721
721                     if (globals.spans[span_id].active_count >=
globals.spans[span_id].chan_count) {
(gdb) bt
#0  0xa3c9d465 in zap_channel_open_any (span_id=5566664,
direction=ZAP_TOP_DOWN, caller_data=0x9f823ed8, zchan=0x9f823ed4) at
src/zap_io.c:721
#1  0xa3c986e2 in channel_outgoing_channel (session=0x81c74b0,
var_event=0x80adc30, outbound_profile=0x81d2b40, new_session=0x9f827e24,
~    pool=0x9f827e18, flags=SOF_NONE) at mod_openzap.c:906
#2  0xb7ddd083 in switch_core_session_outgoing_channel
(session=0x81c74b0, var_event=0x80adc30, endpoint_name=0x81c4f68 "openzap",
~    caller_profile=0x81d2a10, new_session=0x9f827e24, pool=0x9f827e18,
flags=SOF_NONE) at src/switch_core_session.c:252
#3  0xb7dfd153 in switch_ivr_originate (session=0x81c74b0,
bleg=0x9f8280f0, cause=0x9f8280ec, bridgeto=0x81bf5e0 "openzap/05566664",
~    timelimit_sec=60, table=0x0, cid_name_override=0x0,
cid_num_override=0x0, caller_profile_override=0x0, flags=<value
optimized out>)
~    at src/switch_ivr_originate.c:824
#4  0xa2bfd0e5 in audio_bridge_function (session=0x81c74b0,
data=0x81bf5e0 "openzap/05566664") at mod_dptools.c:1753
#5  0xb7ddaa35 in switch_core_session_exec (session=0x81c74b0,
application_interface=0x81213e0, arg=0x81bf5e0 "openzap/05566664")
~    at src/switch_core_session.c:1045
#6  0xb7ddae8c in switch_core_session_execute_application
(session=0x81c74b0, app=0x81d2940 "bridge", arg=0x81d2948
"openzap/${dialed_ext}")
~    at src/switch_core_session.c:1003
#7  0xb7ddf0f4 in switch_core_session_run (session=0x81c74b0) at
src/switch_core_state_machine.c:144
#8  0xb7ddbe75 in switch_core_session_thread (thread=0x81c6bc0,
obj=0x81c74b0) at src/switch_core_session.c:734
#9  0xb7e31b36 in dummy_worker (opaque=0x81c6bc0) at
threadproc/unix/thread.c:138
#10 0xb7d4c31b in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#11 0xb7c9257e in clone () from /lib/tls/i686/cmov/libc.so.6


I use wanpipe-3.2.5, latest FS trunk and zaptel 1.4.5 (it seems FS need
zaptel for E1 access).

my openzap.conf is:
[span zt]
trunk_type => e1
b-channel => 1-15,17-31
d-channel=> 16


my /etc/wanpipe/wanpipe1.conf is:

#================================================
# WANPIPE1 Configuration File
#================================================
#
# Date: Wed Dec  6 20:29:03 UTC 2006
#
# Note: This file was generated automatically
#       by /usr/local/sbin/setup-sangoma program.
#
#       If you want to edit this file, it is
#       recommended that you use wancfg program
#       to do so.
#================================================
# Sangoma Technologies Inc.
#================================================

[devices]
wanpipe1 = WAN_AFT_TE1, Comment

[interfaces]
w1g1 = wanpipe1, , TDM_VOICE, Comment

[wanpipe1]
CARD_TYPE       = AFT
S514CPU         = A
CommPort        = PRI
AUTO_PCISLOT    = NO
PCISLOT         = 8
PCIBUS          = 2
FE_MEDIA        = E1
FE_LCODE        = HDB3
FE_FRAME        = CRC4
FE_LINE         = 1
TE_CLOCK        = NORMAL
TE_REF_CLOCK    = 0
TE_SIG_MODE     = CCS
TE_HIGHIMPEDANCE        = NO
LBO             = 120OH
FE_TXTRISTATE   = NO
MTU             = 1500
UDPPORT         = 9000
TTL             = 255
IGNORE_FRONT_END = NO
TDMV_SPAN       = 1
TDMV_DCHAN      = 16
TDMV_HW_DTMF    = NO

[w1g1]
ACTIVE_CH       = ALL
TDMV_ECHO_OFF   = NO
TDMV_HWEC       = NO

my dialplan for an outgoing call is:

<extension name="outgoing-pstn">
~   <condition field="destination_number" expression="^0([0-9]+)$">
~     <action application="set" data="dialed_ext=$1"/>
~     <action application="bridge" data="openzap/${dialed_ext}"/>
~   </condition>
~ </extension>


Freeswitch log is:

2008-05-21 15:55:32 [INFO] zap_zt.c:170 zt_open_range() configuring
device /dev/zap/channel channel 1 as OpenZAP device 1:1 fd:40
2008-05-21 15:55:32 [INFO] zap_zt.c:170 zt_open_range() configuring
device /dev/zap/channel channel 2 as OpenZAP device 1:2 fd:41
2008-05-21 15:55:32 [INFO] zap_zt.c:170 zt_open_range() configuring
device /dev/zap/channel channel 3 as OpenZAP device 1:3 fd:42
2008-05-21 15:55:32 [INFO] zap_zt.c:170 zt_open_range() configuring
device /dev/zap/channel channel 4 as OpenZAP device 1:4 fd:43
2008-05-21 15:55:32 [INFO] zap_zt.c:170 zt_open_range() configuring
device /dev/zap/channel channel 5 as OpenZAP device 1:5 fd:44
2008-05-21 15:55:32 [INFO] zap_zt.c:170 zt_open_range() configuring
device /dev/zap/channel channel 6 as OpenZAP device 1:6 fd:45
2008-05-21 15:55:32 [INFO] zap_zt.c:170 zt_open_range() configuring
device /dev/zap/channel channel 7 as OpenZAP device 1:7 fd:46
2008-05-21 15:55:32 [INFO] zap_zt.c:170 zt_open_range() configuring
device /dev/zap/channel channel 8 as OpenZAP device 1:8 fd:47
2008-05-21 15:55:32 [INFO] zap_zt.c:170 zt_open_range() configuring
device /dev/zap/channel channel 9 as OpenZAP device 1:9 fd:48
2008-05-21 15:55:32 [INFO] zap_zt.c:170 zt_open_range() configuring
device /dev/zap/channel channel 10 as OpenZAP device 1:10 fd:49
2008-05-21 15:55:32 [INFO] zap_zt.c:170 zt_open_range() configuring
device /dev/zap/channel channel 11 as OpenZAP device 1:11 fd:50
2008-05-21 15:55:32 [INFO] zap_zt.c:170 zt_open_range() configuring
device /dev/zap/channel channel 12 as OpenZAP device 1:12 fd:51
2008-05-21 15:55:32 [INFO] zap_zt.c:170 zt_open_range() configuring
device /dev/zap/channel channel 13 as OpenZAP device 1:13 fd:52
2008-05-21 15:55:32 [INFO] zap_zt.c:170 zt_open_range() configuring
device /dev/zap/channel channel 14 as OpenZAP device 1:14 fd:53
2008-05-21 15:55:32 [INFO] zap_zt.c:170 zt_open_range() configuring
device /dev/zap/channel channel 15 as OpenZAP device 1:15 fd:54
2008-05-21 15:55:32 [INFO] zap_zt.c:170 zt_open_range() configuring
device /dev/zap/channel channel 17 as OpenZAP device 1:16 fd:55
2008-05-21 15:55:32 [INFO] zap_zt.c:170 zt_open_range() configuring
device /dev/zap/channel channel 18 as OpenZAP device 1:17 fd:56
2008-05-21 15:55:32 [INFO] zap_zt.c:170 zt_open_range() configuring
device /dev/zap/channel channel 19 as OpenZAP device 1:18 fd:57
2008-05-21 15:55:32 [INFO] zap_zt.c:170 zt_open_range() configuring
device /dev/zap/channel channel 20 as OpenZAP device 1:19 fd:58
2008-05-21 15:55:32 [INFO] zap_zt.c:170 zt_open_range() configuring
device /dev/zap/channel channel 21 as OpenZAP device 1:20 fd:59
2008-05-21 15:55:32 [INFO] zap_zt.c:170 zt_open_range() configuring
device /dev/zap/channel channel 22 as OpenZAP device 1:21 fd:60
2008-05-21 15:55:32 [INFO] zap_zt.c:170 zt_open_range() configuring
device /dev/zap/channel channel 23 as OpenZAP device 1:22 fd:61
2008-05-21 15:55:32 [INFO] zap_zt.c:170 zt_open_range() configuring
device /dev/zap/channel channel 24 as OpenZAP device 1:23 fd:62
2008-05-21 15:55:32 [INFO] zap_zt.c:170 zt_open_range() configuring
device /dev/zap/channel channel 25 as OpenZAP device 1:24 fd:63
2008-05-21 15:55:32 [INFO] zap_zt.c:170 zt_open_range() configuring
device /dev/zap/channel channel 26 as OpenZAP device 1:25 fd:64
2008-05-21 15:55:32 [INFO] zap_zt.c:170 zt_open_range() configuring
device /dev/zap/channel channel 27 as OpenZAP device 1:26 fd:65
2008-05-21 15:55:32 [INFO] zap_zt.c:170 zt_open_range() configuring
device /dev/zap/channel channel 28 as OpenZAP device 1:27 fd:66
2008-05-21 15:55:32 [INFO] zap_zt.c:170 zt_open_range() configuring
device /dev/zap/channel channel 29 as OpenZAP device 1:28 fd:67
2008-05-21 15:55:32 [INFO] zap_zt.c:170 zt_open_range() configuring
device /dev/zap/channel channel 30 as OpenZAP device 1:29 fd:68
2008-05-21 15:55:32 [INFO] zap_zt.c:170 zt_open_range() configuring
device /dev/zap/channel channel 31 as OpenZAP device 1:30 fd:69
2008-05-21 15:55:32 [ERR] zap_zt.c:164 zt_open_range() failure
configuring device /dev/zap/channel as OpenZAP device 1:31 fd:70
2008-05-21 15:55:32 [INFO] zap_io.c:1984 load_config() Configured 30
channel(s)
2008-05-21 15:55:32 [CONSOLE] switch_loadable_module.c:749
switch_loadable_module_load_file() Successfully Loaded [mod_openzap]
2008-05-21 15:55:32 [NOTICE] switch_loadable_module.c:139
switch_loadable_module_process() Adding Endpoint 'openzap'
2008-05-21 15:55:32 [NOTICE] switch_loadable_module.c:245
switch_loadable_module_process() Adding API Function 'oz'


strange here is that zap_zt tries to open a 31st channel ...



As soon as I call 0XXXX FS crashes with seg fault. Nevertheless I flying
blind around, hoping to find the right setup.


regards
helmut
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkg0LfYACgkQ4tZeNddg3dwIKACfaVOmm8gpNnZE1z8D1hYieJh9
1pQAn1t3nF/x9sRHbFOw3RRNvalG+hq4
=aofb
-----END PGP SIGNATURE-----




More information about the FreeSWITCH-users mailing list