Skip to content

spicyramen/sipLocator

Repository files navigation

TODO: WebSockets support TODO: SIP TLS support TODO: SIP UDP fragmentation

sipLocator

Read SIP Packets from Network card (TCP,UDP)

a) Stores information in Cloud.(parse.com) b) Send SMS notification for new calls (twilio client) c) Implements RFC 6872 SIP CLF d) Starts an XML-RPC server to retrieve data via XML RPC method calculates Distance from System to Call using harvesine Formula

Installation:

  1. Minimum: Python 2.7 Link below contains instructions to upgrade

  2. Install pip Ubuntu: apt-get install python-pip CentOS/RedHat - Follow instructions below https://www.digitalocean.com/community/articles/how-to-set-up-python-2-7-6-and-3-3-3-on-centos-6-4

  3. If you want to send information to parse.com pip install git+https://github.com/dgrtwo/ParsePy.git

    a) Change sipLocatorConfig to: ENABLE_PARSE=True

  4. If you want to receive SMS Notifications install twilio library pip install twilio a) Change sipLocatorConfig to: ENABLE_SMS_NOTIFICATIONS = True

  5. If you want to generate SIP CLF record a) Change sipLocatorConfig to: ENABLE_SIPCLF = True

  6. Run: python sipLocator.py &

sipLocator XML-RPC server

Allows to process new SIP information locally

  1. Edit sipLocatorConfig.py

     XML_GEO_LOCATION
     XML_GEO_SEARCH_ENABLED	
    

    XML_HOSTNAME XML_PORT XML_USERNAME XML_PASSWORD

  2. Run python sipLocatorXmlRpc.py

Releases

No releases published

Packages

No packages published

Languages