I use the following statement to create a branch, seems it is working ...
Any chance it might be unreliable?
$br = $avp(i:10);
Date: Thu, 13 Nov 2008 15:21:47 +0100
From: klaus.mailinglists(a)pernau.at
To: alex_rsm(a)hotmail.com
CC: users(a)lists.kamailio.org
Subject: Re: [Kamailio-Users] AVP variable as a variable in a function
Alex R.S.M schrieb:
Hi,
How can I use AVP variable as a variable in a function (eg:
append_branch(??)) ?
append_branch( $avp(i:10) ); // getting error message
append_branch( "$avp(i:10)" ); // takes "$avp(i:10)" as the function
parameter and not its value
No. This is a missing feature reported recently by Juha too.
dirty workaround:
$avp(s:temp) = $ru;
$ru = $avp(i:10);
append_branch();
$ru = $avp(s:temp);
but this may cause problems with send_socket, destination URI and bflags.
regards
klaus
_________________________________________________________________
Stay up to date on your PC, the Web, and your mobile phone with Windows Live