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"
Hello,
do you need the ip address as an integer? Then you can use math operations together with transformations to build it in the config.
For various time formats, see the pseudovariables $timef(...) and $time(...).
Cheers, Daniel
On 4/15/13 3:11 PM, Victor V. Kustov wrote:
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"
В Tue, 16 Apr 2013 06:56:46 +0200 Daniel-Constantin Mierla miconda@gmail.com пишет:
Hello,
do you need the ip address as an integer? Then you can use math operations together with transformations to build it in the config.
ok. thank you, i try transform it.
For various time formats, see the pseudovariables $timef(...) and $time(...).
I try to use $(TS{s.ftime,%Y-%m-%d %H:%M:%S}) for test - that needed format.
But need h323-connect-time, h323-disconnect-time, h323-setup-time in this format.
Where is I may find timestamps for connect, setup and disconnect?
Hello,
On 4/16/13 10:21 AM, Victor V. Kustov wrote:
В Tue, 16 Apr 2013 06:56:46 +0200 Daniel-Constantin Mierla miconda@gmail.com пишет:
Hello,
do you need the ip address as an integer? Then you can use math operations together with transformations to build it in the config.
ok. thank you, i try transform it.
For various time formats, see the pseudovariables $timef(...) and $time(...).
I try to use $(TS{s.ftime,%Y-%m-%d %H:%M:%S}) for test - that needed format.
But need h323-connect-time, h323-disconnect-time, h323-setup-time in this format.
Where is I may find timestamps for connect, setup and disconnect?
A way to do it config file, you have to intercept INVITE, 200 OK for INVITE and the BYE - you take the timestamp for each.
Then, dialog module exposes some event_route blocks for these states, where you can take the timestamp.
Cheers, Daniel