示例#1
0
 def _start(self, callstart=True, args=None):
     if args is None:
         args = {}
     self._doState(self.__start__)
     if callstart:
         evt = CallStartedEvent(None)
         evt.args = args
         self._triggerEvent(evt)
示例#2
0
文件: voiceapp.py 项目: bmxp/shtoom
 def va_callstart(self, inboundLeg, args=None):
     if args is None:
         args = {}
     if inboundLeg is not None:
         self.__legs[inboundLeg.getCookie()] = inboundLeg
         if self._inbound is None:
             self._inbound = inboundLeg
     ce = CallStartedEvent(inboundLeg)
     ce.args = args
     self._triggerEvent(ce)
示例#3
0
文件: voiceapp.py 项目: braams/shtoom
 def va_callstart(self, inboundLeg, args=None):
     if args is None:
         args = {}
     if inboundLeg is not None:
         self.__legs[inboundLeg.getCookie()] = inboundLeg
         if self._inbound is None:
             self._inbound = inboundLeg
     ce = CallStartedEvent(inboundLeg)
     ce.args = args
     self._triggerEvent(ce)