<div dir="ltr">It seems very good! I am going to test it when I have a bit of time!<div><br></div><div>Leandro</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/11/14 Ryan Wagoner <span dir="ltr"><<a href="mailto:rswagoner@gmail.com" target="_blank">rswagoner@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I haven't tried it, but the res_corosync module states it will sync device state across servers.<br>
<br><a href="https://wiki.asterisk.org/wiki/display/AST/Corosync" target="_blank">https://wiki.asterisk.org/wiki/display/AST/Corosync</a><br>
</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Nov 14, 2013 at 3:54 AM, Leandro Dardini <span dir="ltr"><<a href="mailto:ldardini@gmail.com" target="_blank">ldardini@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Aligning presence over multiple servers is not simple and require some changes on the dialplan and some custom code to transmit the state from one server to the other.<div>

<br></div><div>The BLF on the phone is displayed using the "hint" of an extension. To be able to manually manage the "hint" of an extension, you need to first link the internal hint to the Custom hint. In the extensions.conf just add:</div>


<div><br></div><div>exten => _.,hint,Custom:${EXTEN}<br></div><div><br></div><div>I was unable to create the same entry in the AEL language or in the realtime extensions table... if any was able, I will appreciate.</div>


<div><br></div><div>If a phone want to know the status for the 100-TEST sip account, it will poll the hint for 100-TEST and in the end, it will check the status for Custom:100-TEST.</div><div><br></div><div>Now you need an application to capture the change in status of every extension on server A and send it to server B, so the Custom:100-TEST will have the same value on both servers.</div>


<div><br></div><div>I solved this problem creating a small pair of php application, using Asterisk Manager Interface to continuously listen to events. If I see a phone dialing out, I change its Custom state to IN_USE... if he hangups, I change the state back to AVAILABLE ... if it is ringing, I change the state in RINGING and so on. You need to take into account multiple calls can be made by the same phone and so it is not really so straightforward. When the php AMI application identify a change in the state for a phone, it notifies the same application running on the other server about the change, so both asterisk are taken aligned.</div>


<div><br></div><div>Let me know if you need additional details.</div><div><br></div><div>Leandro</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/11/13 Lincoln King-Cliby <span dir="ltr"><<a href="mailto:lincoln@controlworks.com" target="_blank">lincoln@controlworks.com</a>></span><br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div link="#0563C1" vlink="#954F72" lang="EN-US"><div><p class="MsoNormal">Hi All, <u></u><u></u></p>
<p class="MsoNormal">
<u></u> <u></u></p><p class="MsoNormal">We’ve been running Asterisk for years in our offices but just recently replaced an Asterisk Appliance* in our smaller office with an actual server, upgraded the server in hardware in our HQ location and upgrading both ends to 11.5.0 with Gareth’s patch for Cisco phones. <u></u><u></u></p>


<p class="MsoNormal">99.99% of our endpoints are Cisco 7961Gs. <u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Each office is more-or-less standalone for ease of management and fault tolerance but we have a unified dialplan and SIP “trunking” from site to site via our VPN. <u></u><u></u></p>


<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Everything presence related works wonderfully for local users, but I’m hoping there’s a way we could get presence for the people “at the other end of the pipe” fairly transparently. <u></u><u></u></p>


<p class="MsoNormal">We have a lot of cross-office collaboration, and our office manager/receptionist (who has the battleship of a 7961G+7914+7914 BLF) would love to “at a glance” know if the remote folks are available for a call or not. <u></u><u></u></p>


<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I’m sure this has been covered, but my Googlefu us turning up a ton of redundant, old, and deprecated information so I’ve resorted to asking here. <u></u><u></u></p>


<p class="MsoNormal">From what I have found it sounds like it may be “easier” with IAX2 but my experiments with IAX2 haven’t yielded wonderful results and management prefers “SIP everywhere” <u></u><u></u></p><p class="MsoNormal">


<u></u> <u></u></p><p class="MsoNormal">If anyone has any pointers I’d greatly appreciate it – thanks in advance! <u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Lincoln<u></u><u></u></p><p class="MsoNormal">


<u></u> <u></u></p><p class="MsoNormal">*- One of the worst IT decisions I’ve made for better or worse. Looked good on paper; in practice not a good idea for anything beyond a very simple SOHO. <u></u><u></u></p><p class="MsoNormal">


--<u></u><u></u></p><p class="MsoNormal">Lincoln King-Cliby, CTS, DMC-D, CCMP-S<u></u><u></u></p><p class="MsoNormal">Commercial Market Director<u></u><u></u></p><p class="MsoNormal">Sr. Systems Architect | Crestron Certified Master Programmer (Silver) <u></u><u></u></p>


<p class="MsoNormal">V: <a href="tel:440.449.1100%20x1107" value="+14404491100" target="_blank">440.449.1100 x1107</a> F: <a href="tel:440-449-1106" value="+14404491106" target="_blank">440-449-1106</a> I: <a href="http://www.controlworks.com/" target="_blank">http://www.controlworks.com</a><u></u><u></u></p>


<p class="MsoNormal">Crestron Services Provider<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p></div></div><br></div></div><span><font color="#888888">--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
               <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></font></span></blockquote></div><br></div>
<br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
               <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br></div>
</div></div><br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
               <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br></div>