dst_uri can be null if it was not set for the branch. uri field should be the only one that must be there.
Cheers, Daniel On 27/11/14 14:34, Julia Boudniatsky wrote: > Daniel, thank you for quick response. > > After t_load_contact() i try to use > pv_printf("$var(contact)", "$xavp(contacts[0]=>dst_uri)"); > xlog ("L_NOTICE", "var(contact)=$var(contact)\r\n"); > > and receive result null. > > What is wrong? > > On Thu, Nov 27, 2014 at 12:58 PM, Daniel-Constantin Mierla > <mico...@gmail.com <mailto:mico...@gmail.com>> wrote: > > Hello, > > > On 27/11/14 10:16, Julia Boudniatsky wrote: >> >> Hello, >> >> We use get_redirects(*) and t_load_contacts in script. >> >> modparam("tm", "contacts_avp", "$avp(contacts)") >> >> In versions previous to 4.1 >> >> print all contacts: $(avp(contacts[*]) >> >> delete all contacts: $(avp(contacts[*])=$null >> >> From 4.1 this avp is changed to xavp structure. >> >> What is the structure name and value name of xavp for print in >> log $xavp(contacts=>?) ? >> > > there are couple of subfileds in this xavp: > > uri > dst_uri > path > sock > instance > flags > q_flag > ruid > ua > > >> Is it possible to delete xavp? >> > > Yes, as with avp, assign $null to it. > > Cheers, > Daniel > > -- > Daniel-Constantin Mierla > http://twitter.com/#!/miconda <http://twitter.com/#%21/miconda> - > http://www.linkedin.com/in/miconda > > > _______________________________________________ > SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing > list > sr-users@lists.sip-router.org <mailto:sr-users@lists.sip-router.org> > http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users > > -- Daniel-Constantin Mierla http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users