|
|
|
|
@ -740,6 +740,12 @@ static const char *call_offer_answer_ng(bencode_item_t *input, struct callmaster
|
|
|
|
|
chopper->iov_num, chopper->str_len);
|
|
|
|
|
bencode_dictionary_add_string(output, "result", "ok");
|
|
|
|
|
|
|
|
|
|
struct recording *recording = call->recording;
|
|
|
|
|
if (opmode == OP_ANSWER && call->record_call && recording != NULL && recording->meta_fp != NULL) {
|
|
|
|
|
struct iovec *iov = &g_array_index(chopper->iov, struct iovec, 0);
|
|
|
|
|
int iovcnt = chopper->iov_num;
|
|
|
|
|
meta_write_sdp(recording->meta_fp, iov, iovcnt);
|
|
|
|
|
}
|
|
|
|
|
bencode_dictionary_get_str(input, "metadata", &metadata);
|
|
|
|
|
if (metadata.len > 0 && call->recording != NULL) {
|
|
|
|
|
if (call->recording->metadata != NULL) {
|
|
|
|
|
|