b700 congestion call

snake_x47
Posts: 1
Member Since:
2010-04-12

Hello

I have a problem with a B700 Sangoma Card.
After the installation and configuration of wanpipe driver, incoming call works but not the outbound call

During the incoming call, the BRI Link is connected but when the call is hangup, the link pass to disconnected

The outbound call don't up the link while it's works when i try during an incoming call

My configuration and configuration files :

trixbox : 2.8.0.4
driver Wanpipe : 3.5.18

/etc/wanpipe/smg_bri.conf

-------------------------------------------------------------------------------------------------------------
;Sangoma AFT-B700 port 1 [slot:4 bus:2 span:1]
group=2
country=europe
operator=etsi
connection_type=point_to_multipoint
signalling=bri_te
spans=1

;Sangoma AFT-B700 port 2 [slot:4 bus:2 span:2]
group=2
country=europe
operator=etsi
connection_type=point_to_multipoint
signalling=bri_te
spans=2

-------------------------------------------------------------------------------------------------------------

/etc/wanpipe/wanpipe1.conf

-------------------------------------------------------------------------------------------------------------
#================================================
# WANPIPE1 Configuration File
#================================================
#
# Note: This file was generated automatically
# by /usr/local/sbin/setup-sangoma program.
#
# If you want to edit this file, it is
# recommended that you use wancfg program
# to do so.
#================================================
# Sangoma Technologies Inc.
#================================================

[devices]
wanpipe1 = WAN_AFT_ISDN_BRI, 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 = BRI
FE_LINE = 1
TDMV_LAW = ALAW
RM_BRI_CLOCK_MASTER = NO
MTU = 1500
UDPPORT = 9000
TTL = 255
IGNORE_FRONT_END = NO
TDMV_SPAN = 1
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 = YES # 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
HWEC_CLKSRC = YES

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

-------------------------------------------------------------------------------------------------------------

Custom Trunk

Custom Dial String : WOOMERA/g2/$OUTNUM$

-------------------------------------------------------------------------------------------------------------

Asterisk CLI Debug with a outbound call

-- Executing [06xxxxxxxx@from-internal:1] Macro("SIP/203-00000000", "user-callerid,SKIPTTL,") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/203-00000000", "AMPUSER=203") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("SIP/203-00000000", "0?report") in new stack
-- Executing [s@macro-user-callerid:3] ExecIf("SIP/203-00000000", "1?Set(REALCALLERIDNUM=203)") in new stack
-- Executing [s@macro-user-callerid:4] Set("SIP/203-00000000", "AMPUSER=203") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/203-00000000", "AMPUSERCIDNAME=Test") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("SIP/203-00000000", "0?report") in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/203-00000000", "AMPUSERCID=203") in new stack
-- Executing [s@macro-user-callerid:8] Set("SIP/203-00000000", "CALLERID(all)="Test" <203>") in new stack
-- Executing [s@macro-user-callerid:9] ExecIf("SIP/203-00000000", "0?Set(CHANNEL(language)=)") in new stack
-- Executing [s@macro-user-callerid:10] GotoIf("SIP/203-00000000", "1?continue") in new stack
-- Goto (macro-user-callerid,s,19)
-- Executing [s@macro-user-callerid:19] NoOp("SIP/203-00000000", "Using CallerID "Test" <203>") in new stack
-- Executing [06xxxxxxxx@from-internal:2] Set("SIP/203-00000000", "_NODEST=") in new stack
-- Executing [06xxxxxxxx@from-internal:3] Macro("SIP/203-00000000", "record-enable,203,OUT,") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("SIP/203-00000000", "1?check") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] AGI("SIP/203-00000000", "recordingcheck,20110727-143916,1311770356.0") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck,20110727-143916,1311770356.0: Outbound recording not enabled
-- AGI Script recordingcheck completed, returning 0
-- Executing [s@macro-record-enable:5] MacroExit("SIP/203-00000000", "") in new stack
-- Executing [06xxxxxxxx@from-internal:4] Macro("SIP/203-00000000", "dialout-trunk,2,06xxxxxxxx,,") in new stack
-- Executing [s@macro-dialout-trunk:1] Set("SIP/203-00000000", "DIAL_TRUNK=2") in new stack
-- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/203-00000000", "0?sub-pincheck,s,1") in new stack
-- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/203-00000000", "0?disabletrunk,1") in new stack
-- Executing [s@macro-dialout-trunk:4] Set("SIP/203-00000000", "DIAL_NUMBER=06xxxxxxxx") in new stack
-- Executing [s@macro-dialout-trunk:5] Set("SIP/203-00000000", "DIAL_TRUNK_OPTIONS=tr") in new stack
-- Executing [s@macro-dialout-trunk:6] Set("SIP/203-00000000", "OUTBOUND_GROUP=OUT_2") in new stack
-- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/203-00000000", "0?nomax") in new stack
-- Executing [s@macro-dialout-trunk:8] GotoIf("SIP/203-00000000", "0?chanfull") in new stack
-- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/203-00000000", "0?skipoutcid") in new stack
-- Executing [s@macro-dialout-trunk:10] Set("SIP/203-00000000", "DIAL_TRUNK_OPTIONS=") in new stack
-- Executing [s@macro-dialout-trunk:11] Macro("SIP/203-00000000", "outbound-callerid,2") in new stack
-- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/203-00000000", "0?Set(CALLERPRES()=)") in new stack
-- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/203-00000000", "0?Set(REALCALLERIDNUM=203)") in new stack
-- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/203-00000000", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,6)
-- Executing [s@macro-outbound-callerid:6] Set("SIP/203-00000000", "USEROUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:7] Set("SIP/203-00000000", "EMERGENCYCID=") in new stack
-- Executing [s@macro-outbound-callerid:8] Set("SIP/203-00000000", "TRUNKOUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/203-00000000", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,12)
-- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/203-00000000", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/203-00000000", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/203-00000000", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
-- Executing [s@macro-dialout-trunk:12] ExecIf("SIP/203-00000000", "1?AGI(fixlocalprefix)") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
> fixlocalprefix: Using pattern X.
== fixlocalprefix: Dialpattern X. matched. 06xxxxxxxx -> 06xxxxxxxx
-- AGI Script fixlocalprefix completed, returning 0
-- Executing [s@macro-dialout-trunk:13] Set("SIP/203-00000000", "OUTNUM=06xxxxxxxx") in new stack
-- Executing [s@macro-dialout-trunk:14] Set("SIP/203-00000000", "custom=AMP") in new stack
-- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/203-00000000", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^))") in new stack
-- Executing [s@macro-dialout-trunk:16] Macro("SIP/203-00000000", "dialout-trunk-predial-hook,") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/203-00000000", "") in new stack
-- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/203-00000000", "0?bypass,1") in new stack
-- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/203-00000000", "1?customtrunk") in new stack
-- Goto (macro-dialout-trunk,s,21)
-- Executing [s@macro-dialout-trunk:21] Set("SIP/203-00000000", "pre_num=AMP:WOOMERA/g2/") in new stack
-- Executing [s@macro-dialout-trunk:22] Set("SIP/203-00000000", "the_num=OUTNUM") in new stack
-- Executing [s@macro-dialout-trunk:23] Set("SIP/203-00000000", "post_num=") in new stack
-- Executing [s@macro-dialout-trunk:24] GotoIf("SIP/203-00000000", "1?outnum:skipoutnum") in new stack
-- Goto (macro-dialout-trunk,s,25)
-- Executing [s@macro-dialout-trunk:25] Set("SIP/203-00000000", "the_num=06xxxxxxxx") in new stack
-- Executing [s@macro-dialout-trunk:26] Dial("SIP/203-00000000", "WOOMERA/g2/06xxxxxxxx,300,") in new stack
**[WOOMERA]** +++REQ WOOMERA/g2/06xxxxxxxx-4b58
-- Called g2/06xxxxxxxx
**[WOOMERA]** Receive Message: {default} [localhost/42420]
--------------------------------------------------------------------------------
EVENT HELLO Sangoma Media Gateway
Supported-Protocols: TDM
Version: v1.72
Remote-Address: 127.0.0.1
Remote-Port: 58363
Raw-Format: ALAW
xUDP-Seq: Disabled
xUDP-Seq-Err: 0
xNative-Bridge: Enabled

**[WOOMERA]** Send Message: {default} [localhost/42420]
--------------------------------------------------------------------------------
CALL g2/06xxxxxxxx
Raw-Audio: 127.0.0.1:20001
Local-Name: Test !203
Local-Number:203
Presentation:0
Screening:0
Bearer-Cap:SPEECH
uil1p:G_711_ALAW
RDNIS:
xCalledTon:255
xCalledNpi:255
xCallingTon:255
xCallingNpi:255
xRdnisTon:255
xRdnisNpi:255
xCustom:

**[WOOMERA]** Receive Message: {default} [localhost/42420]
--------------------------------------------------------------------------------
100 Trying

**[WOOMERA]** Receive Message: {default} [localhost/42420]
--------------------------------------------------------------------------------
EVENT HANGUP s255c255
Unique-Call-Id:
Cause: NORMAL_CIRCUIT_CONGESTION
Q931-Cause-Code: 34

**[WOOMERA]** Queue Event: {default} [HANGUP]
**[WOOMERA]** Receive Message: {default} [localhost/42420]
--------------------------------------------------------------------------------
501 call was cancelled!
Unique-Call-Id:

**[WOOMERA]** Hangup []
== Everyone is busy/congested at this time (1:0/1/0)
-- Executing [s@macro-dialout-trunk:27] Goto("SIP/203-00000000", "s-CONGESTION,1") in new stack
-- Goto (macro-dialout-trunk,s-CONGESTION,1)
-- Executing [s-CONGESTION@macro-dialout-trunk:1] GotoIf("SIP/203-00000000", "1?noreport") in new stack
-- Goto (macro-dialout-trunk,s-CONGESTION,3)
-- Executing [s-CONGESTION@macro-dialout-trunk:3] NoOp("SIP/203-00000000", "TRUNK Dial failed due to CONGESTION - failing through to other trunks") in new stack
-- Executing [06xxxxxxxx@from-internal:5] Macro("SIP/203-00000000", "outisbusy,") in new stack
-- Executing [s@macro-outisbusy:1] Playback("SIP/203-00000000", "all-circuits-busy-now,noanswer") in new stack
-- Playing 'all-circuits-busy-now.ulaw' (language 'en')
== Spawn extension (macro-outisbusy, s, 1) exited non-zero on 'SIP/203-00000000' in macro 'outisbusy'
== Spawn extension (from-internal, 06xxxxxxxx, 5) exited non-zero on 'SIP/203-00000000'
-- Executing [h@from-internal:1] Macro("SIP/203-00000000", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("SIP/203-00000000", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,4)
-- Executing [s@macro-hangupcall:4] GotoIf("SIP/203-00000000", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,7)
-- Executing [s@macro-hangupcall:7] GotoIf("SIP/203-00000000", "1?theend") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [s@macro-hangupcall:9] Hangup("SIP/203-00000000", "") in new stack
== Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/203-00000000' in macro 'hangupcall'
== Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/203-00000000'

----------------------------------------------------------------------------------------------------------------------------------------------------------------

/var/log/message

Jul 27 16:39:30 trixbox1 kernel: wanpipe1: BRI Module: 1 connected!
Jul 27 16:39:30 trixbox1 kernel: wanpipe1: Setting Master Clock!
Jul 27 16:39:30 trixbox1 kernel: wanpipe1: TE Clock line recovery Module=1 Port=1: Enabled
Jul 27 16:39:30 trixbox1 kernel: wanpipe1: Module=1 Port=1: using 512khz from PLL
Jul 27 16:39:30 trixbox1 kernel: ADDRCONF(NETDEV_CHANGE): w1g1: link becomes ready
Jul 27 16:39:30 trixbox1 kernel: wanec1: The H100 slave has lost its framing on the bus!
Jul 27 16:39:30 trixbox1 kernel: wanec1: The CT_C8_A clock behavior does not conform to the H.100 spec!
Jul 27 16:39:30 trixbox1 kernel: wanec1: The CT_C8_A clock behavior does not conform to the H.100 spec!
Jul 27 16:39:41 trixbox1 kernel: wanpipe1: BRI Module: 1 disconnected!
Jul 27 16:39:41 trixbox1 kernel: wanpipe1: Clearing Master Clock!
Jul 27 16:39:41 trixbox1 kernel: wanpipe1: TE Clock line recovery Module=1 Port=1: Disabled
Jul 27 16:39:41 trixbox1 kernel: wanec1: The H100 slave has lost its framing on the bus!
Jul 27 16:39:41 trixbox1 kernel: wanec1: The CT_C8_A clock behavior does not conform to the H.100 spec!

----------------------------------------------------------------------------------------------------------------------------------------------------------------

Anybody has an idea?

Regards

Snake47