Re: [SR-Users] How to read "duid" from dispatcher.list in kamamilio.cfg

2020-10-21 Thread Federico Cabiddu
Hi, actually you can access it directly from the xvap without transformations. $var(duid) = $xavp(dsdst=>dstid); ( http://www.kamailio.org/docs/modules/devel/modules/dispatcher.html#dispatcher.p.xavp_dst_mode ) Cheers, Federico On Wed, Oct 21, 2020 at 9:28 AM Federico Cabiddu wrote: > Hi, >

Re: [SR-Users] How to read "duid" from dispatcher.list in kamamilio.cfg

2020-10-21 Thread Federico Cabiddu
Hi, you can access it through the xavp_dst ( http://www.kamailio.org/docs/modules/devel/modules/dispatcher.html#dispatcher.p.xavp_dst) using transformations. E.g. if your xavp is called "dsdst" you can do something like this: $var(duid) = $(xavp(dsdst=>attrs){param.value,duid}); Cheers, Federico

[SR-Users] How to read "duid" from dispatcher.list in kamamilio.cfg

2020-10-20 Thread Jani Biju Babjan
Hi, I have a dispatcher.list file like the following: 1 sip:127.0.0.1:5060 0 0 duid=abcd;maxload=5 1 sip:127.0.0.2:5060 0 0 duid=efgh;maxload=5 After calling the ds_select_dst("1", "4") function(ie, round-robin selection), I want to read the value of the "duid" attribute of the selected destinati