<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hello,</p>
    <p>converting a REFER to an INVITE and sending out is not going to
      solve anything. The REFER is to trigger a different call to
      another target, while the invite is to renegotiate the session
      (eventually with a replace indication). If the endpoints do not
      support REFER, then you need SIP application servers (b2bua) like
      Asterisk, FreeSwich or SEMS to handle it and initiate new calls.</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <div class="moz-cite-prefix">On 12.01.21 21:20, Jaime Gajardo wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAJNGmoavEc0O__GKqQ6LXnXSpvjyVWhfeNsjS71qV=589OmPLQ@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div id="gmail-:263" class="gmail-a3s gmail-aiL">
          <div dir="ltr">
            <div>
              Actually we have installed kamailio 5.4.2 and rtpengine
              like load balancer in a NAT environment. behind the nat we
              have 2 identical nodes using REFER for transfer  <br>
              call to another destiny. On the other NAt side we have our
              public carrier. <br>
              When some node sends to kamailio the REFER message and
              kamailio reroutes this message to the carrier. The call is
              rejected due company policies.<br>
              <br>
              We want to know how we can convert or modify the REFER
              message into INVITE for finally transfer the call.<br>
              <br>
              <br>
              kamailio -v:<br>
              version: kamailio 5.4.2 (x86_64/linux) 4fdc21<br>
              flags: USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS,
              USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK,
              SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC,
              DBG_SR_MEMORY, 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_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB<br>
              poll method support: poll, epoll_lt, epoll_et, sigio_rt,
              select.<br>
              id: 4fdc21 <br>
              compiled on 20:43:45 Dec  1 2020 with unknown<br>
              <br>
              Uname -a:<br>
              Linux proxy 4.15.0-124-generic #127-Ubuntu SMP Fri Nov 6
              10:54:43 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux<br>
            </div>
          </div>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Funding: <a class="moz-txt-link-freetext" href="https://www.paypal.me/dcmierla">https://www.paypal.me/dcmierla</a></pre>
  </body>
</html>