[Devel] tw_append should not append non-existing values

Bogdan-Andrei Iancu bogdan at voice-system.ro
Tue Jun 13 12:50:55 CEST 2006


Hi Juha,

thanks for the report and patch - it was committed on the CVS.

regards,
bogdan

Juha Heinanen wrote:

>if i have defined
>
>   modparam( "tm", "tw_append", "test_avps:Test-Header=$avp(i:100)")
>
>and if avp i:100 is not set when
>
>   t_write_unix("/tmp/sock", "test/test_avps"))
>
>is called, tw_appends appends header
>
>Test-Header: <null>
>
>in my opinion tw_append should test if AVP is set and if not, not append
>the header.
>
>the patch below should do the trick.
>
>-- juha
>  
>




More information about the Devel mailing list