<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
<br>I use the following statement to create a branch, seems it is working ...<br>Any chance it might be unreliable?<br><br>$br = $avp(i:10);<br><br><br><br><br>> Date: Thu, 13 Nov 2008 15:21:47 +0100<br>> From: klaus.mailinglists@pernau.at<br>> To: alex_rsm@hotmail.com<br>> CC: users@lists.kamailio.org<br>> Subject: Re: [Kamailio-Users] AVP variable as a variable in a function<br>> <br>> <br>> <br>> Alex R.S.M schrieb:<br>> > Hi,<br>> > <br>> > How can I use AVP variable as a variable in a function (eg: <br>> > append_branch(??)) ?<br>> > <br>> > <br>> > append_branch( $avp(i:10) ); // getting error message<br>> > <br>> > append_branch( "$avp(i:10)" ); // takes "$avp(i:10)" as the function <br>> > parameter and not its value<br>> <br>> No. This is a missing feature reported recently by Juha too.<br>> <br>> dirty workaround:<br>> <br>> $avp(s:temp) = $ru;<br>> $ru = $avp(i:10);<br>> append_branch();<br>> $ru = $avp(s:temp);<br>> <br>> but this may cause problems with send_socket, destination URI and bflags.<br>> <br>> regards<br>> klaus<br><br /><hr />Stay up to date on your PC, the Web, and your mobile phone with Windows Live <a href='http://clk.atdmt.com/MRT/go/119462413/direct/01/' target='_new'>Click here</a></body>
</html>