|
@@ -20,11 +20,6 @@ class ChannelParkHandler(EslEventHandler):
|
|
|
|
|
|
def handle(self, address, event, coreUUID):
|
|
|
# self.logger.info("ChannelParkHandler, event=%s", json.loads(event.serialize('json')))
|
|
|
- service = event.getHeader("variable_service")
|
|
|
- if service:
|
|
|
- self.process_fxo_calling(event)
|
|
|
- return
|
|
|
-
|
|
|
call_id = getCallId(event)
|
|
|
device_id = getUniqueId(event)
|
|
|
need_hold_music = getVariableNeedHoldMusic(event)
|
|
@@ -34,6 +29,11 @@ class ChannelParkHandler(EslEventHandler):
|
|
|
self.play_hold_music(call_id, device_id, event)
|
|
|
return
|
|
|
|
|
|
+ service = event.getHeader("variable_service")
|
|
|
+ if service:
|
|
|
+ self.process_fxo_calling(event)
|
|
|
+ return
|
|
|
+
|
|
|
def play_hold_music(self, call_id, device_id, event):
|
|
|
self.logger.info('debugger, ChannelParkHandler, call_id=%s, device_id=%s'%(call_id, device_id))
|
|
|
if not call_id or not device_id:
|