fiorix / eventsocket Goto Github PK
View Code? Open in Web Editor NEWTwisted protocol for the FreeSWITCH's Event Socket
License: Other
Twisted protocol for the FreeSWITCH's Event Socket
License: Other
Could you add a LICENSE file? Would love to use this project.
Could you release it to PyPI?
Hi guys.
Found an error getting events from the module VERTO.
When the current is getting the error:
File "/Users/alexeypanyovin/_dev/dev/manager/eventsocket/eventsocket.py", line 238, in _plainEvent
Method = getattr (self, evname, None)
Exceptions.UnboundLocalError: local variable 'evname' referenced before assignment
The problem is that evente from VERTO no key Event_Name.
I propose a solution:
def _plainEvent (self, ctx):
name = ctx.data.get ("Event_Name")
if name is not None:
evname = "on" + string.capwords (name, ""). replace ("", "")
method = getattr (self, evname, None)
else:
if 'verto_host' in ctx.data:
method = getattr (self, "onVertoEvent", None)
else:
print "Event_Name not set in ctx.data \ n% s"% str (ctx.data)
if callable (method):
return method (ctx.data)
else:
return self.unboundEvent (ctx.data, evname)
Catch in the function onVertoEvent.
Hi,
I was trying to originate a call using bgapi and play a message using flite. Since, the message is immediately read out to caller, I wanted to execute the sleep dialplan application. This would require the uuid of the channel, which I get by subscribing to CHANNEL_ANSWER event. Shouldn't execute() be able to take a uuid and pass it on to __protocolSend ?
I've patched this in my fork.
Should I send a pull request?
Could you release it to pypi like you did for 0.1.4?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.