E1 Trunk Sangoma Wanpipe

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

E1 Trunk Sangoma Wanpipe

Postby JCSANHUEZA » Fri Sep 07, 2012 9:53 am

how to configure E1 card sangoma?

/etc/asterisk/chan_dahdi.conf

Code: Select all
;autogenerated by /usr/sbin/wancfg_dahdi do not hand edit
;autogenrated on 2010-12-04
;Dahdi Channels Configurations
;For detailed Dahdi options, view /etc/asterisk/chan_dahdi.conf.bak

[trunkgroups]

[channels]
;language=es
;context=from-pstn
usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
echocancel=no
echocancelwhenbridged=no
relaxdtmf=yes
rxgain=0.0
txgain=0.0
;group=1
;callgroup=1
;pickupgroup=1
immediate=no

signalling=mfcr2
mfcr2_variant=mx
mfcr2_get_ani_first=no
mfcr2_max_ani=10
mfcr2_max_dnis=4
mfcr2_category=national_subscriber
mfcr2_mfback_timeout=-1
mfcr2_metering_pulse_timeout=-1
; this is for debugging purposes
mfcr2_logdir=span1
mfcr2_logging=all
; end debugging configuration

;Sangoma A104 port 1 [slot:4 bus:5 span:1] <wanpipe1>
context=trunkinbound
group=1
; echocancel=yes
signalling=mfcr2
channel =>1-15,17-31


/etc/dahdi/system.conf

Code: Select all
#autogenerated by /usr/sbin/wancfg_dahdi do not hand edit
#autogenrated on 2012-09-06
#Dahdi Channels Configurations
#For detailed Dahdi options, view /etc/dahdi/system.conf.bak
loadzone=us
defaultzone=us

#Sangoma A104 port 1 [slot:4 bus:5 span:1] <wanpipe1>
span=1,1,0,cas,hdb3
cas=1-15:1101
echocanceller=mg2,1-15,17-31
dchan=16
cas=17-31:1101


/etc/wanpipe/wanrouter.rc

Code: Select all
ROUTER_BOOT=YES
WAN_CONF_DIR=/etc/wanpipe
WAN_INTR_DIR=/etc/wanpipe/interfaces
WAN_BIN_DIR=/usr/sbin
WAN_LOG=/var/log/wanrouter
WAN_LOCK=/var/lock/subsys/wanrouter
WAN_LOCK_DIR=/var/lock/subsys
WAN_IP_FORWARD=NO
NEW_IF_TYPE=NO
WAN_LIB_DIR=/etc/wanpipe/lib
WAN_ADSL_LIST=/etc/wanpipe/wan_adsl.list
WAN_ANNEXG_LOAD=NO
WAN_LIP_LOAD=YES
WAN_DYN_WANCONFIG=NO
WAN_SCRIPTS_DIR=/etc/wanpipe/scripts
WAN_FIRMWARE_DIR=/etc/wanpipe/firmware
WAN_DEVICES_REV_STOP_ORDER=YES
WAN_DEVICES="wanpipe1"


/etc/wanpipe/wanpipe1.conf
Code: Select all
[devices]
wanpipe1 = WAN_AFT_TE1, Comment

[interfaces]
w1g1 = wanpipe1, , TDM_VOICE, Comment

[wanpipe1]
CARD_TYPE    = AFT
S514CPU    = A
CommPort    = PRI
AUTO_PCISLOT    = NO
PCISLOT    = 4
PCIBUS     = 5
FE_MEDIA   = E1
FE_LCODE   = HDB3
FE_FRAME   = NCRC4
FE_LINE      = 1
TE_CLOCK    = MASTER
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      = NO      # 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   = NO
MTU       = 8


Admin / Carrier
Code: Select all
Carrier ID:    g0
Carrier Name: g0
Account Entry: [g0]
Protocol : Zap
Globals String:    ZAPTRUNKG0 = Zap/g0
Dialplan Entry:
exten => _XXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _XXXXXXX,2,Dial(${ZAPTRUNKG0}/${EXTEN:0},,tTor)
exten => _XXXXXXX,3,Hangup


lspci
Code: Select all
03:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5722 Gigabit Ethernet PCI Express


dahdi show status
Code: Select all
ViciDial*CLI> dahdi show status
Description                              Alarms     IRQ        bpviol     CRC4
wanpipe1 card 0                          OK         0          0          0
ViciDial*CLI>


dahdi show channels
Code: Select all
ViciDial*CLI> dahdi show channels
   Chan Extension  Context         Language   MOH Interpret
 pseudo            default                    default
      1            trunkinbound               default
      2            trunkinbound               default
      3            trunkinbound               default
      4            trunkinbound               default
      5            trunkinbound               default
      6            trunkinbound               default
      7            trunkinbound               default
      8            trunkinbound               default
      9            trunkinbound               default
     10            trunkinbound               default
     11            trunkinbound               default
     12            trunkinbound               default
     13            trunkinbound               default
     14            trunkinbound               default
     15            trunkinbound               default
     17            trunkinbound               default
     18            trunkinbound               default
     19            trunkinbound               default
     20            trunkinbound               default
     21            trunkinbound               default
     22            trunkinbound               default
     23            trunkinbound               default
     24            trunkinbound               default
     25            trunkinbound               default
     26            trunkinbound               default
     27            trunkinbound               default
     28            trunkinbound               default
     29            trunkinbound               default
     30            trunkinbound               default
     31            trunkinbound               default


And CLI say :
Code: Select all
[Sep  7 09:32:45] NOTICE[2917]: chan_sip.c:15566 handle_request_invite: Call from '405' to extension '015551281116' rejected because extension not found.


Thanks in Advance!!!
ViciBox 3.1.15
Vicidial 2.4.357a
Asterisk 1.4.39.2-vici
Single Server
No Sangoma Hardware
HP ProLiant ML350p Gen8
Manager and agent book paid version
JCSANHUEZA
 
Posts: 26
Joined: Tue Jul 03, 2012 3:16 pm

Re: E1 Trunk Sangoma Wanpipe

Postby jamz » Fri Sep 07, 2012 10:50 am

Hello.

The first time I did this it was painful.

The second time I followed instructions from:

http://striker24x7.blogspot.co.uk/2012/ ... odial.html
[modified by williamconley to allow a valid url pointing to striker's blog]

and it was a breeze.

The other thing I noticed was that it did not put an entry in the extensions.conf when I made changes to the GUI. I have enter the dialstring myself.

I hope this helps you.
I have a cluster (thank you poundteam for an excellant document that helped me set up)
VERSION: 2.4-309a
BUILD: 110430-1642
Vicidial Install
GoAutdial 2.1 iso Install
jamz
 
Posts: 16
Joined: Fri Sep 07, 2012 10:41 am

Re: E1 Trunk Sangoma Wanpipe

Postby williamconley » Thu Mar 28, 2013 7:52 pm

extensions.conf is not to be modified. make your changes in a Carrier "dialplan entry" and then check extensions-vicidial.conf to confirm they landed. but extensions.conf should never be modified. seriously. 8-)

and remember to thank striker for the blog entry.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)


Return to Support

Who is online

Users browsing this forum: No registered users and 142 guests