<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
the timer executes using a fake sip request which doesn't have all
the attributes related to source and destination address. Perhaps
exec_avp() tries to set one of these addresses as a environment
variable. I will check the code and try to come up with a fix.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<div class="moz-cite-prefix">On 14/07/14 17:47, AliReza Khoshgoftar
Monfared wrote:<br>
</div>
<blockquote
cite="mid:CABoSzTs3C6As=APTPtGho=TBtzk1Y=2NEhskxwGXm7ir0D4KdQ@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div>Hi,<br>
<br>
</div>
I am running a simple command on timer in a kamailio proxy. <br>
Here is the related parts of the config scripts:<br>
<br>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px
solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">
loadmodule "timer"<br>
modparam("timer", "declare_timer",
"tmr1=LOG_STATS,1,fast,enable");<br>
<br>
route{<br>
...<br>
}<br>
<br>
route[LOG_STATS] {<br>
exec_avp("netstat -ul | grep ':sip' | awk '{print
$$2}'","$avp(s:test)");<br>
xlog("L_ALERT","logged RecvQ as $avp(s:test)");<br>
return;<br>
}<br>
</blockquote>
<div><br>
</div>
<div>Each time I run the "netstat" using the exec() inside the
timer route block, I get the following error from Kamailio
in my log:<br>
<br>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px
solid rgb(204,204,204);padding-left:1ex"
class="gmail_quote">kamailio[28546]: : exec
[../../parser/../ip_addr.h:669]: ip_addr2sbuf(): BUG:
ip_addr2sbuf: unknown address family 0<br>
</blockquote>
<div><br>
</div>
<div>What is the meaning of this error, and what does
kamailio mean by reporting it as a "BUG"?<br>
<br>
</div>
<div>Is there any obvious reason, I am getting this? Is it
related to calling netstat to survey the RecvQ? <br>
</div>
</div>
<br>
<br>
</div>
Thanks,<br>
Alireza<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a></pre>
</body>
</html>