Koozali.org: home of the SME Server

Unable to create 'Zap' Channel

Offline David Harper

  • *
  • 653
  • +0/-0
  • Watch this space
    • Workgroup Technology Solutions
Unable to create 'Zap' Channel
« on: February 08, 2009, 01:20:03 PM »
I am trying to configure a Digium TDM410P with the following components:

zaptel-1.4.12.1-54.99.el4
zaptel-kmdl-2.6.9-78.0.8.ELsmp-1.4.12.1-54.99.el4
asterisk-1.4.23.1-72.el4
asterisk-addons-1.4.7-21.el4
libpri-1.4.9-22.el4
sail-2.2.1-688

Internal calls work, provisioning works, but unfortunately attempting to call externally does not:

Code: [Select]
-- Launched AGI Script /var/lib/asterisk/agi-bin/selintra
    -- AGI Script Executing Application: (NoOp) Options: (test-group)
    -- AGI Script Executing Application: (NoOp) Options: (Found-group)
    -- AGI Script Executing Application: (Dial) Options: (Zap/g2/8421550063)
[Feb  8 23:03:49] WARNING[7520]: app_dial.c:1286 dial_exec_full: Unable to create channel of type 'Zap' (cause 0 - Unknown)
  == Everyone is busy/congested at this time (1:0/0/1)
    -- AGI Script Executing Application: (Playback) Options: (beep)
    -- <SIP/5000-b761d628> Playing 'beep' (language 'en')
    -- AGI Script Executing Application: (NoOp) Options: (test-group)
    -- AGI Script Executing Application: (NoOp) Options: (test-group)
    -- AGI Script Executing Application: (Background) Options: (were-sorry)
    -- <SIP/5000-b761d628> Playing 'were-sorry' (language 'en'

I got this far by enabling the dahdi compatibility option. Previously we had a Cause 66 error.

Offline David Harper

  • *
  • 653
  • +0/-0
  • Watch this space
    • Workgroup Technology Solutions
Re: Unable to create 'Zap' Channel
« Reply #1 on: February 08, 2009, 02:04:26 PM »
Jeff, will updating to 715 fix this?

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: Unable to create 'Zap' Channel
« Reply #2 on: February 08, 2009, 11:18:01 PM »
AS far as we know it isn't broken.

What does zap show channels or zap show status give you?

Best

S

Offline David Harper

  • *
  • 653
  • +0/-0
  • Watch this space
    • Workgroup Technology Solutions
Re: Unable to create 'Zap' Channel
« Reply #3 on: February 09, 2009, 03:08:26 AM »
Thanks for the response.

zap show channels shows the pseudo channel only.

When I ran ztcfg -v, it said there were 3 channels to configure, so I ran perl /etc/selintra/selautosniff. It then detects & configures the TDM card's three FXO channels, but as far as I can tell only pseudo shows up in Asterisk.

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: Unable to create 'Zap' Channel
« Reply #4 on: February 09, 2009, 08:48:22 AM »
selautosniff was obsoleted in 2.1.12 - it is only there as a legacy item.  It won't function correctly in 2.2.

Instead, you should use the PCI cards panel in the server-manager to configure your card layout.

The installation guide quicknotes (http://aelintra.com/docs/cgi-bin/view/Main/DocChapter03b) will show you the correct procedure in the section entitled PCI Setup.  Firstly though, you should go to PCI cards panel and do an Initialise to clean out any decisions made by autosniff.  If the initialise button is not exposed then you
should continue as decribed in the guide.

S


Offline ldkeen

  • *
  • 405
  • +0/-0
Re: Unable to create 'Zap' Channel
« Reply #5 on: February 09, 2009, 10:13:20 AM »
Yeah, I've got the same problem here. Couldn't get the TDM card going for love nor money under asterisk 1.4.23 (from ATRPMS). "zap show channels" gives me:
No DAHDI interface found
Unable to open /dev/dahdi/ctl: No such file or directory
I ended up dropping back to asterisk 1.4.21 and it came straight up. Would "dahdichanname=no" in asterisk.conf fix the problem do you think? I'm not sure where to look. I thought about installing Dahdi but ATRPMS doesn't have the correct kernel module.
Lloyd

Offline David Harper

  • *
  • 653
  • +0/-0
  • Watch this space
    • Workgroup Technology Solutions
Re: Unable to create 'Zap' Channel
« Reply #6 on: February 09, 2009, 10:39:50 AM »
Yeah, I've got the same problem here. Couldn't get the TDM card going for love nor money under asterisk 1.4.23 (from ATRPMS). "zap show channels" gives me:
No DAHDI interface found
Unable to open /dev/dahdi/ctl: No such file or directory

Exactly what I got!

Quote
I ended up dropping back to asterisk 1.4.21 and it came straight up.

Where did you get this RPM package from?

Quote
Would "dahdichanname=no" in asterisk.conf fix the problem do you think? I'm not sure where to look.

No, I tried this and the Error 66 became Error 0 (unknown).

Quote
I thought about installing Dahdi but ATRPMS doesn't have the correct kernel module.

SAIL does not support the Dahdi configuration files anyway -- this wouldn't work.

Offline ldkeen

  • *
  • 405
  • +0/-0
Re: Unable to create 'Zap' Channel
« Reply #7 on: February 09, 2009, 11:01:58 AM »
Quote
Where did you get this RPM package from?
I got it from my yum cache but if you'd like a copy I've dumped it on the webserver for you: comnetel.com/asterisk-1.4.21.1-65.el4.i386.rpm
Quote
SAIL does not support the Dahdi configuration files anyway -- this wouldn't work.
I suspected that might be the case and was the main reason for dropping back to 1.4.21.
Regards, Lloyd

Offline David Harper

  • *
  • 653
  • +0/-0
  • Watch this space
    • Workgroup Technology Solutions
Re: Unable to create 'Zap' Channel
« Reply #8 on: February 09, 2009, 12:24:45 PM »
FANTASTIC! Thanks for this. I have uploaded a bunch of useful RPMS (most of them already mirrored by Selintra at http://sarkpbx.com/sail/) on my website - http://sme.david-harper.com/data/sark/

Much appreciated.

Selintra, I think for the time being you will need to mirror all of the necessary components yourself, rather than rely on atrpms. Until SAIL supports Dahdi, and until SME upgrades to a newer kernel release (2.6.9-68.0.13 at a minimum), atrpms is pretty much useless except for asterisk-addons and sounds etc. The core stuff is now all incompatible with either SME and/or SAIL.

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com

Offline David Harper

  • *
  • 653
  • +0/-0
  • Watch this space
    • Workgroup Technology Solutions
Re: Unable to create 'Zap' Channel
« Reply #10 on: February 09, 2009, 08:07:58 PM »
Asterisk as well 8)

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: Unable to create 'Zap' Channel
« Reply #11 on: February 09, 2009, 10:00:07 PM »
Asterisk is not zap or kernel release dependant (at least at the point release level).
In any event we just don't have the bandwidth to host large download files on our FTP site.


Best

S

Offline David Harper

  • *
  • 653
  • +0/-0
  • Watch this space
    • Workgroup Technology Solutions
Re: Unable to create 'Zap' Channel
« Reply #12 on: February 09, 2009, 10:12:48 PM »
The version in atrpms is incompatible with SAIL, as it breaks Zaptel.

Offline David Harper

  • *
  • 653
  • +0/-0
  • Watch this space
    • Workgroup Technology Solutions
Re: Unable to create 'Zap' Channel
« Reply #13 on: February 09, 2009, 11:31:15 PM »
Ok, have downgraded Asterisk to the RPM provided above. Reprobed the card from the web interface; restarted Asterisk with:

Code: [Select]
/etc/init.d/sark stop
/etc/init.d/sark start

zap show channels now correctly displays all 3 available channels, rather than just pseudo. Will test actual calling in a few hours when I am physically at the office.

Offline David Harper

  • *
  • 653
  • +0/-0
  • Watch this space
    • Workgroup Technology Solutions
Re: Unable to create 'Zap' Channel
« Reply #14 on: February 10, 2009, 01:34:28 AM »
Okay, that works.

Selintra: I can confirm that the ATRPMS version of Asterisk breaks Zaptel. Until you update SAIL for DAHDI, only the previous 1.4.21.1-65 version will work with TDM cards.

ldkeen: I owe you a drink! Do you live in Sydney? EDIT: I see from your profile that you are -- give me a call (contact details).
« Last Edit: February 10, 2009, 08:33:15 AM by David Harper »