Hi Benny. As I poll the timerheap and the ioqueue with a thread, it seemed works well. Now there is another problem puzzling me. That is when cb.ice_complete() called and op value equals *PJ_ICE_STRANS_OP_INIT* , I thought ICE had already finished candidates gathering. But when I called pj_ice_strans_enum_cands(), the cnt only returned 1(it was host candidate,192.168.0.xxx), which meaning ice didn't update cand[]. The output even if though showed e.g " Binding discovery complete, srflx address is * $SRFLX:$PORT*","TURN allocation complete, relay address is *$IP:$PORT*". So I think there must be something wrong/missing I did, but I have no idea. Woule you plesae guild me more? Thanks very much. Best Regards --- San > hey all. > I'm using ICE module in pjnath. And now I realy need some suggest from you > since that ICE didn't work well as I expected. > > The control flow is about below. > [snip] > > ------------------------------ ----------------------------------------------------------------------------- > I have some problem with pj_ice_init_ice(); > I captured packets using tcpdump, it shows a success binding response from > stun, and a error 401 with turn response,but ICE didn't continue interactive > with turn server(In my opinion, ice_init() should continue send request to > turn server with proper attributes such as nonce, realm,e.g.). ICE also > didn't add mapped address from stun's respnose to a component. > I think there must be a mistake i made. but I have no idea how to do. > Can anyone suggest something for me? > > It should do the things that you asked above. Do you have something, another thread perhaps, that polls the timer heap and the ioqueue? cheers Benny > Thanks very much && best regards! > --- > San > > _______________________________________________ > 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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20090327/5fa2abcd/attachment-0001.html>