[pjsip] Error in initiating a call
Hasini Gunasinghe
hasi7786 at gmail.com
Thu Nov 13 07:09:25 EST 2008
Hi,
I am using [PJSUA API - High Level Softphone API for C/C++ and
Python<http://www.pjsip.org/pjsip/docs/html/group__PJSUA__LIB.htm>
] in my application. I am new to it and after going through the API and
sample code, I wrote the following code to initiate a call.
It compiles fine and also runs without an error. But the call is not
initiated on the other side.
Could you please tell me where I have gone wrong.
pjsua_config ua_cfg;
pjsua_logging_config log_cfg;
pjsua_media_config media_cfg;
pj_pool_t *pool;
pj_status_t status;
status=pjsua_create();
pool=pjsua_pool_create(NULL,500,50);
// Initialize configs with default settings.
pjsua_config_default(&ua_cfg);
pjsua_logging_config_default(&log_cfg);
pjsua_media_config_default(&media_cfg);
// Initialize pjsua
status = pjsua_init(&ua_cfg, &log_cfg, &media_cfg);
pj_str_t middle;
char* uri="sip:hasini at 172.16.7.109 <sip%3Ahasini at 172.16.7.109>";
middle=pj_str(uri);
pjsua_call_make_call( current_acc, &middle, 0, NULL, NULL, NULL);
Thank you.
regards,
Hasini.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20081113/ca04056f/attachment.html>
More information about the pjsip
mailing list