Skip to content

Instantly share code, notes, and snippets.

View masterfermin02's full-sized avatar
🌎
Hello world!

Fermin Perdomo masterfermin02

🌎
Hello world!
View GitHub Profile
@masterfermin02
masterfermin02 / app.js
Created November 9, 2017 14:37 — forked from datchley/app.js
"Getting Functional with Javascript" Blog post source files
/**
* Primary application logic for our Functional Programming blog example
* See related blog series at: http://www.datchley.name/tag/functional-programming/
* Version: 2.0
*/
// A simple, resuable comparison for '>='
function greaterThanOrEqual(a, b) {
return a >= b
}
@masterfermin02
masterfermin02 / originate_call.php
Created February 8, 2022 20:06 — forked from anpel/originate_call.php
Originate a call from Asterisk using PHP and Asterisk Manager Interface
/**
* Once this scipt is executed it will connect to the local port you have assigned to
* Asterisk (default: 5038) and send an authentication request. If successfull, it will
* send a second request to originate your call.
*
* The internal SIP line $internalPhoneline will be dialed, and when picked up the
* $target phone will be dialed using your outbound calls context ($context).
*
* Of course, you can modify the commands sent to the asterisk manager interface to suit your needs.
* you can find more about the available options at: