Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #------------------------------------------------------------------
- # DID Subscriber.
- #------------------------------------------------------------------
- if phone.has_key(DID_SUBSCRIBER):
- #--------------------------------------------------------------
- # Shouldn't be PBX and DID ROUTING POLICY present in the same
- # time.
- #--------------------------------------------------------------
- log_assert(not phone.has_key(DID_SUBSCRIBER[PBX]) and
- phone.has_key(DID_SUBSCRIBER[DID_ROUTING_POLICY]))
- #--------------------------------------------------------------
- # Define the way of the DID subscriber connects.
- #--------------------------------------------------------------
- if phone.has_key(DID_SUBSCRIBER[DID_CODE]):
- did_code = phone[DID_SUBSCRIBER[DID_CODE]]
- if phone.has_key(DID_SUBSCRIBER[DID_ROUTING_POLICY]):
- did_subscriber_conf = phone[DID_SUBSCRIBER[DID_ROUTING_POLICY]]
- else:
- did_subscriber_conf = phone[DID_SUBSCRIBER[PBX]]
- subscriber = FVSubscriber(line_cfg,
- self.scenario_type.variant,
- bg = bg,
- did_code = did_code,
- did_subscriber_conf = did_subscriber_conf)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement