Simple_pjsua

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

 



Hello pjsip list,

I'm doing my master thesis with pjsip open source 1.10v and I never used it
before. I'm writting to ask for help with the sample ''simple_pjsua''.

I am trying to send a MP3 media from my desktop to my laptop. I found in
internet that the code I have to add is like this:

   pj_status_t <http://www.pjsip.org/pjlib/docs/html/group__PJ__BASIC.htm#gab43ba3167bd2a2ab4580509dbf79200e>
stream_to_call( pjsua_call_id
<http://www.pjsip.org/pjsip/docs/html/group__PJSUA__LIB__BASE.htm#gad4eb99a78c98ddbd83aecf7e933fc684>
call_id )
  {
     pjsua_player_id
<http://www.pjsip.org/pjsip/docs/html/group__PJSUA__LIB__BASE.htm#ga266a56483961431df7a5ebae457b9f3f>
player_id;

     status = pjsua_player_create
<http://www.pjsip.org/pjsip/docs/html/group__PJSUA__LIB__MEDIA.htm#ga90a2ec9c8516b5ad13b061a46ae1d07a>("media.mp3",
0, NULL, &player_id);
     if (status != PJ_SUCCESS)
        return status;

     status = pjsua_conf_connect
<http://www.pjsip.org/pjsip/docs/html/group__PJSUA__LIB__MEDIA.htm#ga3451304d677e013130dfb9e6b37e3ee6>(
pjsua_player_get_conf_port
<http://www.pjsip.org/pjsip/docs/html/group__PJSUA__LIB__MEDIA.htm#ga4b7a4ad09c9edad41ae516cea468819c>(),
                                  pjsua_call_get_conf_port
<http://www.pjsip.org/pjsip/docs/html/group__PJSUA__LIB__CALL.htm#ga90c100b6e00d146ba824145fe6861aef>()
);
  }

but I don't know where and which additional changes I have to make. Can
someone lent me a hand?

Thanks in advance
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20110705/6a4ff00a/attachment.html>


[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