git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2554 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale committed 2006-09-07 15:08:40 +00:00
1 parent a4c778a00c
commit 52956d5cb1
5 files changed
+18 -33

No files matched your search

@@ -283,17 +283,13 @@ static int activate_rtp(struct private_object *tech_pvt)
{
switch_channel_t *channel = switch_core_session_get_channel(tech_pvt->session);
const char *err;
int ms = 20;
int ms = 0;
switch_rtp_flag_t flags;
if (switch_rtp_ready(tech_pvt->rtp_session)) {
return 1;
}
if (!strncasecmp(tech_pvt->codec_name, "ilbc", 4)) {
ms = 30;
}
if (switch_core_codec_init(&tech_pvt->read_codec,
tech_pvt->codec_name,
tech_pvt->codec_rate,
@@ -1693,6 +1689,7 @@ static ldl_status handle_signalling(ldl_handle_t *handle, ldl_session_t *dlsessi
if (!strncasecmp(name, "ilbc", 4)) {
name = "ilbc";
}
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "compare %s %d to %s %d\n", payloads[x].name, payloads[x].id, name, tech_pvt->codecs[y]->ianacode);
if (tech_pvt->codecs[y]->ianacode > 96) {
match = strcasecmp(name, payloads[x].name) ? 0 : 1;
} else {
+3 -11
View File
@@ -1439,17 +1439,13 @@ static switch_status_t exosip_create_call(eXosip_event_t * event)
{
int rate = atoi(drate);
int ms = globals.codec_ms;
int ms = 0; //globals.codec_ms;
if (imp) {
ms = imp->microseconds_per_frame / 1000;
}
if (!strcasecmp(dname, "ilbc")) {
ms = 30;
}
if (switch_core_codec_init(&tech_pvt->read_codec,
dname,
rate,
@@ -1938,11 +1934,7 @@ static void handle_answer(eXosip_event_t *event)
if (!switch_test_flag(tech_pvt, TFLAG_USING_CODEC)) {
int rate = atoi(drate);
int ms = globals.codec_ms;
if (!strcasecmp(dname, "ilbc")) {
ms = 30;
}
int ms = 0; //globals.codec_ms;
if (imp) {
ms = imp->microseconds_per_frame / 1000;
@@ -2273,7 +2265,7 @@ static int config_exosip(int reload)
}
if (!globals.codec_ms) {
globals.codec_ms = 20;
globals.codec_ms = 0;
}
if (!globals.port) {
+2 -4
View File
@@ -1661,6 +1661,8 @@ static switch_status_t config_sofia(int reload)
profile->name = switch_core_strdup(profile->pool, xprofilename);
profile->dtmf_duration = 100;
profile->codec_ms = 20;
for (param = switch_xml_child(xprofile, "param"); param; param = param->next) {
char *var = (char *) switch_xml_attr_soft(param, "name");
char *val = (char *) switch_xml_attr_soft(param, "value");
@@ -1738,10 +1740,6 @@ static switch_status_t config_sofia(int reload)
profile->rtpip = switch_core_strdup(profile->pool, "127.0.0.1");
}
if (!profile->codec_ms) {
profile->codec_ms = 20;
}
if (!profile->sip_port) {
profile->sip_port = 5060;
}