[SR-Users] var vs avp...

Olle E. Johansson oej at edvina.net
Mon Apr 29 14:46:34 CEST 2013


29 apr 2013 kl. 14:44 skrev "Victor V. Kustov" <coyote at bks.tv>:

> В Mon, 29 Apr 2013 15:34:11 +0300
> Juha Heinanen <jh at tutpro.com> пишет:
> 
> 
>> as the name of the function indicates, the result is in the avps.  if
>> the function call fails, result value will be -1 as usual and you get
>> error message to syslog.
> 
> in which avps? 
> 
> kk, radius answer:
> 
> Session-Timeout                  = '4284860'
> next-hop-ip                      = 'SIP/111111111 at cisco-out'
> session-protocol                 = 'SIP'
> 
> how i can access to reply?
Documentation says:

All functions of this module load AVPs from SIP-AVP reply items received from RADIUS upon a successful request. Value of the SIP-AVP reply item must be a string of form:

	• value = SIP_AVP_NAME SIP_AVP_VALUE

	• SIP_AVP_NAME = STRING_NAME | '#'ID_NUMBER

	• SIP_AVP_VALUE = ':'STRING_VALUE | '#'NUMBER_VALUE


/O


More information about the sr-users mailing list