Navigation


Changeset 392:8e260030f32c in freeDiameter for extensions/app_sip/diamsip.h


Ignore:
Timestamp:
Jul 6, 2010, 7:50:52 PM (14 years ago)
Author:
Alexandre Westfahl <awestfahl@freediameter.net>
Branch:
default
Phase:
public
Message:

Added configuration file for app_sip and test_sip

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/app_sip/diamsip.h

    r368 r392  
    4848#define DIGEST_LEN 16
    4949
    50 //SQL configuration
    51 #define DB_USERNAME "diamsip"
    52 #define DB_PASSWORD "BAVpzCUhULVHayFr"
    53 #define DB_SERVER "pineapple.tera.ics.keio.ac.jp"
    54 #define DB_DATABASE "diamsip"
     50
     51/* Mode for the extension */
     52#define MODE_DSSERVER   0x1
     53#define MODE_SL 0x2
     54
     55
     56/* The module configuration */
     57struct as_conf {
     58        int             mode;           /* default MODE_DSSERVER | MODE_SL */
     59        enum {ASMYSQL} datasource;
     60        char * mysql_login;
     61        char * mysql_password;
     62        char * mysql_database;
     63        char * mysql_server;
     64        uint16_t  mysql_port;
     65       
     66};
     67extern struct as_conf * as_conf;
     68
     69/* Parse the configuration file */
     70int as_conf_handle(char * conffile);
     71
    5572
    5673extern MYSQL *conn;
     
    6178void clear_digest(char * digest, char * readable_digest, int digestlength);
    6279struct avp_hdr * walk_digest(struct avp *avp, int avp_code);
    63 int start_mysql_connection(char *server,char *user, char *password, char *database);
     80int start_mysql_connection();
    6481void request_mysql(char *query);
    6582void close_mysql_connection();
    66 /*
    67 typedef struct noncechain noncechain;
    68 struct noncechain
    69 {
    70     int timestamp;
    71     char * nonce;
    72     noncechain *next;
    73 };
    74 
    75 
    76 //Global variable which points to chained list of nonce
    77 noncechain* listnonce;
    78 
    79 void nonce_add_element(char * nonce);
    80 int nonce_check_element(char * nonce);
    81 void nonce_deletelistnonce();
    82 */
    8383
    8484
Note: See TracChangeset for help on using the changeset viewer.