mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-15 07:44:13 +00:00
ndlb_sendrecv_in_session var NDLB-sendrecv-in-session profile option to reverse the effects of MODENDP-148
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13084 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
56596b4e88
commit
32e2fddef3
8 files changed
+148
-8
No files matched your search
@@ -117,6 +117,8 @@ void sofia_glue_set_local_sdp(private_object_t *tech_pvt, const char *ip, uint32
|
||||
const char *family;
|
||||
const char *pass_fmtp = switch_channel_get_variable(tech_pvt->channel, "sip_video_fmtp");
|
||||
const char *ov_fmtp = switch_channel_get_variable(tech_pvt->channel, "sip_force_video_fmtp");
|
||||
char srbuf[128] = "";
|
||||
const char *var_val;
|
||||
|
||||
if (sofia_test_pflag(tech_pvt->profile, PFLAG_SUPPRESS_CNG) ||
|
||||
((val = switch_channel_get_variable(tech_pvt->channel, "supress_cng")) && switch_true(val)) ||
|
||||
@@ -155,14 +157,22 @@ void sofia_glue_set_local_sdp(private_object_t *tech_pvt, const char *ip, uint32
|
||||
|
||||
tech_pvt->session_id++;
|
||||
|
||||
if ((tech_pvt->profile->ndlb & PFLAG_NDLB_SENDRECV_IN_SESSION) ||
|
||||
((var_val=switch_channel_get_variable(tech_pvt->channel, "ndlb_sendrecv_in_session")) && switch_true(var_val))) {
|
||||
switch_snprintf(srbuf, sizeof(srbuf), "a=%s\n", sr);
|
||||
sr = NULL;
|
||||
}
|
||||
|
||||
family = strchr(ip, ':') ? "IP6" : "IP4";
|
||||
switch_snprintf(buf, sizeof(buf),
|
||||
"v=0\n"
|
||||
"o=FreeSWITCH %010u %010u IN %s %s\n"
|
||||
"s=FreeSWITCH\n"
|
||||
"c=IN %s %s\n" "t=0 0\n"
|
||||
"m=audio %d RTP/%sAVP",
|
||||
tech_pvt->owner_id, tech_pvt->session_id, family, ip, family, ip, port,
|
||||
"%sm=audio %d RTP/%sAVP",
|
||||
tech_pvt->owner_id, tech_pvt->session_id, family, ip, family, ip,
|
||||
srbuf,
|
||||
port,
|
||||
(!switch_strlen_zero(tech_pvt->local_crypto_key)
|
||||
&& sofia_test_flag(tech_pvt,TFLAG_SECURE)) ? "S" : "");
|
||||
|
||||
|
||||
Reference in new issue
Block a user