Skip to content

Commit c9e36f5

Browse files
authored
VAPI-2560 (#8)
* Fix dependency conflict * Remove unused environment variables * Specify what `Call-initiated callback url` should be in the `README.md`
1 parent 5375015 commit c9e36f5

3 files changed

Lines changed: 21 additions & 30 deletions

File tree

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,14 @@ Below are the callback paths:
6363

6464
## Ngrok
6565

66-
A simple way to set up a local callback URL for testing is to use the free tool [ngrok](https://ngrok.com/).
66+
A simple way to set up a local callback URL for testing is to use the free tool [ngrok](https://ngrok.com/).
6767
After you have downloaded and installed `ngrok` run the following command to open a public tunnel to your port (`$LOCAL_PORT`)
6868

6969
```sh
7070
ngrok http $LOCAL_PORT
7171
```
7272

73-
You can view your public URL at `http://127.0.0.1:4040` after ngrok is running. You can also view the status of the tunnel and requests/responses here.
73+
You can view your public URL at `http://127.0.0.1:4040` after ngrok is running. You can also view the status of the tunnel and requests/responses here.
7474

75-
Once your public ngrok url has been created, you can use it as the `BASE_CALLBACK_URL` environmental variable and set it in the voice application created in the [Pre-Requisites](#pre-requisites) section.
75+
Once your public ngrok url has been created, you can update the voice application you created in the [Pre-Requisites](#pre-requisites) section to use it.
76+
Your `Call-initiated callback url` will be: `<your-public-ngrok-url>/callbacks/callInitiatedCallback`

main.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,7 @@
1313
BW_USERNAME = os.environ['BW_USERNAME']
1414
BW_PASSWORD = os.environ['BW_PASSWORD']
1515
BW_ACCOUNT_ID = os.environ['BW_ACCOUNT_ID']
16-
BW_VOICE_APPLICATION_ID = os.environ['BW_VOICE_APPLICATION_ID']
17-
BW_NUMBER = os.environ['BW_NUMBER']
18-
USER_NUMBER = os.environ['USER_NUMBER']
1916
LOCAL_PORT = int(os.environ['LOCAL_PORT'])
20-
BASE_CALLBACK_URL = os.environ['BASE_CALLBACK_URL']
2117
except KeyError as e:
2218
print(f"Please set the environmental variables defined in the README\n\n{e}")
2319
sys.exit(1)

requirements.txt

Lines changed: 17 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,17 @@
1-
-i https://pypi.org/simple
2-
aenum==3.1.15
3-
anyio==4.2.0 ; python_version >= '3.8'
4-
bandwidth-sdk==15.0.1
5-
click==8.1.7 ; python_version >= '3.7'
6-
fastapi==0.109.1
7-
h11==0.14.0 ; python_version >= '3.7'
8-
httptools==0.6.1
9-
idna==3.7 ; python_version >= '3.5'
10-
pydantic==1.10.13 ; python_version >= '3.7'
11-
python-dateutil==2.8.2 ; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2'
12-
python-dotenv==1.0.0
13-
pyyaml==6.0.1
14-
setuptools==69.0.3 ; python_version >= '3.8'
15-
six==1.16.0 ; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2'
16-
sniffio==1.3.0 ; python_version >= '3.7'
17-
starlette==0.36.2 ; python_version >= '3.8'
18-
typing-extensions==4.9.0 ; python_version >= '3.8'
19-
urllib3==2.0.7 ; python_version >= '3.7'
20-
uvicorn[standard]==0.25.0
21-
uvloop==0.19.0
22-
watchfiles==0.21.0
23-
websockets==12.0
1+
annotated-types==0.7.0
2+
anyio==4.11.0
3+
bandwidth-sdk==20.2.1
4+
click==8.3.0
5+
fastapi==0.119.0
6+
h11==0.16.0
7+
idna==3.11
8+
pydantic==2.12.2
9+
pydantic_core==2.41.4
10+
python-dateutil==2.9.0.post0
11+
six==1.17.0
12+
sniffio==1.3.1
13+
starlette==0.48.0
14+
typing-inspection==0.4.2
15+
typing_extensions==4.15.0
16+
urllib3==2.5.0
17+
uvicorn==0.37.0

0 commit comments

Comments
 (0)