<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Hi Sasmita,</p>
    <p>The actual name of the parameter, as stated in the docs for
      E_CLUSTERER_REQ_RECEIVED, is "msg". So you should access it by <i>$param(msg)</i>.</p>
    <p>Regards,<br>
    </p>
    <pre class="moz-signature" cols="72">Vlad Patrascu
OpenSIPS Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
    <div class="moz-cite-prefix">On 07/08/2019 02:29 PM, Sasmita Panda
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CALf-Q46JQMn+Z1=5w9kbcCoL9gY4DZFh0YCY6LK6q=GFK8vJvg@mail.gmail.com">
      <div dir="ltr">event_route[E_CLUSTERER_REQ_RECEIVED]{<br>
                $avp(state) = $(param(rcv_msg){s.select,0,:});<br>
                $avp(user) = $(param(rcv_msg){s.select,1,:});<br>
                $avp(proxy) = $(param(rcv_msg){s.select,2,:});
        <div>xlog("L_INFO","[CLUSTER-TALK] {MSG:$avp(rcv_msg)} Sender
          Proxy:$avp(proxy) SRC_ID:$avp(source_id) User: $avp(user)
          State: $avp(state) ClusterId: $param(cluster_id)\n")<br>
        </div>
        <div>        if($avp(state) =~ "REGOFFLINE") {<br>
                          cache_raw_query("redis:group1","HDEL REGONLINE
          $avp(user)");<br>
                  }else if($avp(state) =~ "REGONLINE") {<br>
                          cache_raw_query("redis:group1","HSET
          $avp(state) $avp(user) $avp(proxy)");<br>
                  }else if($avp(state) =~ "WHEREIS") {<br>
                          route(QUERY_LOCAL_CACHE);<br>
                  }else if($avp(state) =~ "HACKER"){<br>
                          $avp(useragent) = $avp(user);<br>
                          $avp(hacker_ip) = $avp(proxy);<br>
                          xlog("L_INFO","[CLUSTER-TALK] HACKER IP
          DETECTED BY CLUSTER ADDING $avp(hacker_ip) & User-Agent:
          $(avp(useragent){s.b64decode}) Into Watch-List\n");<br>
          <br>
                          cache_raw_query("redis:group1","HSET
          HACKER_USERAGENT_LIST $avp(useragent) $avp(hacker_ip)");<br>
                          cache_raw_query("redis:group1","HSET
          HACKER_IP_LIST $avp(hacker_ip) $avp(useragent)");<br>
                  }<br>
          <br>
                  exit;<br>
        </div>
        <div>}</div>
        <div><br>
        </div>
        <div>This is giving warning in opensips 3.0  as below . </div>
        <div><b>WARNING:event_route:event_route_param_get: Parameter
            <rcv_msg> not found for event
            <E_CLUSTERER_REQ_RECEIVED></b></div>
        <div><b> </b></div>
        <div><b>             Due to this the data is not getting saved
            in the subsequent node in the cluster .  How I will fix this
            ? </b></div>
        <div><b><br>
          </b>
          <div>
            <div dir="ltr" class="m_8245332057504783928gmail_signature"
              data-smartmail="gmail_signature">
              <div dir="ltr">
                <div>
                  <div dir="ltr"><b><i>Thanks & Regards</i></b>
                    <div><i>Sasmita Panda</i></div>
                    <div><i>Senior Network Testing and Software Engineer</i></div>
                    <div><i>3CLogic , ph:07827611765</i></div>
                  </div>
                </div>
              </div>
            </div>
          </div>
          <br>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Thu, Jul 4, 2019 at 5:35 PM
          Sasmita Panda <<a href="mailto:spanda@3clogic.com"
            target="_blank" moz-do-not-send="true">spanda@3clogic.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 dir="ltr">Thank you for your quick response . I resolved
            it . 
            <div><br>
            </div>
            <div><br clear="all">
              <div>
                <div dir="ltr"
class="gmail-m_8245332057504783928gmail-m_8295636600864459787gmail_signature">
                  <div dir="ltr">
                    <div>
                      <div dir="ltr"><b><i>Thanks & Regards</i></b>
                        <div><i>Sasmita Panda</i></div>
                        <div><i>Senior Network Testing and Software
                            Engineer</i></div>
                        <div><i>3CLogic , ph:07827611765</i></div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
              <br>
            </div>
          </div>
          <br>
          <div class="gmail_quote">
            <div dir="ltr" class="gmail_attr">On Thu, Jul 4, 2019 at
              5:12 PM Liviu Chircu <<a
                href="mailto:liviu@opensips.org" target="_blank"
                moz-do-not-send="true">liviu@opensips.org</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 bgcolor="#FFFFFF">
                <p><tt>Hey Sasmita,</tt></p>
                <p><tt>I had a similar problem yesterday.  In 3.0,
                    fetch_event_params() was removed, and you are<br>
                    simply supposed to access your params via:</tt></p>
                <p><tt>  $param(cluster_id), $param(src_id),
                    $param(rcv_msg) and $param(rcv_tag)</tt></p>
                <pre class="gmail-m_8245332057504783928gmail-m_8295636600864459787gmail-m_8885142547672890534moz-signature" cols="72">Liviu Chircu
OpenSIPS Developer
<a class="gmail-m_8245332057504783928gmail-m_8295636600864459787gmail-m_8885142547672890534moz-txt-link-freetext" href="http://www.opensips-solutions.com" target="_blank" moz-do-not-send="true">http://www.opensips-solutions.com</a></pre>
                <div
class="gmail-m_8245332057504783928gmail-m_8295636600864459787gmail-m_8885142547672890534moz-cite-prefix">On
                  04.07.2019 14:22, Sasmita Panda wrote:<br>
                </div>
                <blockquote type="cite">
                  <div dir="ltr">Hi All ,
                    <div><br>
                    </div>
                    <div>Previously I have used cluster module with
                      opensips 2.4 and that was working fine . Now I
                      want to upgrade to opensips 3.0 . And there are
                      lots of parameter get changed in opensips 3.0 .</div>
                    <div><br>
                    </div>
                    <div>Is there any documentation for cluster module
                      in 3.0 . I need an example for config file which I
                      can use with opensips 3.0 .</div>
                    <div><br>
                    </div>
                    <div>Now I am facing problem in bellow lines .</div>
                    <div><br>
                    </div>
                    <div>event_route[E_CLUSTERER_RPL_RECEIVED]{<br>
                             
fetch_event_params("$avp(cluster_id);$avp(src_id);$avp(rcv_msg);$avp(rcv_tag)");<br>
                              $avp(state) =
                      $(avp(rcv_msg){s.select,0,:});<br>
                              $avp(user) =
                      $(avp(rcv_msg){s.select,1,:});<br>
                              $avp(proxy) =
                      $(avp(rcv_msg){s.select,2,:});<br>
                              xlog("L_INFO","[CLUSTER-TALK] Replying
                      Proxy:$avp(proxy) User: $avp(user) State:
                      $avp(state) ClusterId: $avp(cluster_id) TAG:
                      $avp(rcv_tag) \n");<br>
                      }</div>
                    <div><br>
                    </div>
                    <div>fetch_event_params  this is not present in
                      opensips 3.0 . How I will convert this so that it
                      will support in opensips 3.0. Please do help me
                      .  <br>
                      <table
class="gmail-m_8245332057504783928gmail-m_8295636600864459787gmail-m_8885142547672890534gmail-highlight
gmail-m_8245332057504783928gmail-m_8295636600864459787gmail-m_8885142547672890534gmail-tab-size
gmail-m_8245332057504783928gmail-m_8295636600864459787gmail-m_8885142547672890534gmail-js-file-line-container">
                        <tbody>
                          <tr>
                            <td
id="gmail-m_8245332057504783928gmail-m_8295636600864459787gmail-m_8885142547672890534gmail-file-opensips-cfg-L5"
class="gmail-m_8245332057504783928gmail-m_8295636600864459787gmail-m_8885142547672890534gmail-blob-num
gmail-m_8245332057504783928gmail-m_8295636600864459787gmail-m_8885142547672890534gmail-js-line-number"><br>
                              <br>
                            </td>
                            <td id="gmail-m_8245332057504783928gmail-m_8295636600864459787gmail-m_8885142547672890534gmail-file-opensips-cfg-LC5" class="gmail-m_8245332057504783928gmail-m_8295636600864459787gmail-m_8885142547672890534gmail-blob-code gmail-m_8245332057504783928gmail-m_8295636600864459787gmail-m_8885142547672890534gmail-blob-code-inner gmail-m_8245332057504783928gmail-m_8295636600864459787gmail-m_8885142547672890534gmail-js-file-line" style="line-height:20px;vertical-align:top;color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;overflow:visible;white-space:pre-wrap;background:transparent;border:0px;padding:1px 10px">

</td>
                          </tr>
                        </tbody>
                      </table>
                      <div>
                        <div>
                          <div dir="ltr"
class="gmail-m_8245332057504783928gmail-m_8295636600864459787gmail-m_8885142547672890534gmail_signature">
                            <div dir="ltr">
                              <div>
                                <div dir="ltr"><b><i>Thanks &
                                      Regards</i></b>
                                  <div><i>Sasmita Panda</i></div>
                                  <div><i>Senior Network Testing and
                                      Software Engineer</i></div>
                                  <div><i>3CLogic , ph:07827611765</i></div>
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                  <br>
                  <fieldset
class="gmail-m_8245332057504783928gmail-m_8295636600864459787gmail-m_8885142547672890534mimeAttachmentHeader"></fieldset>
                  <pre class="gmail-m_8245332057504783928gmail-m_8295636600864459787gmail-m_8885142547672890534moz-quote-pre">_______________________________________________
Users mailing list
<a class="gmail-m_8245332057504783928gmail-m_8295636600864459787gmail-m_8885142547672890534moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org" target="_blank" moz-do-not-send="true">Users@lists.opensips.org</a>
<a class="gmail-m_8245332057504783928gmail-m_8295636600864459787gmail-m_8885142547672890534moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank" moz-do-not-send="true">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
                </blockquote>
              </div>
              _______________________________________________<br>
              Users mailing list<br>
              <a href="mailto:Users@lists.opensips.org" target="_blank"
                moz-do-not-send="true">Users@lists.opensips.org</a><br>
              <a
                href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
                rel="noreferrer" target="_blank" moz-do-not-send="true">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
            </blockquote>
          </div>
        </blockquote>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>