Skip to content

Commit 665a771

Browse files
authored
Rename environment variable for inbound call number
1 parent c0ea4e2 commit 665a771

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

voice/connect-an-inbound-call.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
load_dotenv(dotenv_path)
1010

1111
VONAGE_VIRTUAL_NUMBER = os.environ.get('VONAGE_VIRTUAL_NUMBER')
12-
VOICE_VOICE_TO_NUMBER = os.environ.get('VOICE_VOICE_TO_NUMBER')
12+
VOICE_TO_NUMBER = os.environ.get('VOICE_TO_NUMBER')
1313

1414
app = FastAPI()
1515

@@ -18,7 +18,7 @@
1818
async def inbound_call():
1919
ncco = [
2020
Connect(
21-
endpoint=[PhoneEndpoint(number=VOICE_VOICE_TO_NUMBER)],
21+
endpoint=[PhoneEndpoint(number=VOICE_TO_NUMBER)],
2222
from_=VONAGE_VIRTUAL_NUMBER,
2323
).model_dump(by_alias=True, exclude_none=True)
2424
]

0 commit comments

Comments
 (0)