Tzafrir Cohen wrote: > I wonder what happens with incoming events when a callback is called: > > add_default_event_callback > > $astman->add_default_event_callback(\&debug_events) > > Add a callback for all events that don't have an callback set. > > When I handled a callback: should I handle the single even and return > immediately? How can I accept a series of events? e.g. the SipPeers > (sp?) >
Each event is triggered separately. With event-series, there is usually some event that states that it's the end of a series, like QueueStatusComplete after a QueueStatus-call. So, yes, you should return when you have handled the single packet you get. Hmm, maybe a lack of documentation, but you get a hash-ref in the callback :-) /F --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
