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?
Best regards,
Santi
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?
Cheers, Daniel
Hi
2010/1/7 Daniel-Constantin Mierla miconda@gmail.com
Hello,
pv_printf() should work with kex module, do you have it loaded?
No, I didn't, and it works as you say. Thanks!
The problem was that I saw in the documentation of avpops that avp_printf was still valid and I couldn't see anything about pv_printf in the kex module documentation.
Best regards,
Santi
Hello,
On 1/7/10 6:26 PM, Santiago Gimeno wrote:
Hi
2010/1/7 Daniel-Constantin Mierla <miconda@gmail.com mailto:miconda@gmail.com>
Hello, pv_printf() should work with kex module, do you have it loaded?
No, I didn't, and it works as you say. Thanks!
The problem was that I saw in the documentation of avpops that avp_printf was still valid and I couldn't see anything about pv_printf in the kex module documentation.
indeed, documentation was missing. I fixed that along with adding avp_printf() as name alias for same function.
Thanks, Daniel
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; ?
klaus
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