<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<tt>Hi, Artur!<br>
<br>
It seems you are adding more attributes than values. If you want
to have a 4th attribute, you also need to add a value for it. Ie:<br>
</tt><br>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<pre class="escaped" style="font-size: 0.9em; font-family: "Lucida Console", "Andale Mono", "Courier New", Courier; margin-top: 0px; margin-bottom: 0px; padding: 6px; border: 1px solid rgb(235, 235, 235); background-color: rgb(251, 254, 250); color: rgb(102, 102, 102); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;"> $avp(attributes) = "param1";
$avp(values) = "value1";
$avp(attributes) = "param2";
$avp(values) = "value2";
$avp(attributes) = "param3"; # you cannot do this - you also have to set a value, like $avp(values) = "value3";
</pre>
<br>
<tt>If you do this, you can pass as many parameters as you want.</tt><tt><br>
</tt><tt><br>
</tt><tt>Best regards,</tt><br>
<pre class="moz-signature" cols="72">
Răzvan Crainea
OpenSIPS Solutions
<a class="moz-txt-link-abbreviated" href="http://www.opensips-solutions.com">www.opensips-solutions.com</a></pre>
<div class="moz-cite-prefix">On 09/09/2016 08:51 AM, Artur Mega
wrote:<br>
</div>
<blockquote
cite="mid:CAOLEQ7c7rw1KpO7=ki53=d_JkWZy5nw_P+EZDN6g9xrDc_zJgw@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_default">Good day, I try to pass some params
to my event handler (by this manual - <a
moz-do-not-send="true"
href="https://www.opensips.org/Documentation/Tutorials-EventInterface">https://www.opensips.org/Documentation/Tutorials-EventInterface</a>),
but when i pass more than 4 attributes it throws an error</div>
<div class="gmail_default"><br>
</div>
<div class="gmail_default">
ERROR:core:evi_raise_script_event: too many attribute names</div>
<div class="gmail_default"><br>
How can I pass more params, or maybe just serialize all vars
to json and pass it to event handler?</div>
<div><br>
</div>
-- <br>
<div class="gmail_signature">
<div dir="ltr">
<div>
<div class="gmail_default"
style="font-size:small;display:inline">Arthur</div>
</div>
</div>
</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>