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 from axiom.item import Item
20 from axiom.attribute import boolean, integer, reference, text
23 class Connection(Item):
25 local_ip_address = text()
26 local_port = integer()
27 freeswitch_ip_address = text()
28 freeswitch_port = integer()
31 class SipProfile(Item):
32 connection = reference()
34 external_rtp_ip = text()
35 external_sip_ip = text()
39 accept_blind_registration = boolean()
40 authenticate_calls = boolean()
45 sip_profile = reference()
51 sip_profile = reference()
57 expire_in_seconds = integer()
58 retry_in_seconds = integer()
59 caller_id_in_from_field = boolean()
70 class Extension(Item):
71 destination_match = text()
74 endpoint = reference()
75 authenticate_calls = boolean()