[SR-Users] location() vs registered()
Victor V. Kustov
coyote at bks.tv
Fri Jun 14 15:56:42 CEST 2013
Hello, Olle!
>> Whats difference between registered("location") and
>> lookup("location")?
>THe first one returns TRUE if an AOR is registred.
thanks.
if (!lookup("location",$dlg_var(callee))
&& !lookup("location",$dlg_var(caller))) route(TRANSIT);
why i get error:
loading modules under /usr/local/lib64/kamailio/modules_k/:/usr/local/lib64/kamailio/modules/
0(47034) : <core> [cfg.y:3389]: yyerror_at(): parse error in config file route.cfg, line 61, column 28-43: function lookup: parameter 2 is not constant
if i set !lookup("location","$dlg_var(callee)") than config check ok, but runtime error.
--
WBR, Victor
JID: coyote at bks.tv
JID: coyote at bryansktel.ru
I use FREE operation system: 3.9.4-calculate GNU/Linux
More information about the sr-users
mailing list