[SR-Users] Typecast

Victor V. Kustov coyote at bks.tv
Mon Apr 15 15:11:27 CEST 2013


Hi all.

I've got following construction:

modparam("acc_radius", "radius_extra", " \
    Calling-Station-Id=$tU; \
    User-Name=$rU; \
    Called-Station-Id=$fU; \
    Framed-IP-Address=$si; \
    h323-call-origin=$var(ho); \
    h323-disconnect-cause=$var(hdc); \
    h323-connect-time=$var(ct); \
    h323-disconnect-time=$var(dt); \
    h323-setup-time=$var(st); \
    Cisco-AVPair=$var(cavp); \
    Cisco-Call-Type=$var(cct) \
")

Framed-IP-Address in dictionary described as "ipaddr". If i send $si
(as writen above), then radius server get incorrect ip like
46.48.44.49. If I try to assign $si any attribute has string type - all
ok. How can I typecast here?

Simulary problem for attributes "h323-disconnect-time",
"h323-setup-time" - need timestamp in format "0000-00-00 00:00:00"


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