On 03/07/15 16:47, Luca Mularoni wrote:
Hi Daniel,
I would propend for a usrloc issue, because if I print just created xavp (below chunk of real code I'm using for debugging) before invoke save() func:

    xlog("REGDATAGET - FromUser   [$xavp(ulvals[0]=>FromUser)]\n");
    xlog("REGDATAGET - FromDomain [$xavp(ulvals[0]=>FromDomain)]\n");
    xlog("REGDATAGET - PubNetIP   [$xavp(ulvals[0]=>PubNetIP)]\n");
    xlog("REGDATAGET - PubNetPort [$xavp(ulvals[0]=>PubNetPort)]\n");
    xlog("REGDATAGET - PubViaIP   [$xavp(ulvals[0]=>PubViaIP)]\n");
    xlog("REGDATAGET - PubViaPort [$xavp(ulvals[0]=>PubViaPort)]\n");
    xlog("REGDATAGET - PubViaProt [$xavp(ulvals[0]=>PubViaProt)]\n");
    xlog("REGDATAGET - PubSocIP   [$xavp(ulvals[0]=>PubSocIP)]\n");
    xlog("REGDATAGET - PubSocPort [$xavp(ulvals[0]=>PubSocPort)]\n");

in syslog I can find all atttributes filled with their real values.

Note: in doc I didn't find a function to print data of all xavps.
'avp_print()' exported by avpops module work just with avp vars.

iirc, there should be a function pv_xavp_print().

Cheers,
Daniel
-- 
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Book: SIP Routing With Kamailio - http://www.asipto.com