How to change From header in outgoing INVITE

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

 



Hi All,

 

I am using pjsua_call_make_call API for sending INVITE from my application.
By default the From header contains the URI specified in the id parameter 

Of pjsua_acc_config structure. But I want to have different CLI (From
header) for different calls. So I tried to change this id before calling
pjsua_call_make_call 

And added following code for this:

 

    Char* strFrom = "sip:5555@10.0.0.1";

    g_acc_cfg.id = pj_strdup3 (pool, strFrom);

    status = pjsua_acc_modify(g_acc_id, &g_acc_cfg);

    status =

        pjsua_call_make_call (g_acc_id, &uri, 0,0, &msg_data,

                              &call_id);

 

In my case pjsua_acc_modify is working fine. But pjsua_call_make_call fails
and returns status code 171039.  This status code is returned when there is
something

Wrong with the URI. But in this case I don't see any thing wrong  with the
URI. 

Please suggest what is going wrong.

 

Thanks,

Jitendra 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20130517/20caed95/attachment-0001.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