<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
dst_uri can be null if it was not set for the branch. uri field
should be the only one that must be there.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<div class="moz-cite-prefix">On 27/11/14 14:34, Julia Boudniatsky
wrote:<br>
</div>
<blockquote
cite="mid:CAASaakZ6Otf6Yw_M30tPO=njZH=LG=3r4Kd8K8K48ksbYxH_=Q@mail.gmail.com"
type="cite">
<div dir="ltr">Daniel, thank you for quick response.
<div><br>
<div>After t_load_contact() i try to use </div>
<div>pv_printf("$var(contact)",
"$xavp(contacts[0]=>dst_uri)");</div>
<div>xlog ("L_NOTICE", "var(contact)=$var(contact)\r\n");</div>
<div><br>
</div>
<div>and receive result null.</div>
<div><br>
</div>
<div>What is wrong?</div>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Thu, Nov 27, 2014 at 12:58 PM,
Daniel-Constantin Mierla <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:miconda@gmail.com"
target="_blank">miconda@gmail.com</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"> Hello,<span class=""><br>
<br>
<br>
<div>On 27/11/14 10:16, Julia Boudniatsky wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<p>Hello, </p>
<p>We use get_redirects(*) and t_load_contacts in
script.</p>
<p>modparam("tm", "contacts_avp", "$avp(contacts)")</p>
<p>In versions previous to 4.1 <br>
</p>
<p style="margin-left:36pt"><span> </span><span
dir="LTR"></span>print all contacts:
$(avp(contacts[*])</p>
<p> <span> </span><span dir="LTR"></span><span>delete
all contacts:</span><span> </span><span>$(avp(contacts[*])=$null</span></p>
<p>From 4.1 this avp is changed to xavp structure.</p>
<p>What is the structure name and value name of
xavp for print in log $xavp(contacts=>?) ?</p>
</div>
</blockquote>
<br>
</span> there are couple of subfileds in this xavp:<br>
<br>
uri<br>
dst_uri<br>
path<br>
sock<br>
instance<br>
flags<br>
q_flag<br>
ruid<br>
ua<span class=""><br>
<br>
<br>
<blockquote type="cite">
<div dir="ltr">
<p>Is it possible to delete xavp?</p>
</div>
</blockquote>
<br>
</span> Yes, as with avp, assign $null to it.<br>
<br>
Cheers,<br>
Daniel<span class="HOEnZb"><font color="#888888"><br>
<pre cols="72">--
Daniel-Constantin Mierla
<a moz-do-not-send="true" href="http://twitter.com/#%21/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a moz-do-not-send="true" href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a></pre>
</font></span></div>
<br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users
mailing list<br>
<a moz-do-not-send="true"
href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a moz-do-not-send="true"
href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users"
target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a></pre>
</body>
</html>