[Asterisk-Dev] Anything wrong with sleep()ing in pbx_spool.c
    Mark Spencer 
    markster at digium.com
       
    Mon Oct  6 15:57:56 MST 2003
    
    
  
That bottleneck could be significant.  You should also never sleep() when
you have a channel allocated.  Once ast_waitfor() indicates that there is
something to be read, it should be serviced within a small amount of time.
Mark
On Mon, 6 Oct 2003, James Sharp wrote:
> I added some hacks into pbx_spool.c so I could read a "delay" value from
> the call spool file.  I currently sleep() for that number of seconds
> before placing the outgoing call.  Is this going to affect anything other
> than it might bottleneck the outgoing spool if there's lots of queued up
> calls in it?
> _______________________________________________
> Asterisk-Dev mailing list
> Asterisk-Dev at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-dev
>
    
    
More information about the asterisk-dev
mailing list