3G модем + Asterisk

Автор karuil, 05 марта 2016, 18:09:54

« назад - далее »

0 Пользователи и 1 гость просматривают эту тему.

karuil

Привет еще раз всем! Понадобилось установить астериск и подключить к нему 3Г модем, настроил Астериск как написано на просторах интернета. При переходе в сам Астериск вылазит сообщение: unable to open /dev/ttyUSB2: Devices or resource busy.
вывод lsusb
Открыть содержимое (спойлер)
Bus 005 Device 002: ID 12d1:1001 Huawei Technologies Co., Ltd. E169/E620/E800 HSDPA Modem
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 002: ID 2101:020f ActionStar
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 09da:000a A4 Tech Co., Ltd Optical Mouse Opto 510D
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
[свернуть]
dmesg USB
Открыть содержимое (спойлер)
    0.494854] ACPI: bus type USB registered
[    0.499638] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.499927] uhci_hcd: USB Universal Host Controller Interface driver
[    0.500314] uhci_hcd 0000:00:1d.0: new USB bus registered, assigned bus number 1
[    0.500413] usb usb1: New USB device found, idVendor=1d6b, idProduct=0001
[    0.500416] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.500568] hub 1-0:1.0: USB hub found
[    0.500779] uhci_hcd 0000:00:1d.1: new USB bus registered, assigned bus number 2
[    0.500861] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
[    0.500864] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.502343] hub 2-0:1.0: USB hub found
[    0.505452] uhci_hcd 0000:00:1d.2: new USB bus registered, assigned bus number 3
[    0.505543] usb usb3: New USB device found, idVendor=1d6b, idProduct=0001
[    0.505546] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.505679] hub 3-0:1.0: USB hub found
[    0.506085] uhci_hcd 0000:00:1d.3: new USB bus registered, assigned bus number 4
[    0.506297] usb usb4: New USB device found, idVendor=1d6b, idProduct=0001
[    0.506300] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.506430] hub 4-0:1.0: USB hub found
[    0.507217] ehci-pci 0000:00:1d.7: new USB bus registered, assigned bus number 5
[    0.520024] ehci-pci 0000:00:1d.7: USB 2.0 started, EHCI 1.00
[    0.520081] usb usb5: New USB device found, idVendor=1d6b, idProduct=0002
[    0.520084] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.520230] hub 5-0:1.0: USB hub found
[    0.544121] hub 1-0:1.0: USB hub found
[    0.568082] hub 2-0:1.0: USB hub found
[    0.592097] hub 3-0:1.0: USB hub found
[    0.616078] hub 4-0:1.0: USB hub found
[    0.848033] usb 5-5: new high-speed USB device number 2 using ehci-pci
[    0.991193] usb 5-5: New USB device found, idVendor=12d1, idProduct=1001
[    0.991196] usb 5-5: New USB device strings: Mfr=2, Product=1, SerialNumber=0
[    0.995462] usb-storage 5-5:1.0: USB Mass Storage device detected
[    0.995965] usb-storage 5-5:1.1: USB Mass Storage device detected
[    0.996048] usb-storage 5-5:1.2: USB Mass Storage device detected
[    1.472022] usb 3-2: new low-speed USB device number 2 using uhci_hcd
[    1.643067] usb 3-2: New USB device found, idVendor=09da, idProduct=000a
[    1.643070] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    1.643073] usb 3-2: Product: USB Mouse
[    1.659124] usbhid: USB HID core driver
[    1.756033] usb 4-2: new low-speed USB device number 2 using uhci_hcd
[    2.117056] usb 4-2: New USB device found, idVendor=2101, idProduct=020f
[    2.117059] usb 4-2: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.150467] hid-generic 0003:2101:020F.0002: input,hidraw0: USB HID v1.01 Keyboard [HID 2101:020f] on usb-0000:00:1d.3-2/input0
[    2.150795] hid-generic 0003:2101:020F.0003: input,hidraw1: USB HID v1.01 Mouse [HID 2101:020f] on usb-0000:00:1d.3-2/input1
[    9.088635] usbserial: USB Serial support registered for generic
[    9.125655] input: A4Tech USB Mouse as /devices/pci0000:00/0000:00:1d.2/usb3/3-2/3-2:1.0/0003:09DA:000A.0001/input/input13
[    9.125736] a4tech 0003:09DA:000A.0001: input,hidraw2: USB HID v1.10 Mouse [A4Tech USB Mouse] on usb-0000:00:1d.2-2/input0
[    9.462034] usbserial: USB Serial support registered for GSM modem (1-port)
[    9.462481] usb 5-5: GSM modem (1-port) converter now attached to ttyUSB0
[    9.462565] usb 5-5: GSM modem (1-port) converter now attached to ttyUSB1
[    9.462646] usb 5-5: GSM modem (1-port) converter now attached to ttyUSB2
[ 4141.541950] usb 5-5: USB disconnect, device number 2
[ 4141.542151] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
[ 4141.542396] option1 ttyUSB1: usb_wwan_indat_callback: resubmit read urb failed. (-19)
[ 4141.542401] option1 ttyUSB1: usb_wwan_indat_callback: resubmit read urb failed. (-19)
[ 4141.542404] option1 ttyUSB1: usb_wwan_indat_callback: resubmit read urb failed. (-19)
[ 4141.542407] option1 ttyUSB1: usb_wwan_indat_callback: resubmit read urb failed. (-19)
[ 4141.542554] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
[ 4141.542896] option1 ttyUSB2: usb_wwan_indat_callback: resubmit read urb failed. (-19)
[ 4141.542899] option1 ttyUSB2: usb_wwan_indat_callback: resubmit read urb failed. (-19)
[ 4141.542902] option1 ttyUSB2: usb_wwan_indat_callback: resubmit read urb failed. (-19)
[ 4141.542905] option1 ttyUSB2: usb_wwan_indat_callback: resubmit read urb failed. (-19)
[ 4141.543024] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
[ 4157.988011] usb 5-2: new high-speed USB device number 5 using ehci-pci
[ 4158.131181] usb 5-2: New USB device found, idVendor=12d1, idProduct=1001
[ 4158.131186] usb 5-2: New USB device strings: Mfr=2, Product=1, SerialNumber=0
[ 4158.134362] usb-storage 5-2:1.0: USB Mass Storage device detected
[ 4158.134562] usb 5-2: GSM modem (1-port) converter now attached to ttyUSB0
[ 4158.134677] usb-storage 5-2:1.1: USB Mass Storage device detected
[ 4158.134860] usb 5-2: GSM modem (1-port) converter now attached to ttyUSB3
[ 4158.134952] usb-storage 5-2:1.2: USB Mass Storage device detected
[ 4158.135111] usb 5-2: GSM modem (1-port) converter now attached to ttyUSB4
[ 5730.186741] usb 5-2: USB disconnect, device number 5
[ 5730.186948] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
[ 5730.187181] option1 ttyUSB3: usb_wwan_indat_callback: resubmit read urb failed. (-19)
[ 5730.187185] option1 ttyUSB3: usb_wwan_indat_callback: resubmit read urb failed. (-19)
[ 5730.187188] option1 ttyUSB3: usb_wwan_indat_callback: resubmit read urb failed. (-19)
[ 5730.187190] option1 ttyUSB3: usb_wwan_indat_callback: resubmit read urb failed. (-19)
[ 5730.187419] option1 ttyUSB3: GSM modem (1-port) converter now disconnected from ttyUSB3
[ 5730.187681] option1 ttyUSB4: usb_wwan_indat_callback: resubmit read urb failed. (-19)
[ 5730.187685] option1 ttyUSB4: usb_wwan_indat_callback: resubmit read urb failed. (-19)
[ 5730.187687] option1 ttyUSB4: usb_wwan_indat_callback: resubmit read urb failed. (-19)
[ 5730.187690] option1 ttyUSB4: usb_wwan_indat_callback: resubmit read urb failed. (-19)
[ 5730.187897] option1 ttyUSB4: GSM modem (1-port) converter now disconnected from ttyUSB4
[ 5841.968016] usb 5-2: new high-speed USB device number 6 using ehci-pci
[ 5842.111262] usb 5-2: New USB device found, idVendor=12d1, idProduct=1001
[ 5842.111267] usb 5-2: New USB device strings: Mfr=2, Product=1, SerialNumber=0
[ 5842.114445] usb-storage 5-2:1.0: USB Mass Storage device detected
[ 5842.114662] usb 5-2: GSM modem (1-port) converter now attached to ttyUSB0
[ 5842.114777] usb-storage 5-2:1.1: USB Mass Storage device detected
[ 5842.114945] usb 5-2: GSM modem (1-port) converter now attached to ttyUSB5
[ 5842.115033] usb-storage 5-2:1.2: USB Mass Storage device detected
[ 5842.115190] usb 5-2: GSM modem (1-port) converter now attached to ttyUSB6
[свернуть]
dmesg | tail
Открыть содержимое (спойлер)
[ 5842.111273] usb 5-2: Manufacturer: HUAWEI Technology
[ 5842.114445] usb-storage 5-2:1.0: USB Mass Storage device detected
[ 5842.114561] option 5-2:1.0: GSM modem (1-port) converter detected
[ 5842.114662] usb 5-2: GSM modem (1-port) converter now attached to ttyUSB0
[ 5842.114777] usb-storage 5-2:1.1: USB Mass Storage device detected
[ 5842.114851] option 5-2:1.1: GSM modem (1-port) converter detected
[ 5842.114945] usb 5-2: GSM modem (1-port) converter now attached to ttyUSB5
[ 5842.115033] usb-storage 5-2:1.2: USB Mass Storage device detected
[ 5842.115104] option 5-2:1.2: GSM modem (1-port) converter detected
[ 5842.115190] usb 5-2: GSM modem (1-port) converter now attached to ttyUSB6
[свернуть]
В правилах прописал определение модема, в интернет выходит. Разблокировка модема происходила в Винде. В чем может быть проблема?

ferum

Года полтора назад крайний раз занимался, забыл уже но смысл такой http://homenet.beeline.ru/?showtopic=293950
Русские дебианщики против цифрового слабоумия !

karuil

Ситуация не изменилась, Asterisk все так же пишет, что модем занят или используется

ferum

Уже не найти наверное той статьи, но в моём случае модем был билайновский ( он до сих пор работает у пожилой женщины на wheezy ). Смысл проблемы заключался в том что система воспринимала устройство как дисковый накопитель а не как модем и с помощью прогаммы minicom я исправлял эту досадную неприятность. Подобные мануалы http://linux-bash.ru/mseti/99-minicom.html и  https://habrahabr.ru/sandbox/93467/
Русские дебианщики против цифрового слабоумия !

Александр Кряжев

http://crunchbanglinux.blogspot.com.by/2011/09/3g.html
Вот (на всякий случай, мало ли) так я когда-то "извращался" над данной задачей с помощью винды.

karuil

Спасибо, разобрался. Все оказалось просто, модем был запущен под 2-я пользователями, в следствии чего блокировался Астериском.