Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | None | 0 0
  1. #------------------------------------------------------------------
  2. # DID Subscriber.
  3. #------------------------------------------------------------------
  4. if phone.has_key(DID_SUBSCRIBER):
  5. #--------------------------------------------------------------
  6. # Shouldn't be PBX and DID ROUTING POLICY present in the same
  7. # time.
  8. #--------------------------------------------------------------
  9. log_assert(not phone.has_key(DID_SUBSCRIBER[PBX]) and
  10. phone.has_key(DID_SUBSCRIBER[DID_ROUTING_POLICY]))
  11. #--------------------------------------------------------------
  12. # Define the way of the DID subscriber connects.
  13. #--------------------------------------------------------------
  14. if phone.has_key(DID_SUBSCRIBER[DID_CODE]):
  15. did_code = phone[DID_SUBSCRIBER[DID_CODE]]
  16.  
  17. if phone.has_key(DID_SUBSCRIBER[DID_ROUTING_POLICY]):
  18. did_subscriber_conf = phone[DID_SUBSCRIBER[DID_ROUTING_POLICY]]
  19. else:
  20. did_subscriber_conf = phone[DID_SUBSCRIBER[PBX]]
  21.  
  22. subscriber = FVSubscriber(line_cfg,
  23. self.scenario_type.variant,
  24. bg = bg,
  25. did_code = did_code,
  26. did_subscriber_conf = did_subscriber_conf)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement