diff --git a/doc/build-contrib.sh b/doc/build-contrib.sh index 26e06c5330c..46913c77cce 100755 --- a/doc/build-contrib.sh +++ b/doc/build-contrib.sh @@ -174,6 +174,7 @@ github_handles=( ["Sergey Khripchenko"]="shripchenko" ["Stefan Pologov"]="sisoftrg" ["Stéphane Alnet"]="shimaore" + ["Seyed Mehran Siadati"]="siadatism" ["Victor Ciurel "]="victor-ciurel" ["Vlad Paiu"]="vladpaiu" ["Vlad Patrascu"]="rvlad-patrascu" diff --git a/modules/siprec/siprec.c b/modules/siprec/siprec.c index 8db18a050ec..9a0fd766d24 100644 --- a/modules/siprec/siprec.c +++ b/modules/siprec/siprec.c @@ -248,7 +248,17 @@ static int siprec_start_rec(struct sip_msg *msg, str *srs) LM_ERR("cannot add caller participant!\n"); goto session_cleanup; } - /* caller info */ + + siprec_uuid caller_uuid; + siprec_build_uuid(caller_uuid); + int caller_label = 0; + int caller_medianum = 0; + if (srs_add_raw_sdp_stream(caller_label, caller_medianum, &caller_uuid, ss, &ss->participants[0]) < 0) { + LM_ERR("cannot add new media stream!\n"); + goto session_cleanup; + } + + /* callee info */ if (var && var->callee.len) { xml_val = &var->callee; } else { @@ -266,6 +276,15 @@ static int siprec_start_rec(struct sip_msg *msg, str *srs) goto session_cleanup; } + siprec_uuid callee_uuid; + siprec_build_uuid(callee_uuid); + int callee_label = 1; + int callee_medianum = 0; + if (srs_add_raw_sdp_stream(callee_label, callee_medianum, &callee_uuid, ss, &ss->participants[1]) < 0) { + LM_ERR("cannot add new media stream!\n"); + goto session_cleanup; + } + SIPREC_REF_UNSAFE(ss); srec_hlog(ss, SREC_REF, "starting recording"); if (srec_tm.register_tmcb(msg, 0, TMCB_RESPONSE_OUT, tm_start_recording, diff --git a/modules/siprec/siprec_logic.c b/modules/siprec/siprec_logic.c index 93cdbc5e77c..4a13aaa8933 100644 --- a/modules/siprec/siprec_logic.c +++ b/modules/siprec/siprec_logic.c @@ -573,7 +573,6 @@ int srs_handle_media(struct sip_msg *msg, struct src_sess *sess) return 0; } - static void srs_send_update_invite(struct src_sess *sess, str *body) { struct b2b_req_data req;