Ignore:
Timestamp:
Jul 5, 2012 10:52:55 AM (7 years ago)
Author:
nanang
Message:

Re: Added compile-time setting PJNATH_STUN_SOFTWARE_NAME to specify SOFTWARE attribute for STUN sessions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjnath/include/pjnath/config.h

    r3553 r4199  
    488488#endif 
    489489 
     490/** Default STUN software name */ 
     491#ifndef PJNATH_STUN_SOFTWARE_NAME 
     492#   define PJNATH_MAKE_SW_NAME(a,b,c,d)     "pjnath-" #a "." #b "." #c d 
     493#   define PJNATH_MAKE_SW_NAME2(a,b,c,d)    PJNATH_MAKE_SW_NAME(a,b,c,d) 
     494#   define PJNATH_STUN_SOFTWARE_NAME        PJNATH_MAKE_SW_NAME2( \ 
     495                                                    PJ_VERSION_NUM_MAJOR, \ 
     496                                                    PJ_VERSION_NUM_MINOR, \ 
     497                                                    PJ_VERSION_NUM_REV, \ 
     498                                                    PJ_VERSION_NUM_EXTRA) 
     499#endif 
     500 
    490501/** 
    491502 * @} 
Note: See TracChangeset for help on using the changeset viewer.