<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi, Tito!<br>
    <br>
    Unfortunately there is no mechanism to add extra information for
    static events.<br>
    However, there is a workaround for this: you can register a custom
    event:<br>
    <br>
    <p class="">startup_route {<br>
          subscribe_event("E_MY_UL_AOR_DELETE", "rabbitmq:<a
        moz-do-not-send="true" href="http://127.0.0.1/reg">127.0.0.1/reg</a>")<span
        class="">;<br>
        }<br>
      </span></p>
    <p class=""><span class="">Then catch the initial event in an
        event_route and raise the custome event:<br>
      </span></p>
    <p class=""><span class="">event_route[</span>E_UL_AOR_DELETE] {<br>
          fetch_event_params("aor=$avp(aor)");<br>
          $avp(param) = $Ri;<br>
          $avp(param) = $avp(aor);<br>
          raise_event("E_MY_UL_AOR_DELETE", "$avp(param)");<br>
      }<br>
    </p>
    So basically you have to add some kind of a wrapper on the original
    event where you can add extra information. The same thing should be
    done for the INSERT event. I hope this helpls.<br>
    <br>
    Best regards,<br>
    Răzvan<br>
    <br>
    <div class="moz-cite-prefix">On 08/01/2014 11:53 PM, Tito Cumpen
      wrote:<br>
    </div>
    <blockquote
cite="mid:CANZPVB4yeChoRTF3WVwWhdewyM1O4-WbQ4D2_53F=vCUv3a_Hw@mail.gmail.com"
      type="cite">
      <div dir="ltr">Group,
        <div><br>
        </div>
        <div><br>
        </div>
        <div>Can anyone share the procedure in which I can raise and
          exported event and include a pseudo variable in the body? I
          need $Ri to be included to provide a sense of identification
          as to which server is raising the event</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>
          <p class=""><br>
          </p>
          <p class="">startup_route {</p>
          <p class="">                       
            subscribe_event("E_UL_AOR_DELETE", "rabbitmq:<a
              moz-do-not-send="true" href="http://127.0.0.1/reg">127.0.0.1/reg</a>")<span
              class="">;</span></p>
          <p class="">                       
            subscribe_event("E_UL_AOR_INSERT", "rabbitmq:<a
              moz-do-not-send="true" href="http://127.0.0.1/reg">127.0.0.1/reg</a>")<span
              class="">;</span></p>
          <p class=""><br>
          </p>
          <p class="">}</p>
          <p class="">I am getting a payload that defines the user being
            added and deleted but I I wish to include the server which
            raised the event in the body as well.</p>
          <p class=""><br>
          </p>
          <p class=""><br>
          </p>
          <p class="">Thanks,</p>
          <p class="">Tito</p>
        </div>
      </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>