stream_to_call example in docs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



At http://www.pjsip.org/pjsip/docs/html/group__PJSUA__LIB__MEDIA.htm

there is an example of h
w to stream a .wav file to a call.

Here is the code:

 pj_status_t stream_to_call( pjsua_call_id call_id )
 {
 pjsua_player_id player_id;

 status = pjsua_player_create("mysong.wav", 0, NULL, &player_id);
 if (status != PJ_SUCCESS)
 return status;

 status = pjsua_conf_connect( pjsua_player_get_conf_port(),
 pjsua_call_get_conf_port() );
 }


I am guessing that this code was supposed to give a general idea and
not actually compile. How can I play a specific .wav file to a
specific call?  Thanks in advance for your reply.



[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux