Error in initiating a call

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

 



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>


[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