I’m currently working on collecting and processing AMI events. Sometimes events seems to be merged together.
I’ve checked with wireshark, and the events are also merged in the capture, most likely they get merged in Asterisk.
An example looks like this, where a LocalOptimizationBegin gets merged with a Newexten event. This is just one example, but the types of event does not seem to be important, as it happens with all event types.
Any idea what’s happening, and if there’s a setting I can tweak to make it happen less? I have around 100000 event per hour, on average, if the volume of events generated has anything to do with it.
Event: LocalOptimizationBegin Privilege: call,all LocalOneChannel: Local/PhoneNumber1@customerID1-Context1-000007e0;1 LocalOneChannelState: 6 LocalOneChannelStateDesc: Up LocalOneCallerIDNum: PhoneNumber3 LocalOneCallerIDName: <unknown> LocalOneConnectedLineNum: +45PhoneNumber2 LocalOneConnectedLineName: PhoneNumber2 LocalOneLanguage: da LocalOneAccountCode: LocalOneContext: customerID1-Context1 LocalOneExten: s LocalOnePriority: 1 LocalOneUniqueid: 1686561065.12584 LocalOneLinkedid: 1686561065.12576 LocalTwoChannel: Local/PhoneNumber1@customerID1-Context1-000007e0;2 LocalTwoChannelState: 6 LocalTwoChannelStateDesc: Up LocalTwoCallerIDNum: +45PhoneNumber2 LocalTwoCallerIDName: PhoneNumber2 LocalTwoConnectedLineNum: PhoneNumber3 LocalTwoConnectedLineName: <unknown> LocalTwoLanguage: da LocalTwoAccountCode: LocalTwoContext: customerID1-inboundToCellphone LocalTwoExten: PhoneNumber1 LocalTwoPriority: 15 LocalTwoUniqueid: 1686561065.12585 LocalTwoLinkedid: 1686561065.12576 SourceChannel: PJSIP/customerID1-PhoneNumber1-00000bda SourceChannelState: 6 SourceChannelStateDesc: Up SourceCallerIDNum:Event: Newexten Privilege: dialplan,all Channel: Local/Extension1@customerID1-Context1-000007df;2 ChannelState: 4 ChannelStateDesc: Ring CallerIDNum: +45PhoneNumber2 CallerIDName: PhoneNumber2 ConnectedLineNum: PhoneNumber3 ConnectedLineName: <unknown> Language: da AccountCode: Context: Context2 Exten: h Priority: 3 Uniqueid: 1686561065.12583 Linkedid: 1686561065.12576 Extension: h Application: Hangup AppData: 16