[Kamailio-Users] AVP variable as a variable in a function
Alex R.S.M
alex_rsm at hotmail.com
Thu Nov 13 15:30:21 CET 2008
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 at pernau.at
> To: alex_rsm at hotmail.com
> CC: users at 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
http://clk.atdmt.com/MRT/go/119462413/direct/01/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kamailio.org/pipermail/users/attachments/20081113/34c10e8c/attachment.htm
More information about the Users
mailing list