Skip to content

V rani/appointment remainder#4

Open
Rani0608 wants to merge 11 commits intofeature/previewfrom
V-Rani/AppointmentRemainder
Open

V rani/appointment remainder#4
Rani0608 wants to merge 11 commits intofeature/previewfrom
V-Rani/AppointmentRemainder

Conversation

@Rani0608
Copy link
Collaborator

Purpose

  • ...

Does this introduce a breaking change?

[ ] Yes
[ ] No

Pull Request Type

What kind of change does this Pull Request introduce?

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[ ] Other... Please describe:

How to Test

  • Get the code
git clone [repo-address]
cd [repo-name]
git checkout [branch-name]
npm install
  • Test the code

What to Check

Verify that the following are valid

  • ...

Other Information

@Rani0608 Rani0608 requested review from moirf and v-mausha April 28, 2023 07:40
@Rani0608 Rani0608 changed the base branch from main to feature/preview April 28, 2023 07:47
EventCallBackRoute= /api/callbacks
AppBaseUri= %App Base Uri%
AppointmentReminderMenuAudio= /Audio/AppointmentReminderMenu.wav
# AddParticipantNumber= +918374734062
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove commented code from all the files

return CommunicationIdentifierKind.UNKNOWN
configuration_manager = ConfigurationManager.get_instance()
calling_Automation_client = CallAutomationClient.from_connection_string(configuration_manager.get_app_settings('Connectionstring'))
ngrok_url =configuration_manager.get_app_settings('AppBaseUri')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rename this to app_base_uri

SourcePhone=%SourcePhone%
SourcePhone=%Source Phone%
#<!-- Destination identities to call. Multiple outbound calls are seperated by a semi-colon and participants in an outbound call are seperated by a coma.
#For e.g. +14251002000, 8:acs:ab12b0ea-85ea-4f83-b0b6-84d90209c7c4_00000009-bce0-da09-54b7-xxxxxxxxxxxx; +14251002001, 8:acs:ab12b0ea-85ea-4f83-b0b6-84d90209c7c4_00000009-bce0-da09-555-xxxxxxxxxxxx). -->
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this example, as we are not giving the identity like this in this sample

Appointment_Cancelled_Audio,Timed_out_Audio,Invalid_Input_Audio):
self.connection_string: str = str(connection_string)
self.source_identity: str = str(source_identity)
self.source_phone_number: str = str(source_phone_number)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

source_identy and source_phone_number are not the same? remove unused and extra variables

from aiohttp import web
from Logger import Logger
from ConfigurationManager import ConfigurationManager
from CallConfiguration import CallConfiguration
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need both ConfigurationManager and CallConfiguration both, use one

# </summary>


async def on_incoming_request_async(self, request):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove unused methods

target_Id = self.configuration_manager.get_app_settings('TargetIdentity')

if(target_Id and len(target_Id)):
source_caller_id = CommunicationUserIdentifier(self.call_configuration.source_identity)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we are not using source_caller_id anywhere, remove this

# web.run_app(self.app, port=8080)


def create_user(self, connection_string):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove create and delete user methods too, if we are not using anywhere

self.app.add_routes([web.get('/audio/{file_name}', self.load_file)])
self.app.add_routes([web.post('/api/callbacks',self.start_callBack)])
web.run_app(self.app, port=58963)
async def run_sample(self,request):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add some space b/w methods, to make the code more readable

@Rani0608
Copy link
Collaborator Author

Rani0608 commented May 2, 2023

Changes are done and committed the code.

@Rani0608 Rani0608 requested a review from v-mausha May 2, 2023 06:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants