On 1/7/10 6:37 PM, Klaus Darilion wrote:
Daniel-Constantin Mierla schrieb:
Hello,
On 1/7/10 5:27 PM, Santiago Gimeno wrote:
Hi,
I'm getting errors when trying to use avp_printf in K-3.0.0. The script line, for example, is:
avp_printf("$avp(i:905)", "$rU");
The error is:
kamailio: DEBUG: <core> [sr_module.c:516]: find_export_record: <avp_printf> not found
I've tried pv_printf with no luck either.
This was working correctly in K-1.5
Could this be a bug?
pv_printf() should work with kex module, do you have it loaded?
What about $avp(i:905)=$rU; ?
it works as well. But avp_printf() was first and still lot of configs are using it. Sometime I prefer it since it looks more compact:
$ru = "sip:" + $var(user) + "@" + $var(domain) + ":" + $var(port); pv_printf("$ru", "sip:$var(user)@$var(domain):$var(port)");
Cheers, Daniel