<p>This is the code snippet:</p>

<p>timer_route[test, 3]<br>
{<br>
...</p>

<pre><code>set_count("$avp(destinations)", "$var(total_destinations)");
xlog("$var(total_destinations) destinations found!");

cache_store("local","destinations","$avp(destinations)");
cache_fetch("local","destinations", $avp(test));
avp_print();
</code></pre>

<p>}</p>

<p>This is the logging:</p>

<p>opensips[458]: 2 destinations found!<br>
opensips[458]: INFO:avpops:ops_print_avp: p=0x36e67d9c, flags=0x0002<br>
opensips[458]: INFO:avpops:ops_print_avp:                  name=<br>
opensips[458]: INFO:avpops:ops_print_avp:                  id=<br>
opensips[458]: INFO:avpops:ops_print_avp:                  val_str=<br>
opensips[458]: INFO:avpops:ops_print_avp: p=0x36e47f9c, flags=0x0002<br>
opensips[458]: INFO:avpops:ops_print_avp:                  name=<br>
opensips[458]: INFO:avpops:ops_print_avp:                  id=<br>
opensips[458]: INFO:avpops:ops_print_avp:                  val_str=<br>
opensips[458]: INFO:avpops:ops_print_avp: p=0x36e47f60, flags=0x0002<br>
opensips[458]: INFO:avpops:ops_print_avp:                  name=<br>
opensips[458]: INFO:avpops:ops_print_avp:                  id=<br>
opensips[458]: INFO:avpops:ops_print_avp:                  val_str=</p>

<p>The $avp(destinations) contains 2 values when stored with cache_store.<br>
The $avp(test) contains only the first value when retrieved with cache_fetch.</p>

<p>Is this a configuration error, bug or by design? Thanks in advance!</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href='https://github.com/OpenSIPS/opensips/issues/143'>view it on GitHub</a>.<img src='https://github.com/notifications/beacon/cHRwG-eeZpfKR_UBFXzvRMCD6YhcMeJ7MsIVZNBtUTG9-TS-JjOXP6FnCmkYONF4.gif' height='1' width='1'></p>