Re: [Asterisk-java-users] Multiple CDR events for a single call
Brought to you by:
srt
From: Stefan R. <sr...@re...> - 2006-04-21 09:15:58
|
Thameem Ansari wrote: > I am getting into a weired situation.. I am using manager API to receiv= e > the cdr events from asterisk and for a single call sometimes I receive > 2-3 events. If I use asterisk standalone and write cdr to cdr table > (asterisk doing it) its not happening. So, I am thinking this is either= > the threading issue in the listener.. Do you have any idea? please verify whether Asterisk is sending the event multiple times or only your code receives it multiple times. You can do so by watching the Manager API output directly using telnet to your pbx on port 5038 and typing Action: Login Username: <username> Secret: <password> followed by a newline. Then you see all the events that Asterisk is sending. Onother option is to use ngrep (http://ngrep.sourceforge.net/) to sniff for the Manager API traffic. Run ngrep either on the pbx or on the box where you run your application. Example: ngrep -s 4000 port 5038 -T =3DStefan --=20 reuter network consulting Neusser Str. 110 50760 Koeln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: sr...@re... |