<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0pt;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-margin-top-alt:auto;
        margin-right:0pt;
        mso-margin-bottom-alt:auto;
        margin-left:0pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
p
        {mso-margin-top-alt:auto;
        margin-right:0pt;
        mso-margin-bottom-alt:auto;
        margin-left:0pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-AU link=blue vlink=blue>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>I guess what Andrew was saying is what are
you trying to do specifically that Flash Operator Panel doesn’t already give
you<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<div>
<p class=MsoPlainText style='margin:0pt;margin-bottom:.0001pt'><font size=2
color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:navy'> </span></font><font color=navy><span style='color:navy'><o:p></o:p></span></font></p>
<p class=MsoPlainText style='margin:0pt;margin-bottom:.0001pt'><font size=2
color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:navy'>Cheers,<o:p></o:p></span></font></p>
<p class=MsoPlainText style='margin:0pt;margin-bottom:.0001pt'><font size=2
color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:navy'>Dean</span></font><o:p></o:p></p>
</div>
<div style='border:none;border-left:solid blue 1.5pt;padding:0pt 0pt 0pt 4.0pt'>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span lang=EN-US
style='font-size:10.0pt;font-family:Tahoma;font-weight:bold'>From:</span></font></b><font
size=2 face=Tahoma><span lang=EN-US style='font-size:10.0pt;font-family:Tahoma'>
asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] <b><span style='font-weight:
bold'>On Behalf Of </span></b>Mir<br>
<b><span style='font-weight:bold'>Sent:</span></b> Thursday, 24 August 2006
2:48 PM<br>
<b><span style='font-weight:bold'>To:</span></b> Asterisk Users Mailing List -
Non-Commercial Discussion<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [asterisk-users] RE:
[asterisk-dev] Phone status</span></font><span lang=EN-US><o:p></o:p></span></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>What do you mean?<o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>I'm not looking for someone elses work, I'm developing an application
from scratch.<o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Michael<br>
<br>
<o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><span class=gmailquote><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>2006/8/24, Andrew Kirch <<a
href="mailto:AKirch@allthingsit.com">AKirch@allthingsit.com</a>>:</span></font></span>
<o:p></o:p></p>
<div>
<div vlink=purple link=blue>
<div>
<p><font size=2 color=navy face=Arial><span lang=EN-US style='font-size:10.0pt;
font-family:Arial;color:navy'>Umm… Flash operator panel?</span></font><span
lang=EN-US><o:p></o:p></span></p>
<p><font size=2 color=navy face=Arial><span lang=EN-US style='font-size:10.0pt;
font-family:Arial;color:navy'> </span></font><span lang=EN-US><o:p></o:p></span></p>
<p><font size=2 color=navy face=Arial><span lang=EN-US style='font-size:10.0pt;
font-family:Arial;color:navy'>Andrew</span></font><span lang=EN-US><o:p></o:p></span></p>
<p><font size=2 color=navy face=Arial><span lang=EN-US style='font-size:10.0pt;
font-family:Arial;color:navy'> </span></font><span lang=EN-US><o:p></o:p></span></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'>
<hr size=2 width="100%" align=center>
</span></font></div>
<p><b><font size=2 face=Tahoma><span lang=EN-US style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span lang=EN-US style='font-size:10.0pt;font-family:Tahoma'> <a
href="mailto:asterisk-dev-bounces@lists.digium.com" target="_blank">asterisk-dev-bounces@lists.digium.com</a>
[mailto:<a 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
href="mailto:asterisk-users@lists.digium.com" target="_blank">asterisk-users@lists.digium.com</a>;
<a 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><span lang=EN-US><o:p></o:p></span></p>
</div>
</div>
<div><span id="q_10d416efb0dafc7b_1">
<p><font size=3 face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'> <o:p></o:p></span></font></p>
<div>
<p><font size=3 face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'>Hi<o:p></o:p></span></font></p>
</div>
<div>
<p><font size=3 face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'> <o:p></o:p></span></font></p>
</div>
<div>
<p><font size=3 face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'>I'm
working on a project, where I need the status of every telephone on the system.
(Idle,ringing,busy)<o:p></o:p></span></font></p>
</div>
<div>
<p><font size=3 face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'>If
a phone is busy, I also need to know the callerid of the other end.<o:p></o:p></span></font></p>
</div>
<div>
<p><font size=3 face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'> <o:p></o:p></span></font></p>
</div>
<div>
<p><font size=3 face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'>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. <o:p></o:p></span></font></p>
</div>
<div>
<p><font size=3 face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'> <o:p></o:p></span></font></p>
</div>
<div>
<p><font size=3 face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'>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. <o:p></o:p></span></font></p>
</div>
<div>
<p><font size=3 face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'> <o:p></o:p></span></font></p>
</div>
<div>
<p><font size=3 face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'>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: <o:p></o:p></span></font></p>
</div>
<div>
<p><font size=3 face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'> <o:p></o:p></span></font></p>
</div>
<div>
<p><font size=3 face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'>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<o:p></o:p></span></font></p>
<p><font size=3 face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'><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<o:p></o:p></span></font></p>
<p><font size=3 face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'>That
is pretty easy to decode.<o:p></o:p></span></font></p>
<p><font size=3 face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'>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:<o:p></o:p></span></font></p>
<p><font size=3 face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'>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<o:p></o:p></span></font></p>
<p><font size=3 face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'><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<o:p></o:p></span></font></p>
<p><font size=3 face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'>The
actual callerid of the caller is 3536121, 35254390 is the called number.<o:p></o:p></span></font></p>
<p><font size=3 face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'>How
do I get the information, that 35436121 is connected to 311?<o:p></o:p></span></font></p>
<p><font size=3 face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'>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? <o:p></o:p></span></font></p>
<p><font size=3 face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'>Any
help or good ideas would be appriceated.<o:p></o:p></span></font></p>
<p><font size=3 face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'>Michael<o:p></o:p></span></font></p>
<p><font size=3 face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'> <o:p></o:p></span></font></p>
</div>
<div>
<p><font size=3 face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'> <o:p></o:p></span></font></p>
</div>
<div>
<p><font size=3 face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'> <o:p></o:p></span></font></p>
</div>
</div>
</div>
</div>
</span>
<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'><br>
_______________________________________________<br>
--Bandwidth and Colocation provided by <a href="http://easynews.com/"
target="_blank">Easynews.com </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>
<br>
<o:p></o:p></span></font></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
</div>
</div>
</body>
</html>