Summary: | DAHLIN-00184: When restarting Wanrouter with Sangoma A200, dahdi is unavailable/not working | ||
Reporter: | wil32 (wil32) | Labels: | |
Date Opened: | 2010-04-14 08:03:34 | Date Closed: | 2010-09-29 15:48:11 |
Priority: | Minor | Regression? | No |
Status: | Closed/Complete | Components: | dahdi (the module) |
Versions: | 2.2.1 | Frequency of Occurrence | |
Related Issues: | |||
Environment: | Attachments: | ( 0) diff_-u.txt | |
Description: | When restarting Wanrouter with Sangoma A200, dahdi is unavailable/not working. The work around for this was 1st to unplug and replug the fxo lines. After a couple of degug, i called Sangoma and they gave me this workaround in order to make it work: Edit: in-line patch removed - pabelanger ****** ADDITIONAL INFORMATION ****** After some debugging, it has been found that Asterisk can't Dial out after restart or wanrouter restart has been issued, we have to physically replug the line. We have a A200 card with wanpipe-3.4.8 driver. Here is the debugging info: When issuing restart command to wanrouter and checking wanpipemon astats I get that the line is connected correctly. When issuing a aregdump I get register 0x04 set to 0x29, when replugging the line it changes to 0xA9 and stays like this, now Asterisk works. I guess this is enough to help debug, I'll send all the debug info requested anyway. Thanks for your help! Jérôme Poulin Network Administrator and Programmer Solutions G.A. ---- Start: wanrouter version ---- WANPIPE Release: 3.4.8 ---- End: wanrouter version ---- --- Start: wanrouter restart ---- # wanrouter version WANPIPE Release: 3.4.8 debiant:/usr/src/wanpipe-3.4.8# asterisk -rx 'stop now' debiant:/usr/src/wanpipe-3.4.8# wanrouter restart Shutting down wanpipe1 interface: w1g1 Shutting down device: wanpipe1 No devices running, Unloading Modules Starting WAN Router... Loading WAN drivers: wanpipe done. Starting up device: wanpipe1 --> Loading ec image OCT6116-64S.ima... Configuring interfaces: w1g1 done. Waiting for Dahdi /dev/dahdi ... DAHDI Tools Version - 2.2.1 DAHDI Version: 2.2.1 Echo Canceller(s): MG2 Configuration ====================== 4 channels to configure. Setting echocan for channel 1 to mg2 Setting echocan for channel 2 to mg2 Setting echocan for channel 3 to mg2 Setting echocan for channel 4 to mg2 --- End: wanrouter restart ---- /var/log/messages is attached --- Start: wanrouter hwprobe verbose ---- # wanrouter hwprobe verbose ----------------------------------------- | Wanpipe Hardware Probe Info (verbose) | ----------------------------------------- 1 . AFT-A200-SH : SLOT=4 : BUS=3 : IRQ=20 : CPU=A : PORT=PRI : HWEC=32 : V=12 +01:FXO: PCI +02:FXO: PCI +03:FXO: PCI +04:FXO: PCI +05:EMPTY +06:EMPTY +07:EMPTY +08:EMPTY +09:EMPTY +10:EMPTY +11:EMPTY +12:EMPTY +13:EMPTY +14:EMPTY +15:EMPTY +16:EMPTY +17:EMPTY +18:EMPTY +19:EMPTY +20:EMPTY +21:EMPTY +22:EMPTY +23:EMPTY +24:EMPTY Card Cnt: A200=1 --- End: wanrouter hwprobe verbose ---- --- Start: wanrouter status --- # wanrouter status Devices currently active: wanpipe1 Wanpipe Config: Device name | Protocol Map | Adapter | IRQ | Slot/IO | If's | CLK | Baud rate | wanpipe1 | N/A | A200/400/600| 20 | 4 | 1 | N/A | 0 | Wanrouter Status: Device name | Protocol | Station | Status | wanpipe1 | A-ANALOG | N/A | Connected | --- End: wanrouter status --- /etc/wanpipe/wanpipe1.conf /etc/dahdi/system.conf /etc/asterisk/chan_dahdi.conf Attached. --- Start: ifconfig w1g1 --- debiant:/usr/src/wanpipe-3.4.8# ifconfig w1g1 w1g1 Link encap:Point-to-Point Protocol UP POINTOPOINT RUNNING NOARP MTU:8 Metric:1 RX packets:304292 errors:0 dropped:0 overruns:0 frame:0 TX packets:304292 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:2434336 (2.3 MiB) TX bytes:2434336 (2.3 MiB) Interrupt:20 Memory:f8c60000-f8c61fff debiant:/usr/src/wanpipe-3.4.8# ifconfig w1g1 w1g1 Link encap:Point-to-Point Protocol UP POINTOPOINT RUNNING NOARP MTU:8 Metric:1 RX packets:305438 errors:0 dropped:0 overruns:0 frame:0 TX packets:305438 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:2443504 (2.3 MiB) TX bytes:2443504 (2.3 MiB) Interrupt:20 Memory:f8c60000-f8c61fff debiant:/usr/src/wanpipe-3.4.8# ifconfig w1g1 w1g1 Link encap:Point-to-Point Protocol UP POINTOPOINT RUNNING NOARP MTU:8 Metric:1 RX packets:306473 errors:0 dropped:0 overruns:0 frame:0 TX packets:306473 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:2451784 (2.3 MiB) TX bytes:2451784 (2.3 MiB) Interrupt:20 Memory:f8c60000-f8c61fff --- End: ifconfig w1g1 --- --- Start: cat /proc/interrupts --- debiant:/usr/src/wanpipe-3.4.8# cat /proc/interrupts CPU0 CPU1 0: 64 1 IO-APIC-edge timer 1: 2 0 IO-APIC-edge i8042 7: 0 0 IO-APIC-edge parport0 8: 18 17 IO-APIC-edge rtc0 9: 0 0 IO-APIC-fasteoi acpi 12: 2 2 IO-APIC-edge i8042 14: 0 0 IO-APIC-edge ide0 15: 0 0 IO-APIC-edge ide1 16: 48 48 IO-APIC-fasteoi uhci_hcd:usb4, HDA Intel 18: 0 0 IO-APIC-fasteoi uhci_hcd:usb3 19: 25035 25513 IO-APIC-fasteoi uhci_hcd:usb2, ata_piix 20: 4934644 4934959 IO-APIC-fasteoi wanpipe1 21: 49829 49039 IO-APIC-fasteoi eth0 23: 1 1 IO-APIC-fasteoi uhci_hcd:usb1, ehci_hcd:usb5 NMI: 0 0 Non-maskable interrupts LOC: 404610 395021 Local timer interrupts RES: 3830 3684 Rescheduling interrupts CAL: 270 392 function call interrupts TLB: 6352 6867 TLB shootdowns TRM: 0 0 Thermal event interrupts SPU: 0 0 Spurious interrupts ERR: 0 MIS: 0 debiant:/usr/src/wanpipe-3.4.8# cat /proc/interrupts CPU0 CPU1 0: 64 1 IO-APIC-edge timer 1: 2 0 IO-APIC-edge i8042 7: 0 0 IO-APIC-edge parport0 8: 18 17 IO-APIC-edge rtc0 9: 0 0 IO-APIC-fasteoi acpi 12: 2 2 IO-APIC-edge i8042 14: 0 0 IO-APIC-edge ide0 15: 0 0 IO-APIC-edge ide1 16: 48 48 IO-APIC-fasteoi uhci_hcd:usb4, HDA Intel 18: 0 0 IO-APIC-fasteoi uhci_hcd:usb3 19: 25035 25513 IO-APIC-fasteoi uhci_hcd:usb2, ata_piix 20: 4935232 4935546 IO-APIC-fasteoi wanpipe1 21: 49835 49046 IO-APIC-fasteoi eth0 23: 1 1 IO-APIC-fasteoi uhci_hcd:usb1, ehci_hcd:usb5 NMI: 0 0 Non-maskable interrupts LOC: 404626 395061 Local timer interrupts RES: 3830 3684 Rescheduling interrupts CAL: 270 392 function call interrupts TLB: 6353 6868 TLB shootdowns TRM: 0 0 Thermal event interrupts SPU: 0 0 Spurious interrupts ERR: 0 MIS: 0 debiant:/usr/src/wanpipe-3.4.8# cat /proc/interrupts CPU0 CPU1 0: 64 1 IO-APIC-edge timer 1: 2 0 IO-APIC-edge i8042 7: 0 0 IO-APIC-edge parport0 8: 18 17 IO-APIC-edge rtc0 9: 0 0 IO-APIC-fasteoi acpi 12: 2 2 IO-APIC-edge i8042 14: 0 0 IO-APIC-edge ide0 15: 0 0 IO-APIC-edge ide1 16: 48 48 IO-APIC-fasteoi uhci_hcd:usb4, HDA Intel 18: 0 0 IO-APIC-fasteoi uhci_hcd:usb3 19: 25036 25514 IO-APIC-fasteoi uhci_hcd:usb2, ata_piix 20: 4935748 4936065 IO-APIC-fasteoi wanpipe1 21: 49843 49051 IO-APIC-fasteoi eth0 23: 1 1 IO-APIC-fasteoi uhci_hcd:usb1, ehci_hcd:usb5 NMI: 0 0 Non-maskable interrupts LOC: 404641 395107 Local timer interrupts RES: 3830 3684 Rescheduling interrupts CAL: 270 392 function call interrupts TLB: 6354 6869 TLB shootdowns TRM: 0 0 Thermal event interrupts SPU: 0 0 Spurious interrupts ERR: 0 MIS: 0 debiant:/usr/src/wanpipe-3.4.8# --- End: cat /proc/interrupts --- --- Start: # wanpipemon -i w1g1 -c astats -m Y --- # wanpipemon -i w1g1 -c astats -m 1 ------- Voltage Status (FXO,port 0) ------- VOLTAGE : 54 Volts ------- Line Status (FXO,port 0) ------- Line : connected # wanpipemon -i w1g1 -c astats -m 2 ------- Voltage Status (FXO,port 1) ------- VOLTAGE : 1 Volts ------- Line Status (FXO,port 1) ------- Line : disconnected --- End: wanpipemon -i w1g1 -c astats -m Y --- --- Start: wanpipemon -i w1g1 -c aregdump --- # wanpipemon -i w1g1 -c aregdump # Just after wanrouter restart ------- Direct registers (FXO,port 0) ------- 0. 00 1. 00 2. 07 3. 00 4. 29 5. 08 6. 00 7. 00 8. 00 9. 00 10. 00 11. 34 12. 40 13. 58 14. 00 15. 00 16. 01 17. 00 18. 00 19. 02 20. 00 21. 00 22. 96 23. 2D 24. 19 25. 07 26. C0 27. 07 28. 00 29. CB 30. 00 31. A3 32. 07 33. 28 34. 01 35. 00 36. 01 37. 00 38. 00 39. 00 40. 00 41. 00 42. 00 43. 00 44. 00 45. 00 46. 00 47. 00 48. 00 49. 00 50. 00 51. 00 52. 00 53. 00 54. 00 55. 00 56. 0F 57. 00 58. 00 ----------------------------- # wanpipemon -i w1g1 -c aregdump # After replugging module 0 RJ11 connector. ------- Direct registers (FXO,port 0) ------- 0. 00 1. 00 2. 07 3. 00 4. A9 5. 0C 6. 00 7. 00 8. 00 9. 00 10. 00 11. 34 12. 40 13. 58 14. 00 15. 00 16. 01 17. 00 18. 00 19. 02 20. 00 21. 00 22. 96 23. 2D 24. 19 25. 07 26. C0 27. 07 28. 00 29. CA 30. 00 31. A3 32. 07 33. 28 34. 01 35. 00 36. 01 37. 00 38. 00 39. 00 40. 00 41. 00 42. 00 43. 00 44. 00 45. 00 46. 00 47. 00 48. 00 49. 00 50. 00 51. 00 52. 00 53. 00 54. 00 55. 00 56. 0F 57. 00 58. 00 ----------------------------- --- End: wanpipemon -i w1g1 -c aregdump --- | ||
Comments: | By: Leif Madsen (lmadsen) 2010-04-14 08:18:49 Thanks for the information. In the future can you attach large blocks of text as a text file to the issue? Thanks! By: wil32 (wil32) 2010-04-14 08:20:36 Ok no problem, i didnt expect my post to be perfect, it is my first one Note that the fix from Sangoma is with 2.2.0 at the line 4077 I used version 2.2.1 for the debug, with the line 4177 By: Paul Belanger (pabelanger) 2010-04-14 08:52:29 Also, we cannot accept patches that are in-line of the comments sections. You will have to submit it as an attachment (see below). --- Please use diff -u or svn diff on all your patches. Patches which include alternate formatting are almost certainly going to be thrown out or ignored; there are too few hours in the day to wade through difficult-to-follow C code fixes without the help of diff -u. Thanks! By: Russell Bryant (russell) 2010-07-10 10:21:10 You must complete the contributor license agreement before you can submit patches. |