Giedrius Augys
2007-Aug-11 23:07 UTC
[asterisk-users] asterisk and telewell isdn hfc problem
Hi, I have debian etch 4.0 machine (2.6.18) with two TW-ISDN PCI (Hfc) cards. I use bristuff-0.3.0-PRE-1y-e (asterisk-1.2.17,libpri-1.2.4,zaptel-1.2.16). I also have patched zaphfc with zaphfc_0.4.0-test1_florz-13.diff.gz (I load module: insmod /usr/src/bristuff-0.3.0-PRE-1y-e/zaphfc/zaphfc.ko modes=1 debug=1). So i want to test two cards and make loop between them. So one card would be NT, another TE. My configurations: /etc/zaptel.conf: loadzone=lt defaultzone=lt span=1,1,3,ccs,ami bchan=1-2 dchan=3 span=2,0,3,ccs,ami bchan=4-5 dchan=6 /etc/asterisk/zapata.conf [channels] switchtype = euroisdn ; p2mp NT mode signalling = bri_net_ptmp echocancel=yes echotraining = 100 echocancelwhenbridged=yes immediate=yes group = 1 context=from-internal channel => 1-2 signalling = bri_cpe_ptmp group = 2 context=from-internal channel => 4-5 So I get this from asterisk logs: Aug 12 03:08:23 DEBUG[2997] chan_sip.c: build_route: Contact hop: < sip:100 at 192.168.0.1> Aug 12 03:08:23 VERBOSE[3046] logger.c: -- Executing Dial("SIP/100-081c6668", "ZAP/g1/52040004|60") in new stack Aug 12 03:08:23 VERBOSE[3046] logger.c: -- Requested transfer capability: 0x00 - SPEECH Aug 12 03:08:23 VERBOSE[3046] logger.c: -- Called g1/52040004 Aug 12 03:08:25 DEBUG[3046] chan_zap.c: Set option AUDIO MODE, value: ON(1) on Zap/1-1 Aug 12 03:08:25 DEBUG[3046] chan_zap.c: Hangup: channel: 1 index = 0, normal = 17, callwait = -1, thirdcall = -1 Aug 12 03:08:25 DEBUG[3046] chan_zap.c: Not yet hungup... Calling hangup once with icause, and clearing call Aug 12 03:08:25 DEBUG[3046] chan_zap.c: disabled echo cancellation on channel 1 Aug 12 03:08:25 DEBUG[3046] chan_zap.c: Set option TDD MODE, value: OFF(0) on Zap/1-1 Aug 12 03:08:25 DEBUG[3046] chan_zap.c: Updated conferencing on 1, with 0 conference users Aug 12 03:08:25 DEBUG[3046] chan_zap.c: Set option AUDIO MODE, value: OFF(0) on Zap/1-1 Aug 12 03:08:25 DEBUG[3046] chan_zap.c: disabled echo cancellation on channel 1 Aug 12 03:08:25 VERBOSE[3046] logger.c: -- Hungup 'Zap/1-1' Aug 12 03:08:25 DEBUG[3046] app_dial.c: Exiting with DIALSTATUS=CANCEL. And kernel log: Aug 12 03:08:25 pbx kernel: zaphfc[1]: b channel buffer underrun: 1, 0 Aug 12 03:08:25 pbx kernel: zaphfc[1]: b channel buffer overflow: 24, 24 Any ideas , how to fix this problem? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070812/21585762/attachment.htm
Giedrius Augys
2007-Aug-12 07:00 UTC
[asterisk-users] asterisk and telewell isdn hfc problem
Hi, I have debian etch 4.0 machine (2.6.18) with two TW-ISDN PCI (Hfc) cards. I use bristuff-0.3.0-PRE-1y-e (asterisk-1.2.17,libpri-1.2.4,zaptel-1.2.16). I also have patched zaphfc with zaphfc_0.4.0-test1_florz-13.diff.gz (I load module: insmod /usr/src/bristuff-0.3.0-PRE-1y-e/zaphfc/zaphfc.ko modes=1 debug=1). So i want to test two cards and make loop between them. So one card would be NT, another TE. My configurations: /etc/zaptel.conf: loadzone=lt defaultzone=lt span=1,1,3,ccs,ami bchan=1-2 dchan=3 span=2,0,3,ccs,ami bchan=4-5 dchan=6 /etc/asterisk/zapata.conf [channels] switchtype = euroisdn ; p2mp NT mode signalling = bri_net_ptmp echocancel=yes echotraining = 100 echocancelwhenbridged=yes immediate=yes group = 1 context=from-internal channel => 1-2 signalling = bri_cpe_ptmp group = 2 context=from-internal channel => 4-5 So I get this from asterisk logs: Aug 12 03:08:23 DEBUG[2997] chan_sip.c: build_route: Contact hop: <sip:100 at 192.168.0.1>Aug 12 03:08:23 VERBOSE[3046] logger.c: -- Executing Dial("SIP/100-081c6668", "ZAP/g1/52040004|60") in new stack Aug 12 03:08:23 VERBOSE[3046] logger.c: -- Requested transfer capability: 0x00 - SPEECH Aug 12 03:08:23 VERBOSE[3046] logger.c: -- Called g1/52040004 Aug 12 03:08:25 DEBUG[3046] chan_zap.c: Set option AUDIO MODE, value: ON(1) on Zap/1-1 Aug 12 03:08:25 DEBUG[3046] chan_zap.c: Hangup: channel: 1 index = 0, normal = 17, callwait = -1, thirdcall = -1 Aug 12 03:08:25 DEBUG[3046] chan_zap.c: Not yet hungup... Calling hangup once with icause, and clearing call Aug 12 03:08:25 DEBUG[3046] chan_zap.c: disabled echo cancellation on channel 1 Aug 12 03:08:25 DEBUG[3046] chan_zap.c: Set option TDD MODE, value: OFF(0) on Zap/1-1 Aug 12 03:08:25 DEBUG[3046] chan_zap.c: Updated conferencing on 1, with 0 conference users Aug 12 03:08:25 DEBUG[3046] chan_zap.c: Set option AUDIO MODE, value: OFF(0) on Zap/1-1 Aug 12 03:08:25 DEBUG[3046] chan_zap.c: disabled echo cancellation on channel 1 Aug 12 03:08:25 VERBOSE[3046] logger.c: -- Hungup 'Zap/1-1' Aug 12 03:08:25 DEBUG[3046] app_dial.c: Exiting with DIALSTATUS=CANCEL. And kernel log: Aug 12 11:01:25 pbx kernel: zaphfc: Card 0 configured for NT mode Aug 12 11:01:25 pbx kernel: zaphfc: Card 0 configured for master mode Aug 12 11:01:25 pbx kernel: ACPI: PCI Interrupt 0000:04:01.0[A] -> GSI 17 (level, low) -> IRQ 177 Aug 12 11:01:25 pbx kernel: zaphfc: CCD/Billion/Asuscom 2BD0 configured at mem 0xe01faf00 fifo 0xdaef0000(0x1aef0000) IRQ 177 HZ 250 Aug 12 11:01:25 pbx kernel: zaphfc: Card 1 configured for TE mode Aug 12 11:01:25 pbx kernel: zaphfc: Card 1 configured for master mode Aug 12 11:01:25 pbx kernel: zaphfc: 2 hfc-pci card(s) in this box. Aug 12 11:01:25 pbx kernel: Registered tone zone 22 (Lithuania) Aug 12 03:08:25 pbx kernel: zaphfc[1]: b channel buffer underrun: 1, 0 Aug 12 03:08:25 pbx kernel: zaphfc[1]: b channel buffer overflow: 24, 24 Any ideas , how to fix this problem? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070812/a9cec908/attachment.htm
Tzafrir Cohen
2007-Aug-12 08:06 UTC
[asterisk-users] asterisk and telewell isdn hfc problem
On Sun, Aug 12, 2007 at 02:07:15AM +0300, Giedrius Augys wrote:> Hi, > I have debian etch 4.0 machine (2.6.18) with two TW-ISDN PCI (Hfc) cards. I > use bristuff-0.3.0-PRE-1y-e (asterisk-1.2.17,libpri-1.2.4,zaptel-1.2.16). I > also have patched zaphfc with zaphfc_0.4.0-test1_florz-13.diff.gz (I load > module: insmod /usr/src/bristuff-0.3.0-PRE-1y-e/zaphfc/zaphfc.ko modes=1 > debug=1). So i want to test two cards and make loop between them. So one > card would be NT, another TE. My configurations: > /etc/zaptel.conf: > > loadzone=lt > defaultzone=lt > span=1,1,3,ccs,ami > bchan=1-2 > dchan=3 > span=2,0,3,ccs,ami > bchan=4-5 > dchan=6 > > /etc/asterisk/zapata.conf > [channels] > > switchtype = euroisdn > ; p2mp NT mode > signalling = bri_net_ptmp > > echocancel=yes > echotraining = 100 > echocancelwhenbridged=yes > > immediate=yes > group = 1 > context=from-internal > channel => 1-2 > > signalling = bri_cpe_ptmp > group = 2 > context=from-internal > channel => 4-5Are the spans actually up? What is the ouput of: pri show span 1 pri show span 2 -- Tzafrir Cohen icq#16849755 jabber:tzafrir at jabber.org +972-50-7952406 mailto:tzafrir.cohen at xorcom.com http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
Giedrius Augys
2007-Aug-12 09:10 UTC
[asterisk-users] asterisk and telewell isdn hfc problem
2007/8/12, Tzafrir Cohen <tzafrir.cohen at xorcom.com>:> > On Sun, Aug 12, 2007 at 02:07:15AM +0300, Giedrius Augys wrote: > > Hi, > > I have debian etch 4.0 machine (2.6.18) with two TW-ISDN PCI (Hfc) > cards. I > > use bristuff-0.3.0-PRE-1y-e (asterisk-1.2.17,libpri-1.2.4,zaptel-1.2.16). > I > > also have patched zaphfc with zaphfc_0.4.0-test1_florz-13.diff.gz (I > load > > module: insmod /usr/src/bristuff-0.3.0-PRE-1y-e/zaphfc/zaphfc.ko modes=1 > > debug=1). So i want to test two cards and make loop between them. So > one > > card would be NT, another TE. My configurations: > > /etc/zaptel.conf: > > > > loadzone=lt > > defaultzone=lt > > span=1,1,3,ccs,ami > > bchan=1-2 > > dchan=3 > > span=2,0,3,ccs,ami > > bchan=4-5 > > dchan=6 > > > > /etc/asterisk/zapata.conf > > [channels] > > > > switchtype = euroisdn > > ; p2mp NT mode > > signalling = bri_net_ptmp > > > > echocancel=yes > > echotraining = 100 > > echocancelwhenbridged=yes > > > > immediate=yes > > group = 1 > > context=from-internal > > channel => 1-2 > > > > signalling = bri_cpe_ptmp > > group = 2 > > context=from-internal > > channel => 4-5 > > Are the spans actually up? > > What is the ouput of: > > pri show span 1 > pri show span 2 > > -- > Tzafrir Cohen > icq#16849755 jabber:tzafrir at jabber.org > +972-50-7952406 mailto:tzafrir.cohen at xorcom.com > http://www.xorcom.com iax:guest at local.xorcom.com/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 >This is more information, I think it helps you: pbx*CLI> pri show span 1 Primary D-channel: 3 Status: Provisioned, Up, Active Switchtype: EuroISDN Type: Network (PtMP) Overlap Dial: 0 T200 Timer: 1000 T203 Timer: 10000 T305 Timer: 30000 T308 Timer: 4000 T313 Timer: 4000 N200 Counter: 3 pbx*CLI> pri show span 2 Primary D-channel: 6 Status: Provisioned, Down, Active Switchtype: EuroISDN Type: CPE (PtMP) Window Length: 0/7 Sentrej: 0 SolicitFbit: 0 Retrans: 0 Busy: 0 Overlap Dial: 0 T200 Timer: 1000 T203 Timer: 10000 T305 Timer: 30000 T308 Timer: 4000 T313 Timer: 4000 N200 Counter: 3 pbx:/etc/asterisk# cat /proc/zaptel/* Span 1: ZTHFC1 "HFC-S PCI A ISDN card 0 [NT] layer 1 ACTIVATED (G3)" AMI/CCS 1 ZTHFC1/0/1 Clear (In use) 2 ZTHFC1/0/2 Clear (In use) 3 ZTHFC1/0/3 HDLCFCS (In use) Span 2: ZTHFC2 "HFC-S PCI A ISDN card 1 [TE] layer 1 DEACTIVATED (F5)" AMI/CCS 4 ZTHFC2/0/1 Clear (In use) 5 ZTHFC2/0/2 Clear (In use) 6 ZTHFC2/0/3 HDLCFCS (In use) -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070812/302b8ec9/attachment.htm
Tzafrir Cohen
2007-Aug-12 11:34 UTC
[asterisk-users] asterisk and telewell isdn hfc problem
On Sun, Aug 12, 2007 at 12:10:50PM +0300, Giedrius Augys wrote:> 2007/8/12, Tzafrir Cohen <tzafrir.cohen at xorcom.com>:> > Are the spans actually up? > > > > What is the ouput of: > > > > pri show span 1 > > pri show span 2 > > This is more information, I think it helps you: > > pbx*CLI> pri show span 1 > Primary D-channel: 3 > Status: Provisioned, Up, Active > Switchtype: EuroISDN > Type: Network (PtMP) > Overlap Dial: 0 > T200 Timer: 1000 > T203 Timer: 10000 > T305 Timer: 30000 > T308 Timer: 4000 > T313 Timer: 4000 > N200 Counter: 3 > > > pbx*CLI> pri show span 2 > Primary D-channel: 6 > Status: Provisioned, Down, Active > Switchtype: EuroISDN > Type: CPE (PtMP) > Window Length: 0/7 > Sentrej: 0 > SolicitFbit: 0 > Retrans: 0 > Busy: 0 > Overlap Dial: 0 > T200 Timer: 1000 > T203 Timer: 10000 > T305 Timer: 30000 > T308 Timer: 4000 > T313 Timer: 4000 > N200 Counter: 3 > > > > pbx:/etc/asterisk# cat /proc/zaptel/* > Span 1: ZTHFC1 "HFC-S PCI A ISDN card 0 [NT] layer 1 ACTIVATED (G3)" AMI/CCS > > 1 ZTHFC1/0/1 Clear (In use) > 2 ZTHFC1/0/2 Clear (In use) > 3 ZTHFC1/0/3 HDLCFCS (In use) > Span 2: ZTHFC2 "HFC-S PCI A ISDN card 1 [TE] layer 1 DEACTIVATED (F5)" > AMI/CCS > > 4 ZTHFC2/0/1 Clear (In use) > 5 ZTHFC2/0/2 Clear (In use) > 6 ZTHFC2/0/3 HDLCFCS (In use)Layer 1 activated on the NT port but deactivated on the NT port. Hmmm... what cable do you use between the two? -- Tzafrir Cohen icq#16849755 jabber:tzafrir at jabber.org +972-50-7952406 mailto:tzafrir.cohen at xorcom.com http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir