mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-29 06:34:19 +00:00
broadcast wav functionality
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6019 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
603463d126
commit
27268166d7
3 files changed
+42
-1
No files matched your search
@@ -312,7 +312,17 @@ class FreepyDispatcher(LineReceiver):
|
||||
self.transport.write("%s\n\n" % msg)
|
||||
return req.getDeferred()
|
||||
|
||||
|
||||
def broadcast(self, uuid, path, legs, bgapi = False):
|
||||
if bgapi == True:
|
||||
msg = "bgapi broadcast %s %s %s" % (uuid, path, legs)
|
||||
req = request.BgApiRequest()
|
||||
else:
|
||||
msg = "api broadcast %s %s %s" % (uuid, path, legs)
|
||||
req = request.ApiRequest()
|
||||
self.requestq.put(req)
|
||||
print "sending to fs: %s" % msg
|
||||
self.transport.write("%s\n\n" % msg)
|
||||
return req.getDeferred()
|
||||
|
||||
|
||||
def lineReceived(self, line):
|
||||
|
||||
Reference in new issue
Block a user