problem with pjsip dll code

Hi..

I am trying to make a Dll for pjsip for softphone. But when i build the code of pjsip, it showing an error:-
Error 43 error C2064: term does not evaluate to a function taking 1 arguments.

error showing in given below line:-

status = pjsua_media_transports_create(&app_config.rtp_cfg);

I am also giving the code below, kindly help to resolve the error, code is given below:-

if (!app_config.no_udp) {
pjsua_acc_id aid;

status = pjsua_transport_create(PJSIP_TRANSPORT_UDP,
&app_config.udp_cfg,
&transport_id);
if (status != PJ_SUCCESS)
goto on_error;

/* Add local account */
pjsua_acc_add_local(transport_id, PJ_TRUE, &aid);
//pjsua_acc_set_transport(aid, transport_id);
pjsua_acc_set_online_status(current_acc, PJ_TRUE);

if (app_config.udp_cfg.port == 0) {
pjsua_transport_info ti;
pj_sockaddr_in *a;

pjsua_transport_get_info(transport_id, &ti);
a = (pj_sockaddr_in*)&ti.local_addr;

tcp_cfg.port = pj_ntohs(a->sin_port);
}
}

/* Add TCP transport unless it's disabled */
if (!app_config.no_tcp) {
status = pjsua_transport_create(PJSIP_TRANSPORT_TCP,
&tcp_cfg,
&transport_id);
if (status != PJ_SUCCESS)
goto on_error;

/* Add local account */
pjsua_acc_add_local(transport_id, PJ_TRUE, NULL);
pjsua_acc_set_online_status(current_acc, PJ_TRUE);

}


#if defined(PJSIP_HAS_TLS_TRANSPORT) && PJSIP_HAS_TLS_TRANSPORT!=0
/* Add TLS transport when application wants one */
if (app_config.use_tls) {

pjsua_acc_id acc_id;

/* Set TLS port as TCP port+1 */
tcp_cfg.port++;
status = pjsua_transport_create(PJSIP_TRANSPORT_TLS,
&tcp_cfg,
&transport_id);
tcp_cfg.port--;
if (status != PJ_SUCCESS)
goto on_error;

/* Add local account */
pjsua_acc_add_local(transport_id, PJ_FALSE, &acc_id);
pjsua_acc_set_online_status(acc_id, PJ_TRUE);
}
#endif

if (transport_id == -1) {
PJ_LOG(3,(THIS_FILE, "Error: no transport is configured"));
status = -1;
goto on_error;
}

/* Add RTP transports */
status = pjsua_media_transports_create(&app_config.rtp_cfg);
if (status != PJ_SUCCESS)
goto on_error;

/* Use null sound device? */
#ifndef STEREO_DEMO
if (app_config.null_audio) {
status = pjsua_set_null_snd_dev();
if (status != PJ_SUCCESS)
return status;
}
Topic archived. No new replies allowed.