Dear,

then could I use to retrieve the user from location then set the ruri ?

$var(uri1)="sip:9919995@192.168.1.41";
lookup("location","$var(uri1)");

$uac_req(ruri)=$ru;

Best Regards
Youssef