Created
October 14, 2011 15:46
-
-
Save bklang/1287464 to your computer and use it in GitHub Desktop.
Example call origination handling
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
robocall { | |
answer | |
# Join conference room based on dialed extension, in this case 8621 | |
dial("WOOMERA/conf:#{variables[:exten]}") | |
hangup | |
} | |
noisemaker { | |
answer | |
play 'tt-monkeys' | |
sleep 5 | |
play 'tt-weasels' | |
hangup | |
} |
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
[robocall] | |
exten => _.,1,AGI(agi://127.0.0.1/robocall) |
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
manager = Adhearsion::VoIP::Asterisk.manager_interface | |
manager.originate channel: "SIP/1234", context: "robocall", priority: "1", exten: "8621", async: "true" | |
manager.call_and_exec "WOOMERA/conf:8621", "AGI", :data => "agi://127.0.0.1/noisemaker" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment