<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hello,</p>
    <p>then maybe you can keep the list of addresses in database and use
      sql_query() (from sqlops) to retrieve them and build the headers
      using $dbr(...).</p>
    <p>Or if you want caching, see the htable module.</p>
    <p>If you do not want to use a database system, see db_text to use
      with htable or just read file content with corex module.</p>
    <p>Further flexibility can be added by using other embedded
      scripting languages, e.g., app_lua.<br>
    </p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <div class="moz-cite-prefix">On 04.03.21 12:31, Devang Dhandhalya
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAP0uOe93ZbTdREDeeTe5P5e0v8o2=u92n-_q_PwUrv4iduVFdQ@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">Hello 
        <div><br>
        </div>
        <div>Right now i am not using dispatcher for routing purpose .
          but i add destination in dispatcher.list and i need to set all
          those list of destination addresses grouped by id  in 302
          response in contact header field .</div>
        <div>  . </div>
        <div>
          <div>Thanks in advanced</div>
        </div>
        <div>Devang</div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Thu, Mar 4, 2021 at 4:43 PM
          Daniel-Constantin Mierla <<a
            href="mailto:miconda@gmail.com" moz-do-not-send="true">miconda@gmail.com</a>>
          wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0px 0px 0px
          0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
          <div>
            <p>Hello,</p>
            <p>do you need dispatcher for providing something else? Or
              just to keep the list of addresses grouped by id? There
              can be other variants if dispatcher is not needed for
              something else.</p>
            <p>Cheers,<br>
              Daniel<br>
            </p>
            <div>On 04.03.21 09:19, Devang Dhandhalya wrote:<br>
            </div>
            <blockquote type="cite">
              <div dir="ltr">
                <div>my scenario is : i have dispatcher list </div>
                <div><br>
                </div>
                <div># dispatcher destination sets (groups)<br>
                  #<br>
                  <br>
                  # line format<br>
                  # setid(int) destination(sip uri) flags(int,opt)
                  priority(int,opt) attributes(str,opt)<br>
                  <br>
                  # proxies<br>
                  2 sip:<a href="http://172.19.56.21:5060"
                    target="_blank" moz-do-not-send="true">172.19.56.21:5060</a>
                  0 1<br>
                  2 sip:<a href="http://172.19.56.22:5060"
                    target="_blank" moz-do-not-send="true">172.19.56.22:5060</a>
                  0 2<br>
                  <br>
                  # gateways<br>
                  1 sip:<a href="http://192.168.0.11:5060"
                    target="_blank" moz-do-not-send="true">192.168.0.11:5060</a>
                  0 1<br>
                  1 sip:<a href="http://192.168.0.22:5060"
                    target="_blank" moz-do-not-send="true">192.168.0.22:5060</a>
                  0 2<br>
                  1 sip:<a href="http://192.168.0.33:5060"
                    target="_blank" moz-do-not-send="true">192.168.0.33:5060</a>
                  0 3<br>
                </div>
                <div><br>
                </div>
                <div>when call coming from first time client to kamailio
                  . kamailio just need to send 302 response to the
                  client with all destination ip of group id 1 priority
                  wise  in its contact header field   . in easy way </div>
                <div><br>
                </div>
                <div>client ------------------> kamailio </div>
                <div>                 302    33(3) 22(2) 11(1) </div>
                <div>           <---------------</div>
                <div><br>
                </div>
                <div>and when call coming second time from client to
                  kamailio . kamailio need to send group id 2 all
                  destination ip in 302 response in its contact header
                  field . </div>
                <div><br>
                </div>
                <div>
                  <div>client ------------------> kamailio </div>
                  <div>                 302    22(2) 21(1)  </div>
                  <div>           <---------------</div>
                </div>
                <div><br>
                </div>
                <div>can any one suggest me how to do this thing from
                  kamailio side ? use of append_branch is good option
                  but how to configure  this scenario . </div>
                <div><br>
                </div>
                <div>Thanks in advance</div>
                <div>Devang</div>
              </div>
              <br>
              <div><font style="background-color:white" size="2"
                  face="Arial" color="#808080"><b>Disclaimer</b></font></div>
              <div>
                <div><span
style="background-color:white;color:rgb(128,128,128);font-family:Arial;font-size:small">In
                    addition to generic Disclaimer which you have agreed
                    on our website, any views or opinions presented in
                    this email are solely those of the originator and do
                    not necessarily represent those of the Company or
                    its sister concerns. Any liability (in negligence,
                    contract or otherwise) arising from any third party
                    taking any action, or refraining from taking any
                    action on the basis of any of the information
                    contained in this email is hereby excluded.</span></div>
              </div>
              <div><span
style="background-color:white;color:rgb(128,128,128);font-family:Arial;font-size:small"><br>
                </span></div>
              <div><font style="background-color:white" size="2"
                  face="Arial" color="#808080"><b>Confidentiality</b></font></div>
              <div><font style="background-color:white" size="2"
                  face="Arial" color="#808080">This communication
                  (including any attachment/s) is intended only for the
                  use of the addressee(s) and contains information that
                  is PRIVILEGED AND CONFIDENTIAL. Unauthorized reading,
                  dissemination, distribution, or copying of this
                  communication is prohibited. Please inform originator
                  if you have received it in error.</font></div>
              <div><font style="background-color:white" size="2"
                  face="Arial" color="#808080"><br>
                </font></div>
              <div><span
style="background-color:white;color:rgb(128,128,128);font-family:Arial;font-size:small"><b>Caution
                    for viruses, malware etc.</b></span></div>
              <div><font style="background-color:white" size="2"
                  face="Arial" color="#808080">This communication,
                  including any attachments, may not be free of viruses,
                  trojans, similar or new contaminants/malware,
                  interceptions or interference, and may not be
                  compatible with your systems. You shall carry out
                  virus/malware scanning on your own before opening any
                  attachment to this e-mail. The sender of this e-mail
                  and Company including its sister concerns shall not be
                  liable for any damage that may incur to you as a
                  result of viruses, incompleteness of this message, a
                  delay in receipt of this message or any other computer
                  problems. </font></div>
              <br>
              <fieldset></fieldset>
              <pre>_______________________________________________
Kamailio (SER) - Users Mailing List
<a href="mailto:sr-users@lists.kamailio.org" target="_blank" moz-do-not-send="true">sr-users@lists.kamailio.org</a>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank" moz-do-not-send="true">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
            </blockquote>
            <pre cols="72">-- 
Daniel-Constantin Mierla -- <a href="http://www.asipto.com" target="_blank" moz-do-not-send="true">www.asipto.com</a>
<a href="http://www.twitter.com/miconda" target="_blank" moz-do-not-send="true">www.twitter.com/miconda</a> -- <a href="http://www.linkedin.com/in/miconda" target="_blank" moz-do-not-send="true">www.linkedin.com/in/miconda</a>
Funding: <a href="https://www.paypal.me/dcmierla" target="_blank" moz-do-not-send="true">https://www.paypal.me/dcmierla</a></pre>
          </div>
        </blockquote>
      </div>
      <br>
      <div><font style="background-color:white" size="2" face="Arial"
          color="#808080"><b>Disclaimer</b></font></div>
      <div>
        <div><span
style="background-color:white;color:rgb(128,128,128);font-family:Arial;font-size:small">In
            addition to generic Disclaimer which you have agreed on our
            website, any views or opinions presented in this email are
            solely those of the originator and do not necessarily
            represent those of the Company or its sister concerns. Any
            liability (in negligence, contract or otherwise) arising
            from any third party taking any action, or refraining from
            taking any action on the basis of any of the information
            contained in this email is hereby excluded.</span></div>
      </div>
      <div><span
style="background-color:white;color:rgb(128,128,128);font-family:Arial;font-size:small"><br>
        </span></div>
      <div><font style="background-color:white" size="2" face="Arial"
          color="#808080"><b>Confidentiality</b></font></div>
      <div><font style="background-color:white" size="2" face="Arial"
          color="#808080">This communication (including any
          attachment/s) is intended only for the use of the addressee(s)
          and contains information that is PRIVILEGED AND CONFIDENTIAL.
          Unauthorized reading, dissemination, distribution, or copying
          of this communication is prohibited. Please inform originator
          if you have received it in error.</font></div>
      <div><font style="background-color:white" size="2" face="Arial"
          color="#808080"><br>
        </font></div>
      <div><span
style="background-color:white;color:rgb(128,128,128);font-family:Arial;font-size:small"><b>Caution
            for viruses, malware etc.</b></span></div>
      <div><font style="background-color:white" size="2" face="Arial"
          color="#808080">This communication, including any attachments,
          may not be free of viruses, trojans, similar or new
          contaminants/malware, interceptions or interference, and may
          not be compatible with your systems. You shall carry out
          virus/malware scanning on your own before opening any
          attachment to this e-mail. The sender of this e-mail and
          Company including its sister concerns shall not be liable for
          any damage that may incur to you as a result of viruses,
          incompleteness of this message, a delay in receipt of this
          message or any other computer problems. </font></div>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<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>
Funding: <a class="moz-txt-link-freetext" href="https://www.paypal.me/dcmierla">https://www.paypal.me/dcmierla</a></pre>
  </body>
</html>