[Devel] do_assign: no value in right expression

Daniel-Constantin Mierla daniel.mierla at voice-system.ro
Tue Jun 12 00:22:08 CEST 2007


Hello,

assuming NULL value can producing unexpecting results. For example, 
assigning null to an avp will delete first avp with that name. It might 
not be what exactly someone expects from such operation -- instead of 
getting a new avp, you get deleted an existing one.

Cheers,
Daniel


On 06/11/07 19:16, Juha Heinanen wrote:
> my proxy got a request that had no From URI userpart, i.e., from uri
> looked like
>
> From: sip:foo;tag=bar
>
> i had an xlog statement in openser.cfg that assigns from uri userpart
> ($fU) to a pseudo variable.  as result, i get to syslog:
>
> do_assign: no value in right expression
>
> in these kind of situations, would it possible to assume that right
> expression has value NULL and not to produce the syslog message?  it
> would namely be too cumbersome to each time test if a thing is not
> NULL before the assignment.
>
> -- juha
>
> _______________________________________________
> Devel mailing list
> Devel at openser.org
> http://openser.org/cgi-bin/mailman/listinfo/devel
>
>   



More information about the Devel mailing list