Hi, ... /* Initialize stream info formats */ info.type = PJMEDIA_TYPE_AUDIO; info.dir = dir; pj_memcpy(&info.fmt, codec_info, sizeof(pjmedia_codec_info)); info.tx_pt = codec_info->pt; info.ssrc = pj_rand(); ... Did you mean pj_rand() always return the same value at your os for first time calling when you launch the program many times ? I guess It is true for pj_rand() because it maybe use the same seed for different sessions.But it is ok for the same session. I try Rand.c at pjlib-test, it works well. regards, Gang On Tue, Jul 29, 2008 at 5:36 PM, Klaus Darilion < klaus.mailinglists at pernau.at> wrote: > Nevermind - I just found it myself. > > regards > klaus > > Klaus Darilion schrieb: > > > > Benny Prijono schrieb: > >> On Tue, Jul 29, 2008 at 9:44 AM, Klaus Darilion > >> <klaus.mailinglists at pernau.at <mailto:klaus.mailinglists at pernau.at>> > wrote: > >> > >> Hi Benny! > >> > >> Every time I start the streamutil.c sample the SSRC in the RTP > header is > >> always the same - even on different PCs. Do I have to initialize the > >> random generator before to get random SSRCs? > >> > >> > >> Yep. This would normally be done by pjsua-lib, but since you don't use > >> it then it must be done by the application. > > > > Any pointers how to do this? > > > > _______________________________________________ > > 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080731/cf375862/attachment.html