ivahaev/amigo

Setting an event's "Time" received overwrites the "Time" field in some events

Closed this issue · 1 comments

When an event is received by amigo, looks like the time that the event is received is being set in the "Time" field. However, this overwrites some values that are expected in the event. Specifically, the "Time" value sent in PeerStatus events: https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+ManagerEvent_PeerStatus

amigo/ami.go

Line 396 in dc43221

event["Time"] = time.Now().Format(time.RFC3339Nano)

Thank you for finding this issue. I think, the best way to eliminate it is rename Time key to another. For example AmigoTime.