change from header

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

 



Hi,

I have modified the symbian_ua_makecall to change the from header inspired
from this link

http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/2008-September/004879.html

actually i want to change the caller id.. that if i am register with the id
101 i want callee see my id as 111111.....

but it doesnt work. i saw in the server..there the from header remain
101 at .........
and the callee end get me as 101... could anyone please help me in this
regard?


int symbian_ua_makecall(const char* dest_url)
{
/////////////////////////////////////////

pjsua_acc_config acc_cfg;
char *str1;
str1 = "11111111<sip:11111111 at 192.168.5.11 <sip%3A11111111 at 192.168.5.11>>";
pj_str_t from_uri = pj_str(str1);
acc_cfg.id = from_uri;
pjsua_acc_modify(g_acc_id,&acc_cfg);

    char str[200];
    strcpy (str,"sip:");
    strcat (str,dest_url);
    dest_url = (char *)str;
     if (pjsua_verify_sip_url(dest_url) == PJ_SUCCESS) {
        pj_str_t dst = pj_str((char*)dest_url);
        pjsua_call_make_call(g_acc_id, &dst, 0, NULL, NULL, &g_call_id);

        return PJ_SUCCESS;
    }

    return PJ_EINVAL;
}


thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20090628/d1369acb/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