Git Product home page Git Product logo

eventsocket's People

Contributors

arnaldopereira avatar fiorix avatar lxfontes avatar mooc0w avatar standardtoaster avatar xadhoom avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

eventsocket's Issues

Error in def _plainEvent(self, ctx):

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.

execute() should take uuid as an argument

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.