tweak create.sql and config file

This commit is contained in:
Daniel Swarbrick committed 2011-01-03 14:01:08 +01:00
1 parent 93bbbe96af
commit aab453f52a
3 files changed
+5 -29

No files matched your search

@@ -1,5 +1,6 @@
-- Sample CDR table schema
create table a (
create table cdr (
id serial primary key,
local_ip_v4 inet not null,
caller_id_name varchar,
@@ -20,26 +21,3 @@ create table a (
sip_hangup_disposition varchar,
ani varchar
);
create table g (
id serial primary key,
local_ip_v4 inet not null,
caller_id_name varchar,
caller_id_number varchar,
destination_number varchar not null,
context varchar not null,
start_stamp timestamp with time zone not null,
answer_stamp timestamp with time zone,
end_stamp timestamp with time zone not null,
duration int not null,
billsec int not null,
hangup_cause varchar not null,
uuid uuid not null,
bleg_uuid uuid,
accountcode varchar,
read_codec varchar,
write_codec varchar,
sip_hangup_disposition varchar,
ani varchar
);
@@ -457,7 +457,6 @@ static void event_handler(switch_event_t *event)
PQfinish(globals.db_connection);
globals.db_online = 0;
}
}
}