Hi.
I decided to start this new post as obviously all the info from the different systems was mixed up in my previous post [url:bz960r3b]http://www.fop2.com/forum/View Post 1418[/url:bz960r3b]
Starting from Scratch then...
Elastix: 1.6-12
FreePBX: 2.5.2.2
Asterisk: 1.4.26.1
Hardware: Openvox 110P (The E1 link only has 10 channels/lines)
-----------------------------------------------------------------------------------------------------------------
All the calls made on channels 1 to 9 are displayed only in the ZAP/9 button
The calls made on channel 10 is displayed correctly on the Zap/10 button
See results for the 10 DAHDI trunks when running /usr/local/fop2/autoconfig-buttons-freepbx.sh:
...
[ZAP/1]
type=trunk
label=ZAP/1
queuecontext=from-internal
privacy=none
email=splitme-1
channel=DAHDI/1
channel=ZAP/1
rtmp=0
[ZAP/10]
type=trunk
label=ZAP/10
queuecontext=from-internal
privacy=none
email=splitme-10
channel=DAHDI/1
channel=ZAP/1
channel=DAHDI/2
channel=ZAP/2
channel=DAHDI/3
channel=ZAP/3
channel=DAHDI/4
channel=ZAP/4
channel=DAHDI/5
channel=ZAP/5
channel=DAHDI/6
channel=ZAP/6
channel=DAHDI/7
channel=ZAP/7
channel=DAHDI/8
channel=ZAP/8
channel=DAHDI/9
channel=ZAP/9
channel=DAHDI/10
channel=ZAP/10
rtmp=0
...
[ZAP/2]
type=trunk
label=ZAP/2
queuecontext=from-internal
privacy=none
email=splitme-2
channel=DAHDI/1
channel=ZAP/1
channel=DAHDI/2
channel=ZAP/2
rtmp=0
[ZAP/3]
type=trunk
label=ZAP/3
queuecontext=from-internal
privacy=none
email=splitme-3
channel=DAHDI/1
channel=ZAP/1
channel=DAHDI/2
channel=ZAP/2
channel=DAHDI/3
channel=ZAP/3
rtmp=0
[ZAP/4]
type=trunk
label=ZAP/4
queuecontext=from-internal
privacy=none
email=splitme-4
channel=DAHDI/1
channel=ZAP/1
channel=DAHDI/2
channel=ZAP/2
channel=DAHDI/3
channel=ZAP/3
channel=DAHDI/4
channel=ZAP/4
rtmp=0
[ZAP/5]
type=trunk
label=ZAP/5
queuecontext=from-internal
privacy=none
email=splitme-5
channel=DAHDI/1
channel=ZAP/1
channel=DAHDI/2
channel=ZAP/2
channel=DAHDI/3
channel=ZAP/3
channel=DAHDI/4
channel=ZAP/4
channel=DAHDI/5
channel=ZAP/5
rtmp=0
[ZAP/6]
type=trunk
label=ZAP/6
queuecontext=from-internal
privacy=none
email=splitme-6
channel=DAHDI/1
channel=ZAP/1
channel=DAHDI/2
channel=ZAP/2
channel=DAHDI/3
channel=ZAP/3
channel=DAHDI/4
channel=ZAP/4
channel=DAHDI/5
channel=ZAP/5
channel=DAHDI/6
channel=ZAP/6
rtmp=0
[ZAP/7]
type=trunk
label=ZAP/7
queuecontext=from-internal
privacy=none
email=splitme-7
channel=DAHDI/1
channel=ZAP/1
channel=DAHDI/2
channel=ZAP/2
channel=DAHDI/3
channel=ZAP/3
channel=DAHDI/4
channel=ZAP/4
channel=DAHDI/5
channel=ZAP/5
channel=DAHDI/6
channel=ZAP/6
channel=DAHDI/7
channel=ZAP/7
rtmp=0
[ZAP/8]
type=trunk
label=ZAP/8
queuecontext=from-internal
privacy=none
email=splitme-8
channel=DAHDI/1
channel=ZAP/1
channel=DAHDI/2
channel=ZAP/2
channel=DAHDI/3
channel=ZAP/3
channel=DAHDI/4
channel=ZAP/4
channel=DAHDI/5
channel=ZAP/5
channel=DAHDI/6
channel=ZAP/6
channel=DAHDI/7
channel=ZAP/7
channel=DAHDI/8
channel=ZAP/8
rtmp=0
[ZAP/9]
type=trunk
label=ZAP/9
queuecontext=from-internal
privacy=none
email=splitme-9
channel=DAHDI/1
channel=ZAP/1
channel=DAHDI/2
channel=ZAP/2
channel=DAHDI/3
channel=ZAP/3
channel=DAHDI/4
channel=ZAP/4
channel=DAHDI/5
channel=ZAP/5
channel=DAHDI/6
channel=ZAP/6
channel=DAHDI/7
channel=ZAP/7
channel=DAHDI/8
channel=ZAP/8
channel=DAHDI/9
channel=ZAP/9
rtmp=0
-----------------------------------------------------------------------------------------------------------------
Results for 'core show channels' when making a call on the DAHDI/5 trunk
Channel Location State Application(Data)
DAHDI/5-1 (None) Up AppDial((Outgoing Line))
IAX2/260-4912 s@macro-dialout-trun Up Dial(DAHDI/5/04xxxxxxxx|300|TW
NOTE: All the trunks report same format DAHDI/X-1
----------------------------------------------------------------------------------------------------------------
Configuring the field "Zap/Dahdi Channels (Eg: 1-24)" for each trunk under FreePBX - FOP2 Buttons:
If I put just the channel number for every trunk it monitors as described above!
Trunk: OUT_X
Label: ZAP/X
Zap/Dahdi Channels (Eg: 1-24): X
If I put DAHDI/X for every trunk as suggested by you on many posts, it does not monitor any trunk at all
------------------------------------------------------------------------------------------------------------------
I tried configuring the file fop2.cfg and uncommented ;buttonfile=buttons.cfg
I wrote all the button configuration into the file buttons.cfg and modified the trunk buttons as follows (Is this correct???). Restarted service fop2, logged into the GUI and all the buttons are duplicated (No monitoring at all for the DAHDI trunks)
[ZAP/1]
type=trunk
label=ZAP/1
queuecontext=from-internal
privacy=none
email=splitme-1
channel=DAHDI/1
channel=ZAP/1
rtmp=0
[ZAP/10]
type=trunk
label=ZAP/10
queuecontext=from-internal
privacy=none
email=splitme-10
channel=DAHDI/10
channel=ZAP/10
rtmp=0
...
[ZAP/2]
type=trunk
label=ZAP/2
queuecontext=from-internal
privacy=none
email=splitme-2
channel=DAHDI/2
channel=ZAP/2
rtmp=0
[ZAP/3]
type=trunk
label=ZAP/3
queuecontext=from-internal
privacy=none
email=splitme-3
channel=DAHDI/3
channel=ZAP/3
rtmp=0
[ZAP/4]
type=trunk
label=ZAP/4
queuecontext=from-internal
privacy=none
email=splitme-4
channel=DAHDI/4
channel=ZAP/4
rtmp=0
[ZAP/5]
type=trunk
label=ZAP/5
queuecontext=from-internal
privacy=none
email=splitme-5
channel=DAHDI/5
channel=ZAP/5
rtmp=0
[ZAP/6]
type=trunk
label=ZAP/6
queuecontext=from-internal
privacy=none
email=splitme-6
channel=DAHDI/6
channel=ZAP/6
rtmp=0
[ZAP/7]
type=trunk
label=ZAP/7
queuecontext=from-internal
privacy=none
email=splitme-7
channel=DAHDI/7
channel=ZAP/7
rtmp=0
[ZAP/8]
type=trunk
label=ZAP/8
queuecontext=from-internal
privacy=none
email=splitme-8
channel=DAHDI/8
channel=ZAP/8
rtmp=0
[ZAP/9]
type=trunk
label=ZAP/9
queuecontext=from-internal
privacy=none
email=splitme-9
channel=DAHDI/9
channel=ZAP/9
rtmp=0
Thank you