Stream to call not work

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

 



Hi the below is the code:


#include <pjsua-lib/pjsua.h>

//#include <stdio.h>

#ifdef PJSIPDLL_EXPORTS

#define PJSIPDLL_DLL_API __declspec(dllexport)

#else

#define PJSIPDLL_DLL_API __declspec(dllimport)

#endif

extern "C" PJSIPDLL_DLL_API int stream_to_call(char* fileName,int callID);

#define THIS_FILE "pjsipDll_playWav.cpp"

#define NO_LIMIT (int)0x7FFFFFFF

PJSIPDLL_DLL_API pj_status_t stream_to_call(char* wavFile, pjsua_call_id
call_id )

{

pj_status_t status;

pjsua_player_id player_id;

//pj_status_t status = pjsua_player_create(wavFile , PJMEDIA_FILE_NO_LOOP,
&player_id);

status = pjsua_player_create(&pj_str("C:\\1.wav"), 0, &player_id);

if (status != PJ_SUCCESS)

return status;

status = pjsua_conf_connect( pjsua_player_get_conf_port (player_id),
pjsua_call_get_conf_port(call_id));

}

What wrong help me please?. It works properly in pjsua sample when i test
it, but it is not work when i build .dll can call it to use in c#.



Thanks,,

Raksa,,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20100115/5d7a63d5/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