/** * Send a LinphoneInfoMessage through an established call * @param call the call * @param info the info message **/ int linphone_call_send_info_message(LinphoneCall *call, const LinphoneInfoMessage *info){ SalBody body; sal_op_set_sent_custom_header(call->op,info->headers); return sal_send_info(call->op,NULL, NULL, sal_body_from_content(&body,&info->content)); }
/** * Send a LinphoneInfoMessage through an established call * @param call the call * @param info the info message **/ int linphone_call_send_info_message(LinphoneCall *call, const LinphoneInfoMessage *info) { SalBodyHandler *body_handler = sal_body_handler_from_content(info->content); sal_op_set_sent_custom_header(call->op, info->headers); return sal_send_info(call->op,NULL, NULL, body_handler); }