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 in asterisk win32 into freeTDM, but I found I need to know more about the above topic.


2012/3/20 Moises Silva <moises.silva@gmail.com>
On Sun, Mar 18, 2012 at 10:58 AM, Jeromy <fuji246@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@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

 

Products | Solutions | Events | Contact | Wiki | Facebook | Twitter`| | YouTube



_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org