<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    it has to be an update anyhow, the functions were moved to corex
    module to allow variables as parameters. I think now it can be
    host:port.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 1/15/13 8:33 PM, Klaus Feichtinger
      wrote:<br>
    </div>
    <blockquote cite="mid:50F5AEFF.90102@inode.at" type="cite">
      <meta http-equiv="content-type" content="text/html;
        charset=ISO-8859-1">
      Hello,<br>
      <br>
      could you please update the core cookbook for Kamailio release
      4.0.0? The core functions "send" and "send_tcp" are including
      wrong examples of usage (since many previous versions....). You
      have written the example<br>
      <br>
      send("10.10.10.10:5070");<br>
      <br>
      which is representing a socket, but not a hostname. However,
      caused by the double quote it is interpreted as a hostname and
      kamailio is trying to resolve that string. As it is (mostly) not
      resolvable, kamailio cannot start. Many newbies are having a
      problem with this fault. I guess forward() and its variations will
      have the same problem, when a target is added within the brackets
      (instead of using pseudo variables).<br>
      <br>
      I recommend adding a second example - one for an ip address based
      target and one for a domain target with correct forms e.g.<br>
      send(10.10.10.10, 5070); <br>
      send("kamailio.org");<o:p></o:p> <br>
      <div class="moz-forward-container"><br>
        thanks<br>
        Klaus<br>
        <br>
        -------- Original-Nachricht --------
        <table class="moz-email-headers-table" border="0"
          cellpadding="0" cellspacing="0">
          <tbody>
            <tr>
              <th align="RIGHT" nowrap="nowrap" valign="BASELINE">Betreff:

              </th>
              <td>kamailio doc update</td>
            </tr>
            <tr>
              <th align="RIGHT" nowrap="nowrap" valign="BASELINE">Datum:
              </th>
              <td>Tue, 15 Jan 2013 14:50:14 +0000</td>
            </tr>
            <tr>
              <th align="RIGHT" nowrap="nowrap" valign="BASELINE">Von: </th>
              <td>FEICHTINGER Klaus <a moz-do-not-send="true"
                  class="moz-txt-link-rfc2396E"
                  href="mailto:Klaus.FEICHTINGER@frequentis.com">&lt;Klaus.FEICHTINGER@frequentis.com&gt;</a></td>
            </tr>
            <tr>
              <th align="RIGHT" nowrap="nowrap" valign="BASELINE">An: </th>
              <td>Klaus Feichtinger (<a moz-do-not-send="true"
                  class="moz-txt-link-abbreviated"
                  href="mailto:klaus.feichtinger@inode.at">klaus.feichtinger@inode.at</a>)
                <a moz-do-not-send="true" class="moz-txt-link-rfc2396E"
                  href="mailto:klaus.feichtinger@inode.at">&lt;klaus.feichtinger@inode.at&gt;</a></td>
            </tr>
          </tbody>
        </table>
        <br>
        <br>
        <meta http-equiv="Content-Type" content="text/html;
          charset=ISO-8859-1">
        <meta name="Generator" content="Microsoft Word 14 (filtered
          medium)">
        <style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
h3
        {mso-style-priority:9;
        mso-style-link:"Heading 3 Char";
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:13.5pt;
        font-family:"Times New Roman","serif";
        font-weight:bold;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.Heading3Char
        {mso-style-name:"Heading 3 Char";
        mso-style-priority:9;
        mso-style-link:"Heading 3";
        font-family:"Times New Roman","serif";
        mso-fareast-language:EN-GB;
        font-weight:bold;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Courier New";
        mso-fareast-language:EN-GB;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
        <div class="WordSection1">
          <p class="MsoNormal"><span lang="DE-AT">Please update CORE
              Cookbook<o:p></o:p></span></p>
          <p class="MsoNormal"><span lang="DE-AT"><o:p>&nbsp;</o:p></span></p>
          <p class="MsoNormal"
            style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span
                style="font-size:13.5pt;font-family:&quot;Times New
                Roman&quot;,&quot;serif&quot;;mso-fareast-language:EN-GB">send<o:p></o:p></span></b></p>
          <p class="MsoNormal"
            style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span
              style="font-size:12.0pt;font-family:&quot;Times New
              Roman&quot;,&quot;serif&quot;;mso-fareast-language:EN-GB">Send

              the original SIP message to a specific destination in
              stateless mode. No changes are applied to received
              message, no Via header is added. Host can be an IP or
              hostname. Used protocol: UDP <o:p></o:p></span></p>
          <p class="MsoNormal"
            style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span
              style="font-size:12.0pt;font-family:&quot;Times New
              Roman&quot;,&quot;serif&quot;;mso-fareast-language:EN-GB">Parameter

              is mandatory and has string format. <o:p></o:p></span></p>
          <p class="MsoNormal"
            style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span
              style="font-size:12.0pt;font-family:&quot;Times New
              Roman&quot;,&quot;serif&quot;;mso-fareast-language:EN-GB">Example

              of usage: <o:p></o:p></span></p>
          <p class="MsoNormal"><span
              style="font-size:10.0pt;font-family:&quot;Courier
              New&quot;;mso-fareast-language:EN-GB">&nbsp;send("10.10.10.10:5070");<o:p></o:p></span></p>
          <p class="MsoNormal"><span lang="DE-AT"><o:p>&nbsp;</o:p></span></p>
          <p class="MsoNormal"><span lang="DE-AT"><o:p>&nbsp;</o:p></span></p>
          <p class="MsoNormal">Is not a valid example. Correct would be:<o:p></o:p></p>
          <p class="MsoNormal" style="text-indent:36.0pt">send(10.10.10.10,

            5070);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for IP address + port<o:p></o:p></p>
          <p class="MsoNormal">or<o:p></o:p></p>
          <p class="MsoNormal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; send(&#8220;myHost.com&#8221;);<o:p></o:p></p>
          <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
          <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
        </div>
        <br>
      </div>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
sr-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-dev@lists.sip-router.org">sr-dev@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev</a>
</pre>
    </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://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>
Kamailio World Conference, April 16-17, 2013, Berlin
 - <a class="moz-txt-link-freetext" href="http://conference.kamailio.com">http://conference.kamailio.com</a> -</pre>
  </body>
</html>