[pjsip] Send Info Message with defined body

JOHAN LANTZ johan.lantz at telefonica.com
Mon Jan 16 09:10:40 EST 2017


Try something like this:


const pj_str_t SIP_INFO = pj_str("INFO”);

pjsua_msg_data msg_data;

char body[TU_MAX_SIP_INFO_BODY];

pjsua_msg_data_init(&msg_data);

msg_data.content_type = pj_str(“application/xxx");


pj_ansi_snprintf(body, sizeof(body), “MyInfoContent");


msg_data.msg_body = pj_str(body);

status = pjsua_call_send_request(call_id, &SIP_INFO,

                                         &msg_data);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20170116/f9eca66c/attachment-0002.html>


More information about the pjsip mailing list