Created
November 20, 2009 21:57
-
-
Save rdegges/239824 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/usr/bin/python | |
""" | |
hello-world.py | |
@author: Randall Degges | |
@email: [email protected] | |
@date: 11-20-09 | |
This program tests the pycall library and makes sure that you are able to place | |
calls correctly. | |
""" | |
from pycall.callfile import * | |
def main(): | |
""" | |
Create a call to your cell phone (for testing). It will say 'hello world' | |
then hang up on you. | |
""" | |
testcall = CallFile( | |
trunk_type = 'SIP', | |
trunk_name = 'flowroute', | |
number = '18182223333', | |
application = 'Playback', | |
data = 'hello-world', | |
user = 'asterisk' | |
) | |
testcall.run() | |
if __name__ == '__main__': | |
""" | |
Program execution begins here. | |
""" | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment