On Thursday 27 October 2011, Daniel-Constantin Mierla wrote:
Hi Daniel,
have you thought about just extending the existing '-V' parameter? You print some more informations with the new added parameter, but its a bit redundant, IMHO. Or maybe remove the "non-version" information from the '-V' parameter?
$ ./kamailio -V version: kamailio 3.3.0-dev1 (i386/linux) 0b8f2e flags: STATS: Off, USE_IPV6, USE_TCP, USE_TLS, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, DBG_QM_MALLOC, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 4MB poll method support: poll, epoll_lt, epoll_et, sigio_rt, select. id: 0b8f2e compiled on 10:30:32 Oct 28 2011 with gcc 4.4.5
$ ./kamailio -I Print out of kamailio internals Version: kamailio 3.3.0-dev1 (i386/linux) 0b8f2e Default config: /usr/local/etc/kamailio/kamailio.cfg Default paths to modules: /usr/local/lib/kamailio/modules:/usr/local/lib/kamailio/modules_s:/usr/local/lib/kamailio/modules_k Compile flags: STATS: Off, USE_IPV6, USE_TCP, USE_TLS, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, DBG_QM_MALLOC, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES MAX_RECV_BUFFER_SIZE=262144 MAX_LISTEN=16 MAX_URI_SIZE=1024 BUF_SIZE=65535 DEFAULT PKG_SIZE=4MB DEFAULT SHM_SIZE=32MB ADAPTIVE_WAIT_LOOPS=1024 TCP poll methods: poll, epoll_lt, epoll_et, sigio_rt, select Source code revision ID: 0b8f2e Compiled with: gcc 4.4.5 Compiled on: 10:30:32 Oct 28 2011 Thank you for flying kamailio!
Best regards,
Henning
Hello,
indeed there is some overlap in listing compile flags. Not sure if they should stay on version dump. The purpose with -I is to dump more info suitable for debugging, which I think it will be too much for version option. It should be like what we need when someone reports an issue -- one missing part that we always ask is the operating system distro name and version -- the plan is to add it, along with other internals, including compile time flags which are not listed in version.
Cheers, Daniel
On 10/28/11 10:36 AM, Henning Westerholt wrote:
Am 16.11.2011 um 08:54 schrieb Daniel-Constantin Mierla:
indeed there is some overlap in listing compile flags. Not sure if they should stay on version dump. The purpose with -I is to dump more info suitable for debugging, which I think it will be too much for version option. It should be like what we need when someone reports an issue -- one missing part that we always ask is the operating system distro name and version -- the plan is to add it, along with other internals, including compile time flags which are not listed in version.
Just another proposal to restrict command-line switch diversity: Distinguish between -V to show basic information, -VV to show some more, -VVV even more, and so on, and tell people to use so many Vs. IMHO, this would be in line with how the -d switch works.
Cheers,
--Timo