Skip to content

Instantly share code, notes, and snippets.

@mwicat
Created July 25, 2012 08:24
Show Gist options
  • Select an option

  • Save mwicat/3175079 to your computer and use it in GitHub Desktop.

Select an option

Save mwicat/3175079 to your computer and use it in GitHub Desktop.
Freeswitch XML-RPC
#!/usr/bin/python
from xmlrpclib import ServerProxy
host = 'localhost'
username = 'freeswitch'
password = 'works'
port = '8080'
server = ServerProxy("http://%s:%s@%s:%s" % (username, password, host, port))
print 'result:' + server.freeswitch.api("originate", "sofia/internal/111@192.168.0.10 &hangup()")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment