[asterisk-dev] About chan_mobile

Tzafrir Cohen tzafrir.cohen at xorcom.com
Tue Aug 11 14:54:36 CDT 2009


On Tue, Aug 11, 2009 at 08:30:01PM +0100, Odicha wrote:
> If anyone has another hardware that could work and /or any question about 
> how it works I'll be pleased to help.
> 
> what it does at now...
> 
> Huawei audio modems have three ttyUSB ports. So they use une port for 
> GPRs/3G data connection ( subdevice 0), next port for audio (only audio 
> slinear stream.. passtrough directly to asterisk when voice is enabled) and 
> next port for AT communication (some no standard AT commands for enabling 
> voice streaming on other port, and all rest of standard stuff)
> 
> So It mainly uses AT commands and some routines for enabling/disabling audio 
> stream. Not complex at all.
> 
> The "worst part" in module is about modem detection. It might be rewritten. 
> It searches for device strings in /sys/bus/usb/devices/ . It might work with 
> some fs library I think

Care for some perl code to do that? ;-)

Anyway, this sounds linux-specific.

> 
> How it starts.
> First of all It does the "dirty search" of modems. It will write into 
> asterisk one file
> sebi_devices.conf
> with data about modems their tty port and their IMEI
> After that it loads sebi.conf. If Imei from modem config exists in 
> sebi_devices.conf (it's attached ..) it loads modem channel.

Why not make use of udev (or HAL and higher level layers)? Oops, anybody
mentioned "Linux specific?". Ahem.

What happens when a new device is plugged while your code is already
running?

When a device is disconnected?

-- 
               Tzafrir Cohen
icq#16849755              jabber:tzafrir.cohen at xorcom.com
+972-50-7952406           mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir



More information about the asterisk-dev mailing list