mirror of
https://github.com/jambonz/jambonz-api-server.git
synced 2026-07-21 03:22:00 +00:00
52 lines
704 B
JavaScript
52 lines
704 B
JavaScript
const Model = require('./model');
|
|
|
|
class SipGateway extends Model {
|
|
constructor() {
|
|
super();
|
|
}
|
|
}
|
|
|
|
SipGateway.table = 'sip_gateways';
|
|
SipGateway.fields = [
|
|
{
|
|
name: 'sip_gateway_sid',
|
|
type: 'string',
|
|
primaryKey: true
|
|
},
|
|
{
|
|
name: 'voip_carrier_sid',
|
|
type: 'string'
|
|
},
|
|
{
|
|
name: 'ipv4',
|
|
type: 'string',
|
|
required: true
|
|
},
|
|
{
|
|
name: 'port',
|
|
type: 'number'
|
|
},
|
|
{
|
|
name: 'inbound',
|
|
type: 'number'
|
|
},
|
|
{
|
|
name: 'outbound',
|
|
type: 'number'
|
|
},
|
|
{
|
|
name: 'is_active',
|
|
type: 'number'
|
|
},
|
|
{
|
|
name: 'account_sid',
|
|
type: 'string'
|
|
},
|
|
{
|
|
name: 'application_sid',
|
|
type: 'string'
|
|
}
|
|
];
|
|
|
|
module.exports = SipGateway;
|