[Devel] Missing functionality after migration from avp_write
to assignment operator
Daniel-Constantin Mierla
daniel at voice-system.ro
Wed Mar 14 18:55:27 CET 2007
Hello,
you have to use transformations to get that now -- gives you more
possibilities:
http://openser.org/dokuwiki/doku.php/transformations:1.2.x#uri.user
$avp(s:src_leg_user) = $(avp(s:src_leg){uri.user});
Cheers,
Daniel
On 03/12/07 13:28, Alex Hermann wrote:
> Hello,
>
>
> I'm missing some functionality of assigment operator that was present with the
> avp_write function.
>
> This used to work to place the username part of an avp in a separate avp:
> avp_write("$avp(s:src_leg)/username", "$avp(s:src_leg_user)");
>
> I'm trying to replace that with the assigment operator, but
>
> 1)
> $avp(s:src_leg_user) = $avp(s:src_leg)/username;
>
> produces errors during execution:
> coreswitch1[8636]: eval_elem: invalid string operator 7
> coreswitch1[8636]: do_assign: no value in right expression
>
>
> 2)
> $avp(s:src_leg_user) = "$avp(s:src_leg)/username";
>
> does no avp substitution, putting the string literally in the avp.
>
>
> So, my question is, how do i get the same functionality now that avp_write is
> removed?
>
>
More information about the Devel
mailing list