number of pending events

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tloginbr-pjsip at yahoo.com.br wrote:
> Hi, is there a way to get the number of events pending
> to be treated by the application (incoming calls, wav
> EOF, media state etc)? I'm trying to benchmark my
> application sending a large number of calls per second
> and it would be very useful to know how many events
> are being queued if I send too many calls. I can see
> it happening when I send a large amount of calls per
> second and my application takes too long to treat
> them, because if I stop sending calls, the application
> still treats some calls after that. Its kinda like
> this: My code takes about 100 ms to execute
> on_incoming_call event, so if I send more than 10
> calls in one second these calls will accumulate. I
> would like to know how many of this events are
> pending.

We don't have events queue in pjsip, as events will always be 
handled as soon as they arrive. If there is some kind of event 
accumulation, it's probably in the socket's OS buffer.

cheers,
  -benny

> Thanks for all help,
> 
> Thiago





[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux