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@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users