added account atribute to callcost

This commit is contained in:
Radu Ioan Fericean
2012-07-13 16:41:33 +03:00
parent 53f9737c4e
commit fb40cbdd19
8 changed files with 21 additions and 8 deletions

View File

@@ -48,12 +48,13 @@ func (psl *PostgresLogger) Log(uuid string, cc *timespans.CallCost) {
if err != nil {
log.Printf("Error marshalling timespans to json: %v", err)
}
_, err = psl.db.Exec(fmt.Sprintf("INSERT INTO callcosts VALUES ('%s', '%s', '%s', '%s', '%s', %v, %v, '%s')",
_, err = psl.db.Exec(fmt.Sprintf("INSERT INTO callcosts VALUES ('%s','%s', '%s', '%s', '%s', '%s', '%s', %v, %v, '%s')",
uuid,
cc.Destination,
cc.Tenant,
cc.TOR,
cc.Subject,
cc.Account,
cc.Destination,
cc.Cost,
cc.ConnectFee,