@@ 1296-1331 (lines=36) @@ | ||
1293 | # VOIP SWITCH |
|
1294 | ||
1295 | ||
1296 | class VoipSwitch(models.Model): |
|
1297 | """ VoipSwitch Profile """ |
|
1298 | name = models.CharField(_(u"Switch name"), |
|
1299 | max_length=50, |
|
1300 | help_text=_(u"Switch name")) |
|
1301 | ip = models.CharField(_(u"switch IP"), |
|
1302 | max_length=100, |
|
1303 | default="auto", |
|
1304 | help_text=_(u"Switch IP.")) |
|
1305 | esl_listen_ip = models.CharField(_(u"event socket switch IP"), |
|
1306 | max_length=100, |
|
1307 | default="127.0.0.1", |
|
1308 | help_text=_(u"Event socket switch IP.")) |
|
1309 | esl_listen_port = models.PositiveIntegerField(_(u"""event socket switch |
|
1310 | port"""), |
|
1311 | default="8021", |
|
1312 | help_text=_(u"""Event socket |
|
1313 | switch port.""")) |
|
1314 | esl_password = models.CharField(_(u"event socket switch password"), |
|
1315 | max_length=30, |
|
1316 | default="ClueCon", |
|
1317 | help_text=_(u"""Event socket switch |
|
1318 | password.""")) |
|
1319 | date_added = models.DateTimeField(_(u'date added'), |
|
1320 | auto_now_add=True) |
|
1321 | date_modified = models.DateTimeField(_(u'date modified'), |
|
1322 | auto_now=True) |
|
1323 | ||
1324 | class Meta: |
|
1325 | db_table = 'voip_switch' |
|
1326 | ordering = ('name', ) |
|
1327 | verbose_name = _(u'VoIP Switch') |
|
1328 | verbose_name_plural = _(u'VoIP Switches') |
|
1329 | ||
1330 | def __unicode__(self): |
|
1331 | return u"%s (:%s)" % (self.name, self.ip) |
|
1332 | ||
1333 | # SOFIA |
|
1334 | ||
@@ 1695-1724 (lines=30) @@ | ||
1692 | # Hangup Cause |
|
1693 | ||
1694 | ||
1695 | class HangupCause(models.Model): |
|
1696 | """ Hangup Cause Model """ |
|
1697 | code = models.PositiveIntegerField(_(u"Hangup code"), |
|
1698 | unique=True, |
|
1699 | help_text=_(u"ITU-T Q.850 Code.")) |
|
1700 | enumeration = models.CharField(_(u"enumeration"), |
|
1701 | max_length=100, |
|
1702 | null=True, |
|
1703 | blank=True, |
|
1704 | help_text=_(u"enumeration.")) |
|
1705 | cause = models.CharField(_(u"cause"), |
|
1706 | max_length=100, |
|
1707 | null=True, |
|
1708 | blank=True, |
|
1709 | help_text=_(u"Cause.")) |
|
1710 | description = models.TextField(_(u'description'), |
|
1711 | blank=True) |
|
1712 | date_added = models.DateTimeField(_(u'date added'), |
|
1713 | auto_now_add=True) |
|
1714 | date_modified = models.DateTimeField(_(u'date modified'), |
|
1715 | auto_now=True) |
|
1716 | ||
1717 | class Meta: |
|
1718 | db_table = 'hangup_cause' |
|
1719 | ordering = ('code',) |
|
1720 | verbose_name = _(u"hangupcause") |
|
1721 | verbose_name_plural = _(u"hangupcauses") |
|
1722 | ||
1723 | def __unicode__(self): |
|
1724 | return u"[%s] %s" % (self.code, self.enumeration) |
|
1725 | ||
1726 | # CDR |
|
1727 |