you are putting in the dial string wrong and we are not taint checking it.<br><br>Try openzap/1/a/0123<br>meaning span 1, any channel, dest 0123<br><br>we think you want span 123 and we didnt check for it being too big<br>
<br><div class="gmail_quote">On Wed, May 21, 2008 at 10:07 AM, Helmut Kuper <<a href="mailto:helmut.kuper@ewetel.de">helmut.kuper@ewetel.de</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
Hello,<br>
<br>
</div>I compiled wanpipe now with compilation mode 6 (freeswitch Default).<br>
<br>
wanpipe1.conf is now:<br>
<div class="Ih2E3d"><br>
# WANPIPE1 Configuration File<br>
#================================================<br>
#<br>
# Date: Wed Dec 6 20:29:03 UTC 2006<br>
#<br>
# Note: This file was generated automatically<br>
# by /usr/local/sbin/setup-sangoma program.<br>
#<br>
# If you want to edit this file, it is<br>
# recommended that you use wancfg program<br>
# to do so.<br>
#================================================<br>
# Sangoma Technologies Inc.<br>
#================================================<br>
<br>
[devices]<br>
wanpipe1 = WAN_AFT_TE1, Comment<br>
<br>
[interfaces]<br>
</div>w1g1 = wanpipe1, , TDM_VOICE_API, Comment<br>
<div><div></div><div class="Wj3C7c"><br>
[wanpipe1]<br>
CARD_TYPE = AFT<br>
S514CPU = A<br>
CommPort = PRI<br>
AUTO_PCISLOT = NO<br>
PCISLOT = 8<br>
PCIBUS = 2<br>
FE_MEDIA = E1<br>
FE_LCODE = HDB3<br>
FE_FRAME = CRC4<br>
FE_LINE = 1<br>
TE_CLOCK = NORMAL<br>
TE_REF_CLOCK = 0<br>
TE_SIG_MODE = CCS<br>
TE_HIGHIMPEDANCE = NO<br>
LBO = 120OH<br>
FE_TXTRISTATE = NO<br>
MTU = 1500<br>
UDPPORT = 9000<br>
TTL = 255<br>
IGNORE_FRONT_END = NO<br>
TDMV_SPAN = 1<br>
TDMV_DCHAN = 16<br>
TDMV_HW_DTMF = NO<br>
<br>
[w1g1]<br>
ACTIVE_CH = ALL<br>
TDMV_ECHO_OFF = NO<br>
TDMV_HWEC = NO<br>
</div></div>MTU = 80<br>
<br>
openzap.conf.xml is now:<br>
<configuration name="openzap.conf" description="OpenZAP Configuration"><br>
~ <settings><br>
~ <param name="debug" value="7"/><br>
~ </settings><br>
~ <pri_spans><br>
~ <span id="1"><br>
~ <param name="mode" value="user"/><br>
~ <param name="dialect" value="euro"/><br>
~ <param name="dialplan" value="XML"/><br>
~ <param name="context" value="default"/><br>
~ </span><br>
~ </pri_spans><br>
~ </configuration><br>
<br>
openzap.conf is now:<br>
[span wanpipe]<br>
trunk_type => e1<br>
b-channel => 1:1-15,1:17-31<br>
d-channel=> 1:16<br>
<br>
<br>
/dev/zap/ctl and wptdm_* devices were created.<br>
<br>
I recompiled FS with "make current". FS starts up with no errors.<br>
Openzap device were successfully configured.<br>
<br>
Dialplan is still:<br>
<div class="Ih2E3d"><br>
<extension name="outgoing-pstn"><br>
~ <condition field="destination_number" expression="^0([0-9]+)$"><br>
~ <action application="set" data="dialed_ext=$1"/><br>
~ <action application="bridge" data="openzap/${dialed_ext}"/><br>
~ </condition><br>
~ </extension><br>
<br>
<br>
</div>Call to 0XXXX leads still to segfault.<br>
<div class="Ih2E3d"><br>
Program terminated with signal 11, Segmentation fault.<br>
</div>#0 0xa3d5c465 in zap_channel_open_any (span_id=123,<br>
direction=ZAP_TOP_DOWN, caller_data=0x9f8e2ed8, zchan=0x9f8e2ed4) at<br>
<div class="Ih2E3d">src/zap_io.c:721<br>
721 if (globals.spans[span_id].active_count >=<br>
globals.spans[span_id].chan_count) {<br>
(gdb) bt<br>
</div>#0 0xa3d5c465 in zap_channel_open_any (span_id=123,<br>
direction=ZAP_TOP_DOWN, caller_data=0x9f8e2ed8, zchan=0x9f8e2ed4) at<br>
<div class="Ih2E3d">src/zap_io.c:721<br>
</div>#1 0xa3d576e2 in channel_outgoing_channel (session=0x81c61b8,<br>
var_event=0x80e7798, outbound_profile=0x81d2008, new_session=0x9f8e6e24,<br>
~ pool=0x9f8e6e18, flags=SOF_NONE) at mod_openzap.c:906<br>
#2 0xb7e9c083 in switch_core_session_outgoing_channel<br>
(session=0x81c61b8, var_event=0x80e7798, endpoint_name=0x81d5ab8 "openzap",<br>
~ caller_profile=0x81d1ee8, new_session=0x9f8e6e24, pool=0x9f8e6e18,<br>
<div class="Ih2E3d">flags=SOF_NONE) at src/switch_core_session.c:252<br>
</div>#3 0xb7ebc153 in switch_ivr_originate (session=0x81c61b8,<br>
bleg=0x9f8e70f0, cause=0x9f8e70ec, bridgeto=0x81d4c48 "openzap/0123",<br>
<div class="Ih2E3d">~ timelimit_sec=60, table=0x0, cid_name_override=0x0,<br>
cid_num_override=0x0, caller_profile_override=0x0, flags=<value<br>
optimized out>)<br>
~ at src/switch_ivr_originate.c:824<br>
</div>#4 0xa2cbc0e5 in audio_bridge_function (session=0x81c61b8,<br>
data=0x81d4c48 "openzap/0123") at mod_dptools.c:1753<br>
#5 0xb7e99a35 in switch_core_session_exec (session=0x81c61b8,<br>
application_interface=0x81244c8, arg=0x81d4c48 "openzap/0123")<br>
<div class="Ih2E3d">~ at src/switch_core_session.c:1045<br>
</div>#6 0xb7e99e8c in switch_core_session_execute_application<br>
(session=0x81c61b8, app=0x81d1e20 "bridge", arg=0x81d1e28<br>
<div class="Ih2E3d">"openzap/${dialed_ext}")<br>
~ at src/switch_core_session.c:1003<br>
</div>#7 0xb7e9e0f4 in switch_core_session_run (session=0x81c61b8) at<br>
<div class="Ih2E3d">src/switch_core_state_machine.c:144<br>
</div>#8 0xb7e9ae75 in switch_core_session_thread (thread=0x81c58a0,<br>
obj=0x81c61b8) at src/switch_core_session.c:734<br>
#9 0xb7ef0b36 in dummy_worker (opaque=0x81c58a0) at<br>
<div class="Ih2E3d">threadproc/unix/thread.c:138<br>
</div>#10 0xb7e0b31b in start_thread () from /lib/tls/i686/cmov/libpthread.so.0<br>
#11 0xb7d5157e in clone () from /lib/tls/i686/cmov/libc.so.6<br>
<br>
<br>
Any ideas?<br>
<br>
regards<br>
helmut<br>
<br>
<br>
<br>
Anthony Minessale schrieb:<br>
<div class="Ih2E3d">| I thought I already explained this.<br>
|<br>
|<br>
| You have to choose between setting up wanpipe for ZAPTEL or wanpipe in<br>
| standalone mode.<br>
|<br>
| when you set it up for ZAPTEL then you forget all about wanpipe in OPENZAP<br>
| and just treat it like a zaptel span.<br>
|<br>
| when you set it up in standalone mode, you need to configure wanpipe1.conf<br>
| for TDM_VOICE_API and all the proper settings for an E1.<br>
|<br>
|<br>
| You keep doing mixtures of the above when it's one of the other you must<br>
| choose.<br>
</div><div class="Ih2E3d">-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.8 (MingW32)<br>
Comment: Using GnuPG with Mozilla - <a href="http://enigmail.mozdev.org" target="_blank">http://enigmail.mozdev.org</a><br>
<br>
</div>iEYEARECAAYFAkg0OrIACgkQ4tZeNddg3dx7jACfcLVuFZ4ruKy6HbOnfD8TFa/n<br>
mAoAnjzwYWFJP5UzTWxIt5Y1809B9L59<br>
=AlHg<br>
-----END PGP SIGNATURE-----<br>
<div><div></div><div class="Wj3C7c"><br>
_______________________________________________<br>
Freeswitch-users mailing list<br>
<a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
<br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="http://iax:guest@conference.freeswitch.org/888">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>pstn:213-799-1400