<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hello,</p>
    <p>I will that way.<br>
    </p>
    <p>thank you very much Danilo.</p>
    <p><br>
    </p>
    <br>
    <div class="moz-cite-prefix">El 06/02/18 a las 16:05, Danilo
      Smaldone - <a class="moz-txt-link-freetext" href="sip:wise">sip:wise</a> escribió:<br>
    </div>
    <blockquote type="cite"
      cite="mid:08efe0a9-b216-7472-4f19-e62d551c6c7a@sipwise.com">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <p><tt>Hi,</tt></p>
      <p><tt>just an already given (to the group) hint!</tt></p>
      <p><tt>Always create (or edit) a .customtt.tt2 file instead of
          editing the .tt2 one.<br>
        </tt></p>
      <p><tt>In this way, you can preserve and reuse customtt.tt2 file
          after upgrading the system.</tt></p>
      <p><tt><br>
        </tt></p>
      <p><tt>Check it out here:
          <a class="moz-txt-link-freetext"
href="https://www.sipwise.com/doc/mr5.5.2/sppro/ar01s09.html#_configuration_templates"
            moz-do-not-send="true">https://www.sipwise.com/doc/mr5.5.2/sppro/ar01s09.html#_configuration_templates</a></tt></p>
      <p><tt>Cheers</tt></p>
      <p><tt>Danilo</tt><br>
      </p>
      <br>
      <div class="moz-cite-prefix">On 2018-02-06 13:42, pushakk wrote:<br>
      </div>
      <blockquote type="cite"
        cite="mid:d9d3e2c9-4dad-b72e-deed-f839f7d37f88@limbo.deathwing.net">
        <meta http-equiv="Content-Type" content="text/html;
          charset=utf-8">
        <p>Hello Rene,</p>
        <p>by the way I have to change the template
          /etc/ngcp-config/templates/etc/kamailio/proxy/proxy.cfg.tt2
          and modify <br>
        </p>
        <p>        avp_db_query("select vpg.id from
          provisioning.voip_peer_groups vpg left join
          provisioning.voip_peer_hosts vph on vph.group_id = vpg.id
          where vpg.has_inbound_rules = 1 and vph.ip = '$avp(s:ip)' <b>and
            (('$avp(s:protoid)' = '1' and vph.port = $avp(s:port)) or
            ('$avp(s:protoid)' != '1')) </b>and vph.transport =
          $avp(s:protoid) order by vpg.priority asc",
          "$avp(s:peer_group_ids)");</p>
        <p>I have to quit the bold part because in cisco is no way to
          set fixed port to SIP invites.</p>
        <p>Just in case.</p>
        <p>Thank you.<br>
        </p>
        <br>
        <div class="moz-cite-prefix">El 06/02/18 a las 13:33, pushakk
          escribió:<br>
        </div>
        <blockquote type="cite"
          cite="mid:5401d562-4712-6c4d-2ece-3fbef65eb9ab@limbo.deathwing.net">Hello
          Rene, <br>
          <br>
          in triying to fix it in the peer "preferences" -> "inner"
          -> "ip_header". I guess I should put there the field
          "From:" for example? It's the only sip field where I can see
          the IP address but in the form "From: <a
            class="moz-txt-link-rfc2396E" href="sip:667xxxxxx@10.0.1.13"
            moz-do-not-send="true"><sip:667xxxxxx@10.0.1.13></a>".
          <br>
          <br>
          thank you very much. <br>
          <br>
          <br>
          El 06/02/18 a las 13:27, Rene Krenn escribió: <br>
          <blockquote type="cite">Hi, <br>
            <br>
            thx for reporting; created an issue for providing a fix to
            make rate-o-mat tolerate these empty fields. <br>
            Roaming billing (see billing networks) cannot be used then
            however. <br>
            <br>
            regards <br>
            <br>
            -----Ursprüngliche Nachricht----- <br>
            Von: Spce-user [<a class="moz-txt-link-freetext"
              href="mailto:spce-user-bounces@lists.sipwise.com"
              moz-do-not-send="true">mailto:spce-user-bounces@lists.sipwise.com</a>]
            Im Auftrag von pushakk <br>
            Gesendet: Dienstag, 6. Februar 2018 13:06 <br>
            An: <a class="moz-txt-link-abbreviated"
              href="mailto:spce-user@lists.sipwise.com"
              moz-do-not-send="true">spce-user@lists.sipwise.com</a> <br>
            Betreff: [Spce-user] inbound calls set accounting.cdr
            source_ip to null <br>
            <br>
            Hello everyone, <br>
            <br>
            I have a problem with inbound calls setting the source_ip
            field to NULL in the CDR. The rate-o-mat process gives me a
            waning <br>
            <br>
            Feb  6 10:20:11 sip (warning) rate-o-mat[16944]: 1/100 -
            rating CDR ID <br>
            114 aborted : Can't call method "version" on an undefined
            value at /usr/sbin/rate-o-mat line 1510. <br>
            <br>
            and then it stops rating the calls. <br>
            <br>
            Why is kamailio setting the source_ip to NULL in inbound
            calls but not in the outbound ones? I have tried to look for
            this same problem in the forum and in the
            /etc/kamailio/proxy routing logic but I can't find anything.
            <br>
            <br>
            Thank you. <br>
            <br>
            _______________________________________________ <br>
            Spce-user mailing list <br>
            <a class="moz-txt-link-abbreviated"
              href="mailto:Spce-user@lists.sipwise.com"
              moz-do-not-send="true">Spce-user@lists.sipwise.com</a> <br>
            <a class="moz-txt-link-freetext"
              href="https://lists.sipwise.com/listinfo/spce-user"
              moz-do-not-send="true">https://lists.sipwise.com/listinfo/spce-user</a>
            <br>
            <br>
          </blockquote>
          <br>
          _______________________________________________ <br>
          Spce-user mailing list <br>
          <a class="moz-txt-link-abbreviated"
            href="mailto:Spce-user@lists.sipwise.com"
            moz-do-not-send="true">Spce-user@lists.sipwise.com</a> <br>
          <a class="moz-txt-link-freetext"
            href="https://lists.sipwise.com/listinfo/spce-user"
            moz-do-not-send="true">https://lists.sipwise.com/listinfo/spce-user</a>
          <br>
        </blockquote>
        <br>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <br>
        <pre wrap="">_______________________________________________
Spce-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Spce-user@lists.sipwise.com" moz-do-not-send="true">Spce-user@lists.sipwise.com</a>
<a class="moz-txt-link-freetext" href="https://lists.sipwise.com/listinfo/spce-user" moz-do-not-send="true">https://lists.sipwise.com/listinfo/spce-user</a>
</pre>
      </blockquote>
      <br>
    </blockquote>
    <br>
  </body>
</html>