fb45cc700ad554efc07d4b68ed1aa6e59cc68bff
[ipypbx] / src / ipypbx / models.py
1 from axiom.item import Item
2 from axiom.attribute import boolean, integer, reference, text
3
4
5 class Connection(Item):
6     name = text()
7     local_ip_address = text()
8     local_port = integer()
9     freeswitch_ip_address = text()
10     freeswitch_port = integer()
11
12
13 class SipProfile(Item):
14     connection = reference()
15     name = text()
16     external_rtp_ip = text()
17     external_sip_ip = text()
18     rtp_ip = text()
19     sip_ip = text()
20     sip_port = integer()
21     accept_blind_registration = boolean()
22     authenticate_calls = boolean()
23     is_active = boolean()
24
25
26 class Domain(Item):
27     sip_profile = reference()
28     host_name = text()
29     is_active = boolean()
30
31
32 class Gateway(Item):
33     sip_profile = reference()
34     name = text()
35     username = text()
36     password = text()
37     realm = text()
38     from_domain = text()
39     expire_in_seconds = integer()
40     retry_in_seconds = integer()
41     caller_id_in_from_field = boolean()
42     is_active = boolean()
43
44
45 class Endpoint(Item):
46     user_id = text()
47     password = text()
48     domain = text()
49     is_active = boolean()
50
51
52 class Extension(Item):
53     destination_match = text()
54     xml_dialplan = text()
55     domain = text()
56     endpoint = reference()
57     authenticate_calls = boolean()
58     is_active = boolean()
59