mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-14 09:58:17 +00:00
commit
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1326 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
*
|
||||
*/
|
||||
#include <switch.h>
|
||||
|
||||
#include <ctype.h>
|
||||
|
||||
struct switch_loadable_module {
|
||||
char *filename;
|
||||
@@ -568,7 +568,14 @@ 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)
|
||||
{
|
||||
return switch_core_hash_find(loadable_modules.codec_hash, name);
|
||||
char ucname[256] = "";
|
||||
int x;
|
||||
|
||||
for(x = 0; x < strlen(name); x++) {
|
||||
ucname[x] = toupper(name[x]);
|
||||
}
|
||||
|
||||
return switch_core_hash_find(loadable_modules.codec_hash, ucname);
|
||||
}
|
||||
|
||||
SWITCH_DECLARE(switch_dialplan_interface_t *) switch_loadable_module_get_dialplan_interface(char *name)
|
||||
|
Reference in New Issue
Block a user