(RADIATOR) Question about handlers.

Ricardo Martinez rmartinez at redvoiss.net
Thu Dec 30 11:21:45 CST 2004


Hello List.
	I have a question regarding the Handlers.
	If i want to use different SQL querys for different types of
request, based on a Attribute.  Which is the way to do this?.  The
Attributes are : 

cisco-h323-billing-model = "h323-billing-model=numero:myrsta"

or

cisco-h323-billing-model = "h323-billing-model=numero:normal"

or

cisco-h323-billing-model = "h323-billing-model=numero:800"

For the first query the attribute cisco-h323-billing-model is not present so
i want to use a Hadler like this : 

<Handler Request-Type = Access-Request>
something...
</Handler>


Then for the other subsequent request i have to match in one of the next
handlers : 

<Handler Request-Type = Access-Request, cisco-h323-billing-model=
h323-billing-model=numero:normal>
something 2...
</Handler>

<Handler Request-Type = Access-Request, cisco-h323-billing-model=
h323-billing-model=numero:800>
something3...
</Handler>

<Handler Request-Type = Access-Request, cisco-h323-billing-model=
h323-billing-model=numero:myrsta>
something4...
</Handler>

But is not working....
Can anyone help me?.  
For a normal transaction the first auth packet is like this one :

	User-Name = "1234567890987654"
	cisco-h323-conf-id = "h323-conf-id=1583381F 599A11D9 8521ED09
C78C1568"
	cisco-avpair = "h323-ivr-out=transactionID:51"
	Calling-Station-Id = "xxxxx100"
	NAS-Port-Type = Async
	Cisco-NAS-Port = "ISDN 1/0:15:2"
	NAS-Port = 0
	Service-Type = Login-User
	NAS-IP-Address = xx.xx.xx.71

I want this packet in the first handler.

Then the 2nd auth packet is like this : 

	User-Name = "1234567890987654"
	cisco-h323-conf-id = "h323-conf-id=1583381F 599A11D9 8521ED09
C78C1568"
	cisco-h323-billing-model = "h323-billing-model=numero:myrsta"
	cisco-avpair = "h323-ivr-out=transactionID:52"
	Calling-Station-Id = "xxxx100"
	Called-Station-Id = "xxxxxxxxx7000"
	Service-Type = Login-User
	NAS-IP-Address = xx.xx.xx.71

I want this second packet on a handler based on the cisco-h323-billing-model


Thanks in advance

Ricardo Martinez.-

--
Archive at http://www.open.com.au/archives/radiator/
Announcements on radiator-announce at open.com.au
To unsubscribe, email 'majordomo at open.com.au' with
'unsubscribe radiator' in the body of the message.


More information about the radiator mailing list