mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-06 02:22:56 +00:00
update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1328 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
b124890e48
commit
51b19e6fa6
@ -568,14 +568,22 @@ SWITCH_DECLARE(switch_endpoint_interface_t *) switch_loadable_module_get_endpoin
|
|||||||
|
|
||||||
SWITCH_DECLARE(switch_codec_interface_t *) switch_loadable_module_get_codec_interface(char *name)
|
SWITCH_DECLARE(switch_codec_interface_t *) switch_loadable_module_get_codec_interface(char *name)
|
||||||
{
|
{
|
||||||
char ucname[256] = "";
|
char altname[256] = "";
|
||||||
|
switch_codec_interface_t *codec;
|
||||||
int x;
|
int x;
|
||||||
|
|
||||||
for(x = 0; x < strlen(name); x++) {
|
if (!(codec = switch_core_hash_find(loadable_modules.codec_hash, name))) {
|
||||||
ucname[x] = toupper(name[x]);
|
for(x = 0; x < strlen(name); x++) {
|
||||||
|
altname[x] = toupper(name[x]);
|
||||||
|
}
|
||||||
|
if (!(codec = switch_core_hash_find(loadable_modules.codec_hash, altname))) {
|
||||||
|
for(x = 0; x < strlen(name); x++) {
|
||||||
|
altname[x] = tolower(name[x]);
|
||||||
|
}
|
||||||
|
codec = switch_core_hash_find(loadable_modules.codec_hash, altname);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
return codec;
|
||||||
return switch_core_hash_find(loadable_modules.codec_hash, ucname);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
SWITCH_DECLARE(switch_dialplan_interface_t *) switch_loadable_module_get_dialplan_interface(char *name)
|
SWITCH_DECLARE(switch_dialplan_interface_t *) switch_loadable_module_get_dialplan_interface(char *name)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user