Skip to content

Commit de3e96f

Browse files
authored
Merge pull request #989 from hchen2020/master
Fix conversation id in HangupPhoneCallFn
2 parents 31d91ab + cc362b2 commit de3e96f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Plugins/BotSharp.Plugin.Twilio/OutboundPhoneCallHandler/Functions/HangupPhoneCallFn.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ public async Task<bool> Execute(RoleDialogModel message)
2929
var args = JsonSerializer.Deserialize<HangupPhoneCallArgs>(message.FunctionArgs);
3030

3131
var fileStorage = _services.GetRequiredService<IFileStorageService>();
32-
var routing = _services.GetRequiredService<IRoutingService>();
33-
var conversationId = routing.Context.ConversationId;
32+
var convService = _services.GetRequiredService<IConversationService>();
33+
var conversationId = convService.ConversationId;
3434
var states = _services.GetRequiredService<IConversationStateService>();
3535
var callSid = states.GetState("twilio_call_sid");
3636

0 commit comments

Comments
 (0)