[Kamailio-Devel] Why $du is set after "lookup(location)" ?

Iñaki Baz Castillo ibc at in.ilimit.es
Thu Aug 21 12:05:29 CEST 2008


Hi, I've realized that $du (the real destination address) is set after doing a 
lookup("location"). I wonder why, shouldn't be $du computed after the script?

I've a related problem since I do a "lookup(location)" and later I modify $ru 
to deliver the request to other place, but since $du is set the request is 
sent there.

Also the documentation of "lookup()" method doesn't tell it:

  http://www.kamailio.org/docs/modules/1.3.x/registrar.html#AEN342
     If there are such contacts, Request-URI will be overwritten with the 
     contact...
  (nothing about $du).

I'm upgrading the $du in the wiki, hops it's correct: 
http://www.kamailio.org/dokuwiki/doku.php/pseudovariables:devel#destination_uri

PD: Could it be added to registrar documentation?

-- 
Iñaki Baz Castillo
ibc at in.ilimit.es



More information about the Devel mailing list