[SR-Users] lookup(), received an $du

Andreas Granig agranig at sipwise.com
Tue May 11 14:59:54 CEST 2010


Hi,

Some interesting behavior with kam-3.0, which I haven't experienced with 
<= 1.5:

Let's say I have two subscribers A and B registered. A has a 
received-value in location table, B has it set to NULL.

If I call lookup() for A, $ru is set to the registered contact, and $du 
is set to the received-value. When for example A is busy, I catch it 
with a failure route and rewrite $ru to B. Calling lookup() again sets 
my $ru to the contact of B, but since the received-value of B is NULL in 
the DB, the $du is still pointing to the received-value of A, instead of 
being set to null.

A quick-fix is to set $du to null before calling lookup(), but I'm 
wondering if this is a bug or intended behavior?

Thanks,
Andreas



More information about the sr-users mailing list