Many thanks to everybody!<br><br>I will put this on wiki but I am stuck at the very beginning. I am sorry for being such a noob but this is my first tryst with modems. <br><br>I have modems appearing as /dev/FS[0-4] which link to /dev/pts/[4-7]<br>
<br># ls -l /dev/FS?<br>lrwxrwxrwx 1 root root 10 2012-05-17 17:49 /dev/FS0 -&gt; /dev/pts/4<br>lrwxrwxrwx 1 root root 10 2012-05-17 17:49 /dev/FS1 -&gt; /dev/pts/5<br>lrwxrwxrwx 1 root root 10 2012-05-17 17:49 /dev/FS2 -&gt; /dev/pts/6<br>
lrwxrwxrwx 1 root root 10 2012-05-17 17:49 /dev/FS3 -&gt; /dev/pts/7<br>lrwxrwxrwx 1 root root 10 2012-05-17 17:49 /dev/FS4 -&gt; /dev/pts/8<br><br>But, <br># cu -l /dev/FS0<br>cu: open (/dev/FS0): Permission denied<br>cu: /dev/FS0: Line in use<br>
<br>I think this is because FreeSWITCH is using this device, but then how does HylaFax or any other program like cu talk to it ?<br><br>This page says that I should be able to check my modem before I configure it with Hylafax. <br>
<a href="http://www.hylafax.org/content/Handbook:Basic_Server_Configuration:Checking_your_Modem">http://www.hylafax.org/content/Handbook:Basic_Server_Configuration:Checking_your_Modem</a><br><br><br clear="all">regards,<br>
Anita<br><br>
<br><br><div class="gmail_quote">On Tue, May 22, 2012 at 6:41 AM, Steve Underwood <span dir="ltr">&lt;<a href="mailto:steveu@coppice.org" target="_blank">steveu@coppice.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
What all this should tell us is a wiki page is badly needed on this<br>
topic. Specifically, people need clear information about:<br>
     - How the modems appear to the user inside FS<br>
     - How the modems appear to the user in /dev<br>
     - How the permissions of the modems in /dev can be controlled, so<br>
non-root users are OK<br>
I still haven&#39;t seen anyone give information on the last point. Its easy<br>
to set up udev rules to control the generation of the pts devices in<br>
/dev, but I am not clear how to control the permissions during the<br>
creation of the links in /dev which give these devices meaningful names.<br>
<br>
Steve<br>
<div class="im"><br>
<br>
On 05/22/2012 07:28 AM, Michael Collins wrote:<br>
&gt; I looked at the source, just to confirm and I believe Anthony is correct.<br>
&gt;<br>
&gt; Line 871 of mod_spandsp_modem.c:<br>
&gt; switch_snprintf(name, sizeof(name), &quot;modem/%d/%s&quot;, modem-&gt;slot, number);<br>
&gt;<br>
&gt; That would suggest a syntax just like FreeTDM, where the dialstring is<br>
&gt; &quot;modem/x/y&quot; where x is the &quot;slot&quot; and y is the dialed number. Also, I<br>
&gt; suspect this block starting at line 856 means you can use a literal<br>
&gt; &quot;a&quot; for the slot and it will hunt for the next available modem:<br>
&gt;<br>
&gt;         if (!strcasecmp(modem_id_string, &quot;a&quot;)) {<br>
&gt;             modem_id = -1;<br>
&gt;         } else {<br>
&gt;             modem_id = atoi(modem_id_string);<br>
&gt;         }<br>
&gt;<br>
&gt; Please try this out and confirm. If possible, add the information to<br>
&gt; the wiki. If you can&#39;t update the wiki then please report back and let<br>
&gt; us know whether the dialstring format worked or not.<br>
&gt;<br>
&gt; Thanks,<br>
&gt; MC<br>
&gt;<br>
&gt; On Mon, May 21, 2012 at 2:23 PM, Anthony Minessale<br>
</div><div class="im">&gt; &lt;<a href="mailto:anthony.minessale@gmail.com">anthony.minessale@gmail.com</a> &lt;mailto:<a href="mailto:anthony.minessale@gmail.com">anthony.minessale@gmail.com</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;     IIRC its modem/1 or 2 3 4 etc.  Probably a for auto like tdm.<br>
&gt;     Check the code to be sure....<br>
&gt;<br>
&gt;     On May 21, 2012 3:13 PM, &quot;Alex Crow&quot; &lt;<a href="mailto:acrow@integrafin.co.uk">acrow@integrafin.co.uk</a><br>
</div><div class="im">&gt;     &lt;mailto:<a href="mailto:acrow@integrafin.co.uk">acrow@integrafin.co.uk</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;         On 21/05/12 20:28, Ken Rice wrote:<br>
&gt;         &gt;<br>
&gt;         &gt;<br>
&gt;         &gt; On 5/21/12 2:15 PM, &quot;Alex Crow&quot;&lt;<a href="mailto:acrow@integrafin.co.uk">acrow@integrafin.co.uk</a><br>
</div><div><div class="h5">&gt;         &lt;mailto:<a href="mailto:acrow@integrafin.co.uk">acrow@integrafin.co.uk</a>&gt;&gt;  wrote:<br>
&gt;         &gt;&gt; Also I have the problem that unless FreeSWITCH is run as<br>
&gt;         root, the<br>
&gt;         &gt;&gt; device nodes are not created.<br>
&gt;         &gt;&gt;<br>
&gt;         &gt;&gt; Unless in the last few weeks some docs have been updated on<br>
&gt;         this, I&#39;m<br>
&gt;         &gt;&gt; still stuck with T38modem.<br>
&gt;         &gt;&gt;<br>
&gt;         &gt; If freeswitch running as root and not running as root<br>
&gt;         doesn&#39;t work, this<br>
&gt;         &gt; should tell you that you have a permissions issue... The<br>
&gt;         FreeSWITCH<br>
&gt;         &gt; developers fixing your systems perms issues is beyond the<br>
&gt;         scope of the<br>
&gt;         &gt; FreeSWITCH project...<br>
&gt;         &gt;<br>
&gt;         &gt; Otherwise, the FreeSWITCH modems basically work just like<br>
&gt;         t38modem... The<br>
&gt;         &gt; only setting is how many of them to create then the only<br>
&gt;         other settings is<br>
&gt;         &gt; configuring your platform to properly allow freeswitch (or<br>
&gt;         the user that<br>
&gt;         &gt; freeswitch is running as) create those devices then<br>
&gt;         configure hylafax to use<br>
&gt;         &gt; them as normal.<br>
&gt;         &gt;<br>
&gt;         &gt; The steps to do this can vary from platform to platform (or<br>
&gt;         even versions of<br>
&gt;         &gt; the platform. For example how you do this on centos5 is not<br>
&gt;         how you do this<br>
&gt;         &gt; on centos6 due to changes in the platform.)<br>
&gt;         &gt;<br>
&gt;         &gt; K<br>
&gt;         &gt;<br>
&gt;         &gt;<br>
&gt;<br>
&gt;         Ken,<br>
&gt;<br>
&gt;         I respectfully disagree with the &quot;like t38modem&quot; bit of this. With<br>
&gt;         t38modem, you create a set of t38modem devices which actually<br>
&gt;         register<br>
&gt;         against FreeSWITCH and therefore appear as registered<br>
&gt;         endpoints, so it&#39;s<br>
&gt;         easy to route calls to them (ie transfer to &quot;t38modem0 default<br>
&gt;         XML&quot;).<br>
&gt;         When I did run FS as root, despite the device nodes being<br>
&gt;         created, I saw<br>
&gt;         no endpoint registrations for the softmodems, nor did I find any<br>
&gt;         documentation saying that these endpoints may be addressed as, for<br>
&gt;         instance &quot;spandsp/FSx&quot;.<br>
&gt;<br>
&gt;         I am also used to writing udev rules, but I can&#39;t find<br>
&gt;         anything that<br>
&gt;         allows a non-root uid/gid user to create device nodes for a device<br>
&gt;         provided by a userspace program.<br>
&gt;<br>
&gt;         It&#39;d be great to avoid T38modem, and I&#39;ve asked these<br>
&gt;         questions before,<br>
&gt;         namely:<br>
&gt;<br>
&gt;         1) Does anyone have any examples on any platform of tweaking<br>
&gt;         udev to<br>
&gt;         allow FreeSWITCH to create device nodes at startup when<br>
&gt;         running as, say,<br>
&gt;         user freeswitch or user www-data (without making the primary<br>
&gt;         group of<br>
&gt;         said users &quot;root&quot; or setting setuid root on the executable). I<br>
&gt;         am not<br>
&gt;         prepared to take the risk of running as either effective uid<br>
&gt;         or gid 0.<br>
&gt;         Please share if so. I&#39;m running on debian stable.<br>
&gt;<br>
&gt;         2) How does one direct an incoming call, say, from FreeTDM or<br>
&gt;         a SIP/ISDN<br>
&gt;         gateway to one of the softmodems. I cannot find this in the docs.<br>
&gt;<br>
&gt;         If we can divorce these questions from any association with<br>
&gt;         another<br>
&gt;         user&#39;s questions on this list that&#39;s fine. I&#39;ve tried to help that<br>
&gt;         person as much as I can out of my own good nature.<br>
&gt;<br>
&gt;         Cheers<br>
&gt;<br>
&gt;         Alex<br>
&gt;<br>
&gt;         _________________________________________________________________________<br>
&gt;         Professional FreeSWITCH Consulting Services:<br>
</div></div>&gt;         <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a> &lt;mailto:<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>&gt;<br>
<div class="im">&gt;         <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt;<br>
&gt;         FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
&gt;         <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
&gt;<br>
&gt;         Official FreeSWITCH Sites<br>
&gt;         <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;         <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
&gt;         <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
&gt;<br>
&gt;         Join Us At ClueCon - Aug 7-9, 2012<br>
&gt;<br>
&gt;         FreeSWITCH-users mailing list<br>
&gt;         <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
</div>&gt;         &lt;mailto:<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>&gt;<br>
<div class="im">&gt;         <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt;         UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt;         <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
&gt;<br>
&gt;     _________________________________________________________________________<br>
&gt;     Professional FreeSWITCH Consulting Services:<br>
</div>&gt;     <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a> &lt;mailto:<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>&gt;<br>
<div class="im">&gt;     <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt;<br>
&gt;     FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
&gt;     <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
&gt;<br>
&gt;     Official FreeSWITCH Sites<br>
&gt;     <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;     <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
&gt;     <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
&gt;<br>
&gt;     Join Us At ClueCon - Aug 7-9, 2012<br>
&gt;<br>
&gt;     FreeSWITCH-users mailing list<br>
&gt;     <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
</div>&gt;     &lt;mailto:<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>&gt;<br>
<div class="HOEnZb"><div class="h5">&gt;     <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt;     UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt;     <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _________________________________________________________________________<br>
&gt; Professional FreeSWITCH Consulting Services:<br>
&gt; <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
&gt; <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt;<br>
&gt; FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
&gt; <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
&gt;<br>
&gt; Official FreeSWITCH Sites<br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt; <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
&gt; <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
&gt;<br>
&gt; Join Us At ClueCon - Aug 7-9, 2012<br>
&gt;<br>
&gt; FreeSWITCH-users mailing list<br>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
Join Us At ClueCon - Aug 7-9, 2012<br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br>