FreeTDM Partial Spans?
Hi Guys, This might be a dumb question but I can't seem to find an answer by Googling. I have oodles of FXO ports configured on Xorcom Astribanks. On the Astribank each set of 8 FXO ports forms a zaptel/openzap/freetdm span. Now if a trunk consists of an integral multiple of 8 FXO ports it is easy to just dial out on the first available channel: <action application="bridge" data="freetdm/1/a/$1|freetdm/2/a/$1"/> This grabs the first available channel out of 16 FXO ports. But what is the "right" way to do it when I need to use 1.5 spans (i.e. 12 FXO ports)? Is there such a thing as a virtual span that can be built out of individual FXO ports? I have a feeling I'm missing something rather obvious. Thanks, -Slim -- Jeroen C. "Slim" van Gelderen Cheers, -Slim -- Jeroen C. "Slim" van Gelderen Olympic Sports Data Services Email: slim@thegreek.com Phone: +1 876 953 6182 x128
On Fri, Oct 1, 2010 at 5:01 PM, Jeroen C. van Gelderen <slim@thegreek.com> wrote:
<action application="bridge" data="freetdm/1/a/$1|freetdm/2/a/$1"/>
This grabs the first available channel out of 16 FXO ports.
But what is the "right" way to do it when I need to use 1.5 spans (i.e. 12 FXO ports)?
Is there such a thing as a virtual span that can be built out of individual FXO ports?
I have a feeling I'm missing something rather obvious.
You can create spans with channels from any other span (as long as the signaling is the same). [span zt xorcomSpan] ; channels from 1.5 trunks fxo-channel => 1-12 Then dial: <action application="bridge" data="freetdm/xorcomSpan/a/$1/> You can also just define a group for those channels and use the group for dialing. [span zt xorcomTrunk1] trunk_type => FXO group => xorcomg1 fxo-channels => 1-8 [span zt xorcomTrunk2] trunk_type => FXO group => xorcomg1 fxo-channels => 9-12 Then dial using the group name. <action application="bridge" data="freetdm/xorcomg1/a/$1/> This means spans and groups are strings within the same name space (as far as hunting is concerned), and you should not make them conflict. Moises Silva Senior Software Engineer Sangoma Technologies Inc. | 100 Renfrew Drive, Suite 100, Markham ON L3R 9R6 Canada t. 1 905 474 1990 x128 | e. moy@sangoma.com
Btw, I hope you don't mind, I started a Mailing list FAQ section in the FreeTDM wiki page and added your question there (and some more information): http://wiki.freeswitch.org/wiki/FreeTDM#Mailing_List_FAQ Moises Silva Senior Software Engineer Sangoma Technologies Inc. | 100 Renfrew Drive, Suite 100, Markham ON L3R 9R6 Canada t. 1 905 474 1990 x128 | e. moy@sangoma.com
Very nice. Thanks for the elaborate answer. Cheers, -Slim -- Jeroen C. "Slim" van Gelderen -----Original Message----- From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Moises Silva Sent: Saturday, October 02, 2010 10:35 To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] FreeTDM Partial Spans? Btw, I hope you don't mind, I started a Mailing list FAQ section in the FreeTDM wiki page and added your question there (and some more information): http://wiki.freeswitch.org/wiki/FreeTDM#Mailing_List_FAQ Moises Silva Senior Software Engineer Sangoma Technologies Inc. | 100 Renfrew Drive, Suite 100, Markham ON L3R 9R6 Canada t. 1 905 474 1990 x128 | e. moy@sangoma.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
participants (2)
-
Jeroen C. van Gelderen
-
Moises Silva