<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    On 1/12/12 11:07 AM, Uri Shacked wrote:
    <blockquote
cite="mid:CAMMbDhS6bj+M9mSe_1PqUEDRsRhMSLN2nVJFW5Mve0WCbUpHqw@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>Hi,</div>
        <div>&nbsp;</div>
        <div>now i get at start:</div>
        <div>&nbsp;</div>
        <div>&nbsp;9(5006) : exec [../../parser/../ip_addr.h:688]: BUG:
          ip_addr2sbuf: unknown address family 0</div>
      </div>
    </blockquote>
    do you mean you get it once, at kamailio startup?<br>
    <br>
    <blockquote
cite="mid:CAMMbDhS6bj+M9mSe_1PqUEDRsRhMSLN2nVJFW5Mve0WCbUpHqw@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>&nbsp;</div>
        <div>and after 3 time the following is added:</div>
        <div>&nbsp;</div>
        <div>ERROR: exec [exec.c:86]: cmd nc -u -w0 10.2.0.54 514
          &lt;&lt;&lt; ",denied_calls-0,dos-green" failed.
          exit_status=-1, errno=32: Broken pipe<br>
        </div>
        <div>any idea?</div>
      </div>
    </blockquote>
    <br>
    This is from the execution of the external program.<br>
    <br>
    <blockquote
cite="mid:CAMMbDhS6bj+M9mSe_1PqUEDRsRhMSLN2nVJFW5Mve0WCbUpHqw@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>&nbsp;</div>
        <div>&nbsp;kamailio -V<br>
          version: kamailio 3.2.1 (i386/linux) 04216f<br>
        </div>
      </div>
    </blockquote>
    <br>
    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<br>
    <br>
    <blockquote
cite="mid:CAMMbDhS6bj+M9mSe_1PqUEDRsRhMSLN2nVJFW5Mve0WCbUpHqw@mail.gmail.com"
      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>&nbsp;</div>
        <div>&nbsp;</div>
        <div><br>
          <br>
          <br>
          &nbsp;</div>
        <div class="gmail_quote">On Thu, Jan 12, 2012 at 10:29 AM,
          Daniel-Constantin Mierla <span dir="ltr">&lt;<a
              moz-do-not-send="true" 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 text="#000000" bgcolor="#FFFFFF">Hello,
              <div class="im"><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 moz-do-not-send="true"
                href="http://127.0.0.1/" target="_blank">127.0.0.1</a>:<br>
              <br>
              <a moz-do-not-send="true"
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 class="h5">
                    <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 moz-do-not-send="true"
                            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
                                  moz-do-not-send="true"
                                  href="mailto:miconda@gmail.com"
                                  target="_blank">miconda@gmail.com</a>&gt;
                                &nbsp;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)='"'+'denied_calls-'+$stat(denied_calls)+',dos-'+$shv(dos)+'"';<br>
                                    &nbsp;exec_msg("nc -u -w0 10.2.0.54
                                    514&lt;&lt;&lt; &nbsp;$var(log)");<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>
                                    &nbsp;9(19302) ERROR: exec [exec.c:86]:
                                    cmd nc -u -w0 10.2.0.54
                                    514&lt;&lt;&lt;<br>
                                    ",denied_calls-0,dos-green" 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
                                    moz-do-not-send="true"
                                    href="http://www.asipto.com/"
                                    target="_blank">http://www.asipto.com</a><br>
                                  <a moz-do-not-send="true"
                                    href="http://linkedin.com/in/miconda"
                                    target="_blank">http://linkedin.com/in/miconda</a>
                                  -- <a moz-do-not-send="true"
                                    href="http://twitter.com/miconda"
                                    target="_blank">http://twitter.com/miconda</a><br>
                                  <br>
                                  <br>
                                </blockquote>
                              </blockquote>
                              <br>
                              -- <br>
                              Daniel-Constantin Mierla -- <a
                                moz-do-not-send="true"
                                href="http://www.asipto.com/"
                                target="_blank">http://www.asipto.com</a><br>
                              <a moz-do-not-send="true"
                                href="http://linkedin.com/in/miconda"
                                target="_blank">http://linkedin.com/in/miconda</a>
                              -- <a moz-do-not-send="true"
                                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 moz-do-not-send="true" href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a moz-do-not-send="true" 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 class="im"><br>
                <pre cols="72">-- 
Daniel-Constantin Mierla -- <a moz-do-not-send="true" href="http://www.asipto.com/" target="_blank">http://www.asipto.com</a>
<a moz-do-not-send="true" href="http://linkedin.com/in/miconda" target="_blank">http://linkedin.com/in/miconda</a> -- <a moz-do-not-send="true" href="http://twitter.com/miconda" target="_blank">http://twitter.com/miconda</a></pre>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
    </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://linkedin.com/in/miconda">http://linkedin.com/in/miconda</a> -- <a class="moz-txt-link-freetext" href="http://twitter.com/miconda">http://twitter.com/miconda</a></pre>
  </body>
</html>