Hi!
According "Transformations cookbook" exist string, uri, name transformations. I think need ip transformations, simulary atoi()/aton() and split for stings with divider.
By the way: avp_subst("$avp(s:sipa)/$avp(s:abc)/g", "/(.*).(.*).(.*).(.*)/\1/"); avp_subst("$avp(s:sipa)/$avp(s:def)/g", "/(.*).(.*).(.*).(.*)/\2/"); avp_subst("$avp(s:sipa)/$avp(s:ghk)/g", "/(.*).(.*).(.*).(.*)/\3/"); avp_subst("$avp(s:sipa)/$avp(s:xyz)/g", "/(.*).(.*).(.*).(.*)/\4/"); $avp(s:numipa)=$avp(s:abc{s.int})<<24||$avp(s:defi{s.int})<<16||$avp(s:ghki{s.int})<<8||$avp(s:xyz{s.int});
where is error?