سلام.سرور استریسکم دیشب چون برقها رفته خاموش شده و امروز که روشنش کردم کارت آنالوگ digium روش کار نمیکنه و نه تماس ورودی دارم و نه خروجی و ارور زیر رو میده:
دستور lspci زدم کارت در لینوکس دیتکت بود ، دستور lsdahdi هم زدم dahdi هم آپ بود و چنلهای کارت رو نشون میده.سرویس dahdi هم بدون اررورrestart میشه.,ولی در استریسک مازول dahdi لود نیست و زمانی که میخوام لودش کنم اررور زیر رو میده:
و اما علت مشکل: بعد از بررسی و سرچ متوجه شدم که فایلهای کانفیگ dahdi به ماژول dahdi اجازه لود شدن رو نمیدن به همین خاطر اونها رو از اول ایجاد کردم
نحوه رفع مشکل : ابتدا کارت رو در استریسک دیتکت و سپس فایل های conf رو از اول ایجاد میکنیم:
توصیه میکنم که قبل از هر کاری از فایلهای dahdi-channels.conf و chan_dahdi.conf بک آپ بگیرید.
نکته : در مشکل به این نکته دقت کنید که dahdi روباید بعد از استریسک start کنید .
کد PHP:
-- Executing [909351111111@internal:1] Dial("SIP/502-00000004", "Dahdi/r0/09351111111") in new stack
[Mar 18 09:43:44] WARNING[3174][C-00000002]: channel.c:6000 ast_request: No channel type registered for 'Dahdi'
[Mar 18 09:43:44] WARNING[3174][C-00000002]: app_dial.c:2437 dial_exec_full: Unable to create channel of type 'Dahdi' (cause 66 - Channel not implemented)
== Everyone is busy/congested at this time (1:0/0/1)
-- Auto fallthrough, channel 'SIP/502-00000004' status is 'CHANUNAVAIL'
-- Executing [h@internal:1] Hangup("SIP/502-00000004", "") in new stack
کد PHP:
module load chan_dahdi.so
Unable to load module chan_dahdi.so
Command 'module load chan_dahdi.so' failed.
[Mar 18 09:35:12] WARNING[2464]: pbx.c:7327 ast_register_application2: Already have an application 'DAHDISendKeypadFacility'
[Mar 18 09:35:12] WARNING[2464]: pbx.c:7327 ast_register_application2: Already have an application 'DAHDISendCallreroutingFacility'
== Parsing '/etc/asterisk/chan_dahdi.conf': Found
== Parsing '/etc/asterisk/dahdi-channels.conf': Found
== Parsing '/etc/asterisk/users.conf': Found
[Mar 18 09:35:12] WARNING[2464]: chan_dahdi.c:13025 mkintf: Attempt to configure channel 1 with signaling FXS Kewlstart ignored because it is already configured to be FXS Kewlstart.
-- Registered channel 1, FXS Kewlstart signalling
[Mar 18 09:35:12] WARNING[2464]: chan_dahdi.c:13025 mkintf: Attempt to configure channel 2 with signaling FXS Kewlstart ignored because it is already configured to be FXS Kewlstart.
-- Registered channel 2, FXS Kewlstart signalling
[Mar 18 09:35:12] WARNING[2464]: chan_dahdi.c:13025 mkintf: Attempt to configure channel 3 with signaling FXS Kewlstart ignored because it is already configured to be FXS Kewlstart.
-- Registered channel 3, FXS Kewlstart signalling
[Mar 18 09:35:12] WARNING[2464]: chan_dahdi.c:13025 mkintf: Attempt to configure channel 4 with signaling FXS Kewlstart ignored because it is already configured to be FXS Kewlstart.
-- Registered channel 4, FXS Kewlstart signalling
[Mar 18 09:35:12] WARNING[2464]: chan_dahdi.c:13025 mkintf: Attempt to configure channel 5 with signaling FXS Kewlstart ignored because it is already configured to be FXS Kewlstart.
-- Registered channel 5, FXS Kewlstart signalling
[Mar 18 09:35:12] WARNING[2464]: chan_dahdi.c:13025 mkintf: Attempt to configure channel 6 with signaling FXS Kewlstart ignored because it is already configured to be FXS Kewlstart.
-- Registered channel 6, FXS Kewlstart signalling
[Mar 18 09:35:12] WARNING[2464]: chan_dahdi.c:13025 mkintf: Attempt to configure channel 7 with signaling FXS Kewlstart ignored because it is already configured to be FXS Kewlstart.
-- Registered channel 7, FXS Kewlstart signalling
[Mar 18 09:35:12] WARNING[2464]: chan_dahdi.c:13025 mkintf: Attempt to configure channel 8 with signaling FXS Kewlstart ignored because it is already configured to be FXS Kewlstart.
-- Registered channel 8, FXS Kewlstart signalling
[Mar 18 09:35:12] WARNING[2464]: chan_dahdi.c:13025 mkintf: Attempt to configure channel 9 with signaling FXS Kewlstart ignored because it is already configured to be FXS Kewlstart.
-- Registered channel 9, FXS Kewlstart signalling
[Mar 18 09:35:12] WARNING[2464]: chan_dahdi.c:13025 mkintf: Attempt to configure channel 10 with signaling FXS Kewlstart ignored because it is already configured to be FXS Kewlstart.
[Mar 18 09:35:12] WARNING[2464]: chan_dahdi.c:8039 handle_alarms: Detected alarm on channel 10: Red Alarm
-- Registered channel 10, FXS Kewlstart signalling
[Mar 18 09:35:12] WARNING[2464]: chan_dahdi.c:4494 dahdi_open: Unable to specify channel 1111: Invalid argument
[Mar 18 09:35:12] ERROR[2464]: chan_dahdi.c:12673 mkintf: Unable to open channel 1111: Invalid argument
here = 0, tmp->channel = 1111, channel = 1111
[Mar 18 09:35:12] ERROR[2464]: chan_dahdi.c:17375 build_channels: Unable to register channel '1111'
نحوه رفع مشکل : ابتدا کارت رو در استریسک دیتکت و سپس فایل های conf رو از اول ایجاد میکنیم:
توصیه میکنم که قبل از هر کاری از فایلهای dahdi-channels.conf و chan_dahdi.conf بک آپ بگیرید.
کد PHP:
[root@callcenter ~]# cp /etc/asterisk/dahdi-channels.conf /etc/asterisk/dahdi-channels.conf.backup
[root@callcenter ~]# cp /etc/asterisk/chan_dahdi.conf /etc/asterisk/chan_dahdi.conf.backup
[root@callcenter ~]#dahdi_cfg
[root@callcenter ~]# dahdi_genconf
[root@callcenter ~]# service dahdi restart
Unloading DAHDI hardware modules: ERROR: Module wctdm24xxp is in use
ERROR: Module wctdm24xxp is in use
ERROR: Module dahdi_voicebus is in use by wctdm24xxp
ERROR: Module dahdi is in use by wctdm24xxp,dahdi_voicebus
error
Loading DAHDI hardware modules:
wct4xxp: [ OK ]
wcte43x: [ OK ]
wcte12xp: [ OK ]
wcte13xp: [ OK ]
wct1xxp: [ OK ]
wcte11xp: [ OK ]
wctdm24xxp: [ OK ]
wcaxx: [ OK ]
wcfxo: [ OK ]
wctdm: [ OK ]
wcb4xxp: [ OK ]
wctc4xxp: [ OK ]
xpp_usb: [ OK ]
D: auto '/sys/bus/dahdi_devices/devices/pci:0000:11:03.0'
auto-assign /sys/bus/dahdi_devices/devices/pci:0000:11:03.0
Running dahdi_cfg: [ OK ]
[root@callcenter ~]# service asterisk restart
Stopping safe_asterisk: [ OK ]
Shutting down asterisk: [ OK ]
Starting asterisk:
[root@callcenter ~]# asterisk -rvvvvvvvvvvv
Asterisk 11.16.0, Copyright (C) 1999 - 2013 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 11.16.0 currently running on callcenter (pid = 3682)
callcenter*CLI> da
dahdi data database
> Saved useragent "Akuvox SP-R52 52.0.3.41 0c:11:05:03:8c:fc" for peer 411
callcenter*CLI> dahdi show status
Description Alarms IRQ bpviol CRC Fra Codi Options LBO
Wildcard TDM2400P OK 0 0 0 CAS Unk 0 db (CSU)/0-133 feet (DSX-1)
> Saved useragent "PolycomSoundPointIP-SPIP_450-UA/3.2.7.0198" for peer 504
> Saved useragent "PolycomSoundPointIP-SPIP_450-UA/3.2.7.0198" for peer 503
== Using SIP RTP CoS mark 5