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 &lt;<a href="mailto:helmut.kuper@ewetel.de">helmut.kuper@ewetel.de</a>&gt; 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 &nbsp;6 20:29:03 UTC 2006<br>
#<br>
# Note: This file was generated automatically<br>
# &nbsp; &nbsp; &nbsp; by /usr/local/sbin/setup-sangoma program.<br>
#<br>
# &nbsp; &nbsp; &nbsp; If you want to edit this file, it is<br>
# &nbsp; &nbsp; &nbsp; recommended that you use wancfg program<br>
# &nbsp; &nbsp; &nbsp; 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 &nbsp; &nbsp; &nbsp; = AFT<br>
S514CPU &nbsp; &nbsp; &nbsp; &nbsp; = A<br>
CommPort &nbsp; &nbsp; &nbsp; &nbsp;= PRI<br>
AUTO_PCISLOT &nbsp; &nbsp;= NO<br>
PCISLOT &nbsp; &nbsp; &nbsp; &nbsp; = 8<br>
PCIBUS &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2<br>
FE_MEDIA &nbsp; &nbsp; &nbsp; &nbsp;= E1<br>
FE_LCODE &nbsp; &nbsp; &nbsp; &nbsp;= HDB3<br>
FE_FRAME &nbsp; &nbsp; &nbsp; &nbsp;= CRC4<br>
FE_LINE &nbsp; &nbsp; &nbsp; &nbsp; = 1<br>
TE_CLOCK &nbsp; &nbsp; &nbsp; &nbsp;= NORMAL<br>
TE_REF_CLOCK &nbsp; &nbsp;= 0<br>
TE_SIG_MODE &nbsp; &nbsp; = CCS<br>
TE_HIGHIMPEDANCE &nbsp; &nbsp; &nbsp; &nbsp;= NO<br>
LBO &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 120OH<br>
FE_TXTRISTATE &nbsp; = NO<br>
MTU &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 1500<br>
UDPPORT &nbsp; &nbsp; &nbsp; &nbsp; = 9000<br>
TTL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 255<br>
IGNORE_FRONT_END = NO<br>
TDMV_SPAN &nbsp; &nbsp; &nbsp; = 1<br>
TDMV_DCHAN &nbsp; &nbsp; &nbsp;= 16<br>
TDMV_HW_DTMF &nbsp; &nbsp;= NO<br>
<br>
[w1g1]<br>
ACTIVE_CH &nbsp; &nbsp; &nbsp; = ALL<br>
TDMV_ECHO_OFF &nbsp; = NO<br>
TDMV_HWEC &nbsp; &nbsp; &nbsp; = NO<br>
</div></div>MTU &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 80<br>
<br>
openzap.conf.xml is now:<br>
&lt;configuration name=&quot;openzap.conf&quot; description=&quot;OpenZAP Configuration&quot;&gt;<br>
~ &nbsp; &lt;settings&gt;<br>
~ &nbsp; &nbsp; &lt;param name=&quot;debug&quot; value=&quot;7&quot;/&gt;<br>
~ &nbsp; &lt;/settings&gt;<br>
~ &nbsp; &lt;pri_spans&gt;<br>
~ &nbsp; &nbsp; &lt;span id=&quot;1&quot;&gt;<br>
~ &nbsp; &nbsp; &nbsp; &lt;param name=&quot;mode&quot; value=&quot;user&quot;/&gt;<br>
~ &nbsp; &nbsp; &nbsp; &lt;param name=&quot;dialect&quot; value=&quot;euro&quot;/&gt;<br>
~ &nbsp; &nbsp; &nbsp; &lt;param name=&quot;dialplan&quot; value=&quot;XML&quot;/&gt;<br>
~ &nbsp; &nbsp; &nbsp; &lt;param name=&quot;context&quot; value=&quot;default&quot;/&gt;<br>
~ &nbsp; &nbsp; &lt;/span&gt;<br>
~ &nbsp; &lt;/pri_spans&gt;<br>
~ &lt;/configuration&gt;<br>
<br>
openzap.conf is now:<br>
[span wanpipe]<br>
trunk_type =&gt; e1<br>
b-channel =&gt; 1:1-15,1:17-31<br>
d-channel=&gt; 1:16<br>
<br>
<br>
/dev/zap/ctl and wptdm_* devices were created.<br>
<br>
I recompiled FS with &quot;make current&quot;. FS starts up with no errors.<br>
Openzap device were successfully configured.<br>
<br>
Dialplan is still:<br>
<div class="Ih2E3d"><br>
&lt;extension name=&quot;outgoing-pstn&quot;&gt;<br>
~ &nbsp; &lt;condition field=&quot;destination_number&quot; expression=&quot;^0([0-9]+)$&quot;&gt;<br>
~ &nbsp; &nbsp; &lt;action application=&quot;set&quot; data=&quot;dialed_ext=$1&quot;/&gt;<br>
~ &nbsp; &nbsp; &lt;action application=&quot;bridge&quot; data=&quot;openzap/${dialed_ext}&quot;/&gt;<br>
~ &nbsp; &lt;/condition&gt;<br>
~ &lt;/extension&gt;<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 &nbsp;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 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (globals.spans[span_id].active_count &gt;=<br>
globals.spans[span_id].chan_count) {<br>
(gdb) bt<br>
</div>#0 &nbsp;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 &nbsp;0xa3d576e2 in channel_outgoing_channel (session=0x81c61b8,<br>
var_event=0x80e7798, outbound_profile=0x81d2008, new_session=0x9f8e6e24,<br>
~ &nbsp; &nbsp;pool=0x9f8e6e18, flags=SOF_NONE) at mod_openzap.c:906<br>
#2 &nbsp;0xb7e9c083 in switch_core_session_outgoing_channel<br>
(session=0x81c61b8, var_event=0x80e7798, endpoint_name=0x81d5ab8 &quot;openzap&quot;,<br>
~ &nbsp; &nbsp;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 &nbsp;0xb7ebc153 in switch_ivr_originate (session=0x81c61b8,<br>
bleg=0x9f8e70f0, cause=0x9f8e70ec, bridgeto=0x81d4c48 &quot;openzap/0123&quot;,<br>
<div class="Ih2E3d">~ &nbsp; &nbsp;timelimit_sec=60, table=0x0, cid_name_override=0x0,<br>
cid_num_override=0x0, caller_profile_override=0x0, flags=&lt;value<br>
optimized out&gt;)<br>
~ &nbsp; &nbsp;at src/switch_ivr_originate.c:824<br>
</div>#4 &nbsp;0xa2cbc0e5 in audio_bridge_function (session=0x81c61b8,<br>
data=0x81d4c48 &quot;openzap/0123&quot;) at mod_dptools.c:1753<br>
#5 &nbsp;0xb7e99a35 in switch_core_session_exec (session=0x81c61b8,<br>
application_interface=0x81244c8, arg=0x81d4c48 &quot;openzap/0123&quot;)<br>
<div class="Ih2E3d">~ &nbsp; &nbsp;at src/switch_core_session.c:1045<br>
</div>#6 &nbsp;0xb7e99e8c in switch_core_session_execute_application<br>
(session=0x81c61b8, app=0x81d1e20 &quot;bridge&quot;, arg=0x81d1e28<br>
<div class="Ih2E3d">&quot;openzap/${dialed_ext}&quot;)<br>
~ &nbsp; &nbsp;at src/switch_core_session.c:1003<br>
</div>#7 &nbsp;0xb7e9e0f4 in switch_core_session_run (session=0x81c61b8) at<br>
<div class="Ih2E3d">src/switch_core_state_machine.c:144<br>
</div>#8 &nbsp;0xb7e9ae75 in switch_core_session_thread (thread=0x81c58a0,<br>
obj=0x81c61b8) at src/switch_core_session.c:734<br>
#9 &nbsp;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&#39;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