I looked at the source, just to confirm and I believe Anthony is correct.<br><br>Line 871 of mod_spandsp_modem.c:<br>switch_snprintf(name, sizeof(name), &quot;modem/%d/%s&quot;, modem-&gt;slot, number);<br><br>That would suggest a syntax just like FreeTDM, where the dialstring is &quot;modem/x/y&quot; where x is the &quot;slot&quot; and y is the dialed number. Also, I suspect this block starting at line 856 means you can use a literal &quot;a&quot; for the slot and it will hunt for the next available modem:<br>
<br>        if (!strcasecmp(modem_id_string, &quot;a&quot;)) {<br>            modem_id = -1;<br>        } else {<br>            modem_id = atoi(modem_id_string);<br>        }<br><br>Please try this out and confirm. If possible, add the information to the wiki. If you can&#39;t update the wiki then please report back and let us know whether the dialstring format worked or not.<br>
<br>Thanks,<br>MC<br><br><div class="gmail_quote">On Mon, May 21, 2012 at 2:23 PM, Anthony Minessale <span dir="ltr">&lt;<a href="mailto:anthony.minessale@gmail.com" target="_blank">anthony.minessale@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p>IIRC its modem/1 or 2 3 4 etc.  Probably a for auto like tdm.  Check the code to be sure....</p><div class="HOEnZb">
<div class="h5">
<div class="gmail_quote">On May 21, 2012 3:13 PM, &quot;Alex Crow&quot; &lt;<a href="mailto:acrow@integrafin.co.uk" target="_blank">acrow@integrafin.co.uk</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

On 21/05/12 20:28, Ken Rice wrote:<br>
&gt;<br>
&gt;<br>
&gt; On 5/21/12 2:15 PM, &quot;Alex Crow&quot;&lt;<a href="mailto:acrow@integrafin.co.uk" target="_blank">acrow@integrafin.co.uk</a>&gt;  wrote:<br>
&gt;&gt; Also I have the problem that unless FreeSWITCH is run as root, the<br>
&gt;&gt; device nodes are not created.<br>
&gt;&gt;<br>
&gt;&gt; Unless in the last few weeks some docs have been updated on this, I&#39;m<br>
&gt;&gt; still stuck with T38modem.<br>
&gt;&gt;<br>
&gt; If freeswitch running as root and not running as root doesn&#39;t work, this<br>
&gt; should tell you that you have a permissions issue... The FreeSWITCH<br>
&gt; developers fixing your systems perms issues is beyond the scope of the<br>
&gt; FreeSWITCH project...<br>
&gt;<br>
&gt; Otherwise, the FreeSWITCH modems basically work just like t38modem... The<br>
&gt; only setting is how many of them to create then the only other settings is<br>
&gt; configuring your platform to properly allow freeswitch (or the user that<br>
&gt; freeswitch is running as) create those devices then configure hylafax to use<br>
&gt; them as normal.<br>
&gt;<br>
&gt; The steps to do this can vary from platform to platform (or even versions of<br>
&gt; the platform. For example how you do this on centos5 is not how you do this<br>
&gt; on centos6 due to changes in the platform.)<br>
&gt;<br>
&gt; K<br>
&gt;<br>
&gt;<br>
<br>
Ken,<br>
<br>
I respectfully disagree with the &quot;like t38modem&quot; bit of this. With<br>
t38modem, you create a set of t38modem devices which actually register<br>
against FreeSWITCH and therefore appear as registered endpoints, so it&#39;s<br>
easy to route calls to them (ie transfer to &quot;t38modem0 default XML&quot;).<br>
When I did run FS as root, despite the device nodes being created, I saw<br>
no endpoint registrations for the softmodems, nor did I find any<br>
documentation saying that these endpoints may be addressed as, for<br>
instance &quot;spandsp/FSx&quot;.<br>
<br>
I am also used to writing udev rules, but I can&#39;t find anything that<br>
allows a non-root uid/gid user to create device nodes for a device<br>
provided by a userspace program.<br>
<br>
It&#39;d be great to avoid T38modem, and I&#39;ve asked these questions before,<br>
namely:<br>
<br>
1) Does anyone have any examples on any platform of tweaking udev to<br>
allow FreeSWITCH to create device nodes at startup when running as, say,<br>
user freeswitch or user www-data (without making the primary group of<br>
said users &quot;root&quot; or setting setuid root on the executable). I am not<br>
prepared to take the risk of running as either effective uid or gid 0.<br>
Please share if so. I&#39;m running on debian stable.<br>
<br>
2) How does one direct an incoming call, say, from FreeTDM or a SIP/ISDN<br>
gateway to one of the softmodems. I cannot find this in the docs.<br>
<br>
If we can divorce these questions from any association with another<br>
user&#39;s questions on this list that&#39;s fine. I&#39;ve tried to help that<br>
person as much as I can out of my own good nature.<br>
<br>
Cheers<br>
<br>
Alex<br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">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" target="_blank">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>
</blockquote></div>
</div></div><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>
<br></blockquote></div><br>