Koozali.org: home of the SME Server

AX400 card

Offline groutley

  • *****
  • 213
  • +0/-0
    • http://www.routley.homeip.net
AX400 card
« on: June 20, 2008, 01:41:40 PM »
Hi Selintra,
 I have bought myself an ATCOM AX400-12B card.
I have port 1 as FXO and port 2 and 3 as FXS.

I have installed the card and all seems recognized correctly..

Code: [Select]
[root@l1nuxsvr etc]# cat /proc/zaptel/*
Span 1: WCTDM/0 "Wildcard TDM400P REV I Board 1" (MASTER)

           1 WCTDM/0/0 FXSKS (In use)
           2 WCTDM/0/1 FXOKS (In use)
           3 WCTDM/0/2 FXOKS (In use)
           4 WCTDM/0/3
[root@l1nuxsvr etc]#

Code: [Select]
l1nuxsvr*CLI> zap show channels
   Chan Extension  Context         Language   MOH Interpret
 pseudo            internal                   default
      1            mainmenu                   default
      2            internal                   default
      3            internal                   default
l1nuxsvr*CLI>

Code: [Select]
l1nuxsvr*CLI> zap show channel 1
Channel: 1LI>
File Descriptor: 19
Span: 1
Extension:
Dialing: no
Context: mainmenu
Caller ID:
Calling TON: 0
Caller ID name:
Destroy: 0
InAlarm: 0
Signalling Type: FXS Kewlstart
Radio: 0
Owner: <None>
Real: <None>
Callwait: <None>
Threeway: <None>
Confno: -1
Propagated Conference: -1
Real in conference: 0
DSP: no
Relax DTMF: yes
Dialing/CallwaitCAS: 0/0
Default law: ulaw
Fax Handled: no
Pulse phone: no
Echo Cancellation: 128 taps, currently OFF
Actual Confinfo: Num/0, Mode/0x0000
Actual Confmute: No
Hookstate (FXS only): Offhook
l1nuxsvr*CLI>


Yet when I ring my PSTN line I see the following in Asterisk console..
Code: [Select]
Connected to Asterisk 1.4.18.1 currently running on l1nuxsvr (pid = 6491)
Verbosity is at least 5
    -- Starting simple switch on 'Zap/1-1'
[Jun 20 21:09:55] NOTICE[24264]: chan_zap.c:6376 ss_thread: Got event 18 (Ring Begin)...
[Jun 20 21:09:56] NOTICE[24264]: chan_zap.c:6376 ss_thread: Got event 2 (Ring/Answered)...
[Jun 20 21:09:58] NOTICE[24264]: chan_zap.c:6376 ss_thread: Got event 18 (Ring Begin)...
    -- Executing [s@mainmenu:1] GotoIf("Zap/1-1", "1?s-61397951901|1") in new stack
    -- Goto (mainmenu,s-61397951901,1)
    -- Executing [s-61397951901@mainmenu:1] AGI("Zap/1-1", "selintra|Inbound|61397951901") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/selintra
    -- AGI Script selintra completed, returning 0
    -- Sent into invalid extension 's-61397951901' in context 'extensions' on Zap/1-1
    -- Executing [i@extensions:1] PlayTones("Zap/1-1", "congestion") in new stack
    -- Executing [i@extensions:2] Hangup("Zap/1-1", "") in new stack
  == Spawn extension (extensions, i, 2) exited non-zero on 'Zap/1-1'
    -- Executing [h@extensions:1] Hangup("Zap/1-1", "") in new stack
  == Spawn extension (extensions, h, 1) exited non-zero on 'Zap/1-1'
    -- Hungup 'Zap/1-1'
    -- Starting simple switch on 'Zap/1-1'
[Jun 20 21:10:04] NOTICE[24298]: chan_zap.c:6376 ss_thread: Got event 18 (Ring Begin)...
[Jun 20 21:10:05] NOTICE[24298]: chan_zap.c:6376 ss_thread: Got event 2 (Ring/Answered)...
[Jun 20 21:10:07] NOTICE[24298]: chan_zap.c:6376 ss_thread: Got event 18 (Ring Begin)...
    -- Executing [s@mainmenu:1] GotoIf("Zap/1-1", "1?s-61397951901|1") in new stack
    -- Goto (mainmenu,s-61397951901,1)
    -- Executing [s-61397951901@mainmenu:1] AGI("Zap/1-1", "selintra|Inbound|61397951901") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/selintra
    -- AGI Script selintra completed, returning 0
    -- Sent into invalid extension 's-61397951901' in context 'extensions' on Zap/1-1
    -- Executing [i@extensions:1] PlayTones("Zap/1-1", "congestion") in new stack
    -- Executing [i@extensions:2] Hangup("Zap/1-1", "") in new stack
  == Spawn extension (extensions, i, 2) exited non-zero on 'Zap/1-1'
    -- Executing [h@extensions:1] Hangup("Zap/1-1", "") in new stack
  == Spawn extension (extensions, h, 1) exited non-zero on 'Zap/1-1'
    -- Hungup 'Zap/1-1'
    -- Starting simple switch on 'Zap/1-1'
[Jun 20 21:10:13] NOTICE[24331]: chan_zap.c:6376 ss_thread: Got event 18 (Ring Begin)...
[Jun 20 21:10:14] NOTICE[24331]: chan_zap.c:6376 ss_thread: Got event 2 (Ring/Answered)...
[Jun 20 21:10:16] NOTICE[24331]: chan_zap.c:6376 ss_thread: Got event 18 (Ring Begin)...
    -- Executing [s@mainmenu:1] GotoIf("Zap/1-1", "1?s-61397951901|1") in new stack
    -- Goto (mainmenu,s-61397951901,1)
    -- Executing [s-61397951901@mainmenu:1] AGI("Zap/1-1", "selintra|Inbound|61397951901") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/selintra
    -- AGI Script selintra completed, returning 0
    -- Sent into invalid extension 's-61397951901' in context 'extensions' on Zap/1-1
    -- Executing [i@extensions:1] PlayTones("Zap/1-1", "congestion") in new stack
    -- Executing [i@extensions:2] Hangup("Zap/1-1", "") in new stack
  == Spawn extension (extensions, i, 2) exited non-zero on 'Zap/1-1'
    -- Executing [h@extensions:1] Hangup("Zap/1-1", "") in new stack
  == Spawn extension (extensions, h, 1) exited non-zero on 'Zap/1-1'
    -- Hungup 'Zap/1-1'
[Jun 20 21:28:35] NOTICE[6524]: chan_sip.c:12532 handle_response_peerpoke: Peer 'pt5551' is now Lagged. (4034ms / 3000ms)
[Jun 20 21:28:45] NOTICE[6524]: chan_sip.c:12532 handle_response_peerpoke: Peer 'pt5551' is now Reachable. (28ms / 3000ms)
l1nuxsvr*CLI>

But I have defined the Open / Closed to direct the call to extn 5010, but it never rings ?

This PSTN line is my fax line, so I have ticked the FAX box on the trunkline settings,  and in globals have fax extn to be 5003 which is port 1 on the card.
I have not tested the fax functionality, as it doesnt work with a normal incoming call, so I figure first things first.

I have no previous experience with these TDM type cards, so have probably overlooked something,  but I don't know what..

Levels I am running....
Code: [Select]
[root@l1nuxsvr etc]# uname -r
2.6.9-67.0.7.ELsmp
[root@l1nuxsvr etc]# rpm -q zaptel-kmdl-`uname -r`
warning: only V3 signatures can be verified, skipping V4 signature
zaptel-kmdl-2.6.9-67.0.7.ELsmp-1.4.11-51.el4
[root@l1nuxsvr etc]# rpm -q libpri
libpri-1.4.3-19.el4
[root@l1nuxsvr etc]# rpm -q asterisk
warning: only V3 signatures can be verified, skipping V4 signature
asterisk-1.4.18.1-59.el4
[root@l1nuxsvr etc]# rpm -q sail
sail-2.2.1-631
[root@l1nuxsvr etc]#


Appreciate any suggestions...
G

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: AX400 card
« Reply #1 on: June 20, 2008, 07:20:29 PM »
HI there,

Let's see if we can't get you back on the road.  This is due to a little bug in SAIL that most people never hit so I've never bothered to fix it...

Go to PCI cards and hit initialise to clear out your card definition.  Now do your probe again, only this time don't fill out a subscriber number for the line.  It's just documentation anyway and that's where the little bug is.

Stop and start asterisk using the stop/start button and then go do your  routing as normal in the trunk.

You should be good to go.

Also, if this is a FAX line ONLY then don't bother doing fax detect, just switch any incoming call ('cos they'll all be fax) straight to the fax extension (Asterisk takes a short lifetime to recognise fax tones so it's better not to bother if you know you are dealing with fax anyway).


Kind Regards

S

p.s. I've just put a fix in for it - it will be in release -637
« Last Edit: June 20, 2008, 07:27:11 PM by selintra »

Offline groutley

  • *****
  • 213
  • +0/-0
    • http://www.routley.homeip.net
Re: AX400 card
« Reply #2 on: June 20, 2008, 10:24:34 PM »
Hi Selintra,
  pure genious !!

that did the trick alright,  thanks for the help.

cheers  G