<br>
<br>
--John<br>
<br>
<br>
<a class="moz-txt-link-abbreviated"
href="mailto:asterisk-users at rogg.is">asterisk-users at
rogg.is</a> wrote:
<blockquote cite="mid:027b01c8168d$5f0cbfd0$1d263f70$@is"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
">
<meta name="Generator" content="Microsoft Word 12 (filtered
medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;}
@page Section1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
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]-->
<div class="Section1">
<p class="MsoNormal">Hi.<o:p></o:p></p>
<p class="MsoNormal"><o:p>??</o:p></p>
<p class="MsoNormal">I???d like to get access to the CDR???s
generated by
Asterisk (1.4) in real-time from a remote connection coming in on TCP.
Basically what I have is a Windows application that is used to process
incoming, outgoing and missed call records putting them into a database
for
some analysing etc. This app can connect to a TCP server and read from
this
connection the CDR???s as they?? are coming in (being
generated).<o:p></o:p></p>
<p class="MsoNormal"><o:p>??</o:p></p>
<p class="MsoNormal">I can???t find this as a ???feature??? of
the
standard Asterisk... but maybe I???m missing something? The closest I
could
get is something around the manager api but it???s not really what I???m
after. I???d like to access the CDR???s them
selves.<o:p></o:p></p>
<p class="MsoNormal"><o:p>??</o:p></p>
<p class="MsoNormal">Being a (more or less) novice Linux user
the
only thing I
can think of is trying to do this using Perl scripts where it would set
up a
listening socket and when connection is received it would do something
like (in
princip, not managed to do this properly yet):<o:p></o:p></p>
<p class="MsoNormal"><o:p>??</o:p></p>
<p class="MsoNormal">...<o:p></o:p></p>
<p class="MsoNormal">print $connection `tail ???f
/var/log/asterisk/cdr-custom/Master.csv`<o:p></o:p></p>
<p class="MsoNormal">...<o:p></o:p></p>
<p class="MsoNormal"><o:p>??</o:p></p>
<p class="MsoNormal">But even this is full of issues to solve.
Things
like only
one connection at a time (which I can live with) from the remote
computer. The
fact that tail will not write to the socket (yeah, a major issue
probably)
which I???m thinking of trying to solve by reading line by line somehow
and
writing back to the socket... not even sure if this is
possible.<o:p></o:p></p>
<p class="MsoNormal"><o:p>??</o:p></p>
<p class="MsoNormal">So basically I???m hoping someone has a
nice
solution
for this. With or witout scripting, external programs of some sort
(runnin
ubuntu 7.04 or 6.06) or whatever works. I???d really appreciate your
input
here.<o:p></o:p></p>
<p class="MsoNormal"><o:p>??</o:p></p>
<p class="MsoNormal">Sincerely,
Baldvin<o:p></o:p></p>
<p class="MsoNormal"><o:p>??</o:p></p>
</div>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
--Bandwidth and Colocation Provided by <a
class="moz-txt-link-freetext"
href="http://www.api-digital.com">http://www.api-digital.com</a>--
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
<a class="moz-txt-link-freetext"
href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a></pre>
</blockquote>
<br>
</body>
</html>