Re: [asterisk-users] [URGENT] Zap channels fail to load

2008-02-27 Thread Tzafrir Cohen
On Wed, Feb 27, 2008 at 08:13:49AM +0200, Louwrens Benadé wrote:
 Well, on an E1 PRI config your D-channel is indeed assigned to channel 16,
 the center channel. On a T1, your data channel is on channel 24, the last
 channel.
 
 Did you restore your zaptel config from samples or another source?

T1? From a european provider?

-- 
   Tzafrir Cohen
icq#16849755  jabber:[EMAIL PROTECTED]
+972-50-7952406   mailto:[EMAIL PROTECTED]
http://www.xorcom.com  iax:[EMAIL PROTECTED]/tzafrir

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] [URGENT] Zap channels fail to load

2008-02-27 Thread linuxian iandsd
i believe your problem is at the hardware/driver/provider level so you will
be looking at the :
zaptel.conf  zapata.conf files
i don't know if this will help but here is my config for a E1 euroISDN line:

zaptel.conf


span=1,0,0,ccs,hdb3  # First E1 Port
span=2,0,0,ccs,hdb3  # second E1 port
bchan=1-15,17-31
dchan=16
bchan=32-46,48-62
dchan=47


zapata.conf

[trunkgroups]

[channels]

language=es
loadzone=fr
defaultzone=fr
context=default
switchtype=euroisdn
pridialplan=unknow
signalling=pri_cpe
internationalprefix = 00
nationalprefix = 34
rxwink=300  ; Atlas seems to use long (250ms) winks
usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=yes
rxgain=0.0
txgain=0.0
callgroup=1
pickupgroup=1
immediate=no
group=1
channel = 1-15
channel = 17-31
group=2
channel = 32-46
channel = 48-62

i removed some stuff that is not important to you.

my second advice is : clonezilla ! it will clone any systeme from ide to
sata to raid 5  make you feel calm  confidente when doing changes to
critical system components knowing you have your files safe on your other
RAID5 server.  believe me that would make you more productive because you
are concentrating on the programing you are doing rather than being
overtaken by the fear that you will break something that works. well, some
of you will know the feeling.

hope this helps :)



On Wed, Feb 27, 2008 at 10:09 AM, Tzafrir Cohen [EMAIL PROTECTED]
wrote:

 On Wed, Feb 27, 2008 at 08:13:49AM +0200, Louwrens Benadé wrote:
  Well, on an E1 PRI config your D-channel is indeed assigned to channel
 16,
  the center channel. On a T1, your data channel is on channel 24, the
 last
  channel.
 
  Did you restore your zaptel config from samples or another source?

 T1? From a european provider?

 --
   Tzafrir Cohen
 icq#16849755  jabber:[EMAIL PROTECTED]
 +972-50-7952406   mailto:[EMAIL PROTECTED]
 http://www.xorcom.com  iax:[EMAIL PROTECTED]/tzafrir

 ___
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] [URGENT] Zap channels fail to load

2008-02-27 Thread Andres Jimenez
On Wed, Feb 27, 2008 at 10:25 AM, linuxian iandsd [EMAIL PROTECTED] wrote:
 i believe your problem is at the hardware/driver/provider level so you will
 be looking at the :
 zaptel.conf  zapata.conf files

Thanks for the advice. I will give it a try this evening.


 my second advice is : clonezilla ! it will clone any systeme from ide to
 sata to raid 5  make you feel calm  confidente when doing changes to
 critical system components knowing you have your files safe on your other
 RAID5 server.  believe me that would make you more productive because you
 are concentrating on the programing you are doing rather than being
 overtaken by the fear that you will break something that works. well, some
 of you will know the feeling.

My friends here are rsync (with backup option) and svn.

Before start and after changing any configuration I do an rsync copy
to my backup server. It takes only seconds and it keeps in a separated
folder any file changed in the process, so I can recover the previous
settings in just a few seconds using a single command.
Additionally a cron job takes my machines' /etc folders and commit
them an svn server so I can even recover an old version of a config
file easily.


-- 
Andres Jimenez

GPG : http://www.andresin.com/gpg/[EMAIL PROTECTED]

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] [URGENT] Zap channels fail to load

2008-02-27 Thread Tzafrir Cohen
On Wed, Feb 27, 2008 at 10:25:28AM +, linuxian iandsd wrote:
 i believe your problem is at the hardware/driver/provider level so you will
 be looking at the :
 zaptel.conf  zapata.conf files
 i don't know if this will help but here is my config for a E1 euroISDN line:

But this is not the case here.

If your provider gives you a full PRI and you configure it as a
fractional PRI (and configure it properly), Asterisk will start and
configure the span. Some calls from the provider may not go through. But
that only happens after Asterisk configures the span. And the OP did not
get that far.

The problem of the OP was a failed ioctl. Which means that the version
of Asterisk was built with a version of zaptel.h that is incompatible
with the one used to build the zaptel kernel modules running on that
system.

I had a theory on how this had happened in the specific case. But so far
the OP has not confirmed or denied it.

-- 
   Tzafrir Cohen
icq#16849755  jabber:[EMAIL PROTECTED]
+972-50-7952406   mailto:[EMAIL PROTECTED]
http://www.xorcom.com  iax:[EMAIL PROTECTED]/tzafrir

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] [URGENT] Zap channels fail to load

2008-02-27 Thread Andres Jimenez
On Wed, Feb 27, 2008 at 12:01 PM, Tzafrir Cohen
[EMAIL PROTECTED] wrote:

  I had a theory on how this had happened in the specific case. But so far
  the OP has not confirmed or denied it.

I did deny it. Please see it here:

http://lists.digium.com/pipermail/asterisk-users/2008-February/206516.html

You were right about the problem, but not about the cause.


-- 
Andres Jimenez

GPG : http://www.andresin.com/gpg/[EMAIL PROTECTED]

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] [URGENT] Zap channels fail to load

2008-02-27 Thread Tzafrir Cohen
On Tue, Feb 26, 2008 at 12:27:16PM +, Andres Jimenez wrote:
 Comes from a previous message.
 
 On Tue, Feb 26, 2008 at 12:25 PM, Tzafrir Cohen
 [EMAIL PROTECTED] wrote:
 
   Here's my guess:
 
   You built Asterisk vs. a newer Zaptel (that happened to have the
   Astribank drivers).
 
   Now you reverted to the old Zaptel drivers. And those are of a version
   before 1.4.8 . Hence the new ZT_GET_PARAMS of 1.4.8 does not exist
   there. The ZT_GET_PARAMS ioctl Asterisk sends is thus not understood by
   Zaptel and fails.
 
   Unrevert to the new Zaptel version (of the modules. Stick with the
   original zaptel.conf). Does this help?
 
 I did build asterisk using zaptel 1.4.8 about 10 days ago. We were
 having issues with DTMF , so I downgraded zaptel (rebuilding Asterisk
 and libpri, of course) to 1.4.7, but the problems remained.

Are the new zaptel drivers loaded?

  cat /sys/module/zaptel/version

-- 
   Tzafrir Cohen
icq#16849755  jabber:[EMAIL PROTECTED]
+972-50-7952406   mailto:[EMAIL PROTECTED]
http://www.xorcom.com  iax:[EMAIL PROTECTED]/tzafrir

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] [URGENT] Zap channels fail to load

2008-02-27 Thread Andres Jimenez
On Wed, Feb 27, 2008 at 12:45 PM, Tzafrir Cohen
[EMAIL PROTECTED] wrote:

  Are the new zaptel drivers loaded?

   cat /sys/module/zaptel/version

Yes. I did fix it upgrading it back (and rebuilding asterisk and
libpri) to zaptel 1.4.8

-- 
Andres Jimenez

GPG : http://www.andresin.com/gpg/[EMAIL PROTECTED]

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[asterisk-users] [URGENT] Zap channels fail to load

2008-02-26 Thread Andres Jimenez
I have spent some time this morning trying to add an Astribank to our
current Asterisk, but it failed, so I just removed the hardware,
restore the config files to the original setup and started asterisk.;

I could see that no Zap channels are started so I did load chan_zap.so:
pbx*CLI module load chan_zap.so
[Feb 26 10:32:18] WARNING[3809]: pbx.c:2968 ast_register_application:
Already have an application 'ZapSendKeypadFacility'
  == Parsing '/etc/asterisk/zapata.conf': Found
[Feb 26 10:32:18] WARNING[3809]: chan_zap.c:904 zt_open: Unable to
specify channel 1: Device or resource busy
[Feb 26 10:32:18] ERROR[3809]: chan_zap.c:7186 mkintf: Unable to open
channel 1: Device or resource busy
here = 0, tmp-channel = 1, channel = 1
[Feb 26 10:32:18] ERROR[3809]: chan_zap.c:10527 build_channels: Unable
to register channel '1-15'

Fair enough. I did unloaded chan_zap.so (because of the first error)
and tried again:

pbx*CLI module load chan_zap.so
[Feb 26 10:32:18] WARNING[3809]: pbx.c:2968 ast_register_application:
Already have an application 'ZapSendKeypadFacility'
  == Parsing '/etc/asterisk/zapata.conf': Found
[Feb 26 10:32:18] WARNING[3809]: chan_zap.c:904 zt_open: Unable to
specify channel 1: Device or resource busy
[Feb 26 10:32:18] ERROR[3809]: chan_zap.c:7186 mkintf: Unable to open
channel 1: Device or resource busy
here = 0, tmp-channel = 1, channel = 1
[Feb 26 10:32:18] ERROR[3809]: chan_zap.c:10527 build_channels: Unable
to register channel '1-15'

It looks like the problem is in the zap card's first channel:

pbx:~# cat /proc/zaptel/1
Span 1: WCT1/0 Wildcard TE12xP Card 0 HDB3/CCS
IRQ misses: 36

   1 WCT1/0/1 Clear (In use)
   2 WCT1/0/2 Clear
   3 WCT1/0/3 Clear
   4 WCT1/0/4 Clear
   5 WCT1/0/5 Clear
   6 WCT1/0/6 Clear
   7 WCT1/0/7 Clear
   8 WCT1/0/8 Clear
   9 WCT1/0/9 Clear
  10 WCT1/0/10 Clear
  11 WCT1/0/11 Clear
  12 WCT1/0/12 Clear
  13 WCT1/0/13 Clear
  14 WCT1/0/14 Clear
  15 WCT1/0/15 Clear
  16 WCT1/0/16 HDLCFCS
  17 WCT1/0/17 Clear
  18 WCT1/0/18 Clear
  19 WCT1/0/19 Clear
  20 WCT1/0/20 Clear
  21 WCT1/0/21 Clear
  22 WCT1/0/22 Clear
  23 WCT1/0/23 Clear
  24 WCT1/0/24 Clear
  25 WCT1/0/25
  26 WCT1/0/26
  27 WCT1/0/27
  28 WCT1/0/28
  29 WCT1/0/29
  30 WCT1/0/30
  31 WCT1/0/31


Is there any change any Astribank related stuff can be causing this?

I have ensured that no Astribanks modules are loaded and even rebooted
the box, but no success.


pbx:~# cat /etc/zaptel.conf
# CRC off
#
loadzone = uk
defaultzone = uk

span=1,1,0,ccs,hdb3
bchan=1-15
dchan=16
bchan=17-24

#or this with crc on
#
#loadzone = uk
#defaultzone = uk

#span=1,1,0,ccs,hdb3,crc4
#bchan=1-15
#dchan=16
#bchan=17-24

pbx:~# cat /etc/asterisk/zapata.conf
language=en
internationalprefix = 00
nationalprefix = 0
switchtype = euroisdn
pridialplan = local
priindication = outofband
usecallerid = yes
hidecallerid = no
callwaiting = yes
usecallingpres = yes
callwaitingcallerid = yes
threewaycalling = yes
transfer = yes
cancallforward = yes
callreturn = yes
group = 1
callgroup = 0
pickupgroup = 0
immediate = no
echotraining = yes
echocancel = yes
echocancelwhenbridged = no
facilityenable = yes
musiconhold = default
;overlapdial = yes
overlapdial = no
immediate = no
txgain = -4.0
rxgain = -4.0
signalling = pri_cpe
channel = 1-15
;channel = 17-32
channel = 17-24
;toneduration=100
toneduration=300
;relaxdtmf=yes



Thanks,

-- 
Andres Jimenez

GPG : http://www.andresin.com/gpg/[EMAIL PROTECTED]

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] [URGENT] Zap channels fail to load

2008-02-26 Thread Andres Jimenez
I forgot to mentio asterisk log this 2 errors:

[Feb 26 08:38:01] ERROR[30245] chan_zap.c: Unable to get parameters
[Feb 26 08:38:01] ERROR[30245] chan_zap.c: Unable to register channel '1-15'

Any hint?

Thanks in advance.
Andres

On Tue, Feb 26, 2008 at 10:44 AM, Andres Jimenez [EMAIL PROTECTED] wrote:
 I have spent some time this morning trying to add an Astribank to our
  current Asterisk, but it failed, so I just removed the hardware,
  restore the config files to the original setup and started asterisk.;

  I could see that no Zap channels are started so I did load chan_zap.so:
  pbx*CLI module load chan_zap.so
  [Feb 26 10:32:18] WARNING[3809]: pbx.c:2968 ast_register_application:
  Already have an application 'ZapSendKeypadFacility'
   == Parsing '/etc/asterisk/zapata.conf': Found
  [Feb 26 10:32:18] WARNING[3809]: chan_zap.c:904 zt_open: Unable to
  specify channel 1: Device or resource busy
  [Feb 26 10:32:18] ERROR[3809]: chan_zap.c:7186 mkintf: Unable to open
  channel 1: Device or resource busy
  here = 0, tmp-channel = 1, channel = 1
  [Feb 26 10:32:18] ERROR[3809]: chan_zap.c:10527 build_channels: Unable
  to register channel '1-15'

  Fair enough. I did unloaded chan_zap.so (because of the first error)
  and tried again:

  pbx*CLI module load chan_zap.so
  [Feb 26 10:32:18] WARNING[3809]: pbx.c:2968 ast_register_application:
  Already have an application 'ZapSendKeypadFacility'
   == Parsing '/etc/asterisk/zapata.conf': Found
  [Feb 26 10:32:18] WARNING[3809]: chan_zap.c:904 zt_open: Unable to
  specify channel 1: Device or resource busy
  [Feb 26 10:32:18] ERROR[3809]: chan_zap.c:7186 mkintf: Unable to open
  channel 1: Device or resource busy
  here = 0, tmp-channel = 1, channel = 1
  [Feb 26 10:32:18] ERROR[3809]: chan_zap.c:10527 build_channels: Unable
  to register channel '1-15'

  It looks like the problem is in the zap card's first channel:

  pbx:~# cat /proc/zaptel/1
  Span 1: WCT1/0 Wildcard TE12xP Card 0 HDB3/CCS
 IRQ misses: 36

1 WCT1/0/1 Clear (In use)
2 WCT1/0/2 Clear
3 WCT1/0/3 Clear
4 WCT1/0/4 Clear
5 WCT1/0/5 Clear
6 WCT1/0/6 Clear
7 WCT1/0/7 Clear
8 WCT1/0/8 Clear
9 WCT1/0/9 Clear
   10 WCT1/0/10 Clear
   11 WCT1/0/11 Clear
   12 WCT1/0/12 Clear
   13 WCT1/0/13 Clear
   14 WCT1/0/14 Clear
   15 WCT1/0/15 Clear
   16 WCT1/0/16 HDLCFCS
   17 WCT1/0/17 Clear
   18 WCT1/0/18 Clear
   19 WCT1/0/19 Clear
   20 WCT1/0/20 Clear
   21 WCT1/0/21 Clear
   22 WCT1/0/22 Clear
   23 WCT1/0/23 Clear
   24 WCT1/0/24 Clear
   25 WCT1/0/25
   26 WCT1/0/26
   27 WCT1/0/27
   28 WCT1/0/28
   29 WCT1/0/29
   30 WCT1/0/30
   31 WCT1/0/31


  Is there any change any Astribank related stuff can be causing this?

  I have ensured that no Astribanks modules are loaded and even rebooted
  the box, but no success.


  pbx:~# cat /etc/zaptel.conf
  # CRC off
  #
  loadzone = uk
  defaultzone = uk

  span=1,1,0,ccs,hdb3
  bchan=1-15
  dchan=16
  bchan=17-24

  #or this with crc on
  #
  #loadzone = uk
  #defaultzone = uk

  #span=1,1,0,ccs,hdb3,crc4
  #bchan=1-15
  #dchan=16
  #bchan=17-24

  pbx:~# cat /etc/asterisk/zapata.conf
  language=en
  internationalprefix = 00
  nationalprefix = 0
  switchtype = euroisdn
  pridialplan = local
  priindication = outofband
  usecallerid = yes
  hidecallerid = no
  callwaiting = yes
  usecallingpres = yes
  callwaitingcallerid = yes
  threewaycalling = yes
  transfer = yes
  cancallforward = yes
  callreturn = yes
  group = 1
  callgroup = 0
  pickupgroup = 0
  immediate = no
  echotraining = yes
  echocancel = yes
  echocancelwhenbridged = no
  facilityenable = yes
  musiconhold = default
  ;overlapdial = yes
  overlapdial = no
  immediate = no
  txgain = -4.0
  rxgain = -4.0
  signalling = pri_cpe
  channel = 1-15
  ;channel = 17-32
  channel = 17-24
  ;toneduration=100
  toneduration=300
  ;relaxdtmf=yes



  Thanks,

  --
  Andres Jimenez

  GPG : http://www.andresin.com/gpg/[EMAIL PROTECTED]




-- 
Andres Jimenez

GPG : http://www.andresin.com/gpg/[EMAIL PROTECTED]

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] [URGENT] Zap channels fail to load

2008-02-26 Thread Tzafrir Cohen
On Tue, Feb 26, 2008 at 11:06:29AM +, Andres Jimenez wrote:
 I forgot to mentio asterisk log this 2 errors:
 
 [Feb 26 08:38:01] ERROR[30245] chan_zap.c: Unable to get parameters
 [Feb 26 08:38:01] ERROR[30245] chan_zap.c: Unable to register channel '1-15'
 
 Any hint?

Here's my guess:

You built Asterisk vs. a newer Zaptel (that happened to have the
Astribank drivers).

Now you reverted to the old Zaptel drivers. And those are of a version
before 1.4.8 . Hence the new ZT_GET_PARAMS of 1.4.8 does not exist
there. The ZT_GET_PARAMS ioctl Asterisk sends is thus not understood by
Zaptel and fails.

Unrevert to the new Zaptel version (of the modules. Stick with the
original zaptel.conf). Does this help?

-- 
   Tzafrir Cohen
icq#16849755  jabber:[EMAIL PROTECTED]
+972-50-7952406   mailto:[EMAIL PROTECTED]
http://www.xorcom.com  iax:[EMAIL PROTECTED]/tzafrir

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] [URGENT] Zap channels fail to load

2008-02-26 Thread Tzafrir Cohen
Note: [Urgent] is generally not a good way to escalate the issue on a
public mailing list. We're all here for the fun of it and demanding
prompt reply may actually serve the other way.

If you have paid to get support (e.g: by buying hardware), this may be a
good time to use it.

That said, your message looks interesting. So see my reply inline :-)

On Tue, Feb 26, 2008 at 10:44:27AM +, Andres Jimenez wrote:
 I have spent some time this morning trying to add an Astribank to our
 current Asterisk, but it failed, 

Contact me privately :-)

 so I just removed the hardware,
 restore the config files to the original setup and started asterisk.;
 
 I could see that no Zap channels are started so I did load chan_zap.so:
 pbx*CLI module load chan_zap.so

You probably needed 'module unload chan_zap.so' before that. The module
was loaded, but it has bailed out before registering the CLI commands.

 [Feb 26 10:32:18] WARNING[3809]: pbx.c:2968 ast_register_application:
 Already have an application 'ZapSendKeypadFacility'
   == Parsing '/etc/asterisk/zapata.conf': Found
 [Feb 26 10:32:18] WARNING[3809]: chan_zap.c:904 zt_open: Unable to
 specify channel 1: Device or resource busy
 [Feb 26 10:32:18] ERROR[3809]: chan_zap.c:7186 mkintf: Unable to open
 channel 1: Device or resource busy
 here = 0, tmp-channel = 1, channel = 1
 [Feb 26 10:32:18] ERROR[3809]: chan_zap.c:10527 build_channels: Unable
 to register channel '1-15'
 
 Fair enough. I did unloaded chan_zap.so (because of the first error)
 and tried again:
 
 pbx*CLI module load chan_zap.so
 [Feb 26 10:32:18] WARNING[3809]: pbx.c:2968 ast_register_application:
 Already have an application 'ZapSendKeypadFacility'
   == Parsing '/etc/asterisk/zapata.conf': Found
 [Feb 26 10:32:18] WARNING[3809]: chan_zap.c:904 zt_open: Unable to
 specify channel 1: Device or resource busy
 [Feb 26 10:32:18] ERROR[3809]: chan_zap.c:7186 mkintf: Unable to open
 channel 1: Device or resource busy
 here = 0, tmp-channel = 1, channel = 1
 [Feb 26 10:32:18] ERROR[3809]: chan_zap.c:10527 build_channels: Unable
 to register channel '1-15'
 
 It looks like the problem is in the zap card's first channel:
 
 pbx:~# cat /proc/zaptel/1
 Span 1: WCT1/0 Wildcard TE12xP Card 0 HDB3/CCS
 IRQ misses: 36
 
1 WCT1/0/1 Clear (In use)
2 WCT1/0/2 Clear

The symptom is expelained in the following report that I filed earlier
today (unrelated to this one)

  http://bugs.digium.com/12071

Channel 1 was left open from a failed configuration attempt

So the real error hides earlier in your logs. Look for 'chan_zap' in the
logs from the startup of Asterisk. And sadly you must restart Asterisk
to fix the error.

3 WCT1/0/3 Clear
4 WCT1/0/4 Clear
5 WCT1/0/5 Clear
6 WCT1/0/6 Clear
7 WCT1/0/7 Clear
8 WCT1/0/8 Clear
9 WCT1/0/9 Clear
   10 WCT1/0/10 Clear
   11 WCT1/0/11 Clear
   12 WCT1/0/12 Clear
   13 WCT1/0/13 Clear
   14 WCT1/0/14 Clear
   15 WCT1/0/15 Clear
   16 WCT1/0/16 HDLCFCS
   17 WCT1/0/17 Clear
   18 WCT1/0/18 Clear
   19 WCT1/0/19 Clear
   20 WCT1/0/20 Clear
   21 WCT1/0/21 Clear
   22 WCT1/0/22 Clear
   23 WCT1/0/23 Clear
   24 WCT1/0/24 Clear

Is this a fractional E1, indeed?

Or is the range in zaptel.conf incorrect? I noticed in your config file
that you changed it. Was this change made after Asterisk was started?

   25 WCT1/0/25
   26 WCT1/0/26
   27 WCT1/0/27
   28 WCT1/0/28
   29 WCT1/0/29
   30 WCT1/0/30
   31 WCT1/0/31
 
 
 Is there any change any Astribank related stuff can be causing this?
 
 I have ensured that no Astribanks modules are loaded and even rebooted
 the box, but no success.

I'm not sure how an Astribank module would have affected this one. The
Astribank spans tend to be the last ones, hence it should not have
misplaced your hardware.

If the module is loaded but no hardware is present, your system should
not be affected.

 
 
 pbx:~# cat /etc/zaptel.conf
 # CRC off
 #
 loadzone = uk
 defaultzone = uk
 
 span=1,1,0,ccs,hdb3
 bchan=1-15
 dchan=16
 bchan=17-24
 
 #or this with crc on
 #
 #loadzone = uk
 #defaultzone = uk
 
 #span=1,1,0,ccs,hdb3,crc4
 #bchan=1-15
 #dchan=16
 #bchan=17-24
 
 pbx:~# cat /etc/asterisk/zapata.conf
 language=en
 internationalprefix = 00
 nationalprefix = 0
 switchtype = euroisdn
 pridialplan = local
 priindication = outofband
 usecallerid = yes
 hidecallerid = no
 callwaiting = yes
 usecallingpres = yes
 callwaitingcallerid = yes
 threewaycalling = yes
 transfer = yes
 cancallforward = yes
 callreturn = yes
 group = 1
 callgroup = 0
 pickupgroup = 0
 immediate = no
 echotraining = yes
 echocancel = yes
 echocancelwhenbridged = no
 facilityenable = yes
 musiconhold = default
 ;overlapdial = yes
 overlapdial = no
 immediate = no
 txgain = -4.0
 rxgain = -4.0
 

Re: [asterisk-users] [URGENT] Zap channels fail to load

2008-02-26 Thread Louwrens Benadé
What's your output from 'ztcfg -vv'?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Andres Jimenez
Sent: 26 February 2008 01:06 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] [URGENT] Zap channels fail to load

I forgot to mentio asterisk log this 2 errors:

[Feb 26 08:38:01] ERROR[30245] chan_zap.c: Unable to get parameters
[Feb 26 08:38:01] ERROR[30245] chan_zap.c: Unable to register channel '1-15'

Any hint?

Thanks in advance.
Andres

On Tue, Feb 26, 2008 at 10:44 AM, Andres Jimenez [EMAIL PROTECTED]
wrote:
 I have spent some time this morning trying to add an Astribank to our
  current Asterisk, but it failed, so I just removed the hardware,
  restore the config files to the original setup and started asterisk.;

  I could see that no Zap channels are started so I did load chan_zap.so:
  pbx*CLI module load chan_zap.so
  [Feb 26 10:32:18] WARNING[3809]: pbx.c:2968 ast_register_application:
  Already have an application 'ZapSendKeypadFacility'
   == Parsing '/etc/asterisk/zapata.conf': Found
  [Feb 26 10:32:18] WARNING[3809]: chan_zap.c:904 zt_open: Unable to
  specify channel 1: Device or resource busy
  [Feb 26 10:32:18] ERROR[3809]: chan_zap.c:7186 mkintf: Unable to open
  channel 1: Device or resource busy
  here = 0, tmp-channel = 1, channel = 1
  [Feb 26 10:32:18] ERROR[3809]: chan_zap.c:10527 build_channels: Unable
  to register channel '1-15'

  Fair enough. I did unloaded chan_zap.so (because of the first error)
  and tried again:

  pbx*CLI module load chan_zap.so
  [Feb 26 10:32:18] WARNING[3809]: pbx.c:2968 ast_register_application:
  Already have an application 'ZapSendKeypadFacility'
   == Parsing '/etc/asterisk/zapata.conf': Found
  [Feb 26 10:32:18] WARNING[3809]: chan_zap.c:904 zt_open: Unable to
  specify channel 1: Device or resource busy
  [Feb 26 10:32:18] ERROR[3809]: chan_zap.c:7186 mkintf: Unable to open
  channel 1: Device or resource busy
  here = 0, tmp-channel = 1, channel = 1
  [Feb 26 10:32:18] ERROR[3809]: chan_zap.c:10527 build_channels: Unable
  to register channel '1-15'

  It looks like the problem is in the zap card's first channel:

  pbx:~# cat /proc/zaptel/1
  Span 1: WCT1/0 Wildcard TE12xP Card 0 HDB3/CCS
 IRQ misses: 36

1 WCT1/0/1 Clear (In use)
2 WCT1/0/2 Clear
3 WCT1/0/3 Clear
4 WCT1/0/4 Clear
5 WCT1/0/5 Clear
6 WCT1/0/6 Clear
7 WCT1/0/7 Clear
8 WCT1/0/8 Clear
9 WCT1/0/9 Clear
   10 WCT1/0/10 Clear
   11 WCT1/0/11 Clear
   12 WCT1/0/12 Clear
   13 WCT1/0/13 Clear
   14 WCT1/0/14 Clear
   15 WCT1/0/15 Clear
   16 WCT1/0/16 HDLCFCS
   17 WCT1/0/17 Clear
   18 WCT1/0/18 Clear
   19 WCT1/0/19 Clear
   20 WCT1/0/20 Clear
   21 WCT1/0/21 Clear
   22 WCT1/0/22 Clear
   23 WCT1/0/23 Clear
   24 WCT1/0/24 Clear
   25 WCT1/0/25
   26 WCT1/0/26
   27 WCT1/0/27
   28 WCT1/0/28
   29 WCT1/0/29
   30 WCT1/0/30
   31 WCT1/0/31


  Is there any change any Astribank related stuff can be causing this?

  I have ensured that no Astribanks modules are loaded and even rebooted
  the box, but no success.


  pbx:~# cat /etc/zaptel.conf
  # CRC off
  #
  loadzone = uk
  defaultzone = uk

  span=1,1,0,ccs,hdb3
  bchan=1-15
  dchan=16
  bchan=17-24

  #or this with crc on
  #
  #loadzone = uk
  #defaultzone = uk

  #span=1,1,0,ccs,hdb3,crc4
  #bchan=1-15
  #dchan=16
  #bchan=17-24

  pbx:~# cat /etc/asterisk/zapata.conf
  language=en
  internationalprefix = 00
  nationalprefix = 0
  switchtype = euroisdn
  pridialplan = local
  priindication = outofband
  usecallerid = yes
  hidecallerid = no
  callwaiting = yes
  usecallingpres = yes
  callwaitingcallerid = yes
  threewaycalling = yes
  transfer = yes
  cancallforward = yes
  callreturn = yes
  group = 1
  callgroup = 0
  pickupgroup = 0
  immediate = no
  echotraining = yes
  echocancel = yes
  echocancelwhenbridged = no
  facilityenable = yes
  musiconhold = default
  ;overlapdial = yes
  overlapdial = no
  immediate = no
  txgain = -4.0
  rxgain = -4.0
  signalling = pri_cpe
  channel = 1-15
  ;channel = 17-32
  channel = 17-24
  ;toneduration=100
  toneduration=300
  ;relaxdtmf=yes



  Thanks,

  --
  Andres Jimenez

  GPG : http://www.andresin.com/gpg/[EMAIL PROTECTED]




-- 
Andres Jimenez

GPG : http://www.andresin.com/gpg/[EMAIL PROTECTED]

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE

Re: [asterisk-users] [URGENT] Zap channels fail to load

2008-02-26 Thread Andres Jimenez
On Tue, Feb 26, 2008 at 12:21 PM, Tzafrir Cohen
[EMAIL PROTECTED] wrote:
 Note: [Urgent] is generally not a good way to escalate the issue on a
  public mailing list. We're all here for the fun of it and demanding
  prompt reply may actually serve the other way.

I am sorry about the scalating, but I was panicking a little bit
after a couple of hours trying to fix the issue.

  If you have paid to get support (e.g: by buying hardware), this may be a
  good time to use it.

I am too used to get/give free advice that I forget I can use it.

  Contact me privately :-)

Nice to meet an Astribank guru . I will contact you soon :-)


  The symptom is expelained in the following report that I filed earlier
  today (unrelated to this one)

   http://bugs.digium.com/12071

  Channel 1 was left open from a failed configuration attempt

  So the real error hides earlier in your logs. Look for 'chan_zap' in the
  logs from the startup of Asterisk. And sadly you must restart Asterisk
  to fix the error.

I din't fix it for me.

  Is this a fractional E1, indeed?

Not sure about how to call it. The provider (Eircom, Ireland) calls it PRA.

This messages follows in the other message reply.


-- 
Andres Jimenez

GPG : http://www.andresin.com/gpg/[EMAIL PROTECTED]

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] [URGENT] Zap channels fail to load

2008-02-26 Thread Andres Jimenez
Comes from a previous message.

On Tue, Feb 26, 2008 at 12:25 PM, Tzafrir Cohen
[EMAIL PROTECTED] wrote:

  Here's my guess:

  You built Asterisk vs. a newer Zaptel (that happened to have the
  Astribank drivers).

  Now you reverted to the old Zaptel drivers. And those are of a version
  before 1.4.8 . Hence the new ZT_GET_PARAMS of 1.4.8 does not exist
  there. The ZT_GET_PARAMS ioctl Asterisk sends is thus not understood by
  Zaptel and fails.

  Unrevert to the new Zaptel version (of the modules. Stick with the
  original zaptel.conf). Does this help?

I did build asterisk using zaptel 1.4.8 about 10 days ago. We were
having issues with DTMF , so I downgraded zaptel (rebuilding Asterisk
and libpri, of course) to 1.4.7, but the problems remained.
Anything else worked just fine, so I kept researching and no other
changes were done till today.
Zaptel 1.4.7 was working perfectly for almost 2 weeks and has the
Astribanks drivers too, so I just tried to add the Astribank to my
configuration today.

I wasn't being able to make it work, so I reverted the changes made
earlier and disconnected the Astribank trying to go back to the
previous known working config.


I have rebuild everything against Zaptel 1.4.8 and it works now, but I
am a little bit concerned about why asterisk tried to use the
functions belonging to zaptel 1.4.8.


-- 
Andres Jimenez

GPG : http://www.andresin.com/gpg/[EMAIL PROTECTED]

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] [URGENT] Zap channels fail to load

2008-02-26 Thread Andres Jimenez
On Tue, Feb 26, 2008 at 12:05 PM, Louwrens Benadé [EMAIL PROTECTED] wrote:
 What's your output from 'ztcfg -vv'?

pbx:~# ztcfg -vv

Zaptel Version: 1.4.8
Echo Canceller: MG2
Configuration
==

SPAN 1: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1)

Channel map:

Channel 01: Clear channel (Default) (Slaves: 01)
Channel 02: Clear channel (Default) (Slaves: 02)
Channel 03: Clear channel (Default) (Slaves: 03)
Channel 04: Clear channel (Default) (Slaves: 04)
Channel 05: Clear channel (Default) (Slaves: 05)
Channel 06: Clear channel (Default) (Slaves: 06)
Channel 07: Clear channel (Default) (Slaves: 07)
Channel 08: Clear channel (Default) (Slaves: 08)
Channel 09: Clear channel (Default) (Slaves: 09)
Channel 10: Clear channel (Default) (Slaves: 10)
Channel 11: Clear channel (Default) (Slaves: 11)
Channel 12: Clear channel (Default) (Slaves: 12)
Channel 13: Clear channel (Default) (Slaves: 13)
Channel 14: Clear channel (Default) (Slaves: 14)
Channel 15: Clear channel (Default) (Slaves: 15)
Channel 16: D-channel (Default) (Slaves: 16)
Channel 17: Clear channel (Default) (Slaves: 17)
Channel 18: Clear channel (Default) (Slaves: 18)
Channel 19: Clear channel (Default) (Slaves: 19)
Channel 20: Clear channel (Default) (Slaves: 20)
Channel 21: Clear channel (Default) (Slaves: 21)
Channel 22: Clear channel (Default) (Slaves: 22)
Channel 23: Clear channel (Default) (Slaves: 23)
Channel 24: Clear channel (Default) (Slaves: 24)

24 channels to configure.



-- 
Andres Jimenez

GPG : http://www.andresin.com/gpg/[EMAIL PROTECTED]
___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] [URGENT] Zap channels fail to load

2008-02-26 Thread Louwrens Benadé
Why does this look suspiciously like a T1 line? Are you sure this is a
fractional E1?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Andres Jimenez
Sent: 26 February 2008 02:46 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] [URGENT] Zap channels fail to load

On Tue, Feb 26, 2008 at 12:05 PM, Louwrens Benadé [EMAIL PROTECTED]
wrote:
 What's your output from 'ztcfg -vv'?

pbx:~# ztcfg -vv

Zaptel Version: 1.4.8
Echo Canceller: MG2
Configuration
==

SPAN 1: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1)

Channel map:

Channel 01: Clear channel (Default) (Slaves: 01)
Channel 02: Clear channel (Default) (Slaves: 02)
Channel 03: Clear channel (Default) (Slaves: 03)
Channel 04: Clear channel (Default) (Slaves: 04)
Channel 05: Clear channel (Default) (Slaves: 05)
Channel 06: Clear channel (Default) (Slaves: 06)
Channel 07: Clear channel (Default) (Slaves: 07)
Channel 08: Clear channel (Default) (Slaves: 08)
Channel 09: Clear channel (Default) (Slaves: 09)
Channel 10: Clear channel (Default) (Slaves: 10)
Channel 11: Clear channel (Default) (Slaves: 11)
Channel 12: Clear channel (Default) (Slaves: 12)
Channel 13: Clear channel (Default) (Slaves: 13)
Channel 14: Clear channel (Default) (Slaves: 14)
Channel 15: Clear channel (Default) (Slaves: 15)
Channel 16: D-channel (Default) (Slaves: 16)
Channel 17: Clear channel (Default) (Slaves: 17)
Channel 18: Clear channel (Default) (Slaves: 18)
Channel 19: Clear channel (Default) (Slaves: 19)
Channel 20: Clear channel (Default) (Slaves: 20)
Channel 21: Clear channel (Default) (Slaves: 21)
Channel 22: Clear channel (Default) (Slaves: 22)
Channel 23: Clear channel (Default) (Slaves: 23)
Channel 24: Clear channel (Default) (Slaves: 24)

24 channels to configure.



-- 
Andres Jimenez

GPG : http://www.andresin.com/gpg/[EMAIL PROTECTED]
___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] [URGENT] Zap channels fail to load

2008-02-26 Thread Andres Jimenez
On Tue, Feb 26, 2008 at 1:35 PM, Louwrens Benadé [EMAIL PROTECTED] wrote:
 Why does this look suspiciously like a T1 line? Are you sure this is a
  fractional E1?

My provider names the line a PRA, but this is understood anywhere as a
PRI (no fractional).

From the Asterisk configuration point of view, is there any other
difference between the fractional and full PRI apart from the number
of channels?

Do you guys know of any particular setting our provider (Eircom,
Ireland) could require?

I have a problem with DTMF when the PRI is the one carrying the call:
1s and 2s are not transmitted. If the call is internal or carryed
by and IAX trunk + SIP it works nicely.

Regards,


-- 
Andres Jimenez

GPG : http://www.andresin.com/gpg/[EMAIL PROTECTED]
___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] [URGENT] Zap channels fail to load

2008-02-26 Thread Louwrens Benadé
Well, on an E1 PRI config your D-channel is indeed assigned to channel 16,
the center channel. On a T1, your data channel is on channel 24, the last
channel.

Did you restore your zaptel config from samples or another source?



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Andres Jimenez
Sent: 26 February 2008 06:18 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] [URGENT] Zap channels fail to load

On Tue, Feb 26, 2008 at 1:35 PM, Louwrens Benadé [EMAIL PROTECTED]
wrote:
 Why does this look suspiciously like a T1 line? Are you sure this is a
  fractional E1?

My provider names the line a PRA, but this is understood anywhere as a
PRI (no fractional).

From the Asterisk configuration point of view, is there any other
difference between the fractional and full PRI apart from the number
of channels?

Do you guys know of any particular setting our provider (Eircom,
Ireland) could require?

I have a problem with DTMF when the PRI is the one carrying the call:
1s and 2s are not transmitted. If the call is internal or carryed
by and IAX trunk + SIP it works nicely.

Regards,


-- 
Andres Jimenez

GPG : http://www.andresin.com/gpg/[EMAIL PROTECTED]
___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users