[SR-Users] Kamailio Split Variable

Alex Balashov abalashov at evaristesys.com
Wed Feb 10 15:09:48 CET 2021


On 2/10/21 8:50 AM, Mihai wrote:

> the $fd has the value: asterisk-wind.voicevw.lan; and i want to take
> the the first part  - asterisk-wind

Sure!

Have a look at Kamailio's equivalent of a .split() method:

https://www.kamailio.org/wiki/cookbooks/5.4.x/transformations#sselect_index_separator

In essence: $(fd{s.select,0,.});

-- Alex

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