I found it. The problem is: The reference to the object containing the callback was being cleared. Thanks. 2009/5/28 David Clark <vdc1048 at tx.rr.com> > Don't know what the problem is. But a couple questions: > When this happens if you call the box from a sip phone application like > sjphone does > it receive the invite message? > > Personally I wonder if your pjsua thread is getting blocked and thus once > that happens nothing much happens after that. > Take debug level to level 6 both at compile time and run time and prepare > for big log files if you want look for that type of > issue. > > Question about your callback functions: > Do they call pjsua functions like recorder or player destroy? If so you > can look for an issue there. What I have seen is > this. conference.c get_frame() is pushing audio and locks the conf mutex. > If you get a callback while this is happening, > and your callback does a destroy function or a conference function. Your > pjsua thread will become blocked, because your > callback will block. > > Just a few thoughts...but mutex debugging is worth a shot. debug level 6 > just to rule it out. > > David Clark > > > At 04:47 PM 5/22/2009, Daniel Rodrigo de Freitas Apolinario wrote: > > Content-Type: multipart/related; type="multipart/alternative"; > boundary="----_=_NextPart_001_01C9DB27.11E65ECC" > Content-class: urn:content-classes:message > > Hello, > > We are using pjsip library(the same used by Sipek) to develop a SIP client, > but we`re having problems with callbacks. The callbacks are called in the > first times that we are doing calls, but after some times (there isn?t a > standard) the callbacks never more are invoked. > We think this problem is about threads but we already tried a lot of > modifications in the code and none of them resolved. > > Any idea for this problem ? > > > [image: cid:image001.jpg at 01C9230B.EA733140] > *Daniel Apolin?rio > Analista de Sistemas > Fone:* 55 (19) 3833-7059 > daniel.rodrigo at call.inf.br www.call.inf.br > *L?der nacional em ?tica, transpar?ncia e respeito ao cliente > * > > > > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip at lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip at lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > > -- Luis Antonio Dias de S? Junior -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20090528/c492aafc/attachment-0001.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 25233 bytes Desc: not available URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20090528/c492aafc/attachment-0001.jpe>