| @@ 193-221 (lines=29) @@ | ||
| 190 | return reverse('kamailio_globalblacklist_update', args=(self.pk,)) |
|
| 191 | ||
| 192 | ||
| 193 | class SpeedDial(models.Model): |
|
| 194 | ||
| 195 | # Fields |
|
| 196 | username = CharField(max_length=64, default='', help_text=_(u"Username / phone number")) |
|
| 197 | domain = CharField(max_length=64, default='', help_text=_(u"Domain name")) |
|
| 198 | sd_username = CharField(max_length=64, default='', help_text=_(u"Speed dial username")) |
|
| 199 | sd_domain = CharField(max_length=64, default='', help_text=_(u"Speed dial domain")) |
|
| 200 | new_uri = CharField(max_length=128, default='', help_text=_(u"New URI")) |
|
| 201 | fname = CharField(max_length=64, default='', help_text=_(u"First name")) |
|
| 202 | lname = CharField(max_length=64, default='', help_text=_(u"Last name")) |
|
| 203 | description = CharField(max_length=64, default='', help_text=_(u"Description")) |
|
| 204 | ||
| 205 | ||
| 206 | class Meta: |
|
| 207 | db_table = 'speed_dial' |
|
| 208 | app_label = 'kamailio' |
|
| 209 | ordering = ('-pk',) |
|
| 210 | unique_together = [ |
|
| 211 | ["username", "domain", "sd_domain", "sd_username"], |
|
| 212 | ] |
|
| 213 | ||
| 214 | def __unicode__(self): |
|
| 215 | return u'%s' % self.pk |
|
| 216 | ||
| 217 | def get_absolute_url(self): |
|
| 218 | return reverse('kamailio_speeddial_detail', args=(self.pk,)) |
|
| 219 | ||
| 220 | def get_update_url(self): |
|
| 221 | return reverse('kamailio_speeddial_update', args=(self.pk,)) |
|
| 222 | ||
| 223 | ||
| 224 | class PipeLimit(models.Model): |
|
| @@ 95-122 (lines=28) @@ | ||
| 92 | return reverse('kamailio_location_update', args=(self.pk,)) |
|
| 93 | ||
| 94 | ||
| 95 | class LocationAttrs(models.Model): |
|
| 96 | ||
| 97 | # Fields |
|
| 98 | ruid = CharField(max_length=64, default='', help_text=_(u"Record internal unique id")) |
|
| 99 | username = CharField(max_length=64, default='', help_text=_(u"Username / phone number")) |
|
| 100 | domain = CharField(max_length=64, null=True, blank=True, help_text=_(u"Domain name")) |
|
| 101 | aname = CharField(max_length=64, default='', help_text=_(u"Attribute name")) |
|
| 102 | atype = IntegerField(default=0, help_text=_(u"Attribute type")) |
|
| 103 | avalue = CharField(max_length=255, default='', help_text=_(u"Attribute value")) |
|
| 104 | last_modified = DateTimeField(default='2000-01-01 00:00:01', db_index=True, help_text=_(u"Date and time when this entry was last modified")) |
|
| 105 | ||
| 106 | ||
| 107 | class Meta: |
|
| 108 | db_table = 'location_attrs' |
|
| 109 | app_label = 'kamailio' |
|
| 110 | ordering = ('-pk',) |
|
| 111 | indexes = [ |
|
| 112 | models.Index(fields=['username', 'domain', 'ruid']), |
|
| 113 | ] |
|
| 114 | ||
| 115 | def __unicode__(self): |
|
| 116 | return u'%s' % self.pk |
|
| 117 | ||
| 118 | def get_absolute_url(self): |
|
| 119 | return reverse('kamailio_locationattrs_detail', args=(self.pk,)) |
|
| 120 | ||
| 121 | def get_update_url(self): |
|
| 122 | return reverse('kamailio_locationattrs_update', args=(self.pk,)) |
|
| 123 | ||
| 124 | ||
| 125 | class UserBlackList(models.Model): |
|
| @@ 27-54 (lines=28) @@ | ||
| 24 | from django_extensions.db.fields import AutoSlugField |
|
| 25 | ||
| 26 | ||
| 27 | class Acc(models.Model): |
|
| 28 | ||
| 29 | # Fields |
|
| 30 | method = CharField(max_length=16, default='', help_text=_(u"A method is the primary function that a request is meant to invoke on a server.")) |
|
| 31 | from_tag = CharField(max_length=64, default='', help_text=_(u"The tag parameter serves as a general mechanism to identify a dialog, which is the combination of the Call-ID along with two tags, one from participant in the dialog.")) |
|
| 32 | to_tag = CharField(max_length=64, default='', help_text=_(u"The tag parameter serves as a general mechanism to identify a dialog, which is the combination of the Call-ID along with two tags, one from participant in the dialog.")) |
|
| 33 | callid = CharField(max_length=255, default='', db_index=True, help_text=_(u"Call-ID header field uniquely identifies a particular invitation or all registrations of a particular client.")) |
|
| 34 | sip_code = CharField(max_length=3, default='', help_text=_(u"SIP reply code.")) |
|
| 35 | sip_reason = CharField(max_length=128, default='', help_text=_(u"SIP reply reason")) |
|
| 36 | time = DateTimeField(help_text=_(u"Date and time when this record was written.")) |
|
| 37 | time_attr = models.IntegerField(help_text=_(u"Unix timestamp")) |
|
| 38 | time_exten = models.IntegerField(help_text=_(u"extended value related to the time of event")) |
|
| 39 | ||
| 40 | ||
| 41 | class Meta: |
|
| 42 | db_table = 'acc' |
|
| 43 | app_label = 'accounting' |
|
| 44 | ordering = ('-pk',) |
|
| 45 | ||
| 46 | def __unicode__(self): |
|
| 47 | return u'%s' % self.pk |
|
| 48 | ||
| 49 | def get_absolute_url(self): |
|
| 50 | return reverse('accounting_acc_detail', args=(self.pk,)) |
|
| 51 | ||
| 52 | ||
| 53 | def get_update_url(self): |
|
| 54 | return reverse('accounting_acc_update', args=(self.pk,)) |
|
| 55 | ||
| 56 | ||
| 57 | class AccCdr(models.Model): |
|