[Devel] AVP pushto header bug?

Bogdan-Andrei Iancu bogdan at voice-system.ro
Wed Jul 6 09:43:18 CEST 2005


Hi Günther,

the correct format is with $ in front (as it's a variable and not a value):
    avp_pushto("$Email/reply","s:email");
    avp_pushto("$Foo","$bar/g");

The error is in documentation. I will take care and correct it.

thanks for report,
bogdan


Günther Starnberger wrote:

>hello,
>
>the docs to the avp module (function pushto) describe the following
>format for the destination:
>
>destination = ruri_dst | hdr_dst
>ruri_dst = '$ruri'['/'('username'|'domain')]
>hdr_dst = 'hdr_name'['/'('request'|'reply')] 
>
>there are also the following examples:
>
>avp_pushto("Email/reply","s:email");
>avp_pushto("Foo","$bar/g");
>
>the problem is that i just get the following error message if i specify
>a header in the described format:
>
>ERROR:avops:fixup_pushto_avp: bad param 1; expected : $[ruri|hdr_name|..]
>
>but when i prefix the header name with '$' it works fine (openser
>inserts the header without the prefix).
>
>i am using version 0.9.4 - so sorry if this bug is already fixed (but i
>haven't found any infos on this problem in the 0.9.5 changelog).
>
>the exact commands which are causing the error are:
>avp_write("$ruri","s:ruri");
>avp_pushto("X-ruri","s:ruri");
>
>cu
>/gst
>
>  
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Devel mailing list
>Devel at openser.org
>http://openser.org/cgi-bin/mailman/listinfo/devel
>  
>




More information about the Devel mailing list