mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-07-04 06:36:09 +00:00
add absolute_codec_string
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4125 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
c6d0188af0
commit
7d27962689
@ -779,7 +779,7 @@ static void set_local_sdp(private_object_t *tech_pvt, char *ip, uint32_t port, c
|
|||||||
static void tech_set_codecs(private_object_t *tech_pvt)
|
static void tech_set_codecs(private_object_t *tech_pvt)
|
||||||
{
|
{
|
||||||
switch_channel_t *channel;
|
switch_channel_t *channel;
|
||||||
char *codec_string = NULL;
|
char *abs, *codec_string = NULL;
|
||||||
char *csdyn = NULL;
|
char *csdyn = NULL;
|
||||||
char *ocodec = NULL;
|
char *ocodec = NULL;
|
||||||
|
|
||||||
@ -797,6 +797,9 @@ static void tech_set_codecs(private_object_t *tech_pvt)
|
|||||||
assert (channel != NULL);
|
assert (channel != NULL);
|
||||||
|
|
||||||
|
|
||||||
|
if ((abs = switch_channel_get_variable(channel, "absolute_codec_string"))) {
|
||||||
|
codec_string = abs;
|
||||||
|
} else {
|
||||||
if (!(codec_string = switch_channel_get_variable(channel, "codec_string"))) {
|
if (!(codec_string = switch_channel_get_variable(channel, "codec_string"))) {
|
||||||
codec_string = tech_pvt->profile->codec_string;
|
codec_string = tech_pvt->profile->codec_string;
|
||||||
}
|
}
|
||||||
@ -812,6 +815,7 @@ static void tech_set_codecs(private_object_t *tech_pvt)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (codec_string) {
|
if (codec_string) {
|
||||||
tech_pvt->profile->codec_order_last = switch_separate_string(codec_string, ',', tech_pvt->profile->codec_order, SWITCH_MAX_CODECS);
|
tech_pvt->profile->codec_order_last = switch_separate_string(codec_string, ',', tech_pvt->profile->codec_order, SWITCH_MAX_CODECS);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user