<div dir="ltr"><div>Hi Stanislav, I like the idea!</div><div><br></div>i'd prefer to have a separate module (not some perl daemon)  tho.<div><br><div>you can instruct udev to run an external program to name devices ( a simple rpc to stdout would to great ) . This way you can specify dongles (vendorID, productID, interfaceNumber, dongleSerial...) in your module config and let your module name the ttys accordingly.</div><div><br></div><div>The module should have AT command mappings for preInit, Init, postInit, dongle_events ( incoming call, ring,...), basic commands ( answer, hangup...) exposed all in config... </div><div><br></div><div>This is where it gets ugly (and a bit less secure), but to keep the module code sane, its better to expose AT mappings in config.</div><div><br></div><div>Once the "signaling" is done, the module should notify mod_portaudio ( a fork of ) what audio tty it should sit on for the given call</div><div><br></div></div><div><br></div><div>well in theory :=)</div><div>i see a lot of work ahead..</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 27 July 2017 at 00:41, 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">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>
<div class="HOEnZb"><div class="h5"><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>> 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 dongles<br>
> do. So, it looks like only a matter of accommodating to vendor and 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>> 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 enclosure.<br>
>>> No silly dongles any more :)<br>
>>><br>
>>> I'll tinker with voice some time later. I can also provide you SSH 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 create<br>
>> a kernel driver, or use a userspace USB lib and create a user space 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>> wrote:<br>
>>>>><br>
>>>>> Simcom has recently released a new 4G/LTE modem, and it has USB 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>
>>>>> ______________________________<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>
>>>> 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>
>>> ______________________________<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>
>><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>
>> ______________________________<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>