git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13627
d0543943-73ff-0310-b7d9-
9358b9ac24b2
switch_caller_profile_t *profile = NULL;
profile = switch_core_alloc(pool, sizeof(*profile));
+ switch_assert(profile != NULL);
memset(profile, 0, sizeof(*profile));
-
- switch_assert(profile != NULL);
if (!context) {
context = "default";
new_profile->context = switch_core_strdup(new_profile->pool, context);
}
- dpstr = switch_core_session_strdup(session, new_profile->dialplan);
-
-
+ dpstr = switch_core_session_strdup(session, new_profile->dialplan);
switch_channel_set_hunt_caller_profile(channel, new_profile);
argc = switch_separate_string(dpstr, ',', dp, (sizeof(dp) / sizeof(dp[0])));