It looks like I've found the solution, and perhaps the problem<br><br>I was able to manually load the ftdm module after freeswitch was started, so all I did was move the line that loads the ftdm module (inside the modules.conf.xml) to the bottom, in effect loading the module after all the other modules were loaded.<br>
<br>Presto, problem solved. I guess module loading order does matter.<br><br>On a somewhat unrelated note, the same thing is happening with the dahdi hardware, dahdi_cfg is being run before the hardware drivers are loaded, so that probably needs the same solution.<br>
<br>Mel<br><br><div class="gmail_quote">On Thu, Nov 10, 2011 at 4:14 PM, Melvin King <span dir="ltr"><<a href="mailto:mkdutchman@gmail.com">mkdutchman@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
After some more testing/checking/experimenting/swearing this line seems to be the first indication that something is wrong<br><br>2011-11-10 16:08:11.785839 [ERR] mod_freetdm.c:2953 open of freetdm.conf failed<br><br>And it definitely is not a permissions problem, the file has full r/w permissions, it seems more like it can't find the file.<br>
<br>Mel<div class="HOEnZb"><div class="h5"><br><br><div class="gmail_quote">On Thu, Nov 10, 2011 at 3:48 PM, Melvin King <span dir="ltr"><<a href="mailto:mkdutchman@gmail.com" target="_blank">mkdutchman@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
ok, I did have the FXO and FXS turned around in my freetdm.conf file. However, it still gives me the "can't open file" error message. Relevant log lines below...<br><br>2011-11-10 15:43:30.283719 [NOTICE] switch_loadable_module.c:298 Adding API Function 'xml_flush_cache'<br>
2011-11-10 15:43:30.283910 [NOTICE] switch_loadable_module.c:298 Adding API Function 'xml_locate'<br>2011-11-10 15:43:30.284100 [NOTICE] switch_loadable_module.c:298 Adding API Function 'xml_wrap'<br>2011-11-10 15:43:30.286276 [DEBUG] ftdm_config.c:52 New mod directory: /usr/local/freeswitch/mod<br>
2011-11-10 15:43:30.286572 [DEBUG] ftdm_config.c:58 New config directory: /usr/local/freeswitch/conf<br>2011-11-10 15:43:30.286747 [DEBUG] ftdm_sched.c:154 Initializing scheduling API<br>2011-11-10 15:43:30.286828 [DEBUG] ftdm_sched.c:251 Created schedule freetdm-master<br>
2011-11-10 15:43:30.286888 [NOTICE] ftdm_sched.c:178 Launching main schedule thread<br>2011-11-10 15:43:30.287029 [DEBUG] ftdm_sched.c:187 Running schedule freetdm-master in the main schedule thread<br>2011-11-10 15:43:30.287122 [DEBUG] ftdm_config.c:80 Configuration file is /usr/local/freeswitch/conf/modules.conf.<br>
2011-11-10 15:43:30.287570 [NOTICE] ftdm_io.c:5725 Modules configured: 1 <br>2011-11-10 15:43:30.287695 [DEBUG] ftdm_config.c:80 Configuration file is /usr/local/freeswitch/conf/freetdm.conf.<br>2011-11-10 15:43:30.287789 [DEBUG] ftdm_io.c:4635 Reading FreeTDM configuration file<br>
2011-11-10 15:43:30.287889 [DEBUG] ftdm_io.c:4651 found config for span<br>2011-11-10 15:43:30.288578 [NOTICE] ftmod_zt.c:1323 Using DAHDI control device<br>2011-11-10 15:43:30.288742 [INFO] ftdm_io.c:4965 Loading IO from /usr/local/freeswitch/mod/ftmod_zt.so [zt]<br>
2011-11-10 15:43:30.288833 [DEBUG] ftdm_config.c:80 Configuration file is /usr/local/freeswitch/conf/zt.conf.<br>2011-11-10 15:43:30.289011 [INFO] ftmod_zt.c:585 Setting rxgain val to 0.000000<br>2011-11-10 15:43:30.289096 [INFO] ftmod_zt.c:593 Setting txgain val to 0.000000<br>
2011-11-10 15:43:30.289215 [INFO] ftdm_io.c:787 Auto-loaded I/O module 'zt'<br>2011-11-10 15:43:30.289467 [DEBUG] ftdm_io.c:4672 created span 1 (FXO) of type zt<br>2011-11-10 15:43:30.289565 [DEBUG] ftdm_io.c:4690 span 1 [trunk_type]=[FXO]<br>
2011-11-10 15:43:30.289636 [DEBUG] ftdm_io.c:4695 setting trunk type to 'FXO'<br>2011-11-10 15:43:30.289705 [DEBUG] ftdm_io.c:4690 span 1 [fxo-channel]=[1]<br>2011-11-10 15:43:30.289939 [INFO] ftmod_zt.c:404 configuring device /dev/dahdi/channel channel 1 as FreeTDM device 1:1 fd:18<br>
2011-11-10 15:43:30.290059 [DEBUG] ftdm_io.c:5263 Creating new group:__default<br>2011-11-10 15:43:30.290240 [DEBUG] ftdm_io.c:4651 found config for span<br>2011-11-10 15:43:30.290540 [DEBUG] ftdm_io.c:4672 created span 2 (FXS) of type zt<br>
2011-11-10 15:43:30.290640 [DEBUG] ftdm_io.c:4690 span 2 [trunk_type]=[FXS]<br>2011-11-10 15:43:30.290707 [DEBUG] ftdm_io.c:4695 setting trunk type to 'FXS'<br>2011-11-10 15:43:30.290775 [DEBUG] ftdm_io.c:4690 span 2 [fxs-channel]=[2-4]<br>
2011-11-10 15:43:30.291014 [INFO] ftmod_zt.c:404 configuring device /dev/dahdi/channel channel 2 as FreeTDM device 2:1 fd:19<br>2011-11-10 15:43:30.291265 [INFO] ftmod_zt.c:404 configuring device /dev/dahdi/channel channel 3 as FreeTDM device 2:2 fd:20<br>
2011-11-10 15:43:30.291737 [INFO] ftmod_zt.c:404 configuring device /dev/dahdi/channel channel 4 as FreeTDM device 2:3 fd:21<br>2011-11-10 15:43:30.291966 [INFO] ftdm_io.c:4887 Configured 4 channel(s)<br>2011-11-10 15:43:30.292140 [ERR] mod_freetdm.c:2953 open of freetdm.conf failed<br>
2011-11-10 15:43:30.295782 [DEBUG] ftdm_sched.c:217 Waiting for main schedule thread to finish<br>2011-11-10 15:43:30.390235 [NOTICE] ftdm_sched.c:147 Main scheduling thread going out ...<br>2011-11-10 15:43:30.396054 [INFO] ftdm_io.c:601 Closing channel zt:1:1 fd:18<br>
2011-11-10 15:43:30.396142 [INFO] ftdm_io.c:601 Closing channel zt:2:1 fd:19<br>2011-11-10 15:43:30.396174 [INFO] ftdm_io.c:601 Closing channel zt:2:2 fd:20<br>2011-11-10 15:43:30.396207 [INFO] ftdm_io.c:601 Closing channel zt:2:3 fd:21<br>
2011-11-10 15:43:30.396281 [INFO] ftdm_io.c:5092 Unloading I/O interface zt<br>2011-11-10 15:43:30.396306 [INFO] ftdm_io.c:5099 Unloaded I/O interface zt<br>2011-11-10 15:43:30.396387 [INFO] ftdm_io.c:5118 Unloading module /usr/local/freeswitch/mod/ftmod_zt.so<br>
2011-11-10 15:43:30.396525 [DEBUG] ftdm_dso.c:90 lib 0x8aa5e48 was closed with success<br>2011-11-10 15:43:30.396543 [INFO] ftdm_io.c:5120 Unloaded module /usr/local/freeswitch/mod/ftmod_zt.so<br>2011-11-10 15:43:30.396565 [DEBUG] ftdm_sched.c:552 Destroying schedule freetdm-master<br>
2011-11-10 15:43:30.396636 [CRIT] switch_loadable_module.c:1281 Error Loading module /usr/local/freeswitch/mod/mod_freetdm.so<div><br>**Module load routine returned an error**<br><br></div><div>
<div><div class="gmail_quote">On Thu, Nov 10, 2011 at 3:32 PM, Melvin King <span dir="ltr"><<a href="mailto:mkdutchman@gmail.com" target="_blank">mkdutchman@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Now that you mention it, I do have to run dahdi_cfg manually every time the system starts up.....as though it never ran to begin with. FS is configured to automatically start.<br>
<br>I will recheck the FXS/FXO, and see what happens.<br>
<br>Mel<br><br><div class="gmail_quote"><div><div>On Thu, Nov 10, 2011 at 3:18 PM, Moises Silva <span dir="ltr"><<a href="mailto:moises.silva@gmail.com" target="_blank">moises.silva@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div>
<div class="gmail_quote"><div>On Thu, Nov 10, 2011 at 1:29 PM, Melvin King <span dir="ltr"><<a href="mailto:mkdutchman@gmail.com" target="_blank">mkdutchman@gmail.com</a>></span> wrote:<br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div>
ok, here's my setup.<br><br>TDM410 card with port 1 having a line to the PSTN and ports 2-4 have the telephone lines plugged in<br><br>FS version is 1.0.head (git-9dd45e3 2011-11-03 14-45-01 -0500)<br><br>freetdm.conf has full rw permissions<br>
<br>My problem is that I cannot configure freetdm to use this blasted card, no matter what I do.....<br></div><div>[device /dev/dahdi/channel chan 1 fd 16 (Invalid argument)]<br>2011-11-10 14:16:02.233387 [INFO] ftmod_zt.c:404 configuring device /dev/dahdi/channel channel 1 as FreeTDM device 1:1 fd:17<br>
2011-11-10 14:16:02.233595 [DEBUG] ftdm_io.c:5263 Creating new group:__default<br>
2011-11-10 14:16:02.233746 [DEBUG] ftdm_io.c:4651 found config for span<br>2011-11-10 14:16:02.233931 [DEBUG] ftdm_io.c:4672 created span 2 (FXO) of type zt<br>2011-11-10 14:16:02.234045 [DEBUG] ftdm_io.c:4690 span 2 [trunk_type]=[FXO]<br>
2011-11-10 14:16:02.234111 [DEBUG] ftdm_io.c:4695 setting trunk type to 'FXO'<br>2011-11-10 14:16:02.234173 [DEBUG] ftdm_io.c:4690 span 2 [fxo-channel]=[2-4]<br>2011-11-10 14:16:02.234550 [WARNING] ftmod_zt.c:352 this ioctl fails on older ftdmtel but is harmless if you used ztcfg<br>
[device /dev/dahdi/channel chan 2 fd 16 (Invalid argument)]<br></div></blockquote><div><br></div><div><br></div><div>This most likely means you're trying to apply a configuration that is not valid for that type of channel (ie, fxs in fxo ports or viceversa). It could also be you did not create /etc/dahdi/system.conf and did not run "dahdi_cfg"</div>
<div><br><table style="width: 486.3pt; border-collapse: collapse;" border="0" cellpadding="0" cellspacing="0" width="648"><tbody><tr style="min-height: 60.55pt;"><td style="border-style: dotted none none; border-top: 1pt dotted rgb(128, 176, 214); padding: 1.45pt 5.75pt; min-height: 60.55pt;">
<p style="margin: 0px; line-height: 15px;"><b><span style="font-size: 8pt; line-height: 12px; font-family: Arial,sans-serif; color: rgb(14, 93, 167);" lang="PT-BR">Moises Silva<br>
</span></b><b><i><span style="font-size: 8pt; line-height: 12px; font-family: Arial,sans-serif; color: rgb(128, 176, 214);" lang="EN-CA">Software Engineer, Development Manager</span></i></b><b><span style="font-size: 8pt; line-height: 12px; font-family: Arial,sans-serif; color: rgb(14, 93, 167);" lang="PT-BR"></span></b></p>
<p style="margin: 0px; line-height: 15px;"><span style="font-size: 8pt; line-height: 12px; font-family: Arial,sans-serif; color: rgb(0, 92, 165);" lang="EN-CA"><a href="mailto:msilva@sangoma.com" target="_blank">msilva@sangoma.com</a></span></p>
<p style="margin: 0px; line-height: 15px;"><span style="font-size: 8pt; line-height: 12px; font-family: Arial,sans-serif; color: rgb(0, 92, 165);" lang="EN-CA">Sangoma Technologies</span></p>
<p style="margin: 0px; line-height: 15px;"><span style="font-size: 8pt; line-height: 12px; font-family: Arial,sans-serif; color: rgb(0, 92, 165);" lang="EN-CA">100 Renfrew Drive, Suite 100, Markham, ON L3R 9R6 Canada</span><span style="font-size: 8pt; line-height: 12px; font-family: Arial,sans-serif; color: rgb(255, 192, 0);" lang="EN-CA"></span></p>
</td><td style="width: 140.45pt; border-style: dotted none none; border-top: 1pt dotted rgb(128, 176, 214); padding: 1.45pt 5.75pt; min-height: 60.55pt;" width="187">
<p style="margin: 0px; line-height: 15px;"><span style="font-size: 8pt; line-height: 12px; font-family: Arial,sans-serif; color: rgb(0, 92, 165);" lang="EN-CA"><br>
t. <a href="tel:%2B1%20800%20388%202475" value="+18003882475" target="_blank">+1 800 388 2475</a> (N. America)</span></p><p style="margin: 0px; line-height: 15px;"><span style="font-size: 8pt; line-height: 12px; font-family: Arial,sans-serif; color: rgb(0, 92, 165);" lang="EN-CA">t. <a href="tel:%2B1%20905%20474%201990%20x128" value="+19054741990" target="_blank">+1 905 474 1990 x128</a></span></p>
<p style="margin: 0px; line-height: 15px;"><span style="font-size: 8pt; line-height: 12px; font-family: Arial,sans-serif; color: rgb(0, 92, 165);" lang="EN-CA">f. <a href="tel:%2B1%20905%20474%209223" value="+19054749223" target="_blank">+1 905 474 9223</a></span></p>
<p style="margin: 0px; line-height: 15px;"><span style="font-size: 8pt; line-height: 12px; font-family: Arial,sans-serif; color: rgb(31, 73, 125);" lang="EN-CA"> </span></p>
</td><td rowspan="2" style="width: 111.55pt; border-style: dotted none; border-top: 1pt dotted rgb(128, 176, 214); border-bottom: 1pt dotted rgb(128, 176, 214); padding: 1.45pt 5.75pt; min-height: 60.55pt;" width="149">
<p style="margin: 0px; line-height: 15px;"><a href="http://www.sangoma.com/contact?utm_source=signature&utm_medium=email&utm_campaign=email+signatures" target="_blank"><b><span style="color: rgb(31, 73, 125); text-decoration: none;"><img src="" border="0" height="15" width="96"></span></b></a><span style="color: rgb(31, 73, 125);"></span></p>
</td></tr><tr><td colspan="2" style="width: 374.75pt; border-style: none none dotted; border-bottom: 1pt dotted rgb(128, 176, 214); padding: 1.45pt 5.75pt;" width="500">
<p style="margin: 0px; line-height: 15px;"><a href="http://sangoma.com/products?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures" target="_blank"><span style="font-size: 8pt; line-height: 12px; font-family: Arial,sans-serif; color: rgb(128, 176, 214);" lang="PT-BR">Products</span></a><span style="font-size: 8pt; line-height: 12px; font-family: Arial,sans-serif; color: rgb(128, 176, 214);" lang="PT-BR"> | </span><a href="http://sangoma.com/solutions?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures" target="_blank"><span style="font-size: 8pt; line-height: 12px; font-family: Arial,sans-serif; color: rgb(128, 176, 214);" lang="PT-BR">Solutions</span></a><span style="font-size: 8pt; line-height: 12px; font-family: Arial,sans-serif; color: rgb(128, 176, 214);" lang="PT-BR"> | </span><a href="http://sangoma.com/about_us/events?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures" target="_blank"><span style="font-size: 8pt; line-height: 12px; font-family: Arial,sans-serif; color: rgb(128, 176, 214);" lang="PT-BR">Events</span></a><span style="font-size: 8pt; line-height: 12px; font-family: Arial,sans-serif; color: rgb(128, 176, 214);" lang="PT-BR"> | </span><a href="http://www.sangoma.com/contact?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures" target="_blank"><span style="font-size: 8pt; line-height: 12px; font-family: Arial,sans-serif; color: rgb(128, 176, 214);" lang="PT-BR">Contact</span></a><span style="font-size: 8pt; line-height: 12px; font-family: Arial,sans-serif; color: rgb(128, 176, 214);" lang="PT-BR"> | </span><a href="http://wiki.sangoma.com/?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures" target="_blank"><span style="font-size: 8pt; line-height: 12px; font-family: Arial,sans-serif; color: rgb(128, 176, 214);" lang="PT-BR">Wiki</span></a><span style="font-size: 8pt; line-height: 12px; font-family: Arial,sans-serif; color: rgb(128, 176, 214);" lang="PT-BR"> | </span><a href="http://www.facebook.com/pages/Sangoma-VoIP-Cards/43578453335?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures" target="_blank"><span style="font-size: 8pt; line-height: 12px; font-family: Arial,sans-serif; color: rgb(128, 176, 214);" lang="PT-BR">Facebook</span></a><span style="font-size: 8pt; line-height: 12px; font-family: Arial,sans-serif; color: rgb(128, 176, 214);" lang="PT-BR"> | </span><a href="http://www.twitter.com/sangoma?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures" target="_blank"><span style="font-size: 8pt; line-height: 12px; font-family: Arial,sans-serif; color: rgb(128, 176, 214);" lang="PT-BR">Twitter</span></a><span style="font-size: 8pt; line-height: 12px; font-family: Arial,sans-serif; color: rgb(128, 176, 214);" lang="PT-BR">`| | </span><a href="http://www.youtube.com/sangomatechnologies?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures" target="_blank"><span style="font-size: 8pt; line-height: 12px; font-family: Arial,sans-serif; color: rgb(128, 176, 214);" lang="PT-BR">YouTube</span></a><span style="font-size: 8pt; line-height: 12px; color: rgb(31, 73, 125);"></span></p>
</td></tr></tbody></table><p style="margin: 0px;"> <a href="http://sangoma.com/about_us/newsroom/news_releases/news/1488795/Sangoma_Acquires_All_Key_Assets_of_VegaStream.html" target="_blank">VegaStream is now part of Sangoma!</a></p>
<p style="margin: 0px;"> Ask us about both <a href="http://sangoma.com/products/media_gateways/vega.html" target="_blank">Gateway Appliances</a> and <a href="http://sangoma.com/products/software_products/netborder_suite/netborder_express.html" target="_blank">Internal Gateways</a></p>
<br><br><br></div></div>
<br><br></div></div>
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>
<br></blockquote></div><br>
</blockquote></div><br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>