Skip to content

Instantly share code, notes, and snippets.

@tsudot
tsudot / plivo_curl.php
Last active November 21, 2021 10:22
Send an SMS using curl through Plivo.
<?php
# Plivo AUTH ID
$AUTH_ID = '';
# Plivo AUTH TOKEN
$AUTH_TOKEN = '';
# SMS sender ID.
$src = '';
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from flask import Flask, Response, request, url_for
import plivoxml
from utils import bitcoinnews_from_reddit, r
# This file will be played when a caller presses 2.
PLIVO_DIG_SIGS = "http://bitcoininfoline.com/mp3resources/bitcoindigitalsignatures.mp3"
# This file will be played when a caller presses 3.
PLIVO_BENEFITS = "http://bitcoininfoline.com/mp3resources/bitcoinbenefits.mp3"
@tsudot
tsudot / speak.js
Created May 5, 2014 17:14
Example to speak out a message with Plivo
var http = require('http');
var plivo = require('plivo');
var server = http.createServer(function (request, response) {
var r = plivo.Response();
var body = 'Welcome to Plivo';
var params = {'loop' : 2};
@tsudot
tsudot / sip_dial.xml
Created April 10, 2014 02:17
Sample Plivo SIP Dial
<Response>
<Dial callerId="18004321321">
<User>sip:yoda12312312@phone.plivo.com</User>
</Dial>
</Response>
@tsudot
tsudot / swig.rb
Last active August 29, 2015 13:57
Swig brew 3.0 for osx
require 'formula'
class Swig < Formula
url 'http://downloads.sourceforge.net/project/swig/swig/swig-3.0.0/swig-3.0.0.tar.gz'
homepage 'http://www.swig.org/'
md5 '9c8278fad527dda4bf38edffe5acc394'
depends_on 'pcre'
def install
#!/bin/bash
# Plivo Installation script for CentOS 5 and 6
# and Debian based distros (Debian 5.0 , Ubuntu 10.04 and above)
# Copyright (c) 2011 Plivo Team. See LICENSE for details.
PLIVO_GIT_REPO=git://github.com/plivo/plivoframework.git
PLIVO_SETUP_SCRIPT=https://raw.github.com/plivo/plivoframework/master/scripts/ez_setup.py
#!/bin/bash
# FreeSWITCH Installation script for CentOS 5.5/5.6
# and Debian based distros (Debian 5.0 , Ubuntu 10.04 and above)
# Copyright (c) 2011 Plivo Team. See LICENSE for details.
FS_CONF_PATH=https://raw.githubusercontent.com/plivo/plivoframework/master/freeswitch
FS_GIT_REPO=git://git.freeswitch.org/freeswitch.git
FS_INSTALLED_PATH=/usr/local/freeswitch
input {
udp {
port => 5666
type => "syslog"
}
}
filter {
if [type] == "syslog" {
grok {
input {
udp {
port => 5666
type => syslog
}
}
filter {
grok {
type => "syslog"
<!DOCTYPE html>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at