Hey William finally i get it working =)
For future references as you suggested these are the steps i follow up to get it working
Installation scenario:
- Vicibox Redux 3.0.6
- Hardware Sangoma A102E
1) Install vicibox redux as normal
2) Install vicidial using vicidial-install
3) Install libopenr2 (its important to install vicidial before because this libs depends on dahdi)
get the lastest version of libopenr2 form here:
http://code.google.com/p/openr2/downloads/list
a) download it to /usr/src
b) extract it tar xvzf libopenr2.tar.gz
c) cd libopenr2
e) ./configure
f) make
g) make install
h) ldconfig (IMPORTANT if you dont do this, the new installed libraries will not be loaded on the system)
4) Patch asterisk
a) cd /usr/src/asterisk-1.4.21.1-vici
b) wget
http://code.google.com/p/openr2/downloa ... h&can=2&q=
c) apply the patch: patch -p0 < openr2-asterisk-1.4.32-p1.patch
d) execute ./bootstrap.sh (EXTREMLY IMPORTANT anything below is going to work if you skip this)
e) ./configure
f) make
g) make install
5) Configure wanrouter (wich has been installed from vicidial-install script)
a) execute wancfg (this will generate /etc/wanpipe/wanpipe1.conf)
b) execute wancfg_dahdi (this will generate a template for /etc/dahdi/system.com and /etc/asterisk/chan_dahdi.con)
c) edit your chan_dahdi.conf and system.conf according to your country. You can find propper documentacion on the docs/asterisk directory in your libopenr2 sources. For my country the file reads like this
;;;;;; Configuration for Mexico ;;;;;;;;;;
; zapata.conf or chan_dahdi.conf in /etc/asterisk
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=log
mfcr2_logging=all
; end debugging configuration
channel => 1-15
channel => 17-31
; /etc/dahdi/system.conf or /etc/zaptel.conf
span=1,1,0,cas,hdb3
cas=1-15:1101
cas=17-31:1101
loadzone=us
defaultzone=us
span=2,1,0,cas,hdb3
cas=32-46:1101
cas=48-62:1101
loadzone=us
defaultzone=us
6) Restart vicidial
/etc/init.d/vicidial restart
If everythings is well configure, after restart you will be able to see something like this on your CLI:
- Code: Select all
vicibox*CLI> mfcr2 show channels
Chan Variant Max ANI Max DNIS ANI First Immediate Accept Tx CAS Rx CAS
1 MX 10 4 No No IDLE IDLE
2 MX 10 4 No No IDLE IDLE
3 MX 10 4 No No IDLE IDLE
4 MX 10 4 No No IDLE IDLE
5 MX 10 4 No No IDLE IDLE
6 MX 10 4 No No IDLE IDLE
7 MX 10 4 No No IDLE IDLE
8 MX 10 4 No No IDLE IDLE
9 MX 10 4 No No IDLE IDLE
10 MX 10 4 No No IDLE IDLE
11 MX 10 4 No No IDLE IDLE
12 MX 10 4 No No IDLE IDLE
13 MX 10 4 No No IDLE IDLE
14 MX 10 4 No No IDLE IDLE
15 MX 10 4 No No IDLE IDLE
17 MX 10 4 No No IDLE IDLE
18 MX 10 4 No No IDLE IDLE
19 MX 10 4 No No IDLE IDLE
20 MX 10 4 No No IDLE IDLE
21 MX 10 4 No No IDLE IDLE
22 MX 10 4 No No IDLE IDLE
23 MX 10 4 No No IDLE IDLE
24 MX 10 4 No No IDLE IDLE
25 MX 10 4 No No IDLE IDLE
26 MX 10 4 No No IDLE IDLE
27 MX 10 4 No No IDLE IDLE
28 MX 10 4 No No IDLE IDLE
29 MX 10 4 No No IDLE IDLE
30 MX 10 4 No No IDLE IDLE
31 MX 10 4 No No IDLE IDLE