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 -> /dev/pts/4<br>lrwxrwxrwx 1 root root 10 2012-05-17 17:49 /dev/FS1 -> /dev/pts/5<br>lrwxrwxrwx 1 root root 10 2012-05-17 17:49 /dev/FS2 -> /dev/pts/6<br>
lrwxrwxrwx 1 root root 10 2012-05-17 17:49 /dev/FS3 -> /dev/pts/7<br>lrwxrwxrwx 1 root root 10 2012-05-17 17:49 /dev/FS4 -> /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"><<a href="mailto:steveu@coppice.org" target="_blank">steveu@coppice.org</a>></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'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>
> 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), "modem/%d/%s", modem->slot, number);<br>
><br>
> That would suggest a syntax just like FreeTDM, where the dialstring is<br>
> "modem/x/y" where x is the "slot" and y is the dialed number. Also, I<br>
> suspect this block starting at line 856 means you can use a literal<br>
> "a" for the slot and it will hunt for the next available modem:<br>
><br>
> if (!strcasecmp(modem_id_string, "a")) {<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<br>
> the wiki. If you can't update the wiki then please report back and let<br>
> us know whether the dialstring format worked or not.<br>
><br>
> Thanks,<br>
> MC<br>
><br>
> On Mon, May 21, 2012 at 2:23 PM, Anthony Minessale<br>
</div><div class="im">> <<a href="mailto:anthony.minessale@gmail.com">anthony.minessale@gmail.com</a> <mailto:<a href="mailto:anthony.minessale@gmail.com">anthony.minessale@gmail.com</a>>> wrote:<br>
><br>
> IIRC its modem/1 or 2 3 4 etc. Probably a for auto like tdm.<br>
> Check the code to be sure....<br>
><br>
> On May 21, 2012 3:13 PM, "Alex Crow" <<a href="mailto:acrow@integrafin.co.uk">acrow@integrafin.co.uk</a><br>
</div><div class="im">> <mailto:<a href="mailto:acrow@integrafin.co.uk">acrow@integrafin.co.uk</a>>> wrote:<br>
><br>
> On 21/05/12 20:28, Ken Rice wrote:<br>
> ><br>
> ><br>
> > On 5/21/12 2:15 PM, "Alex Crow"<<a href="mailto:acrow@integrafin.co.uk">acrow@integrafin.co.uk</a><br>
</div><div><div class="h5">> <mailto:<a href="mailto:acrow@integrafin.co.uk">acrow@integrafin.co.uk</a>>> wrote:<br>
> >> Also I have the problem that unless FreeSWITCH is run as<br>
> root, the<br>
> >> device nodes are not created.<br>
> >><br>
> >> Unless in the last few weeks some docs have been updated on<br>
> this, I'm<br>
> >> still stuck with T38modem.<br>
> >><br>
> > If freeswitch running as root and not running as root<br>
> doesn't work, this<br>
> > should tell you that you have a permissions issue... The<br>
> FreeSWITCH<br>
> > developers fixing your systems perms issues is beyond the<br>
> scope of the<br>
> > FreeSWITCH project...<br>
> ><br>
> > Otherwise, the FreeSWITCH modems basically work just like<br>
> t38modem... The<br>
> > only setting is how many of them to create then the only<br>
> other settings is<br>
> > configuring your platform to properly allow freeswitch (or<br>
> the user that<br>
> > freeswitch is running as) create those devices then<br>
> configure hylafax to use<br>
> > them as normal.<br>
> ><br>
> > The steps to do this can vary from platform to platform (or<br>
> even versions of<br>
> > the platform. For example how you do this on centos5 is not<br>
> how you do this<br>
> > on centos6 due to changes in the platform.)<br>
> ><br>
> > K<br>
> ><br>
> ><br>
><br>
> Ken,<br>
><br>
> I respectfully disagree with the "like t38modem" bit of this. With<br>
> t38modem, you create a set of t38modem devices which actually<br>
> register<br>
> against FreeSWITCH and therefore appear as registered<br>
> endpoints, so it's<br>
> easy to route calls to them (ie transfer to "t38modem0 default<br>
> XML").<br>
> When I did run FS as root, despite the device nodes being<br>
> 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 "spandsp/FSx".<br>
><br>
> I am also used to writing udev rules, but I can't find<br>
> 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'd be great to avoid T38modem, and I've asked these<br>
> questions before,<br>
> namely:<br>
><br>
> 1) Does anyone have any examples on any platform of tweaking<br>
> udev to<br>
> allow FreeSWITCH to create device nodes at startup when<br>
> running as, say,<br>
> user freeswitch or user www-data (without making the primary<br>
> group of<br>
> said users "root" or setting setuid root on the executable). I<br>
> am not<br>
> prepared to take the risk of running as either effective uid<br>
> or gid 0.<br>
> Please share if so. I'm running on debian stable.<br>
><br>
> 2) How does one direct an incoming call, say, from FreeTDM or<br>
> 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<br>
> another<br>
> user's questions on this list that's fine. I'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>
</div></div>> <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a> <mailto:<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>><br>
<div class="im">> <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>
</div>> <mailto:<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>><br>
<div class="im">> <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>
><br>
> _________________________________________________________________________<br>
> Professional FreeSWITCH Consulting Services:<br>
</div>> <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a> <mailto:<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>><br>
<div class="im">> <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>
</div>> <mailto:<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>><br>
<div class="HOEnZb"><div class="h5">> <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>
><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>
<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>