Merge pull request #1043 from adenchen123/master
Revert "Track phone call success state in application"
This commit is contained in:
commit
83bb00051e
|
|
@ -17,5 +17,4 @@ public class StateConst
|
|||
public const string SUB_CONVERSATION_ID = "sub_conversation_id";
|
||||
public const string ORIGIN_CONVERSATION_ID = "origin_conversation_id";
|
||||
public const string WEB_DRIVER_TASK_ID = "web_driver_task_id";
|
||||
public const string PHONE_CALL_SUCCESSED = "phone_call_successed";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -123,7 +123,6 @@ public class OutboundPhoneCallFn : IFunctionCallback
|
|||
var originConversationId = convService.ConversationId;
|
||||
var entryAgentId = routing.EntryAgentId;
|
||||
|
||||
states.SetState(StateConst.PHONE_CALL_SUCCESSED, true);
|
||||
await ForkConversation(args, entryAgentId, originConversationId, newConversationId, call);
|
||||
|
||||
message.Content = $"The call has been successfully queued. The initial information is as follows: {args.InitialMessage}.";
|
||||
|
|
@ -131,7 +130,6 @@ public class OutboundPhoneCallFn : IFunctionCallback
|
|||
}
|
||||
else
|
||||
{
|
||||
states.SetState(StateConst.PHONE_CALL_SUCCESSED, false);
|
||||
message.Content = $"Failed to make a call, status is {call.Status}.";
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue