@@ 1148-1184 (lines=37) @@ | ||
1145 | default="auto", |
|
1146 | help_text=_(u"Switch IP.")) |
|
1147 | esl_listen_ip = models.CharField(_(u"event socket switch IP"), |
|
1148 | max_length=100, |
|
1149 | default="127.0.0.1", |
|
1150 | help_text=_(u"Event socket switch IP.")) |
|
1151 | esl_listen_port = models.PositiveIntegerField(_(u"""event socket switch |
|
1152 | port"""), |
|
1153 | default="8021", |
|
1154 | help_text=_(u"""Event socket |
|
1155 | switch port.""")) |
|
1156 | esl_password = models.CharField(_(u"event socket switch password"), |
|
1157 | max_length=30, |
|
1158 | default="ClueCon", |
|
1159 | help_text=_(u"""Event socket switch |
|
1160 | password.""")) |
|
1161 | date_added = models.DateTimeField(_(u'date added'), |
|
1162 | auto_now_add=True) |
|
1163 | date_modified = models.DateTimeField(_(u'date modified'), |
|
1164 | auto_now=True) |
|
1165 | ||
1166 | class Meta: |
|
1167 | db_table = 'voip_switch' |
|
1168 | app_label = 'pyfreebill' |
|
1169 | ordering = ('name', ) |
|
1170 | verbose_name = _(u'VoIP Switch') |
|
1171 | verbose_name_plural = _(u'VoIP Switches') |
|
1172 | ||
1173 | def __unicode__(self): |
|
1174 | return u"%s (:%s)" % (self.name, self.ip) |
|
1175 | ||
1176 | # SOFIA |
|
1177 | ||
1178 | ||
1179 | class SipProfile(models.Model): |
|
1180 | """ Sofia Sip profile """ |
|
1181 | name = models.CharField(_(u"SIP profile name"), |
|
1182 | max_length=50, |
|
1183 | unique=True, |
|
1184 | help_text=_(u"""E.g.: the name you want ...""")) |
|
1185 | user_agent = models.CharField(_(u"User agent name"), |
|
1186 | max_length=50, |
|
1187 | default="pyfreebilling", |
|
@@ 1568-1598 (lines=31) @@ | ||
1565 | blank=True, |
|
1566 | help_text=_(u"enumeration.")) |
|
1567 | cause = models.CharField(_(u"cause"), |
|
1568 | max_length=100, |
|
1569 | null=True, |
|
1570 | blank=True, |
|
1571 | help_text=_(u"Cause.")) |
|
1572 | description = models.TextField(_(u'description'), |
|
1573 | blank=True) |
|
1574 | date_added = models.DateTimeField(_(u'date added'), |
|
1575 | auto_now_add=True) |
|
1576 | date_modified = models.DateTimeField(_(u'date modified'), |
|
1577 | auto_now=True) |
|
1578 | ||
1579 | class Meta: |
|
1580 | db_table = 'hangup_cause' |
|
1581 | app_label = 'pyfreebill' |
|
1582 | ordering = ('code',) |
|
1583 | verbose_name = _(u"hangupcause") |
|
1584 | verbose_name_plural = _(u"hangupcauses") |
|
1585 | ||
1586 | def __unicode__(self): |
|
1587 | return u"[%s] %s" % (self.code, self.enumeration) |
|
1588 | ||
1589 | # STATS |
|
1590 | ||
1591 | ||
1592 | class DimDate(models.Model): |
|
1593 | """ Date dimension """ |
|
1594 | date = models.DateTimeField() |
|
1595 | day = models.CharField(_(u'day'), max_length=2) |
|
1596 | day_of_week = models.CharField(_(u'day of the week'), max_length=30) |
|
1597 | hour = models.CharField(_(u'hour'), max_length=2, null=True, blank=True) |
|
1598 | month = models.CharField(_(u'month'), max_length=2) |
|
1599 | quarter = models.CharField(_(u'quarter'), max_length=2) |
|
1600 | year = models.CharField(_(u'year'), max_length=4) |
|
1601 |