[SR-Users] BUG: ip_addr2sbuf: unknown address family 0

AliReza Khoshgoftar Monfared khoshgoftar at gmail.com
Mon Jul 14 17:47:15 CEST 2014


Hi,

I am running a simple command on timer in a kamailio proxy.
Here is the related parts of the config scripts:

loadmodule "timer"
> modparam("timer", "declare_timer", "tmr1=LOG_STATS,1,fast,enable");
>
> route{
> ...
> }
>
> route[LOG_STATS] {
>         exec_avp("netstat -ul | grep ':sip' | awk '{print
> $$2}'","$avp(s:test)");
>         xlog("L_ALERT","logged RecvQ as $avp(s:test)");
>         return;
> }
>

Each time I run the "netstat" using the exec() inside the timer route
block, I get the following error from Kamailio in my log:

kamailio[28546]: : exec [../../parser/../ip_addr.h:669]: ip_addr2sbuf():
> BUG: ip_addr2sbuf: unknown address family 0
>

What is the meaning of this error, and what does kamailio mean by reporting
it as a "BUG"?

Is there any obvious reason, I am getting this? Is it related to calling
netstat to survey the RecvQ?


Thanks,
Alireza
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20140714/60172347/attachment.html>


More information about the sr-users mailing list