Ignore:
Timestamp:
Feb 22, 2008 11:10:17 AM (17 years ago)
Author:
bennylp
Message:

Ticket #7: Move PJSIP compile time configurations/settings (such as T1, T2 timers) to run-time (thanks Philippe Leuba)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/samples/pjsip-perf.c

    r1619 r1818  
    7272 
    7373#define THIS_FILE           "pjsip-perf.c" 
    74 #define DEFAULT_COUNT       (PJSIP_MAX_TSX_COUNT/2>10000?10000:PJSIP_MAX_TSX_COUNT/2) 
     74#define DEFAULT_COUNT       (pjsip_cfg()->tsx.max_count/2>10000?10000:pjsip_cfg()->tsx.max_count/2) 
    7575#define JOB_WINDOW          1000 
    7676#define TERMINATE_TSX(x,c) 
     
    12231223                return -1; 
    12241224            } 
    1225             if (app.client.job_count > PJSIP_MAX_TSX_COUNT) 
     1225            if (app.client.job_count > pjsip_cfg()->tsx.max_count) 
    12261226                PJ_LOG(3,(THIS_FILE,  
    12271227                          "Warning: --count value (%d) exceeds maximum " 
    12281228                          "transaction count (%d)", app.client.job_count, 
    1229                           PJSIP_MAX_TSX_COUNT)); 
     1229                          pjsip_cfg()->tsx.max_count)); 
    12301230            break; 
    12311231 
Note: See TracChangeset for help on using the changeset viewer.