Hello to all!

I want to connect a gsm modem. But I do not understand what to specify in the chan_dongle.conf configuration file. Through which device files the asterisk will connect to the modem.

On CentOS, on which this modem worked before, it was defined by three devices /dev/ttyUSB0, /dev/ttyUSB1, /dev/ttyUSB2 .

But on my ASUS RT-N18U with Advanced Tomato firmware installed, there are no /dev/ttyUSB* . When connecting the modem to /var/log/message see:

 May 27 10:23:00 unknown kern.info kernel: usb 2-2: new high speed USB device using ehci_hcd and address 4 May 27 10:23:00 unknown user.debug hotplug[5829]: Attached USB device 2-2:1.0 [INTERFACE=255/255/255 PRODUCT=12d1/1001/0] May 27 10:23:00 unknown user.debug hotplug[5835]: Attached USB device 2-2:1.1 [INTERFACE=255/255/255 PRODUCT=12d1/1001/0] May 27 10:23:00 unknown user.debug hotplug[5836]: Attached USB device 2-2:1.2 [INTERFACE=255/255/255 PRODUCT=12d1/1001/0] 

I see the new character device in /dev :

 crw-rw-rw- 1 root root 189, 131 May 27 10:23 usbdev2.4 

But he is alone and the asterisk cannot connect to it:

 [May 27 07:33:06] WARNING[6233]: chan_dongle.c:235 opentty: tcgetattr() failed for /dev/usbdev2.4: Inappropriate ioctl for device 

What can be wrong? How to find those 3 /dev/ttyUSB* devices on a router with Tomato firmware that I had on CentOS?

Thank you for the answers.

  • The only solution is to use brute force. We look at all the devices - ls -lh / dev /, after which we connect to each with the command screen / dev / ttyUSB number and see what it gives to the console, if it gives something to the modem. You also need to check the rights, sometimes the connection does not work, make a chmod 777 / dev / ttyUSB number, then try connecting again - santer
  • Ok, just sort it out? One device in / dev appears. These: 2-2: 1.0, 2-2: 1.1, 2-2: 1.2 are also in / sys / ... But I did not find the device files there. - Mihail Politaev
  • added a comment - santer
  • / dev / ttyUSB * - this is not. - Mihail Politaev
  • try all tty in turn. Strange that there is no yusb, perhaps the modem is not even mounted - santer

0