[Freeswitch-svn] [commit] r3119 - freeswitch/trunk/src
Freeswitch SVN
anthm at freeswitch.org
Fri Oct 20 02:55:32 EDT 2006
Author: anthm
Date: Fri Oct 20 02:55:30 2006
New Revision: 3119
Modified:
freeswitch/trunk/src/switch_channel.c
Log:
another step closer
Modified: freeswitch/trunk/src/switch_channel.c
==============================================================================
--- freeswitch/trunk/src/switch_channel.c (original)
+++ freeswitch/trunk/src/switch_channel.c Fri Oct 20 02:55:30 2006
@@ -307,8 +307,14 @@
SWITCH_DECLARE(char *) switch_channel_get_variable(switch_channel_t *channel, char *varname)
{
+ char *v;
assert(channel != NULL);
- return switch_core_hash_find(channel->variables, varname);
+
+ if (!(v=switch_core_hash_find(channel->variables, varname))) {
+ v = switch_caller_get_field_by_name(channel->caller_profile, varname);
+ }
+
+ return v;
}
SWITCH_DECLARE(switch_hash_index_t *) switch_channel_variable_first(switch_channel_t *channel, switch_memory_pool_t *pool)
More information about the Freeswitch-svn
mailing list