Marco Parmeggiani
2005-May-25 09:54 UTC
[Asterisk-Users] zaphfc: empty HDLC frame or bad CRC received
Hi, i've downloaded/compiled/installed the bristuffed asterisk Asterisk 1.0.7-BRIstuffed-0.2.0-RC8a and i'm using it with an hfc card. It runs on a debian 3.1 sarge machine with kernel 2.6.11. Asterisk works well if i configure the card using isdn4linux. I'm having problems dialing out (not tried the input yet). This is the output from asterisk: -- Accepting AUTHENTICATED call from 192.168.0.5, requested format = 4, actual format = 4 -- Executing Dial("IAX2/11@11/1", "Zap/g1/3*******") in new stack -- Requested transfer capability: 0x00 - SPEECH -- Called g1/3********** -- Channel 0/1, span 1 got hangup May 25 11:11:41 WARNING[18260]: app_dial.c:412 wait_for_answer: Unable to forward voice -- Hungup 'Zap/1-1' == No one is available to answer at this time -- Executing Answer("IAX2/11@11/1", "") in new stack -- Executing Playtones("IAX2/11@11/1", "congestion") in new stack -- Executing Congestion("IAX2/11@11/1", "") in new stack == Spawn extension (esterni, 3*******, 4) exited non-zero on 'IAX2/11@11/1' -- Executing Goto("IAX2/11@11/1", "default|h|1") in new stack -- Goto (default,h,1) -- Executing Hangup("IAX2/11@11/1", "") in new stack == Spawn extension (default, h, 1) exited non-zero on 'IAX2/11@11/1' -- Hungup 'IAX2/11@11/1' this is the message i get in the syslog (a lot of these messages): zaphfc: empty HDLC frame or bad CRC received (framelen = 5, stat = 0xff, card = 0). this is the zaptel.conf: loadzone=it defaultzone=it span=1,1,3,ccs,ami bchan=1-2 dchan=3 this is the zapata.conf: group = 1 context=default signalling = bri_net_ptmp channel => 1-2 this is the modules.conf: [modules] autoload=yes noload => pbx_gtkconsole.so noload => pbx_kdeconsole.so noload => app_intercom.so load => res_features.so load => chan_modem.so load => res_musiconhold.so load => chan_alsa.so noload => chan_oss.so load => chan_zap.so [global] chan_modem.so=yes chan_zap.so=yes this is the output from the module insertion: Zapata Telephony Interface Registered on major 196 PCI: Enabling device 0000:00:06.0 (0000 -> 0003) ACPI: PCI interrupt 0000:00:06.0[A] -> GSI 17 (level, low) -> IRQ 185 zaphfc: CCD/Billion/Asuscom 2BD0 configured at mem 0xd08eaf00 fifo 0xcd248000(0xd248000) IRQ 185 HZ 1000 zaphfc: Card 0 configured for TE mode zaphfc: 1 hfc-pci card(s) in this box. this is the ztcfg -vvv: Zaptel Configuration ===================== SPAN 1: CCS/ AMI Build-out: 399-533 feet (DSX-1) Channel map: Channel 01: Individual Clear channel (Default) (Slaves: 01) Channel 02: Individual Clear channel (Default) (Slaves: 02) Channel 03: D-channel (Default) (Slaves: 03) 3 channels configured. Thanks in advance ciao
Emanuele Pucciarelli
2005-May-25 12:40 UTC
[Asterisk-Users] zaphfc: empty HDLC frame or bad CRC received
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Marco Parmeggiani wrote:> Hi, i've downloaded/compiled/installed the bristuffed asterisk > Asterisk 1.0.7-BRIstuffed-0.2.0-RC8a > and i'm using it with an hfc card. It runs on a debian 3.1 sarge machine > with kernel 2.6.11. Asterisk works well if i configure the card using > isdn4linux.Are you sharing the IRQ? (check /proc/interrupts) - -- Emanuele -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFClNTBdh0IFKddsi4RAvQTAJ9C9rnaBZ9ekbECQM8l/+gVNIFVuwCbBQtb Mw3nVzlGh2fFuHz0DoG9xOM=fYUh -----END PGP SIGNATURE-----
Marco Parmeggiani
2005-May-26 08:52 UTC
[Asterisk-Users] zaphfc: empty HDLC frame or bad CRC received
Emanuele Pucciarelli wrote:> Are you sharing the IRQ? (check /proc/interrupts)hi, what do you think? this is a bit too much low level for me. ciop:~# cat /proc/interrupts CPU0 0: 780877027 IO-APIC-edge timer 7: 2 IO-APIC-edge parport0 9: 1 IO-APIC-level acpi 12: 5968 IO-APIC-level VIA8233 14: 1778879 IO-APIC-edge ide0 15: 2 IO-APIC-edge ide1 169: 66422031 IO-APIC-level eth0 177: 49271618 IO-APIC-level eth1 185: 1332694587 IO-APIC-level zaphfc NMI: 0 LOC: 780882796 ERR: 0 MIS: 0 _______________________________________________ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Nick Barnes
2005-Jun-02 09:14 UTC
[Asterisk-Users] zaphfc: empty HDLC frame or bad CRC received
Hi, Don't know if you've sorted this or not, but....> zaphfc: empty HDLC frame or bad CRC received (framelen = 5, > stat = 0xff, > card = 0).I've only ever seen when the signalling is wrong. For example if the line is in PTMP mode when it should be in PTP or vice-versa.> this is the zapata.conf: > group = 1 > context=default > signalling = bri_net_ptmp > channel => 1-2So, you're using NT mode PTMP signalling. Is the Asterisk box plugging into an ISDN circuit provided by a telco? If it is, then use "bri_cpe_ptmp" (for Point to MultiPoint) or "bri_cpe" (for Point to Point) instead of "bri_net_ptmp". If it's plugged into a different ISDN device and needs to be in NT mode, then try "bri_net" instead. Have fun, Nick.
David Masure
2005-Jun-27 01:35 UTC
[Asterisk-Users] zaphfc: empty HDLC frame or bad CRC received
Hi all, I'm using asterisk 1.0.6 with bristuff-0.2.0-rc7k. I've already set up 3 boxes with the same config, but I'm facing something strange with the fourth one : In my messages log, I've got thoses lines : kernel: zaphfc: empty HDLC frame or bad CRC received (framelen = 4, stat = 0xff). kernel: zaphfc: empty HDLC frame or bad CRC received (framelen = 5, stat = 0xff). kernel: zaphfc: empty HDLC frame or bad CRC received (framelen = 17, stat = 0xff). kernel: zaphfc: empty HDLC frame or bad CRC received (framelen = 10, stat = 0xff). kernel: zaphfc: empty HDLC frame or bad CRC received (framelen = 3, stat = 0xff). kernel: zaphfc: empty HDLC frame or bad CRC received (framelen = 7, stat = 0xff). kernel: zaphfc: empty HDLC frame or bad CRC received (framelen = 10, stat = 0xff). kernel: zaphfc: empty HDLC frame or bad CRC received (framelen = 4, stat = 0xff). kernel: zaphfc: empty HDLC frame or bad CRC received (framelen = 35, stat = 0xff). kernel: zaphfc: empty HDLC frame or bad CRC received (framelen = 10, stat = 0xff). kernel: zaphfc: empty HDLC frame or bad CRC received (framelen = 23, stat = 0xff). kernel: zaphfc: empty HDLC frame or bad CRC received (framelen = 8, stat = 0xff). kernel: zaphfc: empty HDLC frame or bad CRC received (framelen = 13, stat = 0xff). kernel: zaphfc: empty HDLC frame or bad CRC received (framelen = 11, stat = 0xff). kernel: zaphfc: empty HDLC frame or bad CRC received (framelen = 6, stat = 0xff). This problem causes asterisk to crash... The only thing to do is a nice reboot :-) I read some informations about it in the list telling that's because of a wrong signalling type... But as, I am using the same config everywhere, I don't believe the problem is on the box ... Questions .... 1) The asterisk box is located in France...so could this be that the telco (France Telecom) is powering it's lines with different signalling (for example mutli point and point to point ?) 2) Does anyone ever face the same problem ? 3) Does someone know how to cope with this problem ? Thanks for your help ...I'm really don't know what to do ....!!! David -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050627/d07b4711/attachment.htm
Yousef Herzallah
2005-Jul-07 09:18 UTC
[Asterisk-Users] zaphfc: empty HDLC frame or bad CRC received
I have this problem zaphfc: empty HDLC frame or bad CRC received My configurations are cat /proc/zaptel/1 Span 1: ZTHFC1 "HFC-S PCI A ISDN card 0 [NT] layer 1 ACTIVATED (G3)" AMI/CCS 1 ZTHFC1/0/1 Clear 2 ZTHFC1/0/2 Clear 3 ZTHFC1/0/3 HDLCFCS cat /etc/zaptel.conf # hfc-s pci a span definition # most of the values should be bogus because we are not really zaptel loadzone=it defaultzone=it span=1,1,3,ccs,ami bchan=1-2 dchan=3 cat /etc/asterisk/zapata.conf ; ; Zapata telephony interface ; ; Configuration file [channels] language=it switchtype=euroisdn ; p2mp TE mode ;signalling=bri_cpe_ptmp ; p2p TE mode ;signalling=bri_cpe ; p2mp NT mode ;signalling=bri_net_ptmp ; p2p NT mode signalling=bri_net pridialplan=dynamic prilocaldialplan=local nationalprefix=0 internationalprefix=00 echocancel=yes echotraining=100 echocancelwhenbridged=yes immediate=yes group=1 context=default channel => 1 channel => 2 ztcfg -vv Zaptel Configuration ===================== SPAN 1: CCS/ AMI Build-out: 399-533 feet (DSX-1) Channel map: Channel 01: Individual Clear channel (Default) (Slaves: 01) Channel 02: Individual Clear channel (Default) (Slaves: 02) Channel 03: D-channel (Default) (Slaves: 03) 3 channels configured. Help
Marc Sutter
2005-Jul-18 09:57 UTC
[Asterisk-Users] zaphfc: empty HDLC frame or bad CRC received
there is a list item about this issu: http://lists.digium.com/pipermail/asterisk-users/2004-November/070918.html alternatively you can try this solution on debian: # 4)Modules configuration for startup with zaphfc AND wcfxs on # debian stable 3.1 sarge kernel 2.4.27-2-386 # Here a configuration to fix this issue at boottime emacs /etc/modutils/zaptel # match it to: post-install zaphfc /sbin/ztcfg #post-install tor2 /sbin/ztcfg #post-install wcusb /sbin/ztcfg #post-install wcfxo /sbin/ztcfg #post-install ztdynamic /sbin/ztcfg #post-install ztd-eth /sbin/ztcfg #post-install wct1xxp /sbin/ztcfg #post-install wct4xxp /sbin/ztcfg #post-install wcte11xp /sbin/ztcfg alias wctdm wcfxs #post-install torisa /sbin/ztcfg #post-install wcfxs /sbin/ztcfg # end of file /etc/modutils/zaptel #Update the /etc/modules.conf file with: user@host$ update-modules user@host$ emacs /etc/modules # add a line like the following at end of the file zaphfc # and finaly reboot for testing user@host$ reboot On jeu, 2005-07-07 at 18:18 +0200, Yousef Herzallah wrote:> I have this problem > zaphfc: empty HDLC frame or bad CRC received > My configurations are > cat /proc/zaptel/1 > Span 1: ZTHFC1 "HFC-S PCI A ISDN card 0 [NT] layer 1 ACTIVATED (G3)" > AMI/CCS > > 1 ZTHFC1/0/1 Clear > 2 ZTHFC1/0/2 Clear > 3 ZTHFC1/0/3 HDLCFCS > > cat /etc/zaptel.conf > # hfc-s pci a span definition > # most of the values should be bogus because we are not really zaptel > loadzone=it > defaultzone=it > span=1,1,3,ccs,ami > bchan=1-2 > dchan=3 > > cat /etc/asterisk/zapata.conf > ; > ; Zapata telephony interface > ; > ; Configuration file > > [channels] > language=it > switchtype=euroisdn > > ; p2mp TE mode > ;signalling=bri_cpe_ptmp > ; p2p TE mode > ;signalling=bri_cpe > ; p2mp NT mode > ;signalling=bri_net_ptmp > ; p2p NT mode > signalling=bri_net > > pridialplan=dynamic > prilocaldialplan=local > nationalprefix=0 > internationalprefix=00 > > echocancel=yes > echotraining=100 > echocancelwhenbridged=yes > > immediate=yes > group=1 > context=default > channel => 1 > channel => 2 > > ztcfg -vv > > Zaptel Configuration > =====================> > SPAN 1: CCS/ AMI Build-out: 399-533 feet (DSX-1) > > Channel map: > > Channel 01: Individual Clear channel (Default) (Slaves: 01) > Channel 02: Individual Clear channel (Default) (Slaves: 02) > Channel 03: D-channel (Default) (Slaves: 03) > > 3 channels configured. > > > Help > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users
Bart Seresia
2005-Jul-18 13:24 UTC
[Asterisk-Users] zaphfc: empty HDLC frame or bad CRC received
I had the same problem. could find a solution until i read to change the way the modules where loaded (i still loaded zaphfc with modes=1 appended to it). Removing that last one did the trick for me Hope this may help With kind regards Bart Seresia Zaakvoerder Waasland Service Netwerk -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050718/179f5fe8/attachment.htm