[Freeswitch-users] OpenZap Not working Stable

palani sivagurunathan palani.sivagurunathan at gmail.com
Mon Sep 22 10:29:33 EDT 2008


Hi,

    I have installed freeswitch through SVN in centos.OutBound is working
fine .But not always .Once we make 8 to 10 call from a sip extension we get
service unavailable error in xlite . Error and configuration are  pasted
below .we observed the problem is getting rectified after 5 to 10 mins .and
we are able to make calls and again after 8 to 10 calls Errors  happen

how to check. what will be the issue


my configuration is:


*wanpipe1.conf *


[devices]
wanpipe1 = WAN_AFT_TE1, Comment

[interfaces]
w1g1 = wanpipe1, , TDM_VOICE_API, Comment

[wanpipe1]
CARD_TYPE     = AFT
S514CPU     = A
CommPort     = PRI
AUTO_PCISLOT     = NO
PCISLOT     = 9
PCIBUS      = 0
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    = YES
MTU        = 80


         * openzap.conf*

            [span wanpipe]
    name => OpenZAP
    number => 1
    trunk_type => E1
    b-channel => 1:1-15
    d-channel => 1:16
    b-channel => 1:17-31


*openzap.conf.xml  *

    <configuration name="openzap.conf" description="OpenZAP Configuration">
        <settings>
            <param name="debug" value="0"/>
        </settings>
        <pri_spans>
        <span id="1">
            <param name="mode" value="user"/>
            <param name="dialect" value="euro"/>
            <param name="dialplan" value="XML"/>
            <param name="context" value="default"/>
        </span>
        </pri_spans>
    </configuration>



*default.xml*
<?xml version="1.0" encoding="utf-8"?>
    <!-- http://wiki.freeswitch.org/wiki/Dialplan_XML -->
    <include>
     <context name="default">
           <extension name="Long Distance - wanpipe">
        <condition field="destination_number" expression="^9(\d{5,15})$">
        <action application="set" data="dialed_ext=$1"/>
        <action application="bridge" data="OpenZAP/1/a/${dialed_ext}"/>
        </condition>
            </extension>
       </context>
    </include>



After  starting  the freeswitch . In console i type oz dump 1 a


*my status before calling  is:*

span_id: 1
chan_id: 16
physical_span_id: 1
physical_chan_id: 16
type: DQ921
state: UP
last_state: DOWN
cid_date:
cid_name:
cid_num:
ani:
aniII:
dnis:
rdnis:
cause: NONE
*
my (oz dump 1 a) status After calling  is:*

span_id: 1
chan_id: 16
physical_span_id: 1
physical_chan_id: 16
type: DQ921
state: UP
last_state: DOWN
cid_date:
cid_name:
cid_num:
ani:
aniII:
dnis:
rdnis:
cause: NONE

But while i try to make a outbound call continously, i am getting following
error

[08 02 00 00 4e 18 03 a1 83 81 79 01 80]

2008-09-23 01:05:50 [DEBUG] Span:0 Q.931() Sending message to Layer4 (size:
119)
2008-09-23 01:05:50 [DEBUG] ozmod_isdn.c:319 zap_isdn_931_34() Yay I got an
event! Type:[46] Size:[119] CRV: 0 (0, CTX: Originator)
2008-09-23 01:05:50 [DEBUG] ozmod_isdn.c:351 zap_isdn_931_34() zchan 0
(-1:-1) source isdn_data->channels_remote_crv[0]
2008-09-23 01:05:50 [DEBUG] ozmod_isdn.c:399 zap_isdn_931_34() Changing
state on 1:1 from DOWN to RESTART
2008-09-23 01:05:50 [DEBUG] Span:0 Q.931() Sending message to Q.921 (size:
119)
2008-09-23 01:05:50 [DEBUG] Span:0 Q.931() Creating Q.931 Message Header:
    ProtDisc 8 (0x8), CRV 0 (0), CRVflag: 0 (0), MesType: 78 (0x4e)
2008-09-23 01:05:50 [DEBUG] ozmod_isdn.c:1499 q931_rx_32() WRITE 13
--------------------------------------------------------------------------------
[08 02 00 00 4e 18 03 a1 83 81 79 01 80]

2008-09-23 01:05:50 [DEBUG] ozmod_isdn.c:796 state_advance() 1:1 STATE
[RESTART]
2008-09-23 01:05:50 [DEBUG] mod_openzap.c:1368 on_clear_channel_signal() got
clear channel sig [RESTART]
2008-09-23 01:05:50 [DEBUG] ozmod_isdn.c:882 state_advance() Changing state
on 1:1 from RESTART to DOWN
2008-09-23 01:05:50 [DEBUG] ozmod_isdn.c:796 state_advance() 1:1 STATE
[DOWN]
2008-09-23 01:05:50 [DEBUG] zap_io.c:1088 zap_channel_done() channel done
1:1








-- 


Thanks & Regards,
Palanivel.S
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20080922/d0eb3da2/attachment.html 


More information about the Freeswitch-users mailing list