I can&#39;t point you to any great source of documentation other than the FreeTDM Wiki pages which cover the configuration reasonably well as long as you understand the concepts of FXO and FXS.  I too found it required a bit of studying.<br>
<br>The key thing I think to remember is that FreeTDM justs talks to a hardware abstraction layer eg. dahdi.  You need to ensure that this hardware abstraction layer is in place and working.  In the case of dahdi I had to download and build the drivers.  There are a set of tools to ensure that the hardware is seen correctly and is available via the dahdi interfaces.  Once you have that working then it is just the FreeTDM config files (two I believe) that need to configured for the FreeTDM module to run correctly and make the analog &quot;channels&quot; available to your dialplans.<br>
<br>The syntax for referencing the channels I had to guess at since I couldn&#39;t find any ultimate reference for that with FreeTDM examples.<br><br>HTH<br>Shane<br><br><div class="gmail_quote">On Tue, Mar 20, 2012 at 10:20 PM, Fu Jiantao <span dir="ltr">&lt;<a href="mailto:fuji246@gmail.com">fuji246@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">Thanks <span>Moises!<br><br>So span is a logic concept, while channel is corresponding to the port(fxo or fxs) on the card, am i right?<br>
<br>I&#39;m new to the freeswitch and asterisk world, and found the most difficult part is relating to the PSTN, I&#39;m not familiar with PSTN, and I&#39;ve read asterisk book and freeswitch book, and learn the basic of PSTN, but that seems not enough, for example, I found I can&#39;t figure out how to use FreeTDM, little are relating to this topic, is there any good references on this topic?<br>

<br>I&#39;m trying to port the io module </span><span></span><a href="http://www.asteriskwin32.com/chan_fx.php" target="_blank">chan_fx</a><span> in asterisk win32</span> into freeTDM, but I found I need to know more about the above topic.<br>

<span><br></span><br><div class="gmail_quote">2012/3/20 Moises Silva <span dir="ltr">&lt;<a href="mailto:moises.silva@gmail.com" target="_blank">moises.silva@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="gmail_quote"><div><div>On Sun, Mar 18, 2012 at 10:58 AM, Jeromy <span dir="ltr">&lt;<a href="mailto:fuji246@gmail.com" target="_blank">fuji246@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">


&gt; I&#39;m trying to convert from Asterisk to Freeswitch, and have a question about<br>
spans.<br>
&gt;  <br>
&gt; I read the freetdm configuration example for TDM400<br>
&gt; and am wondering what exactly is a span.<br>
&gt;  <br>
&gt; I have 2 TDM400P cards in my computer,<br>
&gt; one card has 2 FXS modules for connecting analog phones.<br>
&gt; The other card has 3 FXO modules for connecting to  3 PSTN trunk lines.<br>
&gt;  <br>
&gt; # lsdahdi<br>
&gt; ### Span  1: WCTDM/4 &quot;Wildcard TDM400P REV I Board 5&quot;<br>
&gt;   1 FXS        FXOKS       (In use) (EC: OSLEC - INACTIVE)<br>
&gt;   2 FXS        FXOKS       (In use) (EC: OSLEC - INACTIVE)<br>
&gt;   3 unknown    Reserved<br>
&gt;   4 unknown    Reserved<br>
&gt; ### Span  2: WCTDM/4 &quot;Wildcard TDM400P REV I Board 5&quot; (MASTER)<br>
&gt;   5 FXO        FXSKS       (In use) (EC: OSLEC - INACTIVE)<br>
&gt;   6 FXO        FXSKS       (In use) (EC: OSLEC - INACTIVE)<br>
&gt;   7 FXO        FXSKS       (In use) (EC: OSLEC - INACTIVE)<br>
&gt;   8 unknown    Reserved<br>
&gt;  <br>
&gt; Do I configure freetdm as in the example for TDM400<br>
&gt; with separate spans for each module like the following?<br>
&gt; or should I have just two spans as shown by lsdahsi?<br>
&gt; Thanks.<br>
&gt;  <br>
<br>
Hi Jeremy<br>
<br>
    Do you find the answer to this question?<br>
<br>
    I&#39;m also very confuse on the span and channel in both asterisk and<br>
freeswitch, and I&#39;ve found little explaination on this.<br>
<br>
    &quot;   A span is a logical unit that represents a group of channels.<br>
        With digital telephony, a span usually represents a physical port on the card.<br>
        If the system has only one such card with a single port, so it is referred to<br>
as span 1. &quot;<br>
<br>
    Could anyone help on this?<br>
<br>
 </blockquote><div><br></div></div></div><div>At the very least you need 2 freetdm span configurations because you cannot mix FXS and FXO channels in the same FreeTDM logical span.</div><div><br></div><div><a href="http://wiki.freeswitch.org/wiki/FreeTDM#DAHDI_mode" target="_blank">http://wiki.freeswitch.org/wiki/FreeTDM#DAHDI_mode</a></div>


<div><br></div><div>For the given hardware output, I&#39;d simply create 2 spans, one for all the fxo channels and one for all the fxs channels.</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-right-style:none;border-bottom-style:none;border-left-style:none;border-width:initial;border-color:initial;border-top-style:dotted;border-top-color:rgb(128,176,214);border-top-width:1pt;padding-top:1.45pt;padding-right:5.75pt;padding-bottom:1.45pt;padding-left:5.75pt;min-height:60.55pt">


<p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left: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">Manager, Software Engineering</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-top:0px;margin-right:0px;margin-bottom:0px;margin-left: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-top:0px;margin-right:0px;margin-bottom:0px;margin-left: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-top:0px;margin-right:0px;margin-bottom:0px;margin-left: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-right-style:none;border-bottom-style:none;border-left-style:none;border-width:initial;border-color:initial;border-top-style:dotted;border-top-color:rgb(128,176,214);border-top-width:1pt;padding-top:1.45pt;padding-right:5.75pt;padding-bottom:1.45pt;padding-left:5.75pt;min-height:60.55pt" width="187">


<p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left: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-top:0px;margin-right:0px;margin-bottom:0px;margin-left: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-top:0px;margin-right:0px;margin-bottom:0px;margin-left: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-top:0px;margin-right:0px;margin-bottom:0px;margin-left: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-top-style:dotted;border-top-color:rgb(128,176,214);border-top-width:1pt;border-left-style:none;border-left-width:initial;border-left-color:initial;border-bottom-style:dotted;border-bottom-color:rgb(128,176,214);border-bottom-width:1pt;border-right-style:none;border-right-width:initial;border-right-color:initial;padding-top:1.45pt;padding-right:5.75pt;padding-bottom:1.45pt;padding-left:5.75pt;min-height:60.55pt" width="149">


<p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;line-height:15px"><a href="http://www.sangoma.com/contact?utm_source=signature&amp;utm_medium=email&amp;utm_campaign=email+signatures" target="_blank"><b><span style="color:rgb(31,73,125);text-decoration:none"><img src="" height="15" border="0" 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-top-style:none;border-right-style:none;border-left-style:none;border-width:initial;border-color:initial;border-bottom-style:dotted;border-bottom-color:rgb(128,176,214);border-bottom-width:1pt;padding-top:1.45pt;padding-right:5.75pt;padding-bottom:1.45pt;padding-left:5.75pt" width="500">


<p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;line-height:15px"><a href="http://sangoma.com/products?utm_source=signature&amp;utm_medium=email&amp;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&amp;utm_medium=email&amp;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&amp;utm_medium=email&amp;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&amp;utm_medium=email&amp;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&amp;utm_medium=email&amp;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&amp;utm_medium=email&amp;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&amp;utm_medium=email&amp;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&amp;utm_medium=email&amp;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-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><br></p></div></div>
<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>
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>
<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>
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><br clear="all"><br>-- <br>Paragon Electronic Design Ltd<br>L6 Crest House<br>92 Queens Drive<br>P0 Box 30449<br>Lower Hutt 5040<br><br>+64 4 5703870 Extn 875<br>+64 21 608919  (mobile)<br><br>
&quot;Solving your problems with the right technology&quot;<br>