until yesterday i had two E1 cards and one 8 port FXO card all from rhino. Everything worked fine. Incoming and outgoing.
Yesterday I removed the FXO card and added a 2port FXS card from sangoma. I installed the sangoma drivers, but it made a mess out of everything.
Nothing worked, sangoma wrote over the previous conf files. The first thing i noticed is it deleted the #include-s from chan_dahdi.conf, so i readded them. Once again it detected my PRI spans, but incoming and outgoing calls didnt work correctly and i couldnt figure out what to do. Eventually I renamed all the dahdi conf files and first ran dahdi_genconf and then did an apply configs from freepbx.
This cleanly rebuilt all the files, yet i still cannot get things back to where they were.
My objective is quite simple.
- each E1 card is provided by a different telecom company with different DIDs. Both should arrive at the same destination. I made 2 incoming routes for that.
2)For outgoing each should be able to be routed independently. ie.:
8|. should use E1 #1
9|. should use E1 #2
I created outbound routes for that. - the fxs is for an actual fax machine. I just want passthrough for this. I created a dahdi extension for this.
so my questions mostly relate to groups, channels, ascending, descending, contexts.
I seem to not be able to get the combinations right.
If i can receive calls, i cant make them. When i try to make them it says channel unavailable.
Sometimes (on some attempts modifying stuff) i tried to dial out a trunk and weirdly enough the call was made to the extension (fax machine).
so here is my collection of dahdi conf files.
Can somebody please help me get this in order?
thanks,
-gk
::::::::::::::
chan_dahdi.conf
::::::::::::::
; Copied from DAHDI Module of FreePBX
[general]
#include chan_dahdi_general.conf
[channels]
; include dahdi groups defined by DAHDI module of FreePBX
#include chan_dahdi_groups.conf
#include dahdi-channels.conf
; include dahdi extensions defined in FreePBX
#include chan_dahdi_additional.conf
::::::::::::::
chan_dahdi_general.conf
::::::::::::::
;--------------------------------------------------------------------------------;
; Do NOT edit this file as it is auto-generated by FreePBX. All modifications to ;
; this file must be done via the web gui. There are alternative files to make ;
; custom modifications, details at: http://freepbx.org/configuration_files ;
;--------------------------------------------------------------------------------;
;
::::::::::::::
chan_dahdi_groups.conf
::::::::::::::
;--------------------------------------------------------------------------------;
; Do NOT edit this file as it is auto-generated by FreePBX. All modifications to ;
; this file must be done via the web gui. There are alternative files to make ;
; custom modifications, details at: http://freepbx.org/configuration_files ;
;--------------------------------------------------------------------------------;
;
; [span_2]
signalling=pri_cpe
switchtype=euroisdn
pridialplan=unknown
prilocaldialplan=unknown
group=1
context=from-pstn
channel=25-39,41-44
; [span_3]
signalling=pri_cpe
switchtype=euroisdn
pridialplan=unknown
prilocaldialplan=unknown
group=2
context=from-pstn
channel=56-65
signalling=fxo_ks
context=from-analog
channel=>1
signalling=fxo_ks
context=from-analog
channel=>2
::::::::::::::
dahdi-channels.conf
::::::::::::::
; Autogenerated by /usr/sbin/dahdi_genconf on Tue Jan 25 12:59:42 2011
; If you edit this file and execute /usr/sbin/dahdi_genconf again,
; your manual changes will be LOST.
; Dahdi Channels Configurations (chan_dahdi.conf)
;
; This is not intended to be a complete chan_dahdi.conf. Rather, it is intended
; to be #include-d by /etc/chan_dahdi.conf that will include the global settings
;
; Span 1: WRTDM/0 “wrtdm Board 1”
;;; line="1 WRTDM/0/0 FXOKS (SWEC: MG2)"
signalling=fxo_ks
callerid=“Channel 1” <4001>
mailbox=4001
group=5
context=from-internal
channel => 1
callerid=
mailbox=
group=
context=default
;;; line="2 WRTDM/0/1 FXOKS (SWEC: MG2)"
signalling=fxo_ks
callerid=“Channel 2” <4002>
mailbox=4002
group=5
context=from-internal
channel => 2
callerid=
mailbox=
group=
context=default
; Span 2: R1T1/0 “Rhino R1T1 E1/PRA Card 0” (MASTER) HDB3/CCS ClockSource
group=0,12
context=from-pstn
switchtype = euroisdn
signalling = pri_cpe
channel => 25-39,41-55
context = default
group = 63
; Span 3: R1T1/1 “Rhino R1T1 E1/PRA Card 1” HDB3/CCS RED
group=0,13
context=from-pstn
switchtype = euroisdn
signalling = pri_cpe
channel => 56-70,72-86
context = default
group = 63
::::::::::::::
chan_dahdi_additional.conf
::::::::::::::
;--------------------------------------------------------------------------------;
; Do NOT edit this file as it is auto-generated by FreePBX. All modifications to ;
; this file must be done via the web gui. There are alternative files to make ;
; custom modifications, details at: http://freepbx.org/configuration_files ;
;--------------------------------------------------------------------------------;
;
;;;;;;[7616]
signalling=fxo_ks
pickupgroup=
mailbox=7616@device
immediate=no
echotraining=800
echocancelwhenbridged=no
echocancel=yes
context=from-internal
callprogress=no
callgroup=
callerid=device <7616>
busydetect=no
busycount=7
accountcode=
channel=>1