Hi,<br><br>According to docs of "uid_domain.so", $fd and $td are attribute groups which are set when calling the lookup_domain function, to retrieve domain attributes stored in an DB ($fd.did or $td.did) :<br>lookup_domain("$fd", "@from.uri.host");<br>
lookup_domain("$td", "@ruri.host");<br><br>if (strempty($fd.did) && strempty($td.did)) {
<br> # Neither the calling nor the called domain is local<br> # This is a relaying attempt which should be forbidden<br> sl_reply("403", "Relaying Forbidden");
drop;<br>}<br><br>But then, starting Kamailio fails with a configuration file error :<br> 0(2098) ERROR: <core> [pvapi.c:761]: error searching pvar "fd"<br> 0(2098) ERROR: <core> [pvapi.c:965]: wrong char [d/100] in [$fd] at [2 (0)]<br>
0(2098) : <core> [cfg.y:3567]: parse error in config file /usr/local/etc/kamailio/kamailio.cfg, line 332, column 15-17: unknown script pseudo variable $fd<br>ERROR: bad config file (1 errors)<br><br>Line 332 is :<br>
if (strempty($fd.did) && strempty($td.did)) {<br><br>I thought I could start Kamailio without "pv.so" (and use selects instead), but the error still shows up, as it is reported by the core pvapi.c file.<br>
<br>So I'm kind of stuck, and asking help from the community to fix this problem :D<br><br>Philippe<br>