<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    forgot about this email after I saw it -- thanks for sharing, I
    appreciate any contribution to documentation and tutorials. I am
    sure it will be helpful for others looking at same topology for
    kamailio-asterisk integration.<br>
    <br>
    If you want, you can create a tutorial with your version on the wiki
    from kamailio.org.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 16/08/15 19:54, Rudy Eschauzier
      wrote:<br>
    </div>
    <blockquote
cite="mid:1454814569.3173584.1439747643657.JavaMail.yahoo@mail.yahoo.com"
      type="cite">
      <div style="color:#000; background-color:#fff;
        font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial,
        Lucida Grande, sans-serif;font-size:16px">
        <div id="yui_3_16_0_1_1439742036897_11474">All,</div>
        <div id="yui_3_16_0_1_1439742036897_11586"><br>
        </div>
        <div id="yui_3_16_0_1_1439742036897_11587">The Kamailio-Asterisk
          integration that is described here</div>
        <div id="yui_3_16_0_1_1439742036897_11610"><br>
        </div>
        <div dir="ltr" id="yui_3_16_0_1_1439742036897_11611"><a
            moz-do-not-send="true" id="yui_3_16_0_1_1439742036897_11612"
href="http://kb.asipto.com/asterisk:realtime:kamailio-4.0.x-asterisk-11.3.0-astdb">asterisk:realtime:kamailio-4.0.x-asterisk-11.3.0-astdb
            [Asipto - SIP and VoIP Knowledge Base Site]</a></div>
        <div id="yui_3_16_0_1_1439742036897_11676" dir="ltr"><br>
        </div>
        <div id="yui_3_16_0_1_1439742036897_11677" dir="ltr">is limited
          to Asterisk servers with a fixed IP address. The reason is
          that Kamailio identifies and authorizes traffic from Asterisk
          based on the source IP address. Attached is a patch to
          kamailio.cfg that adds support for dynamic Asterisk hosts. It
          introduces the option to define a fully-qualified domain name
          instead of the IP address to identify the Asterisk server. The
          host name can be dynamically updated to always point at the
          (changing) IP address of the Asterisk server. Defining
          WITH_ASTERISK_FQDN enables the new option.</div>
        <div id="yui_3_16_0_1_1439742036897_11930" dir="ltr"><br>
        </div>
        <div id="yui_3_16_0_1_1439742036897_11678" dir="ltr">When
          WITH_ASTERISK_FQDN is set, Kamailio will perform a DNS search
          on the host name in the asterisk.bindhost variable. It will
          authorize incoming traffic if it originates from one of the IP
          addresses the DNS lookup returns (and matches the
          asterisk.bindport variable as before).</div>
        <div id="yui_3_16_0_1_1439742036897_12251" dir="ltr"><br>
        </div>
        <div id="yui_3_16_0_1_1439742036897_12308" dir="ltr">Furthermore,
          the patch introduce the option to automatically set the IP
          address of the server that Kamailio is running on. This does
          away with the need to properly define kamailio.bindip on every
          server that the configuration is running on. This option is
          enabled by defining WITH_AUTOIP.</div>
        <div id="yui_3_16_0_1_1439742036897_12339" dir="ltr"><br>
        </div>
        <div id="yui_3_16_0_1_1439742036897_12470" dir="ltr">With the
          suggested changes I have been able to successfully run an
          Asterisk server in my home, having a dynamic public IP address
          and connecting to the Kamailio proxy on a VPS server with a
          static IP addres.</div>
        <div id="yui_3_16_0_1_1439742036897_12471" dir="ltr"><br>
        </div>
        <div id="yui_3_16_0_1_1439742036897_12472" dir="ltr">Please let
          me know if you have any comments or suggestions.</div>
        <div id="yui_3_16_0_1_1439742036897_12473" dir="ltr"><br>
        </div>
        <div id="yui_3_16_0_1_1439742036897_12474" dir="ltr">Kind
          regards,</div>
        <div id="yui_3_16_0_1_1439742036897_12475" dir="ltr">Rudy
          Eschauzier.<br>
        </div>
        <div id="yui_3_16_0_1_1439742036897_11679" dir="ltr"><br>
        </div>
        <div style="width:450px; font-family: 'Georgia', 'Times', 'Times
          New Roman', 'serif';margin-top:5px; margin-bottom: 5px;
          background-color: #ffffff;" id="enhancrCard_0"
          class="link-enhancr-attachment link-enhancr-element
          richcompose-card" contenteditable="false">
          <table id="yui_3_16_0_1_1439742036897_11683"
            class="link-enhancr-element" style="width:450px;
            height:170px; position: relative; display: block;"
            border="0" cellpadding="0" cellspacing="0">
            <tbody id="yui_3_16_0_1_1439742036897_11682">
              <tr id="yui_3_16_0_1_1439742036897_12104"
                class="link-enhancr-element">
                <td id="yui_3_16_0_1_1439742036897_12103"
                  class="link-enhancr-element" colspan="8"
                  style="height: 1px; background-color: #e5e5e5;
                  font-size: 1px; border-collapse: collapse;">
                  <div id="yui_3_16_0_1_1439742036897_12102"
                    class="link-enhancr-element" style="height: 1px;
                    background-color: #e5e5e5; font-size: 1px;
                    line-height:0px;"> </div>
                </td>
              </tr>
              <tr id="yui_3_16_0_1_1439742036897_11681"
                class="link-enhancr-element">
                <td rowspan="5" class="link-enhancr-element"
                  style="width: 1px; background-color: #e5e5e5;
                  font-size: 1pt; border-collapse: collapse;">
                  <div class="link-enhancr-element" style="width: 1px;
                    background-color: #e5e5e5; font-size: 1pt;"> </div>
                </td>
                <td id="yui_3_16_0_1_1439742036897_11680"
                  class="link-enhancr-element link-enhancr-image-wrap"
                  rowspan="5" style="vertical-align: middle; width:
                  168px; height: 168px; background-color:
                  #000000;border-collapse: collapse;">
                  <div id="yui_3_16_0_1_1439742036897_11686"
                    class="link-enhancr-element" style="width: 168px;"
                    align="center"><a moz-do-not-send="true"
                      id="yui_3_16_0_1_1439742036897_11685"
href="http://kb.asipto.com/asterisk:realtime:kamailio-4.0.x-asterisk-11.3.0-astdb"
                      class="link-enhancr-card-urlWrapper
                      link-enhancr-element" style="text-decoration: none
                      !important;text-decoration:none; color: #000000
                      !important;"><img moz-do-not-send="true"
                        id="yui_3_16_0_1_1439742036897_11684"
                        data-id="7e338271-1133-823b-1b1e-016cedd9e83b"
                        alt="image"
src="http://kb.asipto.com/_media/asterisk:realtime:kamailio-4.0.x-asterisk-11.3.0-astdb?ditaa=950ca1812f17173a5ef99ffd13eb4f5e"
                        class="link-enhancr-thumbnail-image
                        link-enhancr-element yahoo-ignore-inline-image"
                        style="display: block; margin: auto;"
                        height="77" width="168"></a></div>
                </td>
                <td rowspan="5" class="link-enhancr-element"
                  style="width: 1px; background-color: #e5e5e5;
                  font-size: 0pt; border-collapse: collapse;">
                  <div class="link-enhancr-element" style="width: 1px;
                    background-color: #e5e5e5; font-size: 1pt;"> </div>
                </td>
                <td id="yui_3_16_0_1_1439742036897_12477" rowspan="5"
                  class="link-enhancr-element" style="width: 14px;
                  background-color: #ffffff; font-size: 0pt;
                  border-collapse: collapse;">
                  <div class="link-enhancr-element" style="width: 14px;
                    background-color: #ffffff; font-size: 14pt;"> </div>
                </td>
                <td id="yui_3_16_0_1_1439742036897_12025" colspan="2"
                  class="link-enhancr-element" style="height: 6px;
                  background-color: #ffffff; font-size: 0pt;
                  border-collapse: collapse;">
                  <div id="yui_3_16_0_1_1439742036897_12024"
                    class="link-enhancr-element" style="height: 6px;
                    background-color: #ffffff; font-size: 6pt;"> </div>
                </td>
                <td id="yui_3_16_0_1_1439742036897_11804" rowspan="5"
                  class="link-enhancr-element" style="width: 20px;
                  background-color: #ffffff; font-size: 0pt;
                  border-collapse: collapse;">
                  <div class="link-enhancr-element" style="width: 20px;
                    background-color: #ffffff; font-size: 20pt;"> </div>
                </td>
                <td id="yui_3_16_0_1_1439742036897_12184"
                  class="link-enhancr-element" rowspan="5" style="width:
                  1px; background-color: #e5e5e5; font-size: 1pt;
                  border-collapse: collapse;" width="1">
                  <div class="link-enhancr-element" style="width: 1px;
                    background-color: #e5e5e5; font-size: 1pt;"> </div>
                </td>
              </tr>
              <tr id="yui_3_16_0_1_1439742036897_11796">
                <td id="yui_3_16_0_1_1439742036897_11795"
                  class="link-enhancr-element" colspan="2" style="width:
                  100%; vertical-align: middle; font-family: 'Georgia',
                  'Times', 'Times New Roman', 'serif';">
                  <div id="yui_3_16_0_1_1439742036897_11794"
                    class="link-enhancr-text-part link-enhancr-element"
                    style="line-height:16.5px; background-color:
                    #ffffff; height: 135px; width: 245px;">
                    <div id="yui_3_16_0_1_1439742036897_11793"
                      class="link-enhancr-element" style="word-wrap:
                      break-word; word-break: break-all;"><span
                        class="link-enhancr-element icon icon-shrink
                        link-enhancr-toggle"></span><span
                        id="yui_3_16_0_1_1439742036897_12183"
                        class="link-enhancr-element icon icon-close
                        link-enhancr-delete"></span><a
                        moz-do-not-send="true"
                        id="yui_3_16_0_1_1439742036897_11792"
href="http://kb.asipto.com/asterisk:realtime:kamailio-4.0.x-asterisk-11.3.0-astdb"
                        class="link-enhancr-card-urlWrapper
                        link-enhancr-element" style="text-decoration:
                        none !important;text-decoration:none; color:
                        #000000 !important; line-height: 100%;
                        font-size: 18px; display: block;"><span
                          id="yui_3_16_0_1_1439742036897_11791"
                          class="link-enhancr-element
                          link-enhancr-card-title" style="margin: 0;
                          font-weight: normal;margin-bottom: 3px;
                          font-size: 18px; line-height: 21px;
                          max-height: 43px; color: #000000; overflow:
                          hidden !important; display: inline-block;">asterisk:realtime:kamailio-4.0.x-asterisk-11.3.0-astdb
                          [...</span></a>
                      <div id="yui_3_16_0_1_1439742036897_12476"
                        style="font-size: 13px; line-height: 20px;
                        color: #999999; max-height: 81px; font-family:
                        'Georgia', 'Times', 'Times New Roman',
                        'serif';overflow: hidden;"
                        class="link-enhancr-card-description
                        link-enhancr-element">Table of Contents Kamailio
                        4.0.x and Asterisk 11.3.0 Realtime Integration
                        using Asterisk Database Architecture
                        Registration Call Initiation Requirements MySQL
                        Insta...</div>
                    </div>
                  </div>
                </td>
              </tr>
              <tr id="yui_3_16_0_1_1439742036897_12482">
                <td id="yui_3_16_0_1_1439742036897_12481" colspan="2"
                  class="link-enhancr-element" style="height: 4px;
                  background-color: #ffffff; font-size: 0pt;
                  border-collapse: collapse;"><br>
                </td>
              </tr>
              <tr>
                <td class="link-enhancr-element" style="vertical-align:
                  middle; font-family: 'Arial', 'Helvetica Neue',
                  'Helvetica', 'sans-serif';">
                  <div class="link-enhancr-element" style="font-size:
                    0pt;"><a moz-do-not-send="true"
href="http://kb.asipto.com/asterisk:realtime:kamailio-4.0.x-asterisk-11.3.0-astdb"
                      class="link-enhancr-card-url link-enhancr-element"
                      style="color: black; text-decoration: none
                      !important;text-decoration:none;cursor:pointer
                      !important;" target="_blank"><span
                        id="yui_3_16_0_1_1439742036897_11629"
                        class="link-enhancr-element
                        link-enhancr-view-on" style="display:
                        inline-block; line-height: 11px; max-width:
                        145px; min-width: 85px; overflow: hidden;
                        max-height: 13px; word-break: break-all;"><span
                          class="link-enhancr-element
                          link-enhancr-mobile-no-resize"
                          style="vertical-align:middle; font-size: 9px;
                          line-height: 11px; color: #999999;
                          -moz-text-size-adjust: none;
                          -ms-text-size-adjust: none;
                          -webkit-text-size-adjust:none;
                          text-size-adjust:none;">View on <span
                            style="font-weight: bold"
                            class="link-enhancr-view-on-domain">kb.asipto.com</span></span></span></a></div>
                </td>
                <td class="link-enhancr-element" style="vertical-align:
                  middle; width: 100px; font-family: 'Arial', 'Helvetica
                  Neue', 'Helvetica', 'sans-serif';">
                  <div class="link-enhancr-element
                    link-enhancr-preview-wrapper" style="max-width:
                    100px; min-width: 80px; overflow: hidden;
                    text-align: right; line-height: 11px; max-height:
                    13px; font-size: 0pt;"><span
                      class="link-enhancr-element
                      link-enhancr-preview-by
                      link-enhancr-mobile-no-resize"
                      style="vertical-align:middle; font-size: 9px;
                      line-height: 11px; color: #999999;
                      -moz-text-size-adjust: none; -ms-text-size-adjust:
                      none; -webkit-text-size-adjust:none;
                      text-size-adjust:none;">Preview by Yahoo</span></div>
                </td>
              </tr>
              <tr id="yui_3_16_0_1_1439742036897_12507">
                <td id="yui_3_16_0_1_1439742036897_12506" colspan="2"
                  class="link-enhancr-element" style="height: 9px;
                  background-color: #ffffff; font-size: 0pt;
                  border-collapse: collapse;"><br>
                </td>
              </tr>
              <tr class="link-enhancr-element">
                <td class="link-enhancr-element" colspan="8"
                  style="height: 1px; background-color: #e5e5e5;
                  font-size: 1px; border-collapse: collapse;">
                  <div class="link-enhancr-element" style="height: 1px;
                    background-color: #e5e5e5; font-size: 1px;
                    line-height:0px"> </div>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
        <div id="yui_3_16_0_1_1439742036897_12483"><br>
        </div>
      </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>
Book: SIP Routing With Kamailio - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
Kamailio Advanced Training, Sep 28-30, 2015, in Berlin - <a class="moz-txt-link-freetext" href="http://asipto.com/u/kat">http://asipto.com/u/kat</a></pre>
  </body>
</html>