Hi, I am assigning a callback using pjmedia_wav_player_set_eof_cb(play_file_port, call, &callback_fn). The callback function is being invoked continuously after playing the file. How do I ensure that this callback is called once, after playing the file? See code below: pjmedia_wav_player_port_create(pool, play_file, wav_ptime, PJMEDIA_FILE_NO_LOOP, -1, &play_file_port); pjmedia_wav_player_set_eof_cb(play_file_port, call, &callback_fn pj_status_t callback_fn(pjmedia_port *port, void *info) { printf("Callback invoked!!\n"); return !PJ_SUCCESS; } Thanks, Ramesh -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20081204/eabfeb2e/attachment.html>