Sven,
  It looks as if it's pushing onto avp stack.  Try doing the assignment as 
follows below.

$avp(test) := "value";

Sent from my iPhone

On Feb 21, 2012, at 11:45 PM, Sven Knoblich <sven.knobl...@1und1.de> wrote:

> Hello all,
> i am currently confused by using the avpops function avp_delete. When i run 
> avp_delete without the flag-value \g only the last value will be unset (like 
> an undo). Is this the wanted behaviour?
> 
> 
> EXAMPLE:
> 
> $avp(test) = "test"
> if( $avp(test)){xlog("L_NOTICE","result1:$avp(test)\n");}
> 
> $avp(test) = "nooo";
> if( $avp(test)){xlog("L_NOTICE","result2:$avp(test)\n");}
> 
> avp_delete("$avp(test)");
> if( $avp(test)){xlog("L_NOTICE","result3:$avp(test)\n");}
> 
> 
> RESULT:
> 
> result1:test
> result2:nooo
> result3:test
> 
> Could anybody helps me to understand that?
> 
> thanks in advance,
> Sven
> 
> 
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users@lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to