Hi all!
Whats difference between registered("location") and lookup("location")?
-- WBR, Victor JID: coyote@bks.tv JID: coyote@bryansktel.ru I use FREE operation system: 3.9.4-calculate GNU/Linux
14 jun 2013 kl. 10:33 skrev "Victor V. Kustov" coyote@bks.tv:
Hi all!
Whats difference between registered("location") and lookup("location")?
THe first one returns TRUE if an AOR is registred.
The second one - lookup - changes the destination set of the current request based on the registred contacts.
/O
--- oej@edvina.net - http://edvina.net Open Unified Communication - building platforms with SIP and XMPP From PBX to large scale implementations for carriers. Contact us today!
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@bks.tv JID: coyote@bryansktel.ru I use FREE operation system: 3.9.4-calculate GNU/Linux