Navigation


Changeset 528:1b3b9790e7cb in freeDiameter for extensions/app_acct/acct_db.c


Ignore:
Timestamp:
Sep 3, 2010, 4:46:16 PM (14 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Add a new field in the app_acct.fdx database to receive the name of the local server.

Update your existing tables with the following SQL command:
ALTER TABLE "incoming" ADD "recorded_serv" bytea NOT NULL;

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/app_acct/acct_db.c

    r403 r528  
    142142        }
    143143       
     144        if (acct_config->srvnfield) {
     145                ADD_EXTEND("\"");
     146                ADD_ESCAPE(acct_config->srvnfield);
     147                ADD_EXTEND("\", ");
     148        }
     149       
    144150        for (li = emptyrecords.all.next; li != &emptyrecords.all; li = li->next) {
    145151                struct acct_record_item * i = (struct acct_record_item *)(li->o);
     
    158164        if (acct_config->tsfield) {
    159165                ADD_EXTEND("$%d, ", ++idx);
     166        }
     167        if (acct_config->srvnfield) {
     168                ADD_EXTEND("\"");
     169                ADD_ESCAPE(fd_g_config->cnf_diamid);
     170                ADD_EXTEND("\", ");
    160171        }
    161172       
Note: See TracChangeset for help on using the changeset viewer.