This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django import forms | |
class CreateServerForm(forms.Form): | |
""" | |
Create a new Server model. | |
""" | |
hostname = forms.CharField( | |
label = 'Server Name', | |
max_length = 50, | |
required = False |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.db import models | |
class Server(models.Model): | |
""" | |
This class represents a physical server. | |
""" | |
hostname = models.CharField('Server Name', | |
help_text = 'Hostname of the server.', | |
max_length = 50 | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[inbound] | |
exten => 18182223333,1,Dial(SIP/1000) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[outgoing] | |
exten => _1NXXNXXXXXX,1,Dial(SIP/${EXTEN}@${GLOBAL(TRUNK)}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[general] | |
static=yes | |
writeprotect=no | |
clearglobalvars=no | |
[globals] | |
TRUNK=flowroute |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[1000] | |
type=friend | |
nat=yes | |
canreinvite=no | |
secret=mysecretpassword | |
qualify=yes | |
mailbox=1000@default | |
host=dynamic | |
dtmfmode=rfc2833 | |
dial=SIP/1000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@localhost asterisk]# asterisk -rx 'sip show registry' | |
Host Username Refresh State Reg.Time | |
sip.flowroute.com:5060 xxxxxxxx 105 Registered Tue, 02 Mar 2010 09:34:23 | |
1 SIP registrations. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
allow=ulaw | |
allow=g729 | |
register => xxx:[email protected] | |
[authentication] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[digium-current] | |
name=CentOS-$releasever - Digium - Current | |
baseurl=http://packages.digium.com/centos/$releasever/current/$basearch/ | |
enabled=1 | |
gpgcheck=0 | |
#gpgkey=http://packages.digium.com/RPM-GPG-KEY-Digium |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[asterisk-current] | |
name=CentOS-$releasever - Asterisk - Current | |
baseurl=http://packages.asterisk.org/centos/$releasever/current/$basearch/ | |
enabled=1 | |
gpgcheck=0 | |
#gpgkey=http://packages.asterisk.org/RPM-GPG-KEY-Digium |