<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Another thing..</p>
    <p><br>
    </p>
    <p>better you all add a string like this..</p>
    <p>        if ($avp(lcr_tag)!=$null &&
      $(avp(lcr_tag){s.len}) > 5) <br>
    </p>
    <p><br>
    </p>
    <p>The problem is that if u have an empty field on the tag.. or just
      NULL , you will add a simple . inside of the INVITE.. but this is
      a problem for the message of course..</p>
    <p>The && $(avp(lcr_tag){s.len}) > 5   will resolve..</p>
    <p><br>
    </p>
    <p>Regards</p>
    <p>Laura<br>
    </p>
    <div class="moz-cite-prefix">Il 11/01/17 14:39, Daniel-Constantin
      Mierla ha scritto:<br>
    </div>
    <blockquote
      cite="mid:b3f4e8f5-9ff0-66f9-2c6d-502315dc24e5@gmail.com"
      type="cite">
      <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
      <p><br>
      </p>
      <br>
      <div class="moz-cite-prefix">On 10/01/2017 15:53, Laura wrote:<br>
      </div>
      <blockquote
        cite="mid:c0256376-41dc-f125-506f-014fcef24852@plugit.net"
        type="cite">
        <meta content="text/html; charset=utf-8"
          http-equiv="Content-Type">
        Dear all,<br>
        <br>
        don't forget to add the same strings on failure_route ;)<br>
      </blockquote>
      <br>
      Still using a branch route, but armed from failure_route before
      t_relay() should work as well.<br>
      <br>
      Cheers,<br>
      Daniel<br>
      <br>
      <blockquote
        cite="mid:c0256376-41dc-f125-506f-014fcef24852@plugit.net"
        type="cite"> <br>
        Cheers<br>
        Laura<br>
        <br>
        <br>
        <div class="moz-cite-prefix">Il 10/01/17 14:41, Laura ha
          scritto:<br>
        </div>
        <blockquote
          cite="mid:df2d3923-f1be-1f5d-e373-86a5b0e0d70a@plugit.net"
          type="cite">
          <meta content="text/html; charset=utf-8"
            http-equiv="Content-Type">
          <p>Dear Daniel and list..</p>
          <p>a very strange situation.. why this parameters is valid on
            the first gw only inside the lcr..</p>
          <p>if i add differents string on 2 gateways... and the call is
            goind on both of them.. i see the parameter added to invite
            only on the fist gw...</p>
          <p>Cheers</p>
          <p>Laura<br>
          </p>
          <div class="moz-cite-prefix">Il 10/01/17 14:34,
            Daniel-Constantin Mierla ha scritto:<br>
          </div>
          <blockquote
            cite="mid:30c36401-e978-6eaf-5e0a-6d6b40112c5b@gmail.com"
            type="cite">
            <meta content="text/html; charset=utf-8"
              http-equiv="Content-Type">
            <p>Hello!</p>
            <p>Welcome and thanks for providing back details about the
              solution in the config file. I am sure it will help others
              with similar needs in the future.</p>
            <p>As further hints, the value in the tag column can be more
              complex, storing more than information about the extra
              headers, just use a format that can be parsed easily in
              the configuration file, for example json, xml or
              parameter-like value.<br>
            </p>
            Cheers,<br>
            Daniel<br>
            <br>
            <div class="moz-cite-prefix">On 10/01/2017 13:05, Laura
              wrote:<br>
            </div>
            <blockquote
              cite="mid:8e2b0e81-34c9-2fb5-4165-380b3260bdfb@plugit.net"
              type="cite">
              <meta content="text/html; charset=utf-8"
                http-equiv="Content-Type">
              <p>Dear Daniel,</p>
              <p>thanks for your idea.. for anyone need it on their
                config..</p>
              <p>on branch_route[MANAGE_BRANCH] ...<br>
              </p>
              <p>    if ($avp(lcr_tag)!=$null) {<br>
                <br>
                #!ifdef WITH_XLOG<br>
                        xlog("L_INFO","BRANCH_ROUTE: lcr_tag:
                $avp(lcr_tag) -> add field on INVITE\n");<br>
                #!endif<br>
                        append_hf("$avp(lcr_tag)\r\n");<br>
                <br>
                    }<br>
              </p>
              <br>
              Pratically if the field tag on lcr_gw modules is not empty
              .. i'll add the datas inside the INVITE :)<br>
              <br>
              Regards<br>
              Laura<br>
              <br>
              <br>
              <div class="moz-cite-prefix">Il 10/01/17 11:38,
                Daniel-Constantin Mierla ha scritto:<br>
              </div>
              <blockquote
                cite="mid:0bdabafa-5616-a5b7-da1d-18f9b7423296@gmail.com"
                type="cite">
                <meta content="text/html; charset=utf-8"
                  http-equiv="Content-Type">
                <p>Hello,</p>
                <p>afaik the params column stores the parameters for
                  request URI.</p>
                <p>You are looking to add extra headers.</p>
                <p>One option is to leverage on tag column -- its value
                  should be returned in a variable inside kamailio.cfg.
                  There you can test the value and if it has a specific
                  value, then you can add the extra header you need. The
                  operation to add the headers should be done inside a
                  branch_route in order to have different values for
                  each gateway.</p>
                <p>Cheers,<br>
                  Daniel<br>
                </p>
                <br>
                <div class="moz-cite-prefix">On 10/01/2017 10:51, Laura
                  wrote:<br>
                </div>
                <blockquote
                  cite="mid:64e6ae0e-e7e5-0768-d8db-73dc74f2d59e@plugit.net"
                  type="cite">
                  <meta http-equiv="content-type" content="text/html;
                    charset=utf-8">
                  <p>Dear all,</p>
                  <p>I'm using kamailio 4.3.6 and LCR modules.. i was
                    wondering if it was possibile to add some special
                    paramenter to all call sent to a specific gateway.</p>
                  <p>I was try to use the "
                    <meta http-equiv="content-type" content="text/html;
                      charset=utf-8">
                    <label class="control-label col-lg-4">params" field
                      on </label>
                    <meta http-equiv="content-type" content="text/html;
                      charset=utf-8">
                    lcr_gw table but it's not working like i was think..</p>
                  <p>
                    <meta http-equiv="content-type" content="text/html;
                      charset=utf-8">
                    The issue is simple.. i want to add to field
                    "Privacy: id" to any call i send over a specific
                    gateway..</p>
                  <p>What is the best and easy way to do that ?</p>
                  <p>Any idea is appreciate.</p>
                  <p>Regards</p>
                  <p>Laura<br>
                  </p>
                  <br>
                  <fieldset class="mimeAttachmentHeader"></fieldset>
                  <br>
                  <pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a moz-do-not-send="true" 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 moz-do-not-send="true" class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio World Conference - May 8-10, 2017 - <a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
                <br>
                <fieldset class="mimeAttachmentHeader"></fieldset>
                <br>
                <pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a moz-do-not-send="true" 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>
              <br>
              <fieldset class="mimeAttachmentHeader"></fieldset>
              <br>
              <pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a moz-do-not-send="true" 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 moz-do-not-send="true" class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio World Conference - May 8-10, 2017 - <a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
            <br>
            <fieldset class="mimeAttachmentHeader"></fieldset>
            <br>
            <pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a moz-do-not-send="true" 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>
          <br>
          <fieldset class="mimeAttachmentHeader"></fieldset>
          <br>
          <pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a moz-do-not-send="true" 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>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <br>
        <pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a moz-do-not-send="true" 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 moz-do-not-send="true" class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio World Conference - May 8-10, 2017 - <a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
      <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>
  </body>
</html>