[Freeswitch-dev] sleep()

Lists lists at collisters.com
Sun Oct 6 18:20:58 MSD 2013


Thanks Anthony,

That worked for me and your suggestion has saved me a good deal of time, however I would like to understand more about how the core functions work, so far I have looked at apps like mod_fsk to try to work out RTP packet handling.
I think it would be great if we had a module developers handbook that gave a detailed explanation of how the core components work together.

all the best Paul C.


On 1 Oct 2013, at 16:19, Anthony Minessale <anthony.minessale at gmail.com> wrote:

> Just putting the channel in a loop calling switch_read_frame() is an ample way to keep the channel idle.  
> That really is all switch_sleep does but you can't call it from some other thread.  The session thread must call it.
> You should never call any functions on a session from some other thread unless it is not related to media and even then should be used sparingly.
> 
> 




Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-dev mailing list