<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13.333333969116211px;font-weight:bold;white-space:nowrap">Răzvan Crainea,</span><br><div><span style="font-family:arial,sans-serif;font-size:13.333333969116211px;font-weight:bold;white-space:nowrap"><br>
</span></div><div><span style="font-family:arial,sans-serif;font-size:13.333333969116211px;font-weight:bold;white-space:nowrap">Thank you for your very helpful and insightful reply. The issue I encountered using a pseudo variable during an event route is that they are based on a route request on the sip interface. Which means $Ri would have no entries when UL aor_delete event/route are called. The reason I need this variable to be passed is to identify which server raised the event. Would you recommend using an avp that contains the primary ip?</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13.333333969116211px;font-weight:bold;white-space:nowrap"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13.333333969116211px;font-weight:bold;white-space:nowrap"><br>
</span></div><div><span style="font-family:arial,sans-serif;font-size:13.333333969116211px;font-weight:bold;white-space:nowrap"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13.333333969116211px;font-weight:bold;white-space:nowrap"> </span></div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Aug 4, 2014 at 4:20 AM, Răzvan Crainea <span dir="ltr"><<a href="mailto:razvan@opensips.org" target="_blank">razvan@opensips.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div 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>startup_route {<br>
subscribe_event("E_MY_UL_AOR_DELETE", "rabbitmq:<a href="http://127.0.0.1/reg" target="_blank">127.0.0.1/reg</a>")<span>;<br>
}<br>
</span></p>
<p><span>Then catch the initial event in an
event_route and raise the custome event:<br>
</span></p>
<p><span>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<div><div class="h5"><br>
<br>
<div>On 08/01/2014 11:53 PM, Tito Cumpen
wrote:<br>
</div>
</div></div><blockquote type="cite"><div><div class="h5">
<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><br>
</p>
<p>startup_route {</p>
<p>
subscribe_event("E_UL_AOR_DELETE", "rabbitmq:<a href="http://127.0.0.1/reg" target="_blank">127.0.0.1/reg</a>")<span>;</span></p>
<p>
subscribe_event("E_UL_AOR_INSERT", "rabbitmq:<a href="http://127.0.0.1/reg" target="_blank">127.0.0.1/reg</a>")<span>;</span></p>
<p><br>
</p>
<p>}</p>
<p>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><br>
</p>
<p><br>
</p>
<p>Thanks,</p>
<p>Tito</p>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
</div></div><pre>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>