<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Hello,</p>
    <p>see $fs variable.</p>
    <p>I also plan to move force_send_socket() (or make a new function
      set_send_socket()) in corex module to allow vars as parameter.</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 04.04.17 17:14, Jöran Vinzens wrote:<br>
    </div>
    <blockquote
cite="mid:CAC3=B=vGewvMdW-3y5URE3PGFko0TNzDJqdOK4x+p5KLY7bfvA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>Hi all,<br>
            <br>
          </div>
          i try to re-arrange my config and i try to use a variable
          declared in modparam pv such like:<br>
          modparam("pv", "varset", "externalip=s:1.2.3.4")<br>
          <br>
        </div>
        and use it as:<br>
        force_send_socket($var(externalip));<br clear="all">
        <div>
          <div>
            <div><br>
            </div>
            <div>unfortunately the kamailio does not start with this
              configuration and telling me bad config file like:<br>
              line 109, column 36: bad argument, [proto:]host[:port]
              expected <br>
              <br>
            </div>
            <div>it seems the force_send_socket is not able to get
              variable. Is there any other way to have static content
              defined and put across the config?<br>
              <br>
            </div>
            <div>Reason for the question is the possibility to use
              ansible as deployment tool. I set all the variables i need
              in a separate file and include it. This file contains the
              entire modconfig and global vars section to adapt this
              part to every single machine individually. This does not
              work if i need to put "constant" variables on different
              places in my config.<br>
              <br>
            </div>
            <div>If anybody has ever made this, could you please help
              me, or give any suggestions?<br>
              <br>
              <br>
            </div>
            <div>Many thanks!<br>
            </div>
            <div>BR<br>
            </div>
            <div>Jöran<br>
            </div>
            <div><br>
              <br>
              -- <br>
              <div class="gmail_signature">
                <div dir="ltr">
                  <pre>Jöran Vinzens - <a moz-do-not-send="true" href="mailto:vinzens@sipgate.de" target="_blank">vinzens@sipgate.de</a>

sipgate GmbH - Gladbacher Str. 74 - 40219 Düsseldorf
HRB Düsseldorf 39841 - Geschäftsführer: Thilo Salmon, Tim Mois
Steuernummer: 106/5724/7147, Umsatzsteuer-ID: DE219349391

<a moz-do-not-send="true" href="http://www.sipgate.de" target="_blank">www.sipgate.de</a> - <a moz-do-not-send="true" href="http://www.sipgate.co.uk" target="_blank">www.sipgate.co.uk</a>
</pre>
                </div>
              </div>
            </div>
          </div>
        </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-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>
Kamailio Advanced Training - May 22-24 (USA) - <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
Kamailio World Conference - May 8-10, 2017 - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
  </body>
</html>