<div dir="ltr"><div>no, i get it every 10 sec (like the rtimer i set) the first 3 times are the first line and afterwards the second line apears.</div>
<div>i notice that after a while it cycles again... 3 times etc....</div>
<div> </div>
<div>i did :</div>
<div> </div>
<div>git pull origin</div>
<div>git cherry-pick -x 62e5680c9dd4eccb0f177415b7624af832c87693<br>make all</div>
<div>make install</div>
<div> </div>
<div>right?</div>
<div>as always... my linux abilities are limited... :-)</div>
<div>thanks.</div>
<div> </div>
<div class="gmail_quote">On Thu, Jan 12, 2012 at 12:16 PM, Daniel-Constantin Mierla <span dir="ltr">&lt;<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">
<div bgcolor="#FFFFFF" text="#000000">Hello, 
<div class="im"><br><br>On 1/12/12 11:07 AM, Uri Shacked wrote: </div>
<blockquote type="cite">
<div dir="ltr">
<div>Hi,</div>
<div> </div>
<div class="im">
<div>now i get at start:</div>
<div> </div>
<div> 9(5006) : exec [../../parser/../ip_addr.h:688]: BUG: ip_addr2sbuf: unknown address family 0</div></div></div></blockquote>do you mean you get it once, at kamailio startup? 
<div class="im"><br><br>
<blockquote type="cite">
<div dir="ltr">
<div> </div>
<div>and after 3 time the following is added:</div>
<div> </div>
<div>ERROR: exec [exec.c:86]: cmd nc -u -w0 10.2.0.54 514 &lt;&lt;&lt; &quot;,denied_calls-0,dos-green&quot; failed. exit_status=-1, errno=32: Broken pipe<br></div>
<div>any idea?</div></div></blockquote><br></div>This is from the execution of the external program. 
<div class="im"><br><br>
<blockquote type="cite">
<div dir="ltr">
<div> </div>
<div> kamailio -V<br>version: kamailio 3.2.1 (i386/linux) 04216f<br></div></div></blockquote><br></div>Have you applied the patch? The version seems to be clean, without any patch.<br><br>Can you send the log output with debug=3?<br>
<br>Cheers,<br>Daniel 
<div>
<div class="h5"><br><br>
<blockquote type="cite">
<div dir="ltr">
<div>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<br>
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 4MB<br>poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.<br>id: 04216f<br>compiled on 11:37:16 Jan 12 2012 with gcc 4.1.2<br>
</div>
<div> </div>
<div> </div>
<div><br><br><br> </div>
<div class="gmail_quote">On Thu, Jan 12, 2012 at 10:29 AM, Daniel-Constantin Mierla <span dir="ltr">&lt;<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">
<div bgcolor="#FFFFFF" text="#000000">Hello, 
<div><br><br>On 1/11/12 7:12 PM, Uri Shacked wrote: 
<blockquote type="cite">
<div dir="ltr">no, only the lines you see.<br></div></blockquote></div>strange ... anyhow, I pushed a patch to master branch to set src/dst ip to <a href="http://127.0.0.1/" target="_blank">127.0.0.1</a>:<br><br><a href="http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=62e5680c9dd4eccb0f177415b7624af832c87693" target="_blank">http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=62e5680c9dd4eccb0f177415b7624af832c87693</a><br>
<br>if you installed from git, after doing in source tree:<br><br>git pull origin<br><br>do:<br><br>git cherry-pick -x 62e5680c9dd4eccb0f177415b7624af832c87693<br><br>and reinstall. Let me know if it works and I will backport.<br>
<br>Cheers,<br>Daniel<br><br>
<blockquote type="cite">
<div>
<div>
<div dir="ltr"><br>
<div class="gmail_quote">On Wed, Jan 11, 2012 at 7:40 PM, Daniel-Constantin Mierla <span dir="ltr">&lt;<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">Looking into the source, exec_msg() does not access receive info (source/destination address). Is there any other action in timer route accessing source IP or destination IP (like xlog printing $si)?<br>
<br>Cheers,<br>Daniel 
<div>
<div><br><br>On 1/11/12 6:05 PM, Uri Shacked wrote:<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">Thanks, will be waiting :-)<br><br>On 1/11/12, Daniel-Constantin Mierla&lt;<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>&gt;  wrote:<br>

<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">Hello,<br><br>On 1/11/12 11:36 AM, Uri Shacked wrote:<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">Hi,<br>i am doing this command in a timer under kamailio:<br>$var(log)=&#39;&quot;&#39;+&#39;denied_calls-&#39;+$stat(denied_calls)+&#39;,dos-&#39;+$shv(dos)+&#39;&quot;&#39;;<br>
 exec_msg(&quot;nc -u -w0 10.2.0.54 514&lt;&lt;&lt;  $var(log)&quot;);<br>each time the command is executed, i get the following error:<br>9(19302) : exec [../../parser/../ip_addr.h:688]: BUG: ip_addr2sbuf:<br>unknown address family 0<br>
 9(19302) ERROR: exec [exec.c:86]: cmd nc -u -w0 10.2.0.54 514&lt;&lt;&lt;<br>&quot;,denied_calls-0,dos-green&quot; failed. exit_status=-1, errno=32: Broken pipe<br>any idea?<br>the syslog server gets the message....<br></blockquote>
the timer execute functions with a faked sip request, which is not<br>received from the network, but generated internally. Thus there is no<br>source IP. Perhaps it should be set as received from itself or loopback<br>device (127.0.0.1) -- I will look over it.<br>
<br>Cheers,<br>Daniel<br><br>--<br>Daniel-Constantin Mierla -- <a href="http://www.asipto.com/" target="_blank">http://www.asipto.com</a><br><a href="http://linkedin.com/in/miconda" target="_blank">http://linkedin.com/in/miconda</a> -- <a href="http://twitter.com/miconda" target="_blank">http://twitter.com/miconda</a><br>
<br><br></blockquote></blockquote><br>-- <br>Daniel-Constantin Mierla -- <a href="http://www.asipto.com/" target="_blank">http://www.asipto.com</a><br><a href="http://linkedin.com/in/miconda" target="_blank">http://linkedin.com/in/miconda</a> -- <a href="http://twitter.com/miconda" target="_blank">http://twitter.com/miconda</a><br>
<br></div></div></blockquote></div><br></div><br>
<fieldset></fieldset> <br></div></div><pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre></blockquote>
<div><br><pre cols="72">-- 
Daniel-Constantin Mierla -- <a href="http://www.asipto.com/" target="_blank">http://www.asipto.com</a>
<a href="http://linkedin.com/in/miconda" target="_blank">http://linkedin.com/in/miconda</a> -- <a href="http://twitter.com/miconda" target="_blank">http://twitter.com/miconda</a></pre></div></div></blockquote></div><br></div>
</blockquote><br><pre cols="72">-- 
Daniel-Constantin Mierla -- <a href="http://www.asipto.com/" target="_blank">http://www.asipto.com</a>
<a href="http://linkedin.com/in/miconda" target="_blank">http://linkedin.com/in/miconda</a> -- <a href="http://twitter.com/miconda" target="_blank">http://twitter.com/miconda</a></pre></div></div></div></blockquote></div>
<br></div>