Can't get Astribank 8fxs/8fxo to work on 1.3-2

Discussion in 'General' started by packetfish, Dec 28, 2008.

  1. packetfish

    Joined:
    Jul 3, 2008
    Messages:
    10
    Likes Received:
    0
    I am having a terrible time getting my Xorcom Astribank 8fxs/8fxo to work under 1.3-2. I get no dialtone but it seems like it sees my unit and its ports/channels properly under zaptel

    I am sure it it probably something in the contexts and possibly signaling but I do not know what to do to fix it. Note I have tried using voip-info.org information (http://www.voip-info.org/wiki/view/Xorcom+Astribank) to get it to work since just setting up zaptel trunks/extensions and a route didn't wouldn't work as is.

    Can someone help? Here are my current files.

    Thank you!


    ############ -rw-r--r-- 1 root root 677 Dec 28 16:58 /etc/zaptel.conf

    # Span 1: XBUS-00/XPD-00 "Xorcom XPD #00/00: FXS" (MASTER)
    fxoks=1
    fxoks=2
    fxoks=3
    fxoks=4
    fxoks=5
    fxoks=6
    fxoks=7
    fxoks=8
    # astbanktype: output
    fxoks=9
    # astbanktype: output
    fxoks=10
    # astbanktype: input
    fxoks=11
    # astbanktype: input
    fxoks=12
    # astbanktype: input
    fxoks=13
    # astbanktype: input
    fxoks=14

    # Span 2: XBUS-00/XPD-10 "Xorcom XPD #00/10: FXO"
    fxsks=15
    fxsks=16
    fxsks=17
    fxsks=18
    fxsks=19
    fxsks=20
    fxsks=21
    fxsks=22

    # Global data

    loadzone = us
    defaultzone = us

    ############ -rw-rw-r-- 1 asterisk asterisk 415 Dec 28 16:29 /etc/asterisk/zapata.conf

    [channels]
    echocancel=yes

    group=5
    signalling=fxo_ks
    ; The real analog ports:
    context=from-internal
    channel => 1-8

    ; output ports:
    context=astribank-outputs
    channel => 9-10
    ; input ports:
    immediate=yes
    context=astribank-inputs
    channel => 11-14
    immediate=no

    ; FXO ports
    group=0
    signalling=fxs_ks
    context=from-pstn
    callerid=asreceived
    channel => 15-22

    #include zapata_additional.conf
    #include zapata-channels.conf

    ############ -rw-rw-r-- 1 asterisk asterisk 4565 Dec 28 17:16 /etc/asterisk/zapata_additional.conf

    ;;;;;;[1001]
    signalling=fxo_ks
    record_out=Adhoc
    record_in=Adhoc
    mailbox=1001@device
    immediate=no
    echotraining=no
    echocancelwhenbridged=no
    echocancel=yes
    dial=ZAP/1
    context=from-internal
    callprogress=no
    callerid=device <1001>
    busydetect=no
    busycount=7
    accountcode=
    channel=>1

    ;;;;;;[1002]
    signalling=fxo_ks
    record_out=Adhoc
    record_in=Adhoc
    mailbox=1002@device
    immediate=no
    echotraining=800
    echocancelwhenbridged=no
    echocancel=yes
    dial=ZAP/2
    context=from-internal
    callprogress=no
    callerid=device <1002>
    busydetect=no
    busycount=7
    accountcode=
    channel=>2

    ;;;;;;[1003]
    signalling=fxo_ks
    record_out=Adhoc
    record_in=Adhoc
    mailbox=1003@device
    immediate=no
    echotraining=800
    echocancelwhenbridged=no
    echocancel=yes
    dial=ZAP/3
    context=from-internal
    callprogress=no
    callerid=device <1003>
    busydetect=no
    busycount=7
    accountcode=
    channel=>3

    ;;;;;;[1004]
    signalling=fxo_ks
    record_out=Adhoc
    record_in=Adhoc
    mailbox=1004@device
    immediate=no
    echotraining=800
    echocancelwhenbridged=no
    echocancel=yes
    dial=ZAP/4
    context=from-internal
    callprogress=no
    callerid=device <1004>
    busydetect=no
    busycount=7
    accountcode=
    channel=>4

    ;;;;;;[1005]
    signalling=fxo_ks
    record_out=Adhoc
    record_in=Adhoc
    mailbox=1005@device
    immediate=no
    echotraining=800
    echocancelwhenbridged=no
    echocancel=yes
    dial=ZAP/5
    context=from-internal
    callprogress=no
    callerid=device <1005>
    busydetect=no
    busycount=7
    accountcode=
    channel=>5

    ;;;;;;[1006]
    signalling=fxo_ks
    record_out=Adhoc
    record_in=Adhoc
    mailbox=1006@device
    immediate=no
    echotraining=800
    echocancelwhenbridged=no
    echocancel=yes
    dial=ZAP/6
    context=from-internal
    callprogress=no
    callerid=device <1006>
    busydetect=no
    busycount=7
    accountcode=
    channel=>6

    ;;;;;;[1007]
    signalling=fxo_ks
    record_out=Adhoc
    record_in=Adhoc
    mailbox=1007@device
    immediate=no
    echotraining=800
    echocancelwhenbridged=no
    echocancel=yes
    dial=ZAP/7
    context=from-internal
    callprogress=no
    callerid=device <1007>
    busydetect=no
    busycount=7
    accountcode=
    channel=>7

    ;;;;;;[1008]
    signalling=fxo_ks
    record_out=Adhoc
    record_in=Adhoc
    mailbox=1008@device
    immediate=no
    echotraining=800
    echocancelwhenbridged=no
    echocancel=yes
    dial=ZAP/8
    context=from-internal
    callprogress=no
    callerid=device <1008>
    busydetect=no
    busycount=7
    accountcode=
    channel=>8

    ;;;;;;[2001]
    signalling=fxo_ks
    record_out=Adhoc
    record_in=Adhoc
    mailbox=2001@device
    immediate=no
    echotraining=no
    echocancelwhenbridged=no
    echocancel=yes
    dial=ZAP/15
    context=from-internal
    callprogress=no
    callerid=device <2001>
    busydetect=no
    busycount=7
    accountcode=
    channel=>15

    ;;;;;;[2002]
    signalling=fxo_ks
    record_out=Adhoc
    record_in=Adhoc
    mailbox=2002@device
    immediate=no
    echotraining=800
    echocancelwhenbridged=no
    echocancel=yes
    dial=ZAP/16
    context=from-internal
    callprogress=no
    callerid=device <2002>
    busydetect=no
    busycount=7
    accountcode=
    channel=>16

    ;;;;;;[2003]
    signalling=fxo_ks
    record_out=Adhoc
    record_in=Adhoc
    mailbox=2003@device
    immediate=no
    echotraining=800
    echocancelwhenbridged=no
    echocancel=yes
    dial=ZAP/17
    context=from-internal
    callprogress=no
    callerid=device <2003>
    busydetect=no
    busycount=7
    accountcode=
    channel=>17

    ;;;;;;[2004]
    signalling=fxo_ks
    record_out=Adhoc
    record_in=Adhoc
    mailbox=2004@device
    immediate=no
    echotraining=800
    echocancelwhenbridged=no
    echocancel=yes
    dial=ZAP/18
    context=from-internal
    callprogress=no
    callerid=device <2004>
    busydetect=no
    busycount=7
    accountcode=
    channel=>18

    ;;;;;;[2005]
    signalling=fxo_ks
    record_out=Adhoc
    record_in=Adhoc
    mailbox=2005@device
    immediate=no
    echotraining=800
    echocancelwhenbridged=no
    echocancel=yes
    dial=ZAP/19
    context=from-internal
    callprogress=no
    callerid=device <2005>
    busydetect=no
    busycount=7
    accountcode=
    channel=>19

    ;;;;;;[2006]
    signalling=fxo_ks
    record_out=Adhoc
    record_in=Adhoc
    mailbox=2006@device
    immediate=no
    echotraining=800
    echocancelwhenbridged=no
    echocancel=yes
    dial=ZAP/20
    context=from-internal
    callprogress=no
    callerid=device <2006>
    busydetect=no
    busycount=7
    accountcode=
    channel=>20

    ;;;;;;[2007]
    signalling=fxo_ks
    record_out=Adhoc
    record_in=Adhoc
    mailbox=2007@device
    immediate=no
    echotraining=800
    echocancelwhenbridged=no
    echocancel=yes
    dial=ZAP/21
    context=from-internal
    callprogress=no
    callerid=device <2007>
    busydetect=no
    busycount=7
    accountcode=
    channel=>21

    ;;;;;;[2008]
    signalling=fxo_ks
    record_out=Adhoc
    record_in=Adhoc
    mailbox=2008@device
    immediate=no
    echotraining=800
    echocancelwhenbridged=no
    echocancel=yes
    dial=ZAP/22
    context=from-internal
    callprogress=no
    callerid=device <2008>
    busydetect=no
    busycount=7
    accountcode=
    channel=>22

    ############### -rw-rw-r-- 1 asterisk asterisk 4164 Dec 28 16:58 /etc/asterisk/zapata-channels.conf

    ; Span 1: XBUS-00/XPD-00 "Xorcom XPD #00/00: FXS" (MASTER)
    ;;; line="1 XPP_FXS/00/00/0 FXOKS (In use)"
    signalling=fxo_ks
    callerid="Channel 1" <6001>
    mailbox=6001
    group=5
    context=from-internal
    channel => 1
    callerid=
    mailbox=
    group=
    context=default

    ;;; line="2 XPP_FXS/00/00/1 FXOKS (In use)"
    signalling=fxo_ks
    callerid="Channel 2" <6002>
    mailbox=6002
    group=5
    context=from-internal
    channel => 2
    callerid=
    mailbox=
    group=
    context=default

    ;;; line="3 XPP_FXS/00/00/2 FXOKS (In use)"
    signalling=fxo_ks
    callerid="Channel 3" <6003>
    mailbox=6003
    group=5
    context=from-internal
    channel => 3
    callerid=
    mailbox=
    group=
    context=default

    ;;; line="4 XPP_FXS/00/00/3 FXOKS (In use)"
    signalling=fxo_ks
    callerid="Channel 4" <6004>
    mailbox=6004
    group=5
    context=from-internal
    channel => 4
    callerid=
    mailbox=
    group=
    context=default

    ;;; line="5 XPP_FXS/00/00/4 FXOKS (In use)"
    signalling=fxo_ks
    callerid="Channel 5" <6005>
    mailbox=6005
    group=5
    context=from-internal
    channel => 5
    callerid=
    mailbox=
    group=
    context=default

    ;;; line="6 XPP_FXS/00/00/5 FXOKS (In use)"
    signalling=fxo_ks
    callerid="Channel 6" <6006>
    mailbox=6006
    group=5
    context=from-internal
    channel => 6
    callerid=
    mailbox=
    group=
    context=default

    ;;; line="7 XPP_FXS/00/00/6 FXOKS (In use)"
    signalling=fxo_ks
    callerid="Channel 7" <6007>
    mailbox=6007
    group=5
    context=from-internal
    channel => 7
    callerid=
    mailbox=
    group=
    context=default

    ;;; line="8 XPP_FXS/00/00/7 FXOKS (In use)"
    signalling=fxo_ks
    callerid="Channel 8" <6008>
    mailbox=6008
    group=5
    context=from-internal
    channel => 8
    callerid=
    mailbox=
    group=
    context=default

    ;;; line="9 XPP_OUT/00/00/8 FXOKS"
    signalling=fxo_ks
    callerid="Channel 9" <6009>
    mailbox=6009
    group=5
    context=astbank-output
    channel => 9
    callerid=
    mailbox=
    group=
    context=default

    ;;; line="10 XPP_OUT/00/00/9 FXOKS"
    signalling=fxo_ks
    callerid="Channel 10" <6010>
    mailbox=6010
    group=5
    context=astbank-output
    channel => 10
    callerid=
    mailbox=
    group=
    context=default

    ;;; line="11 XPP_IN/00/00/10 FXOKS"
    signalling=fxo_ks
    callerid="Channel 11" <6011>
    mailbox=6011
    group=5
    context=astbank-input
    immediate=yes
    channel => 11
    callerid=
    mailbox=
    group=
    context=default
    immediate=no

    ;;; line="12 XPP_IN/00/00/11 FXOKS"
    signalling=fxo_ks
    callerid="Channel 12" <6012>
    mailbox=6012
    group=5
    context=astbank-input
    immediate=yes
    channel => 12
    callerid=
    mailbox=
    group=
    context=default
    immediate=no

    ;;; line="13 XPP_IN/00/00/12 FXOKS"
    signalling=fxo_ks
    callerid="Channel 13" <6013>
    mailbox=6013
    group=5
    context=astbank-input
    immediate=yes
    channel => 13
    callerid=
    mailbox=
    group=
    context=default
    immediate=no

    ;;; line="14 XPP_IN/00/00/13 FXOKS"
    signalling=fxo_ks
    callerid="Channel 14" <6014>
    mailbox=6014
    group=5
    context=astbank-input
    immediate=yes
    channel => 14
    callerid=
    mailbox=
    group=
    context=default
    immediate=no


    ; Span 2: XBUS-00/XPD-10 "Xorcom XPD #00/10: FXO"
    ;;; line="15 XPP_FXO/00/10/0 FXSKS"
    signalling=fxs_ks
    callerid=asreceived
    group=0
    context=from-pstn
    channel => 15
    context=default

    ;;; line="16 XPP_FXO/00/10/1 FXSKS"
    signalling=fxs_ks
    callerid=asreceived
    group=0
    context=from-pstn
    channel => 16
    context=default

    ;;; line="17 XPP_FXO/00/10/2 FXSKS"
    signalling=fxs_ks
    callerid=asreceived
    group=0
    context=from-pstn
    channel => 17
    context=default

    ;;; line="18 XPP_FXO/00/10/3 FXSKS"
    signalling=fxs_ks
    callerid=asreceived
    group=0
    context=from-pstn
    channel => 18
    context=default

    ;;; line="19 XPP_FXO/00/10/4 FXSKS"
    signalling=fxs_ks
    callerid=asreceived
    group=0
    context=from-pstn
    channel => 19
    context=default

    ;;; line="20 XPP_FXO/00/10/5 FXSKS RED"
    signalling=fxs_ks
    callerid=asreceived
    group=0
    context=from-pstn
    channel => 20
    context=default

    ;;; line="21 XPP_FXO/00/10/6 FXSKS RED"
    signalling=fxs_ks
    callerid=asreceived
    group=0
    context=from-pstn
    channel => 21
    context=default

    ;;; line="22 XPP_FXO/00/10/7 FXSKS RED"
    signalling=fxs_ks
    callerid=asreceived
    group=0
    context=from-pstn
    channel => 22
    context=default
     
  2. packetfish

    Joined:
    Jul 3, 2008
    Messages:
    10
    Likes Received:
    0
    Got dialtone on the FXS ports by setting echotraining=no and I can dial an FXS extension or from it and go out over my VOIP trunk. I can not however dial 9 and get it to go out the first FXO port. I get all circuits busy.

    What am I missing? I assume something in either the context or outbound route?

    Your assistance is appreciated. Here is my extensions.conf and the relevant snippet.

    Thanks!

    [phones-zap]
    ; 1001 will dial to channel 1, 1020, to zaptel channel 20, etc.
    exten => _1XXX,1,Dial(ZAP/${EXTEN:1})

    [trunk-9]
    ; Dial through the first FXO port availble.
    ; This assumes that all FXO ports are in group 0 and all others are not,
    ; as in the sample zapata.conf for 8FXS/8FXO below, and as is generated
    ; by genzaptelconf by default.
    exten => 9.,Dial(Zap/g0/${EXTEN:1})

    [from-internal]
    ; The context of FXS ports: analog phones.
    ; They are allowed to dial to all other phones
    include => phones-zap
    ; They are also allowed to call through the trunk:
    include => trunk-9

    [from-pstn]
    ; Calls from the PSTN enter here. Redirect calls to an IVR
    ; or a default extension in the s context here. In this case we
    ; redirect calls to Zaptel channel 1:
    exten => s,1,Dial(Zap/1)

    [astribank-inputs]
    exten => s,1,Set(ZAP_CHAN=Cut(${CHANNEL},-,1))
    exten => s,n,Set(ZAP_CHAN=Cut(${ZAP_CHAN},/,2))
    ; 11 is the number of the first input port. At least in the sample ocnfiguration below.
    exten => s,n,Set(INPUT_NUM=Math(${ZAP_CHAN}-11))
    ; The sample below just logs the signal.
    exten => s,n,NoOp(Got signal from input port number ${INPUT_NUM})
    ; Alternatively:
    ;exten => s,n,System(run something)
     
  3. packetfish

    Joined:
    Jul 3, 2008
    Messages:
    10
    Likes Received:
    0
    When trying to go out an FXO it just rings and rings when I dial a number that should auto answer with an answering machine. I am having NO luck with this unit. What do you have to do to get an FXO port to work properly on Xorcom??? Also, the stupid groups for Zaptel seem to be really flakey and NOT work reliably...half the time its moving/confusing what's in g0. If I need to repost files, please let me know which ones. I need to get this working by Monday.

    Please help!
     
  4. jedaustin

    Joined:
    Dec 30, 2008
    Messages:
    34
    Likes Received:
    0
    For it to work you have to have
    1) the astribank working properly: from the commandline as root do
    ztcfg -vv
    asterisk -rx 'zap show channels'
    If you don't see 8FXO/FXS correctly identified as such (keep in mind that the signaling is opposite!)
    It may need different signaling in /etc/asterisk/zapata.conf
    For example..
    on an 8 port FXO:
    signalling=fxs_ks
    on an 8 port FXS:
    signalling=fxo_ls
    If you don't have a your ports identified properly contact Xorcom support.

    2) there has to be a working outbound route
    Set up a trunk (zap/g0 or whatever group your fxo ports are in), add it to the default outbound route.

    3) inbound: If you're on freepbx 2.5 you have to set up zap channel dids for inbound routes to work.
     
  5. packetfish

    Joined:
    Jul 3, 2008
    Messages:
    10
    Likes Received:
    0
    First, thank you for the response. See my comments...

    >For it to work you have to have
    >1) the astribank working properly: from the commandline as root do
    >ztcfg -vv

    Is this not the same as detecting hardware from the GUI? Additionally... I have at no time run ztcfg yet, but all the hardware is showing up fine under asterisk -rx 'zap show channels'

    >It may need different signaling in /etc/asterisk/zapata.conf

    Signaling is correct in all the conf files based on the port types and many many examples I've viewed, what I don't see anyone making mention of are the physical zaptel extensions settings from the GUI. I've tried several things there like changing signaling type removing echo cancellation but it still bears no affect.

    For FXS ports I know you have to set echotraining=0 even to get dialtone, but I have NOT seen anyone mention if there is anything needed in terms of modification for the FXO port extension, and those are what I can not get working.

    >2) there has to be a working outbound route

    I have a route, dial 9 and go out zap g0. It appears it does this and strips my leading 9; however, I then immediately get 'all circuits busy' when it proceeds to g0...

    -- Executing [s@macro-dialout-trunk:20] Dial("SIP/554-b760d460", "ZAP/g0/*some_number*|300|") in new stack
    == Everyone is busy/congested at this time (1:0/1/0)

    Is it going out the correct channel? What does this represent, span 1, chan 0? If so its not passing it to the right span and channel, and that would mean to me the groups don't work correctly as these are defined...group 0 is channels 15-22 which are the FXO ports.

    >3) inbound: If you're on freepbx 2.5 you have to set up zap channel dids for inbound routes to work

    Inbound routes are the least of my concern at this point, I need the dial out over POTS more than anything.

    Any additional suggestions are appreciated since thus far Xorcom support has just entailed some sales person merely forwarding my request to support, and there has been no comment back.
     

Share This Page