problem while attaching user specific data

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

 



I'm using the pjsua_app.c to send specific user data in a Invite message.
But I cannot retrive it on the called softphone. I don't know if I'm sending
it correctly.
It seems to be quite simple to do it, but I still don't know where is the
mistake.


On the caller code i'm doing this:

pj_str_t t = pj_str("\n\Some stupid  string \n\n");

pjsua_msg_data_init(&msg_data);

TEST_MULTIPART(&msg_data);

pjsua_call_make_call( current_acc, &tmp, 0,&t, &msg_data, NULL);


On the called i'm doing this:

if (current_call == -1) {
    puts("Call has been disconnected");
    fflush(stdout);
    continue;
}

printf("\n\n Retrived:%s\n\n\n", (char*)
pjsua_call_get_user_data(current_call));

pjsua_call_answer(current_call, st_code, NULL, &msg_data);

break;


But the result of printf is null.

What is the big mistake that i'm doing?

Best regards,
Thiago



Thiago Martins de Sousa
Skype: thiagums
Msn: thiagums at hotmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20110608/2c5e2448/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