<div>What do you mean?</div>
<div> </div>
<div>I'm not looking for someone elses work, I'm developing an application from scratch.</div>
<div> </div>
<div>Michael<br><br> </div>
<div><span class="gmail_quote">2006/8/24, Andrew Kirch <<a href="mailto:AKirch@allthingsit.com">AKirch@allthingsit.com</a>>:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>
<div lang="EN-US" vlink="purple" link="blue">
<div>
<p><font face="Arial" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Umm… Flash operator panel?</span></font></p>
<p><font face="Arial" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"> </span></font></p>
<p><font face="Arial" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Andrew</span></font></p>
<p><font face="Arial" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"> </span></font></p>
<div>
<div style="TEXT-ALIGN: center" align="center"><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">
<hr align="center" width="100%" size="2">
</span></font></div>
<p><b><font face="Tahoma" size="2"><span style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">From:</span></font></b><font face="Tahoma" size="2"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma"> <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:asterisk-dev-bounces@lists.digium.com" target="_blank">
asterisk-dev-bounces@lists.digium.com</a> [mailto:<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:asterisk-dev-bounces@lists.digium.com" target="_blank">asterisk-dev-bounces@lists.digium.com</a>] <b>
<span style="FONT-WEIGHT: bold">On Behalf Of </span></b>Mir<br><b><span style="FONT-WEIGHT: bold">Sent:</span></b> Thursday, August 24, 2006 2:18 PM<br><b><span style="FONT-WEIGHT: bold">To:</span></b> <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:asterisk-users@lists.digium.com" target="_blank">
asterisk-users@lists.digium.com</a>; <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:asterisk-dev@lists.digium.com" target="_blank">asterisk-dev@lists.digium.com</a><br><b><span style="FONT-WEIGHT: bold">
Subject:</span></b> [asterisk-dev] Phone status</span></font></p></div></div>
<div><span class="e" id="q_10d416efb0dafc7b_1">
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt"> </span></font></p>
<div>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">Hi</span></font></p></div>
<div>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt"> </span></font></p></div>
<div>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">I'm working on a project, where I need the status of every telephone on the system. (Idle,ringing,busy)</span></font></p></div>
<div>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">If a phone is busy, I also need to know the callerid of the other end.</span></font></p></div>
<div>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt"> </span></font></p></div>
<div>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">I have made a deamon, which query Asterisk every second for active calls, this works by issuing a "Status" to the manager-interface, and processing the return data and then put the result into a MySQL table.
</span></font></p></div>
<div>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt"> </span></font></p></div>
<div>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">The clients will query the MySQL table every second for the state of their phone, if there are no records with their numbers in it, they are considered idle.
</span></font></p></div>
<div>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt"> </span></font></p></div>
<div>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">This works fine for calls from one SIP-phone to the other, this is for instance what it look like when extension 310 is connected to extension 311:</span>
</font></p></div>
<div>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt"> </span></font></p></div>
<div>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">Event: Status<br>Privilege: Call<br>Channel: SIP/310-08697fb8<br>CallerID: 310<br>CallerIDName: <unknown><br>Account: <br>State: Up<br>Link: SIP/311-0868fd98
<br>Uniqueid: 1156442804.74</span></font></p>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt"><br>Event: Status<br>Privilege: Call<br>Channel: SIP/311-0868fd98<br>CallerID: 311<br>CallerIDName: Snom<br>Account: <br>State: Up<br>Context: macro-vm
<br>Extension: s<br>Priority: 5<br>Seconds: 13<br>Link: SIP/310-08697fb8 <br>Uniqueid: 1156442804.73</span></font></p>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">That is pretty easy to decode.</span></font></p>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">However when an external call is made to a SIP-phone, the result is different, this is a call from another Asterisk via an IAX trunk:</span></font></p>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">Event: Status<br>Privilege: Call<br>Channel: SIP/311-08695698<br>CallerID: 35254390<br>CallerIDName: <unknown><br>Account: <br>State: Up<br>Link: IAX2/MR-1
<br>Uniqueid: 1156442974.76</span></font></p>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt"><br>Event: Status<br>Privilege: Call<br>Channel: IAX2/MR-1<br>CallerID: 35436121<br>CallerIDName: <unknown><br>Account: <br>State: Up<br>Context: macro-vm
<br>Extension: s<br>Priority: 5<br>Seconds: 9<br>Link: SIP/311-08695698 <br>Uniqueid: 1156442974.75</span></font></p>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">The actual callerid of the caller is 3536121, 35254390 is the called number.</span></font></p>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">How do I get the information, that 35436121 is connected to 311?</span></font></p>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">Am I doing it in a stupid way, I'm aware that the Manager can give me realtime events, but I'm under the impression, that it is not very stable in a high traffic environment?
</span></font></p>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">Any help or good ideas would be appriceated.</span></font></p>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">Michael</span></font></p>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt"> </span></font></p></div>
<div>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt"> </span></font></p></div>
<div>
<p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt"> </span></font></p></div></span></div>
<div></div></div></div><br>_______________________________________________<br>--Bandwidth and Colocation provided by <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://easynews.com/" target="_blank">Easynews.com
</a> --<br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br> <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">
http://lists.digium.com/mailman/listinfo/asterisk-users</a><br><br><br></blockquote></div><br>