minor tweak

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4003 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2007-01-19 20:35:50 +00:00
parent 8e17a9b865
commit ccd944d52b
3 changed files with 7 additions and 3 deletions

View File

@ -1 +1 @@
Tue Dec 12 11:55:02 EST 2006
Fri Jan 19 15:23:51 EST 2007

View File

@ -349,6 +349,8 @@ static ldl_status parse_session_code(ldl_handle_t *handle, char *id, char *from,
session->payloads[session->payload_len].id = atoi(id);
if (rate) {
session->payloads[session->payload_len].rate = atoi(rate);
} else {
session->payloads[session->payload_len].rate = 8000;
}
session->payload_len++;

View File

@ -2472,7 +2472,9 @@ 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);
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "compare %s %d/%d to %s %d/%d\n",
payloads[x].name, payloads[x].id, payloads[x].rate,
name, tech_pvt->codecs[y]->ianacode, tech_pvt->codecs[y]->samples_per_second);
if (tech_pvt->codecs[y]->ianacode > 95) {
match = strcasecmp(name, payloads[x].name) ? 0 : 1;
} else {