You can examine the next hop:
https://www.kamailio.org/wiki/cookbooks/5.4.x/pseudovariables#nh_key
to see if Path has caused it to be diverted.
-- Alex
On 8/21/20 1:43 PM, Sergey Safarov wrote:
I use this construction to check the presence of path
in device registration
if(reg_fetch_contacts("location", "$fu",
"caller") &&
$(ulc(caller=>path)[0]) == $null) {
handle_ruri_alias();
}
Is possible to check path presence after lookup("location") function call?
Sergey
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users(a)lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
--
Alex Balashov | Principal | Evariste Systems LLC
Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)
Web:
http://www.evaristesys.com/,
http://www.csrpswitch.com/