Last active
August 29, 2015 14:19
-
-
Save BlackMac/3ae6684c148731e206f4 to your computer and use it in GitHub Desktop.
a sipgate.io example in node.js
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
if (call.direction === "in") { | |
switch (call.from){ | |
case numbers.grandma: | |
call.play("http://sipgate.io/hi_grandma.wav"); | |
break; | |
case numbers.boss: | |
call.reject(); | |
break; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment