[OpenSER-Users] lookup("location") and CPL locations set

Iñaki Baz Castillo ibc at in.ilimit.es
Mon Nov 19 15:50:40 CET 2007


El Monday 19 November 2007 15:37:19 Daniel escribió:
> Hi all,
> I have a question: in this scenario
>
> route(1)
> {
>   .....
>    ......
>    lookup ("location");
>    cpl_run_script("incoming", "force_stateful");
>   ....
>   ...
> }
>
> is the location (R-URI address), re-writed by the "lookup" function, part
> of the CPL locations set ?
> Or CPL doesn't care about this and it see the locations set empty?

cpl_run_script("incoming") means that it will look for the URI of the RURI, so 
if you do a "lookup" before it will try to look for a entry in "cpl" table 
with username - domain = rU - IP_contact, that probably if now what you want.

You can test it by monitorizing DB's queries.




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




More information about the Users mailing list