1 # Copyright (c) Stas Shtin, 2010
3 # This file is part of IPyPBX.
5 # IPyPBX is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation, either version 3 of the License, or
8 # (at your option) any later version.
10 # IPyPBX is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with IPyPBX. If not, see <http://www.gnu.org/licenses/>.
19 # THIS FILE WILL BE DELETED SOON
21 from axiom.item import Item
22 from axiom.attributes import boolean, integer, reference, text
25 class Connection(Item):
27 local_ip_address = text()
28 local_port = integer()
29 freeswitch_ip_address = text()
30 freeswitch_port = integer()
33 class SipProfile(Item):
34 connection = reference()
36 external_rtp_ip = text()
37 external_sip_ip = text()
41 accept_blind_registration = boolean()
42 authenticate_calls = boolean()
47 sip_profile = reference()
53 sip_profile = reference()
59 expire_in_seconds = integer()
60 retry_in_seconds = integer()
61 caller_id_in_from_field = boolean()
72 class Extension(Item):
73 destination_match = text()
76 endpoint = reference()
77 authenticate_calls = boolean()