]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
switch_channel: When in a dialplan hunt and we have a custom caller_profile, ${destin...
authorMarc Olivier Chouinard <mochouinard@moctel.com>
Sat, 9 Jul 2011 03:57:54 +0000 (23:57 -0400)
committerMarc Olivier Chouinard <mochouinard@moctel.com>
Sat, 9 Jul 2011 03:57:54 +0000 (23:57 -0400)
src/switch_channel.c

index 68d07a9548875e0175fa3971209934158383ab3c..f763fa2f0218b2e437ebf07a8afc6bd413293491 100644 (file)
@@ -762,7 +762,7 @@ SWITCH_DECLARE(const char *) switch_channel_get_variable_dup(switch_channel_t *c
        }
 
        if (!v && (!channel->variables || !(v = switch_event_get_header_idx(channel->variables, varname, idx)))) {
-               switch_caller_profile_t *cp = channel->caller_profile;
+               switch_caller_profile_t *cp = switch_channel_get_caller_profile(channel);
 
                if (cp) {
                        if (!strncmp(varname, "aleg_", 5)) {