Skip to content

Commit cd8cf00

Browse files
authored
Update js_session.c
1 parent 79a3367 commit cd8cf00

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

sources/js_session.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,9 @@ static JSValue js_session_property_get(JSContext *ctx, JSValueConst this_val, in
105105
}
106106

107107
SESSION_SANITY_CHECK();
108-
108+
channel = switch_core_session_get_channel(jss->session);
109+
caller_profile = switch_channel_get_caller_profile(channel);
110+
109111
switch(magic) {
110112
case PROP_NAME: {
111113
return JS_NewString(ctx, switch_channel_get_name(channel));

0 commit comments

Comments
 (0)