Skip to content

Commit 83bb000

Browse files
authored
Merge pull request #1043 from adenchen123/master
Revert "Track phone call success state in application"
2 parents 25230fe + 221d175 commit 83bb000

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

src/Infrastructure/BotSharp.Abstraction/Infrastructures/Enums/StateConst.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,4 @@ public class StateConst
1717
public const string SUB_CONVERSATION_ID = "sub_conversation_id";
1818
public const string ORIGIN_CONVERSATION_ID = "origin_conversation_id";
1919
public const string WEB_DRIVER_TASK_ID = "web_driver_task_id";
20-
public const string PHONE_CALL_SUCCESSED = "phone_call_successed";
2120
}

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,15 +123,13 @@ public async Task<bool> Execute(RoleDialogModel message)
123123
var originConversationId = convService.ConversationId;
124124
var entryAgentId = routing.EntryAgentId;
125125

126-
states.SetState(StateConst.PHONE_CALL_SUCCESSED, true);
127126
await ForkConversation(args, entryAgentId, originConversationId, newConversationId, call);
128127

129128
message.Content = $"The call has been successfully queued. The initial information is as follows: {args.InitialMessage}.";
130129
return true;
131130
}
132131
else
133132
{
134-
states.SetState(StateConst.PHONE_CALL_SUCCESSED, false);
135133
message.Content = $"Failed to make a call, status is {call.Status}.";
136134
return false;
137135
}

0 commit comments

Comments
 (0)