We’re using the Java Manager API in an application that’s running in Tomcat. The API calls are logged to the tomcat_log.* files in Tomcat’s log directory.
I have what seem to be duplicate log entries but at different times. Here’s an example of the ANSWER command. I see it being executed here:
2012-03-30 10:06:55,763 [Asterisk-Java ManagerConnection-40298-Reader-0] INFO org.asteriskjava.manager.internal.EventBuilderImpl - No event class registered for event type 'agiexec', attributes: {subevent=Start, commandid=828137247, event=AGIExec, privilege=agi,all, command=ANSWER, channel=SIP/veracity-0000e4f1}
2012-03-30 10:06:55,763 [Asterisk-Java ManagerConnection-40298-Reader-0] INFO org.asteriskjava.manager.internal.EventBuilderImpl - No event class registered for event type 'agiexec', attributes: {result=Success, subevent=End, commandid=828137247, resultcode=200, event=AGIExec, privilege=agi,all, command=ANSWER, channel=SIP/veracity-0000e4f1}
But then also here, four seconds later:
2012-03-30 10:06:59,218 [Asterisk-Java ManagerConnection-40295-Reader-0] INFO org.asteriskjava.manager.internal.EventBuilderImpl - No event class registered for event type 'agiexec', attributes: {subevent=Start, commandid=828137247, event=AGIExec, privilege=agi,all, command=ANSWER, channel=SIP/veracity-0000e4f1}
2012-03-30 10:06:59,218 [Asterisk-Java ManagerConnection-40295-Reader-0] INFO org.asteriskjava.manager.internal.EventBuilderImpl - No event class registered for event type 'agiexec', attributes: {result=Success, subevent=End, commandid=828137247, resultcode=200, event=AGIExec, privilege=agi,all, command=ANSWER, channel=SIP/veracity-0000e4f1}
We have people who say they get called multiple times, however, I only show one call in our log files. Unless I’m reading it right, I do show, however, what look like duplicated commands in the Asterisk logs.
Am I really unintentionally spawning two phone calls? If not, how should I be reading/interpreting these log files?
Thanks in advance!