[SR-Users] Transformations

Victor V. Kustov coyote at bks.tv
Thu Apr 18 12:19:22 CEST 2013


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?

-- 
 SY,
	Victor
  JID: coyote at bks.tv
  JID: coyote at bryansktel.ru
  I use FREE operation system: 3.8.4-calculate GNU/Linux



More information about the sr-users mailing list