Skip to content

Instantly share code, notes, and snippets.

@rdegges
Created November 20, 2009 21:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rdegges/239824 to your computer and use it in GitHub Desktop.
Save rdegges/239824 to your computer and use it in GitHub Desktop.
#!/usr/bin/python
"""
hello-world.py
@author: Randall Degges
@email: rdegges@gmail.com
@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