[Freeswitch-users] Problem receiving calls from E1 to TE122p

Javier Galaz Jeria jgalaz at yx.cl
Fri May 27 23:58:56 MSD 2011


Hi,

I'm using FS git, on Ubuntu 11.04, with Digium TE122p card (from now on srv1), 
and FS git, on Ubuntu Server 11.04 with Sangoma A101 card (from now on srv2), 
both currently configured by vendor's scripts.

When I make a call from srv1 to srv2, everything goes well, I can hear both ways 
no problem, however when I try it the other way around (srv2->srv1) the 
softphone registered to srv2 gets "User Not Available", hardphone registered to 
srv1 gets INVITE and just after that CANCEL. The FS log: [1]

Looking at the logs I can see that after the RINGING goes to EARLY and tries to 
play ringback tone, but it can't write and it can't read from channel because 
it's not opened. So it hangs up. [lines 520-528]

I've searched the wiki, asked on IRC, but can't solve my problem, anyone who has 
configured TE122p could give some pointers?

This are my config files:

-----TE122p-----
/etc/dahdi/system.conf
loadzone    = es
defaultzone = es

span=1,1,0,ccs,hdb3
bchan=1-15,17-31
dchan=16
echocanceller=mg2,1-15,17-31


/usr/local/freeswitch/conf/freetdm.conf
[general]
cpu_monitor => no
cpu_monitoring_interval => 1000
cpu_set_alarm_threshold => 80
cpu_reset_alarm_threshold => 70
cpu_alarm_action => warn

[span zt TE122p]
trunk_type => E1
b-channel => 1-15
d-channel => 16
b-channel => 17-31


/usr/local/freswitch/conf/freetdm.conf.xml
<configuration name="freetdm.conf" description="FreeTDM Configuration">
	<settings>
		<param name="debug" value="0"/>
		<param name="sip_headers" value="true"/>
	</settings>

	<libpri_spans>
		<span name="TE122p">
			<param name="node" value="network"/>
			<param name="switch" value="euroisdn"/>
			<param name="dialplan" value="XML"/>
			<param name="context" value="default"/>
		</span>
	</libpri_spans>
</configuration>


------A101-----
/etc/wanpipe1.conf
[devices]
wanpipe1 = WAN_AFT_TE1, Comment

[interfaces]
w1g1 = wanpipe1, , TDM_VOICE_API, Comment

[wanpipe1]
CARD_TYPE 	= AFT
S514CPU 	= A
CommPort 	= PRI
AUTO_PCISLOT 	= NO
PCISLOT 	= 4
PCIBUS  	= 2
FE_MEDIA	= E1
FE_LCODE	= HDB3
FE_FRAME	= NCRC4
FE_LINE		= 1
TE_CLOCK 	= NORMAL
TE_REF_CLOCK    = 0
TE_SIG_MODE     = CCS
TE_HIGHIMPEDANCE	= NO
TE_RX_SLEVEL    = 430
LBO 		= 120OH
FE_TXTRISTATE	= NO
MTU 		= 1500
UDPPORT		= 9000
TTL		= 255
IGNORE_FRONT_END	= NO
TDMV_SPAN		= 1
TDMV_DCHAN		= 16
TE_AIS_MAINTENANCE = NO         #NO: defualt  YES: Start port in AIS Blue Alarm and keep line down
                                #wanpipemon -i w1g1 -c Ttx_ais_off to disable AIS maintenance mode
								#wanpipemon -i w1g1 -c Ttx_ais_on to enable AIS maintenance mode  
TDMV_HW_DTMF		= YES		# YES: receive dtmf events from hardware
TDMV_HW_FAX_DETECT		= NO		# YES: receive fax 1100hz events from hardware
HWEC_OPERATION_MODE     = OCT_NORMAL    # OCT_NORMAL: echo cancelation enabled with nlp (default) 
										# OCT_SPEECH: improves software tone detection by disabling NLP (echo possible)
										# OCT_NO_ECHO:disables echo cancelation but allows VQE/tone functions. 
HWEC_DTMF_REMOVAL       = NO    # NO: default  YES: remove dtmf out of incoming media (must have hwdtmf enabled)
HWEC_NOISE_REDUCTION    = NO    # NO: default  YES: reduces noise on the line - could break fax
HWEC_ACUSTIC_ECHO       = NO    # NO: default  YES: enables acustic echo cancelation
HWEC_NLP_DISABLE        = NO    # NO: default  YES: guarantees software tone detection (possible echo)   
HWEC_TX_AUTO_GAIN       = 0     # 0: disable   -40-0: default tx audio level to be maintained (-20 default)
HWEC_RX_AUTO_GAIN       = 0     # 0: disable   -40-0: default tx audio level to be maintained (-20 default)  
HWEC_TX_GAIN            = 0		# 0: disable   -24-24: db values to be applied to tx signal
HWEC_RX_GAIN            = 0		# 0: disable   -24-24: db values to be applied to tx signal

[w1g1]
ACTIVE_CH	= ALL
TDMV_HWEC	= YES
MTU 		= 80

/usr/local/freeswitch/conf/freetdm.conf 
[span wanpipe wp1]
trunk_type => e1
group=1
b-channel => 1:1-15
b-channel => 1:17-31
d-channel => 1:16

/usr/local/freeswitch/conf/autoload_configs/freetdm.conf.xml
<configuration name="freetdm.conf" description="Freetdm Configuration">
	<settings>
		<param name="debug" value="0"/>
		<!--<param name="hold-music" value="$${moh_uri}"/>-->
		<!--<param name="enable-analog-option" value="call-swap"/>-->
		<!--<param name="enable-analog-option" value="3-way"/>-->
	</settings>
	<config_profiles>
		<profile name="my_pri_te_1">
			<param name="switchtype" value="euroisdn" />
			<param name="interface" value="pri_cpe"/>
		</profile>
	</config_profiles>
	<sangoma_pri_spans>
		<span name="wp1" cfgprofile="my_pri_te_1">
			<param name="dialplan" value="XML"/>
			<param name="context" value="default"/>
		</span>
	</sangoma_pri_spans>
</configuration>


How can I fix this? Any help would be greatly appreciated. If you need more info 
just tell me.

[1] http://pastebin.freeswitch.org/16397


Best Regards

-j-



More information about the FreeSWITCH-users mailing list