Giter VIP home page Giter VIP logo

sip-stack's Introduction

sip-stack

Following are the steps to setting up the sip stack

Setup SIP middleware repository

Use this Cloudformation template to create SIP middleware app repo.

Following are prerequisites for creating a stack.

  1. Admin Cloud formation role
  2. Select IAM resource compatibility check box while running stack

There are three outputs of the stack.

  1. Credentials to push the Middleware repository
    • AccesskeyID
    • SecretKey
  2. Repository path as variable RepoForSipMiddlewareApp

Download the sip-stack repo and check the constants based on the region you are creating the stack. Build the Docker using docker build. If you are using the us-west-2 zone you can continue with next step without any changes.

docker build -t sip-middleware-app .

Following are commands to push docker image to the repository from your computer.

  1. Login to AWS using the credentials generated by the stack.

aws ecr get-login-password --region us-west-2 | docker login --username AWS --password-stdin {{REPO - PATH}}

  1. Tag the docker image

docker tag sip-middleware-app:latest {{REPO - PATH}}:{{REPO- NAME}}:latest

  1. Push the image to AWS repository and copy the image link {{REPO - PATH}}:{{REPO- NAME}}:latest. docker push *{{REPO - PATH}}:{{REPO- NAME}}:latest*

SIP Stack with sip server and middleware

For creating the SIP stack along with middleware and SIP server using cloudformation template.

Following are the prerequisite of creating before creating this stack

  • Cloudformation stack role with admin rights
  • Select IAM resource compatibility check box while running stack
  • Region should be same as the first stack
  • AWS EC2 Key exits for launching EC2 instances.
  • SIP Middleware App's image path which we generated in step one.

Output of this stack is one SIP server EIP which has following ports open

5060 - TCP Allowed to connections from internet. 6060 - UDP Allowed to be connected from internet 9022 - TCP Allowed to connect from VPC CIDR.

The middleware connects to the SIP server using internal DNS hosted zone. There is no autocaling configured for this project because for larger system you will have to consider synchronization and a SIP Proxy which is notified by the DNS changes to accept connection on autoscaling.

sip-stack's People

Contributors

creatorip1 avatar jvaghela-fintech avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.