<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    <div class="moz-cite-prefix">On 12/09/14 14:49, [PRE s.r.l.] - Alex
      wrote:<br>
    </div>
    <blockquote
      cite="mid:860DC42C-78CD-4C53-BA2F-904DB7C2297D@presrl.net"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      Hello,
      <div>the situation is:</div>
      <div><br>
      </div>
      <div>client -> kamailio + rtproxy -> asterisk -> rtpproxy
        + kamailio -> other client</div>
      <div><br>
      </div>
      <div>the idea is that rtpproxy has to proxy the whole rtp traffic
        between asterisk or other media proxy and the client.</div>
      <div><br>
      </div>
      <div>the strange problem is that my client which is receiving the
        call (csipsimple or other one) views the call origination as it
        was originated by asterisk private ip (172.20.20.80) (the
        callid/contact is <a moz-do-not-send="true"
          href="mailto:extension@172.20.20.80">extension@172.20.20.80</a>).</div>
      <div>the correct behaviour is in my opinion that the call has to
        appear as it was originated by kamailio (<a
          moz-do-not-send="true" href="mailto:extension@151.xx.xx.xx">extension@151.xx.xx.xx</a>)</div>
      <div><br>
      </div>
      <div>i'm using the dispatcher module to route the call from
        kamailio to asterisk.</div>
    </blockquote>
    kamailio being a proxy it does not changes caller/callee
    identification. You have options in asterisk dialplan to set caller
    domain, and this is the best way to do it.<br>
    <br>
    In kamailio, you can do updates to caller id using uac module, but
    again, it is better to do it in asterisk and let kamailio act as a
    proxy.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <blockquote
      cite="mid:860DC42C-78CD-4C53-BA2F-904DB7C2297D@presrl.net"
      type="cite">
      <div><br>
      </div>
      <div>Thank you for your help</div>
      <div> <br>
        <div>
          <div>On 11 Sep 2014, at 12:46, Daniel-Constantin Mierla <<a
              moz-do-not-send="true" href="mailto:miconda@gmail.com">miconda@gmail.com</a>>
            wrote:</div>
          <br class="Apple-interchange-newline">
          <blockquote type="cite">
            <meta content="text/html; charset=windows-1252"
              http-equiv="Content-Type">
            <div bgcolor="#FFFFFF" text="#000000"> Hello,<br>
              <br>
              understanding the config file is going to take some time,
              so it is unlikely many will have the spare time for it.<br>
              <br>
              You have to provide more specific details, like the sip
              trace (ngrep on kamailio server sip ports) for the issue,
              presenting what are the parties involved in sending and
              receiving, then what is wrong and what should be there.<br>
              <br>
              Then we can eventually discover what is the part of the
              config dealing with that and how can be fixed.<br>
              <br>
              Cheers,<br>
              Daniel<br>
              <br>
              <div class="moz-cite-prefix">On 11/09/14 00:55, [PRE
                s.r.l.] - Alex wrote:<br>
              </div>
              <blockquote
                cite="mid:564E1E22-EFC1-4113-A538-774EC983637B@presrl.net"
                type="cite">
                <meta http-equiv="Content-Type" content="text/html;
                  charset=windows-1252">
                <div>Hi to everyone,</div>
                <div>I’m trying to implement a SBC for my network based
                  on Kamailio</div>
                <div><br>
                </div>
                <div>The base idea is putting Kamailio on a dual home
                  machine (one public interface for clients and a
                  private interface for media servers and database),
                  using rtpproxy to handle the relaying from public to
                  private network.</div>
                <div><br>
                </div>
                <div>The only problem I got is that called client get
                  the call as it was originated by one of the media
                  server (the call contact is some like <a
                    moz-do-not-send="true"
                    href="mailto:ext@media.server.ip">ext@media.server.ip</a>),

                  which is wrong in my opinion.</div>
                <div><br>
                </div>
                <div>Here it is the configuration,</div>
                <div>can you help me dealing with this?</div>
              </blockquote>
              <br>
              <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://twitter.com/#%21/miconda">http://twitter.com/#!/miconda</a> - <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Next Kamailio Advanced Trainings 2014 - <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.asipto.com/">http://www.asipto.com</a>
Sep 22-25, Berlin, Germany</pre>
            </div>
            _______________________________________________<br>
            SIP Express Router (SER) and Kamailio (OpenSER) - sr-users
            mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<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><br>
          </blockquote>
        </div>
        <br>
        <div apple-content-edited="true">
          <div style="color: rgb(0, 0, 0); letter-spacing: normal;
            orphans: auto; text-align: start; text-indent: 0px;
            text-transform: none; white-space: normal; widows: auto;
            word-spacing: 0px; -webkit-text-stroke-width: 0px;
            word-wrap: break-word; -webkit-nbsp-mode: space;
            -webkit-line-break: after-white-space;">
            <div style="color: rgb(0, 0, 0); letter-spacing: normal;
              orphans: auto; text-align: start; text-indent: 0px;
              text-transform: none; white-space: normal; widows: auto;
              word-spacing: 0px; -webkit-text-stroke-width: 0px;
              word-wrap: break-word; -webkit-nbsp-mode: space;
              -webkit-line-break: after-white-space;">
              <div style="word-wrap: break-word; -webkit-nbsp-mode:
                space; -webkit-line-break: after-white-space;"><br>
                --<br>
                Alex<br>
                PRE s.r.l.<br>
                Backbone Network Mission Control</div>
              <div style="word-wrap: break-word; -webkit-nbsp-mode:
                space; -webkit-line-break: after-white-space;">System Engineering&Architecture
                Task Force<br>
              </div>
              <div style="word-wrap: break-word; -webkit-nbsp-mode:
                space; -webkit-line-break: after-white-space;"><a
                  moz-do-not-send="true" href="mailto:alex@presrl.net">alex@presrl.net</a></div>
              <div style="word-wrap: break-word; -webkit-nbsp-mode:
                space; -webkit-line-break: after-white-space;"><a
                  moz-do-not-send="true" href="http://www.presrl.it">http://www.presrl.it</a></div>
              <div style="word-wrap: break-word; -webkit-nbsp-mode:
                space; -webkit-line-break: after-white-space;">+39 0971
                471 430</div>
              <div style="word-wrap: break-word; -webkit-nbsp-mode:
                space; -webkit-line-break: after-white-space;">+39 388
                150 6886</div>
              <div style="word-wrap: break-word; -webkit-nbsp-mode:
                space; -webkit-line-break: after-white-space;"><br>
              </div>
              <div style="word-wrap: break-word; -webkit-nbsp-mode:
                space; -webkit-line-break: after-white-space;"><br>
              </div>
              <div style="word-wrap: break-word; -webkit-nbsp-mode:
                space; -webkit-line-break: after-white-space;">
                <div align="justify"><span class="MsoNormal"><span
                      style="font-size: 7.5pt; font-family: Verdana;">Questo
                      messaggio e i suoi allegati sono indirizzati
                      esclusivamente alle persone indicate. La
                      diffusione, copia o qualsiasi altra azione
                      derivante dalla conoscenza di queste informazioni
                      sono rigorosamente vietate. Qualora abbiate
                      ricevuto questo documento per errore siete
                      cortesemente pregati di darne immediata
                      comunicazione al mittente e di provvedere alla sua
                      distruzione, Grazie.</span></span></div>
                <p align="justify"><span class="MsoNormal"><i><span
                        style="font-size: 7.5pt; font-family: Verdana;"
                        lang="EN-GB">This e-mail and any attachments</span></i><i><span
                        style="font-size: 7.5pt; font-family: Verdana;"
                        lang="EN-GB"> <span class="GramE">is</span> </span></i><i><span
                        style="font-size: 7.5pt; font-family: Verdana;"
                        lang="EN-GB">confidential and may contain
                        privileged information intended for the
                        addressee(s) only. Dissemination, copying,
                        printing or use by anybody else is unauthorised.
                        If you are not the intended recipient, please
                        delete this message and any attachments and
                        advise the sender by return e-mail, Thanks.</span></i><span
                      lang="EN-GB"></span></span></p>
                <b><span style="font-size: 7.5pt; font-family: Verdana;">Rispetta
                    l'ambiente. Non stampare questa mail se non è
                    necessario.</span></b></div>
            </div>
          </div>
        </div>
        <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://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>
Next Kamailio Advanced Trainings 2014 - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
Sep 22-25, Berlin, Germany</pre>
  </body>
</html>