cfg1.id =pj_str("sip:"SIP_USER"@"SIP_DOMAIN); how to pass value for adding account id?

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

 



hi,
cfg1.id =pj_str("sip:"SIP_USER"@"SIP_DOMAIN);
in this line pj_str taking the char*,
i am making a program and there i am using CString, after that for passing
that into pj_str i am converting that CString to char *.
it building successfully but not adding the account...
my code is:
CString var1;
char* var;
    var = new char[var1.GetLength()];
    wcstombs(var,var1.GetString(),25);
    cfg1.id =pj_str(var);

apart of this i added all like realm, user name etc...
if i am looking into message box(for checking) , so i am getting correct
value of var(whatever i want). but it is not adding account ,???
can anyone help me out

Regards,
New_bie
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20081216/fc534c91/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