<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On 31 July 2017 at 02:43, Stanislav Sinyagin <span dir="ltr"><<a href="mailto:ssinyagin@gmail.com" target="_blank">ssinyagin@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Greetings,<br>
<br>
I started slowly outlining a new module, mod_ttyusb_audio. It will do<br>
a simple task by bridging a channel with a specified /dev/ttyUSBx PCM<br>
flow using a specified codec (All modems that I know use the same L16<br>
at 8kHZ, but who knows what other codecs there might be). As I didn't<br>
yet find a sponsor for this development, it goes quite slowly.<br>
<br></blockquote><div>as far as i know they all use L16 so no biggie there.</div><div><br></div><div>how are you going to instruct mod_ttyusb_audio top open audio channel on a specific tty ? are you planing to provide the api in ESL ?</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Once it's done, the signaling could be done either within FreeSWITCH,<br>
or in an outside ESL daemon. An external daemon would allow more<br>
flexibility, but there's a burden of running one more process.<br></blockquote><div><br></div><div>although it can be much more flexible and faster using an external ESL daemon, i'd prefer to make it in FreeSWITCH as a module ... e.g. mod_hayes</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
In regards to udev rules -- you actually don't need them. The logic of<br>
finding the modem and matching it against IMEI and IMSI is already in<br>
mod_gsmopen (was that Giovanni who implemented it?). It just needs a<br>
bit of improvement in making it more vendor-independent. Also I would<br>
do matching on IMEI OR IMSI, not the AND condition that is in the<br>
module currently.<br>
<br></blockquote><div>are we sure IMEI and/or IMSI will always present ?</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I actually do have a set of udev rules, they are in fact needed for<br>
data connection:<br>
<a href="https://github.com/ssinyagin/wwan_udev_rules" rel="noreferrer" target="_blank">https://github.com/ssinyagin/<wbr>wwan_udev_rules</a><br>
But they fail if you have more than one modem, and here's an explanation:<br>
<a href="https://txlab.wordpress.com/2017/05/19/two-lte-modems-with-pc-engines-apu3/" rel="noreferrer" target="_blank">https://txlab.wordpress.com/<wbr>2017/05/19/two-lte-modems-<wbr>with-pc-engines-apu3/</a></blockquote><div><br></div><div>this is specific HW :=) .. im positive there is a work around this problem :=) </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
cheers,<br>
stanislav<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
On Sun, Jul 30, 2017 at 6:08 PM, Tihomir Culjaga <<a href="mailto:tculjaga@gmail.com">tculjaga@gmail.com</a>> wrote:<br>
> Hi Stanislav, I like the idea!<br>
><br>
> i'd prefer to have a separate module (not some perl daemon) tho.<br>
><br>
> you can instruct udev to run an external program to name devices ( a simple<br>
> rpc to stdout would to great ) . This way you can specify dongles (vendorID,<br>
> productID, interfaceNumber, dongleSerial...) in your module config and let<br>
> your module name the ttys accordingly.<br>
><br>
> The module should have AT command mappings for preInit, Init, postInit,<br>
> dongle_events ( incoming call, ring,...), basic commands ( answer,<br>
> hangup...) exposed all in config...<br>
><br>
> This is where it gets ugly (and a bit less secure), but to keep the module<br>
> code sane, its better to expose AT mappings in config.<br>
><br>
> Once the "signaling" is done, the module should notify mod_portaudio ( a<br>
> fork of ) what audio tty it should sit on for the given call<br>
><br>
><br>
> well in theory :=)<br>
> i see a lot of work ahead..<br>
><br>
><br>
><br>
> On 27 July 2017 at 00:41, Stanislav Sinyagin <<a href="mailto:ssinyagin@gmail.com">ssinyagin@gmail.com</a>> wrote:<br>
>><br>
>> I looked inside gsmopen_protocol.cpp and my eyes hurt. It has so many<br>
>> hardcoded vendor-specific commands, and it does not know the actual<br>
>> vendor that it speaks to. I really don't like adding more bad code<br>
>> here.<br>
>><br>
>> I'm inclining to have a Perl daemon working the AT commands via the<br>
>> control UART ports, and telling FreeSWITCH take the audio channel from<br>
>> the audio UART port when it's ready. I think mod_portaudio should do<br>
>> the job after minor modifications.<br>
>><br>
>> Then the AT command handler can be written in a modern and modular<br>
>> fashion, with independent modules for different hardware.<br>
>><br>
>> Also this way we would open the door for new hardware solutions which<br>
>> are able to send/receive PCM via ttyUSB ports. Then, for example, one<br>
>> may build a hardware phone with it :)<br>
>><br>
>><br>
>><br>
>><br>
>><br>
>> On Wed, Jul 26, 2017 at 1:54 AM, Stanislav Sinyagin <<a href="mailto:ssinyagin@gmail.com">ssinyagin@gmail.com</a>><br>
>> wrote:<br>
>> > I assembled the lab, and will start digging the code tomorrow.<br>
>> ><br>
>> > The modem sends PCM audio via an UART USB device, just like Huawei<br>
>> > dongles<br>
>> > do. So, it looks like only a matter of accommodating to vendor and<br>
>> > product<br>
>> > codes and initialization strings.<br>
>> ><br>
>> ><br>
>> ><br>
>> > On 25 Jul 2017 15:10, "Giovanni Maruzzelli" <<a href="mailto:gmaruzz@gmail.com">gmaruzz@gmail.com</a>> wrote:<br>
>> >><br>
>> >><br>
>> >><br>
>> >> On 23 July 2017 at 10:17, Stanislav Sinyagin <<a href="mailto:ssinyagin@gmail.com">ssinyagin@gmail.com</a>><br>
>> >> wrote:<br>
>> >>><br>
>> >>> Hi Giovanni, I only had time to configure it for Internet access:<br>
>> >>><br>
>> >>> <a href="https://txlab.wordpress.com/2017/07/23/simcom-sim7100e-lte-modem/" rel="noreferrer" target="_blank">https://txlab.wordpress.com/<wbr>2017/07/23/simcom-sim7100e-<wbr>lte-modem/</a><br>
>> >>><br>
>> >>> The benefit is mPCIe interface, so it can be placed inside and<br>
>> >>> enclosure.<br>
>> >>> No silly dongles any more :)<br>
>> >>><br>
>> >>> I'll tinker with voice some time later. I can also provide you SSH<br>
>> >>> access<br>
>> >>> if you wish to work on gsmopen update.<br>
>> >><br>
>> >><br>
>> >> Please, let me know if any progress or so.<br>
>> >><br>
>> >> Will not be so easy to interface audio to it via USB, will need to<br>
>> >> create<br>
>> >> a kernel driver, or use a userspace USB lib and create a user space<br>
>> >> driver.<br>
>> >><br>
>> >> Happy hacking!<br>
>> >><br>
>> >> -giovanni<br>
>> >><br>
>> >><br>
>> >><br>
>> >>><br>
>> >>><br>
>> >>><br>
>> >>><br>
>> >>> On 21 Jul 2017 18:36, "Giovanni Maruzzelli" <<a href="mailto:gmaruzz@gmail.com">gmaruzz@gmail.com</a>> wrote:<br>
>> >>>><br>
>> >>>> Hello Stanislav,<br>
>> >>>><br>
>> >>>> have you had time to tinker with it?<br>
>> >>>><br>
>> >>>> How it goes?<br>
>> >>>><br>
>> >>>> Also, why you would prefer this one instead of the already supported<br>
>> >>>> ones?<br>
>> >>>><br>
>> >>>> -giovanni<br>
>> >>>><br>
>> >>>><br>
>> >>>> On 8 July 2017 at 21:28, Stanislav Sinyagin <<a href="mailto:ssinyagin@gmail.com">ssinyagin@gmail.com</a>><br>
>> >>>> wrote:<br>
>> >>>>><br>
>> >>>>> Simcom has recently released a new 4G/LTE modem, and it has USB<br>
>> >>>>> audio<br>
>> >>>>> support.<br>
>> >>>>> You can find sim7100_usb_audio_application_<wbr>note_v0.01.pdf with<br>
>> >>>>> details at the vendor site, or at <a href="http://techship.com" rel="noreferrer" target="_blank">techship.com</a> after registration.<br>
>> >>>>><br>
>> >>>>> It transmits 8kHZ, 16-bit PCM audio via a USB UART simulation.<br>
>> >>>>><br>
>> >>>>> So, in theory, gsmopen module may be adapted to it (or maybe a new<br>
>> >>>>> module is worth starting).<br>
>> >>>>><br>
>> >>>>> I ordered a sample, will check it out soon.<br>
>> >>>>><br>
>> >>>>> cheers,<br>
>> >>>>> stanislav<br>
>> >>>>><br>
>> >>>>><br>
>> >>>>><br>
>> >>>>> ______________________________<wbr>______________________________<wbr>_____________<br>
>> >>>>> Professional FreeSWITCH Consulting Services:<br>
>> >>>>> <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
>> >>>>> <a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br>
>> >>>>><br>
>> >>>>> Official FreeSWITCH Sites<br>
>> >>>>> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
>> >>>>> <a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.<wbr>org</a><br>
>> >>>>> <a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
>> >>>>><br>
>> >>>>> FreeSWITCH-users mailing list<br>
>> >>>>> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.<wbr>freeswitch.org</a><br>
>> >>>>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
>> >>>>><br>
>> >>>>><br>
>> >>>>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
>> >>>>> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
>> >>>><br>
>> >>>><br>
>> >>>><br>
>> >>>><br>
>> >>>> --<br>
>> >>>><br>
>> >>>> Sincerely,<br>
>> >>>><br>
>> >>>> Giovanni Maruzzelli<br>
>> >>>> OpenTelecom.IT<br>
>> >>>> cell: <a href="tel:%2B39%20347%20266%2056%2018" value="+393472665618">+39 347 266 56 18</a><br>
>> >>>><br>
>> >>>><br>
>> >>>><br>
>> >>>> ______________________________<wbr>______________________________<wbr>_____________<br>
>> >>>> Professional FreeSWITCH Consulting Services:<br>
>> >>>> <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
>> >>>> <a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br>
>> >>>><br>
>> >>>> Official FreeSWITCH Sites<br>
>> >>>> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
>> >>>> <a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.<wbr>org</a><br>
>> >>>> <a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
>> >>>><br>
>> >>>> FreeSWITCH-users mailing list<br>
>> >>>> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.<wbr>freeswitch.org</a><br>
>> >>>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
>> >>>><br>
>> >>>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
>> >>>> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
>> >>><br>
>> >>><br>
>> >>><br>
>> >>> ______________________________<wbr>______________________________<wbr>_____________<br>
>> >>> Professional FreeSWITCH Consulting Services:<br>
>> >>> <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
>> >>> <a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br>
>> >>><br>
>> >>> Official FreeSWITCH Sites<br>
>> >>> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
>> >>> <a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.<wbr>org</a><br>
>> >>> <a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
>> >>><br>
>> >>> FreeSWITCH-users mailing list<br>
>> >>> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.<wbr>freeswitch.org</a><br>
>> >>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
>> >>><br>
>> >>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
>> >>> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
>> >><br>
>> >><br>
>> >><br>
>> >><br>
>> >> --<br>
>> >><br>
>> >> Sincerely,<br>
>> >><br>
>> >> Giovanni Maruzzelli<br>
>> >> OpenTelecom.IT<br>
>> >> cell: <a href="tel:%2B39%20347%20266%2056%2018" value="+393472665618">+39 347 266 56 18</a><br>
>> >><br>
>> >><br>
>> >> ______________________________<wbr>______________________________<wbr>_____________<br>
>> >> Professional FreeSWITCH Consulting Services:<br>
>> >> <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
>> >> <a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br>
>> >><br>
>> >> Official FreeSWITCH Sites<br>
>> >> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
>> >> <a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.<wbr>org</a><br>
>> >> <a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
>> >><br>
>> >> FreeSWITCH-users mailing list<br>
>> >> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.<wbr>freeswitch.org</a><br>
>> >> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
>> >><br>
>> >> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
>> >> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
>><br>
>> ______________________________<wbr>______________________________<wbr>_____________<br>
>> Professional FreeSWITCH Consulting Services:<br>
>> <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
>> <a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br>
>><br>
>> Official FreeSWITCH Sites<br>
>> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
>> <a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.<wbr>org</a><br>
>> <a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
>><br>
>> FreeSWITCH-users mailing list<br>
>> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.<wbr>freeswitch.org</a><br>
>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
>> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
><br>
><br>
><br>
> ______________________________<wbr>______________________________<wbr>_____________<br>
> Professional FreeSWITCH Consulting Services:<br>
> <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
> <a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br>
><br>
> Official FreeSWITCH Sites<br>
> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
> <a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.<wbr>org</a><br>
> <a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
><br>
> FreeSWITCH-users mailing list<br>
> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.<wbr>freeswitch.org</a><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<br>
______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.<wbr>org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.<wbr>freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a></div></div></blockquote></div><br></div></div>