[Freeswitch-users] TDM400P spans

Shane Harrison shane.harrison at paragon.co.nz
Tue Mar 20 23:01:21 MSK 2012


I can'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.

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 "channels" available to your dialplans.

The syntax for referencing the channels I had to guess at since I couldn't
find any ultimate reference for that with FreeTDM examples.

HTH
Shane

On Tue, Mar 20, 2012 at 10:20 PM, Fu Jiantao <fuji246 at gmail.com> wrote:

> Thanks Moises!
>
> So span is a logic concept, while channel is corresponding to the port(fxo
> or fxs) on the card, am i right?
>
> I'm new to the freeswitch and asterisk world, and found the most difficult
> part is relating to the PSTN, I'm not familiar with PSTN, and I've read
> asterisk book and freeswitch book, and learn the basic of PSTN, but that
> seems not enough, for example, I found I can't figure out how to use
> FreeTDM, little are relating to this topic, is there any good references on
> this topic?
>
> I'm trying to port the io module chan_fx<http://www.asteriskwin32.com/chan_fx.php>in asterisk win32into freeTDM, but I found I need to know more about the above topic.
>
>
> 2012/3/20 Moises Silva <moises.silva at gmail.com>
>
>> On Sun, Mar 18, 2012 at 10:58 AM, Jeromy <fuji246 at gmail.com> wrote:
>>
>>> > I'm trying to convert from Asterisk to Freeswitch, and have a question
>>> about
>>> spans.
>>> >
>>> > I read the freetdm configuration example for TDM400
>>> > and am wondering what exactly is a span.
>>> >
>>> > I have 2 TDM400P cards in my computer,
>>> > one card has 2 FXS modules for connecting analog phones.
>>> > The other card has 3 FXO modules for connecting to  3 PSTN trunk lines.
>>> >
>>> > # lsdahdi
>>> > ### Span  1: WCTDM/4 "Wildcard TDM400P REV I Board 5"
>>> >   1 FXS        FXOKS       (In use) (EC: OSLEC - INACTIVE)
>>> >   2 FXS        FXOKS       (In use) (EC: OSLEC - INACTIVE)
>>> >   3 unknown    Reserved
>>> >   4 unknown    Reserved
>>> > ### Span  2: WCTDM/4 "Wildcard TDM400P REV I Board 5" (MASTER)
>>> >   5 FXO        FXSKS       (In use) (EC: OSLEC - INACTIVE)
>>> >   6 FXO        FXSKS       (In use) (EC: OSLEC - INACTIVE)
>>> >   7 FXO        FXSKS       (In use) (EC: OSLEC - INACTIVE)
>>> >   8 unknown    Reserved
>>> >
>>> > Do I configure freetdm as in the example for TDM400
>>> > with separate spans for each module like the following?
>>> > or should I have just two spans as shown by lsdahsi?
>>> > Thanks.
>>> >
>>>
>>> Hi Jeremy
>>>
>>>    Do you find the answer to this question?
>>>
>>>    I'm also very confuse on the span and channel in both asterisk and
>>> freeswitch, and I've found little explaination on this.
>>>
>>>    "   A span is a logical unit that represents a group of channels.
>>>        With digital telephony, a span usually represents a physical port
>>> on the card.
>>>        If the system has only one such card with a single port, so it is
>>> referred to
>>> as span 1. "
>>>
>>>    Could anyone help on this?
>>>
>>>
>> At the very least you need 2 freetdm span configurations because you
>> cannot mix FXS and FXO channels in the same FreeTDM logical span.
>>
>> http://wiki.freeswitch.org/wiki/FreeTDM#DAHDI_mode
>>
>> For the given hardware output, I'd simply create 2 spans, one for all the
>> fxo channels and one for all the fxs channels.
>>
>>  *Moises Silva
>> **Manager, Software Engineering***
>>
>> msilva at sangoma.com
>>
>> Sangoma Technologies
>>
>> 100 Renfrew Drive, Suite 100, Markham, ON L3R 9R6 Canada
>>
>>
>> t.   +1 800 388 2475 (N. America)
>>
>> t.   +1 905 474 1990 x128
>>
>> f.   +1 905 474 9223
>>
>>
>>
>> **<http://www.sangoma.com/contact?utm_source=signature&utm_medium=email&utm_campaign=email+signatures>
>>
>> Products<http://sangoma.com/products?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures>
>>  | Solutions<http://sangoma.com/solutions?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures>
>>  | Events<http://sangoma.com/about_us/events?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures>
>>  | Contact<http://www.sangoma.com/contact?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures>
>>  | Wiki<http://wiki.sangoma.com/?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures>
>>  | Facebook<http://www.facebook.com/pages/Sangoma-VoIP-Cards/43578453335?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures>
>>  | Twitter<http://www.twitter.com/sangoma?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures>`|
>> | YouTube<http://www.youtube.com/sangomatechnologies?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures>
>>
>>
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> 
>> 
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://wiki.freeswitch.org
>> http://www.cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>


-- 
Paragon Electronic Design Ltd
L6 Crest House
92 Queens Drive
P0 Box 30449
Lower Hutt 5040

+64 4 5703870 Extn 875
+64 21 608919  (mobile)

"Solving your problems with the right technology"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120321/2a15b1bb/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list