[sr-dev] git:master: core: new command line option -I

Timo Reimann sr at foo-lounge.de
Wed Nov 16 20:36:54 CET 2011


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


> On 10/28/11 10:36 AM, Henning Westerholt wrote:
>> On Thursday 27 October 2011, Daniel-Constantin Mierla wrote:
>>> Module: sip-router
>>> Branch: master
>>> Commit: f5803916a37e0f2151335e65283060c6a88de9e0
>>> URL:
>>> http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=f58039
>>> 16a37e0f2151335e65283060c6a88de9e0
>>> 
>>> core: new command line option -I
>>> 
>>> - print details about default internal attributes
>> 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
>> 
>> _______________________________________________
>> sr-dev mailing list
>> sr-dev at lists.sip-router.org
>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
> 
> -- 
> Daniel-Constantin Mierla -- http://www.asipto.com
> Kamailio Advanced Training, Dec 5-8, Berlin: http://asipto.com/u/kat
> http://linkedin.com/in/miconda -- http://twitter.com/miconda
> 
> 
> _______________________________________________
> sr-dev mailing list
> sr-dev at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev




More information about the sr-dev mailing list