Sign inSign up

signalwire/snippets-call-text-by-proxy

By signalwire

•Updated over 6 years ago

Image
0

87

signalwire/snippets-call-text-by-proxy repository overview

⁠Setup Your Enviroment File

  1. Copy from example.env and fill in your values
  2. Save new file callled .env

Your file should look something like this

## This is the full name of your SignalWire Space. e.g.: example.signalwire.com
SIGNALWIRE_SPACE=
# Your Project ID - you can find it on the `API` page in your Dashboard.
SIGNALWIRE_PROJECT=
# Your API token - you can generate one on the `API` page in your Dashboard
SIGNALWIRE_TOKEN=
# The proxy 1 phone number you'll be using for this Snippets. Must include the `+1` , e$
SIGNALWIRE_NUMBER_1=+14346613376
# The proxy 2 phone number you'll be using for this Snippets. Must include the `+1` , e$
SIGNALWIRE_NUMBER_2=+14346613377

⁠Modify Your Proxy Session File

  1. Edit proxy_sessions.json
[
  {
    "Session_Id": "Demo123",
    "Participant_A_Number": "+15551237654",
    "Participant_B_Number": "+15553883000",
    "Proxy_Number": "+15556611212"
  },
  {
    "Session_Id": "Demo234",
    "Participant_A_Number": "+15555181212",
    "Participant_B_Number": "+12347896543",
    "Proxy_Number": "+15556611212"
  }
]

⁠Build and Run on Docker

Lets get started!

  1. Use our pre-built image from Docker Hub
For Python:
docker pull signalwire/snippets-call-text-proxy:python

(or build your own image)

  1. Build your image
docker build -t snippets-call-text-proxy .
  1. Run your image
docker run --publish 5000:5000 --env-file .env snippets-call-text-proxy
  1. The application will run on port 5000

Tag summary

Content type

Image

Digest

Size

344.1 MB

Last updated

over 6 years ago

docker pull signalwire/snippets-call-text-by-proxy:python