tloginbr-pjsip at yahoo.com.br wrote: > thanks for the reply. Do you think it would be > possible for me to create some threads to handle this > events in my application instead of using pjsua's > thread? I'm thinking of creating some threads at Sure. > startup that would stay sleeping until I send one > event for it to do the database code or other things > that could take long. I just don't know how to send > this events to the thread... but I think I'll find > some way. I just want to know if you think its > possible or is there any problem with the idea. There is no problem with this, and I know some people are using this approach too. But you need to be careful with avoiding deadlock, if you have mutex in your application. In general, you need to make sure that your mutex and pjsip's mutex are acquired in uniform order. cheers, -benny > thanks a lot, > > Thiago >> Hi Thiago,