[asterisk-r2] How to set MFC-R2 and DTMF-R2 in chan_dahdi.conf

Piyawit Khumkrong piyawit at aistelebiz.com
Fri May 25 13:37:34 CDT 2012


Sorry i can't see the full massage then i try to attach full massage with
txt file

On Sat, May 26, 2012 at 1:28 AM, Piyawit Khumkrong
<piyawit at aistelebiz.com>wrote:

> Dear all
>
> Now i'm using 1 E1 DTMF-R2 for outgoing call and MFC-R2 for Incoming call
> with help from Moise
>
> so now i've expand channel to 8 E1( 4 E1 to Provider and 4 E1 to NEC PABX)
>
> then i try to config with copy old config and change the channel range
> hope it work but some E1 not work
>
> please help me for config chan_dahdi.conf or other files required with
> this requirement
>
> 1 for Provider 30 Channels, Outgoing to Provider with DTMF Incoming From
> Provider with MFC
>
> 2 for Provider first 15 Channels, Outgoing to Provider with DTMF Incoming
> From Provider with MFC
>
> 2 for Provider last 15 Channels, Outgoing to Provider with MFC Incoming
> From Provider with MFC
>
> 3 for Provider 30 Channels, Outgoing to Provider with DTMF Incoming From
> Provider with MFC
>
> 4 for Provider 30 Channels, Outgoing to Provider with DTMF Incoming From
> Provider with MFC
>
> 5 for PABX 30 Channels, Outgoing to PABX with MFC Incoming From PABX with
> DTMF
>
> 6 for PABX 30 Channels, Outgoing to PABX with MFC Incoming From PABX with
> DTMF
>
> 7 for PABX 30 Channels, Outgoing to PABX with MFC Incoming From PABX with
> DTMF
>
> 8 for PABX 30 Channels, Outgoing to PABX with MFC Incoming From PABX with
> DTMF
>
>
> here is my newbie confuse configuration
>
>
> [trunkgroups]
>
> [channels]
> context=from-pstn1
> usecallerid=yes
> callwaiting=yes
> usecallingpres=yes
> callwaitingcallerid=yes
> threewaycalling=yes
> transfer=yes
> canpark=yes
> cancallforward=yes
> callreturn=yes
> echocancel=yes
> echocancelwhenbridged=yes
>
> signalling=mfcr2
> mfcr2_variant=cn
> mfcr2_get_ani_first=no
> mfcr2_max_ani=15
> mfcr2_max_dnis=4
> mfcr2_category=national_subscriber
> mfcr2_call_files=yes
> mfcr2_dtmf_dialing=yes
> ;mfcr2_dtmf_detection=no
> ;mfcr2_mfback_timeout=-1
> ;mfcr2_metering_pulse_timeout=-1
> mfcr2_logdir=TRUE
> mfcr2_logging=all
> mfcr2_advanced_protocol_file=/etc/r2proto.conf
>
> group=1
> callgroup=1
> pickupgroup=1
> channel => 1-15,17-31
>
> context=from-pstn2
> usecallerid=yes
> callwaiting=yes
> usecallingpres=yes
> callwaitingcallerid=yes
> threewaycalling=yes
> transfer=yes
> canpark=yes
> cancallforward=yes
> callreturn=yes
> echocancel=yes
> echocancelwhenbridged=yes
>
> signalling=mfcr2
> mfcr2_variant=cn
> mfcr2_get_ani_first=no
> mfcr2_max_ani=15
> mfcr2_max_dnis=4
> mfcr2_category=national_subscriber
> mfcr2_call_files=yes
> mfcr2_dtmf_dialing=yes
> ;mfcr2_dtmf_detection=no
> ;mfcr2_mfback_timeout=-1
> ;mfcr2_metering_pulse_timeout=-1
> mfcr2_logdir=TRUE
> mfcr2_logging=all
> mfcr2_advanced_protocol_file=/etc/r2proto.conf
>
> group=2
> callgroup=2
> pickupgroup=2
> channel => 32-46,48-62
>
> context=from-pstn3
> usecallerid=yes
> callwaiting=yes
> usecallingpres=yes
> callwaitingcallerid=yes
> threewaycalling=yes
> transfer=yes
> canpark=yes
> cancallforward=yes
> callreturn=yes
> echocancel=yes
> echocancelwhenbridged=yes
>
> signalling=mfcr2
> mfcr2_variant=cn
> mfcr2_get_ani_first=no
> mfcr2_max_ani=15
> mfcr2_max_dnis=4
> mfcr2_category=national_subscriber
> mfcr2_call_files=yes
> mfcr2_dtmf_dialing=yes
> ;mfcr2_dtmf_detection=no
> ;mfcr2_mfback_timeout=-1
> ;mfcr2_metering_pulse_timeout=-1
> mfcr2_logdir=TRUE
> mfcr2_logging=all
> mfcr2_advanced_protocol_file=/etc/r2proto.conf
>
> group=3
> callgroup=3
> pickupgroup=3
> channel => 63-77,79-93
>
> context=from-pstn4
> usecallerid=yes
> callwaiting=yes
> usecallingpres=yes
> callwaitingcallerid=yes
> threewaycalling=yes
> transfer=yes
> canpark=yes
> cancallforward=yes
> callreturn=yes
> echocancel=yes
> echocancelwhenbridged=yes
>
> signalling=mfcr2
> mfcr2_variant=cn
> mfcr2_get_ani_first=no
> mfcr2_max_ani=15
> mfcr2_max_dnis=4
> mfcr2_category=national_subscriber
> mfcr2_call_files=yes
> mfcr2_dtmf_dialing=yes
> ;mfcr2_dtmf_detection=no
> ;mfcr2_mfback_timeout=-1
> ;mfcr2_metering_pulse_timeout=-1
> mfcr2_logdir=TRUE
> mfcr2_logging=all
> mfcr2_advanced_protocol_file=/etc/r2proto.conf
>
> group=4
> callgroup=4
> pickupgroup=4
> channel => 94-108,110-124
>
> context=from-pabx1
> usecallerid=yes
> callwaiting=yes
> usecallingpres=yes
> callwaitingcallerid=yes
> threewaycalling=yes
> transfer=yes
> canpark=yes
> cancallforward=yes
> callreturn=yes
> echocancel=yes
> echocancelwhenbridged=yes
>
> signalling=mfcr2
> mfcr2_variant=cn
> mfcr2_get_ani_first=no
> mfcr2_max_ani=15
> mfcr2_max_dnis=15
> mfcr2_category=national_priority_subscriber
> mfcr2_call_files=yes
> mfcr2_dtmf_dialing=no
> mfcr2_dtmf_detection=yes
> ;mfcr2_mfback_timeout=-1
> ;mfcr2_metering_pulse_timeout=-1
> mfcr2_logdir=NEC
> mfcr2_logging=all
> mfcr2_advanced_protocol_file=/etc/r2proto.conf
>
> group=5
> callgroup=5
> pickupgroup=5
> channel => 125-139,141-155
>
> context=from-pabx2
> usecallerid=yes
> callwaiting=yes
> usecallingpres=yes
> callwaitingcallerid=yes
> threewaycalling=yes
> transfer=yes
> canpark=yes
> cancallforward=yes
> callreturn=yes
> echocancel=yes
> echocancelwhenbridged=yes
>
> signalling=mfcr2
> mfcr2_variant=cn
> mfcr2_get_ani_first=no
> mfcr2_max_ani=15
> mfcr2_max_dnis=15
> mfcr2_category=national_priority_subscriber
> mfcr2_call_files=yes
> mfcr2_dtmf_dialing=no
> mfcr2_dtmf_detection=yes
> ;mfcr2_mfback_timeout=-1
> ;mfcr2_metering_pulse_timeout=-1
> mfcr2_logdir=NEC
> mfcr2_logging=all
> mfcr2_advanced_protocol_file=/etc/r2proto.conf
>
> group=6
> callgroup=6
> pickupgroup=6
> channel => 156-170,172-186
>
> context=from-pabx3
> usecallerid=yes
> callwaiting=yes
> usecallingpres=yes
> callwaitingcallerid=yes
> threewaycalling=yes
> transfer=yes
> canpark=yes
> cancallforward=yes
> callreturn=yes
> echocancel=yes
> echocancelwhenbridged=yes
>
> signalling=mfcr2
> mfcr2_variant=cn
> mfcr2_get_ani_first=no
> mfcr2_max_ani=15
> mfcr2_max_dnis=15
> mfcr2_category=national_priority_subscriber
> mfcr2_call_files=yes
> mfcr2_dtmf_dialing=no
> mfcr2_dtmf_detection=yes
> ;mfcr2_mfback_timeout=-1
> ;mfcr2_metering_pulse_timeout=-1
> mfcr2_logdir=NEC
> mfcr2_logging=all
> mfcr2_advanced_protocol_file=/etc/r2proto.conf
>
> group=7
> callgroup=7
> pickupgroup=7
> channel => 187-201,203-217
>
> context=from-pabx4
> usecallerid=yes
> callwaiting=yes
> usecallingpres=yes
> callwaitingcallerid=yes
> threewaycalling=yes
> transfer=yes
> canpark=yes
> cancallforward=yes
> callreturn=yes
> echocancel=yes
> echocancelwhenbridged=yes
>
> signalling=mfcr2
> mfcr2_variant=cn
> mfcr2_get_ani_first=no
> mfcr2_max_ani=15
> mfcr2_max_dnis=15
> mfcr2_category=national_priority_subscriber
> mfcr2_call_files=yes
> mfcr2_dtmf_dialing=no
> mfcr2_dtmf_detection=yes
> ;mfcr2_mfback_timeout=-1
> ;mfcr2_metering_pulse_timeout=-1
> mfcr2_logdir=NEC
> mfcr2_logging=all
> mfcr2_advanced_protocol_file=/etc/r2proto.conf
>
> group=8
> callgroup=8
> pickupgroup=8
> channel => 218-232,234-248
>
> --
> Best regards
>
> Piyawit Khumkrong
>



-- 
Best regards

ปิยวิทย์ คุ้มครอง (เอส)
Piyawit Khumkrong (S)
Technical Department
AISTelebiz Co.,Ltd
Tel.(+66)0-2946-1490 Ext.911
Email:piyawit at aistelebiz.com <piyawit at aistelebiz.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-r2/attachments/20120526/55ba2cd9/attachment-0001.htm>
-------------- next part --------------
Dear all

Now i'm using 1 E1 DTMF-R2 for outgoing call and MFC-R2 for Incoming call with help from Moise

so now i've expand channel to 8 E1( 4 E1 to Provider and 4 E1 to NEC PABX)

then i try to config with copy old config and change the channel range hope it work but some E1 not work

please help me for config chan_dahdi.conf or other files required with this requirement

1 for Provider 30 Channels, Outgoing to Provider with DTMF Incoming From Provider with MFC

2 for Provider first 15 Channels, Outgoing to Provider with DTMF Incoming From Provider with MFC

2 for Provider last 15 Channels, Outgoing to Provider with MFC Incoming From Provider with MFC

3 for Provider 30 Channels, Outgoing to Provider with DTMF Incoming From Provider with MFC

4 for Provider 30 Channels, Outgoing to Provider with DTMF Incoming From Provider with MFC

5 for PABX 30 Channels, Outgoing to PABX with MFC Incoming From PABX with DTMF

6 for PABX 30 Channels, Outgoing to PABX with MFC Incoming From PABX with DTMF

7 for PABX 30 Channels, Outgoing to PABX with MFC Incoming From PABX with DTMF

8 for PABX 30 Channels, Outgoing to PABX with MFC Incoming From PABX with DTMF


here is my newbie confuse configuration


[trunkgroups]

[channels]
context=from-pstn1
usecallerid=yes
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=yes

signalling=mfcr2
mfcr2_variant=cn
mfcr2_get_ani_first=no
mfcr2_max_ani=15
mfcr2_max_dnis=4
mfcr2_category=national_subscriber
mfcr2_call_files=yes
mfcr2_dtmf_dialing=yes
;mfcr2_dtmf_detection=no
;mfcr2_mfback_timeout=-1
;mfcr2_metering_pulse_timeout=-1
mfcr2_logdir=TRUE
mfcr2_logging=all
mfcr2_advanced_protocol_file=/etc/r2proto.conf

group=1
callgroup=1
pickupgroup=1
channel => 1-15,17-31

context=from-pstn2
usecallerid=yes
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=yes

signalling=mfcr2
mfcr2_variant=cn
mfcr2_get_ani_first=no
mfcr2_max_ani=15
mfcr2_max_dnis=4
mfcr2_category=national_subscriber
mfcr2_call_files=yes
mfcr2_dtmf_dialing=yes
;mfcr2_dtmf_detection=no
;mfcr2_mfback_timeout=-1
;mfcr2_metering_pulse_timeout=-1
mfcr2_logdir=TRUE
mfcr2_logging=all
mfcr2_advanced_protocol_file=/etc/r2proto.conf

group=2
callgroup=2
pickupgroup=2
channel => 32-46,48-62

context=from-pstn3
usecallerid=yes
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=yes

signalling=mfcr2
mfcr2_variant=cn
mfcr2_get_ani_first=no
mfcr2_max_ani=15
mfcr2_max_dnis=4
mfcr2_category=national_subscriber
mfcr2_call_files=yes
mfcr2_dtmf_dialing=yes
;mfcr2_dtmf_detection=no
;mfcr2_mfback_timeout=-1
;mfcr2_metering_pulse_timeout=-1
mfcr2_logdir=TRUE
mfcr2_logging=all
mfcr2_advanced_protocol_file=/etc/r2proto.conf

group=3
callgroup=3
pickupgroup=3
channel => 63-77,79-93

context=from-pstn4
usecallerid=yes
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=yes

signalling=mfcr2
mfcr2_variant=cn
mfcr2_get_ani_first=no
mfcr2_max_ani=15
mfcr2_max_dnis=4
mfcr2_category=national_subscriber
mfcr2_call_files=yes
mfcr2_dtmf_dialing=yes
;mfcr2_dtmf_detection=no
;mfcr2_mfback_timeout=-1
;mfcr2_metering_pulse_timeout=-1
mfcr2_logdir=TRUE
mfcr2_logging=all
mfcr2_advanced_protocol_file=/etc/r2proto.conf

group=4
callgroup=4
pickupgroup=4
channel => 94-108,110-124

context=from-pabx1
usecallerid=yes
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=yes

signalling=mfcr2
mfcr2_variant=cn
mfcr2_get_ani_first=no
mfcr2_max_ani=15
mfcr2_max_dnis=15
mfcr2_category=national_priority_subscriber
mfcr2_call_files=yes
mfcr2_dtmf_dialing=no
mfcr2_dtmf_detection=yes
;mfcr2_mfback_timeout=-1
;mfcr2_metering_pulse_timeout=-1
mfcr2_logdir=NEC
mfcr2_logging=all
mfcr2_advanced_protocol_file=/etc/r2proto.conf

group=5
callgroup=5
pickupgroup=5
channel => 125-139,141-155

context=from-pabx2
usecallerid=yes
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=yes

signalling=mfcr2
mfcr2_variant=cn
mfcr2_get_ani_first=no
mfcr2_max_ani=15
mfcr2_max_dnis=15
mfcr2_category=national_priority_subscriber
mfcr2_call_files=yes
mfcr2_dtmf_dialing=no
mfcr2_dtmf_detection=yes
;mfcr2_mfback_timeout=-1
;mfcr2_metering_pulse_timeout=-1
mfcr2_logdir=NEC
mfcr2_logging=all
mfcr2_advanced_protocol_file=/etc/r2proto.conf

group=6
callgroup=6
pickupgroup=6
channel => 156-170,172-186

context=from-pabx3
usecallerid=yes
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=yes

signalling=mfcr2
mfcr2_variant=cn
mfcr2_get_ani_first=no
mfcr2_max_ani=15
mfcr2_max_dnis=15
mfcr2_category=national_priority_subscriber
mfcr2_call_files=yes
mfcr2_dtmf_dialing=no
mfcr2_dtmf_detection=yes
;mfcr2_mfback_timeout=-1
;mfcr2_metering_pulse_timeout=-1
mfcr2_logdir=NEC
mfcr2_logging=all
mfcr2_advanced_protocol_file=/etc/r2proto.conf

group=7
callgroup=7
pickupgroup=7
channel => 187-201,203-217

context=from-pabx4
usecallerid=yes
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=yes

signalling=mfcr2
mfcr2_variant=cn
mfcr2_get_ani_first=no
mfcr2_max_ani=15
mfcr2_max_dnis=15
mfcr2_category=national_priority_subscriber
mfcr2_call_files=yes
mfcr2_dtmf_dialing=no
mfcr2_dtmf_detection=yes
;mfcr2_mfback_timeout=-1
;mfcr2_metering_pulse_timeout=-1
mfcr2_logdir=NEC
mfcr2_logging=all
mfcr2_advanced_protocol_file=/etc/r2proto.conf

group=8
callgroup=8
pickupgroup=8
channel => 218-232,234-248


More information about the asterisk-r2 mailing list