<div>Earl</div>
<div> </div>
<div>Thanks for the answer, I am currently looking at it, and it looks like it does not solve all my problems (Asterisk-wise, that is), but it is surely a big step on the way.</div>
<div> </div>
<div>Michael<br><br> </div>
<div><span class="gmail_quote">2006/8/24, Earl Terwilliger <<a href="mailto:earlt@unete.com.ve">earlt@unete.com.ve</a>>:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Michael,<br><br>you might take a look at this, as it does most of that + more:<br><br> <a href="http://micpc.com/eventmonitor/">
http://micpc.com/eventmonitor/</a><br><br>earl<br><br>On Thursday 24 August 2006 14:17, Mir wrote:<br>> Hi<br>><br>> I'm working on a project, where I need the status of every telephone on the<br>> system. (Idle,ringing,busy)
<br>> If a phone is busy, I also need to know the callerid of the other end.<br>><br>> I have made a deamon, which query Asterisk every second for active calls,<br>> this works by issuing a "Status" to the manager-interface, and processing
<br>> the return data and then put the result into a MySQL table.<br>><br>> The clients will query the MySQL table every second for the state of their<br>> phone, if there are no records with their numbers in it, they are
<br>> considered idle.<br>><br>> This works fine for calls from one SIP-phone to the other, this is for<br>> instance what it look like when extension 310 is connected to extension<br>> 311:<br>><br>>
<br>> 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<br>><br>><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<br>><br>> That is pretty easy to decode.<br>><br>> However when an external call is made to a SIP-phone, the result is
<br>> different, this is a call from another Asterisk via an IAX trunk:<br>><br>> 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<br>><br>><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<br>><br>> The actual callerid of the caller is 3536121, 35254390 is the called
<br>> number.<br>><br>> How do I get the information, that 35436121 is connected to 311?<br>><br>> Am I doing it in a stupid way, I'm aware that the Manager can give me<br>> realtime events, but I'm under the impression, that it is not very stable
<br>> in a high traffic environment?<br>><br>> Any help or good ideas would be appriceated.<br>><br>> Michael<br>_______________________________________________<br>--Bandwidth and Colocation provided by <a href="http://Easynews.com">
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">http://lists.digium.com/mailman/listinfo/asterisk-users
</a><br></blockquote></div><br>