<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Multiple Server configuration - trunk issue]]></title><description><![CDATA[<p dir="auto">I have a client with two Asterisk Servers (both running Freepbx)</p>
<p dir="auto">FOP2 is working well, showing status of callers on both systems very well.</p>
<p dir="auto">The issue is with the status of the trunks (one in Australia labelled Dahdi-syd and the one in New Zealand called Dahdi-nz).</p>
<p dir="auto">The Australian trunk is an 10 Channel ISDN/E1/T1 (Dahdi1-10), the New Zealand one is 3 PSTN lines (Dahdi 2-4).</p>
<p dir="auto">The important parts of the configuration are below for both buttons.cfg and fop2.cfg. Naturally we are not using the auto-config due to the two servers.</p>
<p dir="auto"><strong>The issue is, that all the calls are showing that they are going out via the Dahdi-nz (which they are not - checked).</strong></p>
<p dir="auto">Could you explain further what the server1 and server2 variables are and what they effect. As you can see, from your instructions, I have added them. How are they used? and should there be a matching server variable in the FOP2.cfg so that the FOP2 can differentiate which dahdi line belongs to which server.</p>
<p dir="auto">Hope you can help.....</p>
<p dir="auto">Regards</p>
<p dir="auto">Bob</p>
<h1><strong>current configs following</strong></h1>
<h1>Buttons.cfg</h1>
<p dir="auto">[DAHDI/1]<br />
type=trunk<br />
label=DAHDI-SYD<br />
channel=DAHDI/2<br />
channel=DAHDI/3<br />
channel=DAHDI/4<br />
channel=DAHDI/5<br />
channel=DAHDI/6<br />
channel=DAHDI/7<br />
channel=DAHDI/8<br />
channel=DAHDI/9<br />
channel=DAHDI/10<br />
server=1</p>
<p dir="auto">[DAHDI/1]<br />
type=trunk<br />
label=DAHDI-NZ<br />
channel=DAHDI/2<br />
channel=DAHDI/3<br />
channel=DAHDI/4<br />
server=2</p>
<h1>======================================<br />
fop2.cfg</h1>
<p dir="auto">[general]<br />
; Elastix_AU Server AMI definitions<br />
manager_host=localhost<br />
manager_port=5038<br />
manager_user=fop2user<br />
manager_secret=hill2climb<br />
;event_mask=call,agent</p>
<p dir="auto">; Elastix_NZ Server AMI definitions<br />
manager_host=192.168.0.12<br />
manager_port=5038<br />
manager_user=fop2nzuser<br />
manager_secret=wind2see<br />
;event_mask=call,agent</p>
<p dir="auto">; Daemon definitios<br />
;listen_port      = 4445<br />
;restrict_host    = <a href="http://www.asternic.org" rel="nofollow ugc">www.asternic.org</a><br />
;web_dir          = /var/www/html/operator/fop2</p>
<p dir="auto">; Global Config<br />
language           = en<br />
poll_interval      = 86400<br />
poll_voicemail     = 1<br />
monitor_ipaddress  = 0</p>
<p dir="auto">master_key = 5678</p>
<p dir="auto">; USER LIST<br />
user=870:870:dial,transfer,hangup,pickup,record,meetme<br />
user=860:860:dial,transfer,hangup,pickup,record,meetme<br />
user=850:850:dial,transfer,hangup,pickup,record,meetme<br />
user=561:561:dial,transfer,hangup,pickup,record,meetme<br />
user=560:560:dial,transfer,hangup,pickup,record,meetme<br />
user=562:562:dial,transfer,hangup,pickup,record,meetme<br />
user=854:854:all<br />
user=853:853:dial,transfer,hangup,pickup,record,meetme<br />
user=852:852:dial,transfer,hangup,pickup,record,meetme<br />
user=851:851:dial,transfer,hangup,pickup,record,meetme<br />
user=815:815:dial,transfer,hangup,pickup,record,meetme<br />
user=599:599:dial,transfer,hangup,pickup,record,meetme<br />
user=563:563:dial,transfer,hangup,pickup,record,meetme<br />
user=816:816:dial,transfer,hangup,pickup,record,meetme<br />
user=813:813:dial,transfer,hangup,pickup,record,meetme<br />
user=811:811:dial,transfer,hangup,pickup,record,meetme<br />
user=564:564:dial,transfer,hangup,pickup,record,meetme<br />
user=814:814:dial,transfer,hangup,pickup,record,meetme<br />
user=520:520:dial,transfer,hangup,pickup,record,meetme<br />
user=501:501:dial,transfer,hangup,pickup,record,meetme<br />
;etc...</p>
<p dir="auto">buttonfile=buttons.cfg</p>
<p dir="auto">;#exec <a href="http://autoconfig-users-freepbx.sh" rel="nofollow ugc">autoconfig-users-freepbx.sh</a></p>
]]></description><link>http://localhost:4567/topic/108/multiple-server-configuration-trunk-issue</link><generator>RSS for Node</generator><lastBuildDate>Tue, 27 Oct 2026 04:01:12 GMT</lastBuildDate><atom:link href="http://localhost:4567/topic/108.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 16 Sep 2009 22:34:27 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Multiple Server configuration - trunk issue on Thu, 17 Sep 2009 14:23:38 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for the heads up Nicolas.</p>
<p dir="auto">I was expecting this to be the answer, but wanted to make sure I wasn't missing anything obvious...</p>
<p dir="auto">Regards</p>
<p dir="auto">Bob</p>
]]></description><link>http://localhost:4567/post/519</link><guid isPermaLink="true">http://localhost:4567/post/519</guid><dc:creator><![CDATA[bob]]></dc:creator><pubDate>Thu, 17 Sep 2009 14:23:38 GMT</pubDate></item><item><title><![CDATA[Reply to Multiple Server configuration - trunk issue on Thu, 17 Sep 2009 12:08:00 GMT]]></title><description><![CDATA[<p dir="auto">Hi Bob,</p>
<p dir="auto">This is an architectural limitation in FOP2. It hapens with any channel with the same name on different servers: a call in CHANNEL/NAME on Server 1 and another call in CHANNEL/NAME on server 2 will both match a button with CHANNEL/NAME no matter the server it is configured in the button file. The server in the button file is actually for tellling fop where to send action commands, but not to distinctively identified activity.</p>
<p dir="auto">I might be able to make FOP2 aware of this situation in the future (not in the next release). I wanted to make fop2 super slim and fast, and because of that is that I am not taking into account the server a channel belongs too to account for status. Adding that will hit performance by a BIG factor, like in FOP1.</p>
<p dir="auto">So, for monitoring DAHDI channels in multiple servers, or any other channel technology that shares the name between servers you will have to use two or more fop2 daemons. This is also possible and it should work fine. But you wont be able to display the buttons on the same fop2 screen unless you do some sort of heavy magic with dhtml.</p>
<p dir="auto">Best regards,</p>
]]></description><link>http://localhost:4567/post/518</link><guid isPermaLink="true">http://localhost:4567/post/518</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Thu, 17 Sep 2009 12:08:00 GMT</pubDate></item></channel></rss>