-
Notifications
You must be signed in to change notification settings - Fork 479
/
zoom_dial_in.py
45 lines (40 loc) · 1.64 KB
/
zoom_dial_in.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
from typing import Optional
from vocode.streaming.models.agent import AgentConfig
from vocode.streaming.models.synthesizer import SynthesizerConfig
from vocode.streaming.models.telephony import TwilioConfig
from vocode.streaming.models.transcriber import TranscriberConfig
from vocode.streaming.telephony.config_manager.base_config_manager import BaseConfigManager
from vocode.streaming.telephony.conversation.outbound_call import OutboundCall
class ZoomDialIn(OutboundCall):
def __init__(
self,
base_url: str,
zoom_number: str,
zoom_meeting_id: str,
zoom_meeting_password: Optional[str],
from_phone: str,
config_manager: BaseConfigManager,
agent_config: AgentConfig,
twilio_config: TwilioConfig,
transcriber_config: Optional[TranscriberConfig] = None,
synthesizer_config: Optional[SynthesizerConfig] = None,
conversation_id: Optional[str] = None,
):
digits = f"wwww{zoom_meeting_id}#"
if zoom_meeting_password:
digits += f"wwwwwwww*{zoom_meeting_password}#"
super().__init__(
base_url=base_url,
to_phone=zoom_number,
from_phone=from_phone,
config_manager=config_manager,
transcriber_config=transcriber_config,
agent_config=agent_config,
synthesizer_config=synthesizer_config,
telephony_config=twilio_config,
conversation_id=conversation_id,
digits=digits,
)
self.zoom_number = zoom_number
self.zoom_meeting_id = zoom_meeting_id
self.zoom_meeting_password = zoom_meeting_password