[SR-Users] how to check path vector after lookup("location")

Alex Balashov abalashov at evaristesys.com
Fri Aug 21 20:08:55 CEST 2020


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 at 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/



More information about the sr-users mailing list