parent
bf7bff193f
commit
80a020c408
@ -0,0 +1,24 @@
|
||||
use Sipwise::Base;
|
||||
use Module::Runtime qw(use_module);
|
||||
use Test::Fatal qw(exception);
|
||||
use Test::More import => [qw(done_testing ok)];
|
||||
|
||||
ok use_module('NGCP::Schema::Config')->instance->config_file('t/test.conf'), 'config';
|
||||
|
||||
for my $class_name (qw(
|
||||
accounting
|
||||
billing
|
||||
carrier
|
||||
kamailio
|
||||
ngcp
|
||||
provisioning
|
||||
sipstats
|
||||
)) {
|
||||
ok(my $class = use_module("NGCP::Schema::$class_name"), "+ load $class_name");
|
||||
ok(my $schema = $class->connect, "+ connect $class_name");
|
||||
for my $source (sort $schema->sources) {
|
||||
ok(!exception { $schema->resultset($source)->first }, "select $source");
|
||||
}
|
||||
}
|
||||
|
||||
done_testing;
|
@ -0,0 +1,131 @@
|
||||
<config
|
||||
adminmail="adjust@example.org"
|
||||
allow_ip_as_domain="1"
|
||||
allow_numeric_usernames="0"
|
||||
apache_port="2443"
|
||||
auto_allow_cli="1"
|
||||
callingcard_features="0"
|
||||
callthru_features="0"
|
||||
customer_features="0"
|
||||
db_reg_agent="1"
|
||||
fax_features=""
|
||||
faxpw_min_char=""
|
||||
ignore_auth_realm="0"
|
||||
lnp_features="0"
|
||||
log_passwords="0"
|
||||
logconf="t/logging.conf"
|
||||
no_logline_truncate="0"
|
||||
numberblock_features="0"
|
||||
product_features="0"
|
||||
prov_data_typing="1"
|
||||
pw_min_char="6"
|
||||
sip_lb_eaddress="192.168.51.42:5060"
|
||||
sip_path="<sip:127.0.0.1:5060;lr>"
|
||||
speed_dial_destinations_as_number="1"
|
||||
tmpdir="/tmp"
|
||||
usrprefs_as_number="1"
|
||||
voicemail_map_via_number="0">
|
||||
<database
|
||||
dsn="DBI:mysql:database=provisioning;host=localhost;port=3306"
|
||||
password="12345678901234567890"
|
||||
username="soap"
|
||||
/>
|
||||
<accountingdb
|
||||
dsn="DBI:mysql:database=accounting;host=localhost;port=3306"
|
||||
password=""
|
||||
username="root"
|
||||
/>
|
||||
<billingdb
|
||||
dsn="DBI:mysql:database=billing;host=localhost;port=3306"
|
||||
password=""
|
||||
username="root"
|
||||
/>
|
||||
<carrierdb
|
||||
dsn="DBI:mysql:database=carrier;host=localhost;port=3306"
|
||||
password=""
|
||||
username="root"
|
||||
/>
|
||||
<kamailiodb
|
||||
dsn="DBI:mysql:database=kamailio;host=localhost;port=3306"
|
||||
password=""
|
||||
username="root"
|
||||
/>
|
||||
<ngcpdb
|
||||
dsn="DBI:mysql:database=ngcp;host=localhost;port=3306"
|
||||
password=""
|
||||
username="root"
|
||||
/>
|
||||
<provisioningdb
|
||||
dsn="DBI:mysql:database=provisioning;host=localhost;port=3306"
|
||||
password=""
|
||||
username="root"
|
||||
/>
|
||||
<sipstatsdb
|
||||
dsn="DBI:mysql:database=sipstats;host=localhost;port=3306"
|
||||
password=""
|
||||
username="root"
|
||||
/>
|
||||
<openserdb
|
||||
dsn="DBI:mysql:database=kamailio;host=localhost;port=3306"
|
||||
password="12345678901234567890"
|
||||
username="soap"
|
||||
/>
|
||||
<security failed_auth_attempts="3" />
|
||||
<acl>
|
||||
<csc
|
||||
Billing=""
|
||||
Voip=""
|
||||
password="12345678901234567890"
|
||||
/>
|
||||
<cmd
|
||||
Billing=""
|
||||
Voip=""
|
||||
password="12345678901234567890"
|
||||
/>
|
||||
<proxy
|
||||
Billing=""
|
||||
Voip=""
|
||||
password="12345678901234567890"
|
||||
/>
|
||||
</acl>
|
||||
<invoice template="/usr/local/etc/corporate.pdf" />
|
||||
<fax
|
||||
default_sender=""
|
||||
faxserver=""
|
||||
sendfax=""
|
||||
/>
|
||||
<vsc>
|
||||
<actions>error</actions>
|
||||
<actions>unknown</actions>
|
||||
<actions>cfu_on</actions>
|
||||
<actions>cfu_off</actions>
|
||||
<actions>cfb_on</actions>
|
||||
<actions>cfb_off</actions>
|
||||
<actions>cft_on</actions>
|
||||
<actions>cft_off</actions>
|
||||
<actions>cfna_on</actions>
|
||||
<actions>cfna_off</actions>
|
||||
<actions>reminder_on</actions>
|
||||
<actions>reminder_off</actions>
|
||||
</vsc>
|
||||
<credit_warnings>
|
||||
<domain>example.com</domain>
|
||||
<threshold>1000</threshold>
|
||||
<recipients>nobody@example.com</recipients>
|
||||
</credit_warnings>
|
||||
<routing
|
||||
ac_regex="[1-9]\d{0,4}"
|
||||
cc_regex="[1-9]\d{0,3}"
|
||||
conference_domain="conference.local"
|
||||
fax2mail_domain="fax2mail.local"
|
||||
internal_domain="voip.sipwise.local"
|
||||
no_such_number="no_such_number"
|
||||
sn_regex="[1-9]\d+"
|
||||
voicebox_domain="voicebox.local"
|
||||
/>
|
||||
<reserved_usernames>voicebox</reserved_usernames>
|
||||
<reserved_usernames>emergency_.*</reserved_usernames>
|
||||
<system rrd_path="/var/lib/collectd/rrd" />
|
||||
<backends_enabled>Billing</backends_enabled>
|
||||
<backends_enabled>Voip</backends_enabled>
|
||||
</config>
|
Loading…
Reference in new issue