mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-30 23:24:18 +00:00
add ilbc
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1199 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
a128d3179e
commit
56cb227eb7
6 files changed
+133
-74
No files matched your search
@@ -1283,11 +1283,15 @@ static switch_status exosip_create_call(eXosip_event_t * event)
|
||||
|
||||
{
|
||||
int rate = atoi(drate);
|
||||
|
||||
int ms = globals.codec_ms;
|
||||
if (!strcasecmp(dname, "ilbc")) {
|
||||
ms = 30;
|
||||
}
|
||||
|
||||
if (switch_core_codec_init(&tech_pvt->read_codec,
|
||||
dname,
|
||||
rate,
|
||||
globals.codec_ms,
|
||||
ms,
|
||||
1,
|
||||
SWITCH_CODEC_FLAG_ENCODE | SWITCH_CODEC_FLAG_DECODE,
|
||||
NULL, switch_core_session_get_pool(session)) != SWITCH_STATUS_SUCCESS) {
|
||||
@@ -1298,7 +1302,7 @@ static switch_status exosip_create_call(eXosip_event_t * event)
|
||||
if (switch_core_codec_init(&tech_pvt->write_codec,
|
||||
dname,
|
||||
rate,
|
||||
globals.codec_ms,
|
||||
ms,
|
||||
1,
|
||||
SWITCH_CODEC_FLAG_ENCODE | SWITCH_CODEC_FLAG_DECODE,
|
||||
NULL, switch_core_session_get_pool(session)) != SWITCH_STATUS_SUCCESS) {
|
||||
@@ -1453,12 +1457,15 @@ static void handle_answer(eXosip_event_t * event)
|
||||
|
||||
{
|
||||
int rate = atoi(drate);
|
||||
|
||||
int ms = globals.codec_ms;
|
||||
if (!strcasecmp(dname, "ilbc")) {
|
||||
ms = 30;
|
||||
}
|
||||
|
||||
if (switch_core_codec_init(&tech_pvt->read_codec,
|
||||
dname,
|
||||
rate,
|
||||
globals.codec_ms,
|
||||
ms,
|
||||
1,
|
||||
SWITCH_CODEC_FLAG_ENCODE | SWITCH_CODEC_FLAG_DECODE,
|
||||
NULL, switch_core_session_get_pool(tech_pvt->session)) != SWITCH_STATUS_SUCCESS) {
|
||||
@@ -1469,7 +1476,7 @@ static void handle_answer(eXosip_event_t * event)
|
||||
if (switch_core_codec_init(&tech_pvt->write_codec,
|
||||
dname,
|
||||
rate,
|
||||
globals.codec_ms,
|
||||
ms,
|
||||
1,
|
||||
SWITCH_CODEC_FLAG_ENCODE | SWITCH_CODEC_FLAG_DECODE,
|
||||
NULL,
|
||||
|
||||
@@ -129,7 +129,7 @@ static struct ast_iana AST_IANA[] = { {AST_FORMAT_G723_1, 4, "g723.1"},
|
||||
{AST_FORMAT_LPC10, 7, "lpc10"},
|
||||
{AST_FORMAT_G729A, 18, "g729"},
|
||||
{AST_FORMAT_SPEEX, 98, "speex"},
|
||||
{AST_FORMAT_ILBC, 999, "ilbc"},
|
||||
{AST_FORMAT_ILBC, 102, "ilbc"},
|
||||
{AST_FORMAT_MAX_AUDIO, 999, ""},
|
||||
{AST_FORMAT_JPEG, 999, ""},
|
||||
{AST_FORMAT_PNG, 999, ""},
|
||||
|
||||
Reference in new issue
Block a user