This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File: /etc/asterisk/extensions.conf (don't use odbc as this becomes db intensive on a large number of messages) | |
[websms] | |
exten => _X.,1,NoOp(SMS receiving dialplan invoked) | |
exten => _X.,n,NoOp(To ${MESSAGE(to)}) | |
exten => _X.,n,NoOp(From ${MESSAGE(from)}) | |
exten => _X.,n,NoOp(Body ${MESSAGE(body)}) | |
exten => _X.,n,Set(ACTUALTO=${CUT(MESSAGE(to),@,1)}) | |
exten => _X.,n,ExecIf($["${ACTUALTO}" != "sip:${EXTEN}"]?Set(ACTUALTO=sip:${EXTEN})) | |
exten => _X.,n,MessageSend(${ACTUALTO},${MESSAGE(from)}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
third-party/pjproject/Makefile.rules | 3 ++- | |
1 file changed, 2 insertions(+), 1 deletion(-) | |
diff --git a/third-party/pjproject/Makefile.rules b/third-party/pjproject/Makefile.rules | |
index d2e7d25..1608efd 100644 | |
--- a/third-party/pjproject/Makefile.rules | |
+++ b/third-party/pjproject/Makefile.rules | |
@@ -3,7 +3,8 @@ PJPROJECT_URL = http://www.pjsip.org/release/$(PJPROJECT_VERSION) | |
# Even though we're not installing pjproject, we're setting prefix to /opt/pjproject to be safe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- The LRU-Cache is a table which maintains the insertion order of | |
-- values with a doubled linked list. Each new value is placed at the front of | |
-- this list. So the oldest values are found at the back/tail of this list. | |
-- A 'value' is the real data, which is going to be cached. | |
-- Each 'value' is wrapped by a 'entry' object. | |
-- This 'entry' keeps the pointers for the doubled linked list and also the lifetime. | |
function lru_cache_create(maxsize, max_age) | |
local lru_cache = { | |
-- Number of current cache entries | |
current_items = 0, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Controller: | |
# ROUTING ENGINE ("re" controller) | |
## THIS IS JUST A SAMPLE | |
## MAKE SURE YOU PUT PROPER SECURITY MEASURES IN PLACE | |
## Use it along with this: | |
## https://wiki.asterisk.org/wiki/display/AST/cURL | |
## | |
## (c) MultiTEL - https://multitel.net |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<head> | |
<title>2Factor Authentication test</title> | |
<script type="text/javascript"> | |
(function(d, script) { | |
script = d.createElement('script'); | |
script.type = 'text/javascript'; | |
script.async = true; | |
script.onload = function(){ | |
// remote script has loaded |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$server_url = "http://api.multitel.net/json/sendsms"; | |
if(isset($_POST['submit'])) { | |
$data = array( | |
'UserName' => $_POST['username'], | |
'Password' => $_POST['password'], | |
'From' => $_POST['from'], | |
'To' => $_POST['to'], | |
'Text' => $_POST['text'], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$server_url = 'http://api.multitel.net/json/'; | |
$method = 'sendfax'; | |
$server_url = $server_url.$method; | |
if(isset($_POST['submit'])) | |
{ | |
$type = 'string'; //this may need editing | |
$file_name =$_FILES['Message']['name']; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<head> | |
<title>2Factor Authentication test</title> | |
<script type="text/javascript"> | |
(function(d, script) { | |
script = d.createElement('script'); | |
script.type = 'text/javascript'; | |
script.async = true; | |
script.onload = function(){ | |
// remote script has loaded |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
F: json/getcountries | |
D: obtains list of available countries for DID service | |
P: | |
- UserName | |
- Password | |
M: | |
- POST : json/getcountries | |
- GET : json/getcountries/UserName/Password | |
============================================================================================================================== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$server_url = 'http://api.multitel.net/json/'; | |
$method = 'provisionaddress'; | |
$server_url = $server_url.$method; | |
if(isset($_POST['submit'])) { | |
$data = array( | |
'UserName' => $_POST['UserName'], | |
'Password' => $_POST['Password'], | |
'UniqueId' => $_POST['UniqueId'], |
NewerOlder