Re: [Asterisk-jtapi-users] Asterisk event listener
Status: Beta
Brought to you by:
jwilke
|
From: Jens W. <jw0...@he...> - 2006-05-30 09:12:48
|
On Friday 26 May 2006 18:45, Rolands Mek=C5=A1s wrote:
> I want to write simple program which will log all incoming calls. I'm
> writing following code:
>
> public class MyCallService {
> public static void main(String[] args) throws Exception {
> JtapiPeer peer =3D JtapiPeerFactory.getJtapiPeer(null);
> Provider provider =3D peer.getProvider("Asterisk");
> TextFileEventLogger tfLogger =3D new TextFileEventLogger();
> Terminal terminal =3D provider.getTerminal("123");
> terminal.addCallListener(tfLogger);
> }
> }
Just BTW: I put together some examples how to produce CDRs, look here:
http://asterisk-jtapi.sourceforge.net/xref/com/headissue/jtapi/examples/Pho=
neProtocol.html
Regards,
Jens
=2D-=20
=C2=A0Jens Wilke
=C2=A0 =C2=A0// http://www.headissue.com - headissue GmbH - Munich - Germany
=C2=A0\// =C2=A0"Don't wait for something you have to do yourself"
|