(RADIATOR) Re: Quintum A400

Hugh Irvine hugh at open.com.au
Thu Oct 21 03:52:04 CDT 2004


Hello Steven -

In answer to your second question first, you will need a PreClientHook 
to parse the Quintum-AVPair's and add pseudo-attributes to the incoming 
request. There is an example showing how to do this with cisco-avpair's 
in the latest Radiator 3.10 patches in "goodies/hooks.txt". You simply 
need to change "cisco-avpair" to "Quintum-AVPair".

Once you have the PreClientHook working you can deal with your first 
question like this:

<Handler h323-ivr-out = /FOLLOW_ON_FLAG/>
	.....
</Handler>

<Handler>
	.....
</Handler>

BTW - I suggest you read the document "goodies/voip.txt".

regards

Hugh


On 21 Oct 2004, at 18:12, queksteven at stsunpage.st.com.sg wrote:

>
> Question :
>
> There are two stage of Auth, first is the Card # and upon successful 
> where need to return the money balance, its will prompt the caller for 
> DNIS #, its will call for auth again and expect to return duration.
>
> Questions :
>
> 1.        How can i have separate Auth its seem that only the 
> Quintum-AVPair attribute is different.
> 2.        How can i read-in the second value of Quintum-AVPair ?
>
>
> Below is the sample :
>
> Thu Oct 21 15:34:07 2004: DEBUG: Packet dump:
> *** Received from 10.92.1.51 port 24579 ....
> Code:       Access-Request
> Identifier: 56
> Authentic:  <0><0>%z<0><0><5>v<0><0>&<25><0><0>&<20>
> Attributes:
>         NAS-IP-Address = 10.92.1.51
>         User-Name = "1234567890"
>         User-Password = ">J?`<250><254><3><25><131>cv<192>.<131><178>$"
>         NAS-Port-Type = Async
>         Quintum-h323-conf-id = "h323-conf-id=34313532 34346636 
> 31390061 79000042"
>         Quintum-AVPair = "h323-ivr-out=ACCESSCODE:64812610"
>
> Thu Oct 21 15:34:07 2004: DEBUG: Handling request with Handler 
> 'NAS-IP-Address=10.92.1.51'
> Thu Oct 21 15:34:07 2004: DEBUG: Rewrote user name to 1234567890
> Thu Oct 21 15:34:07 2004: DEBUG:  Deleting session for 1234567890, 
> 10.92.1.51,
> Thu Oct 21 15:34:08 2004: DEBUG: Handling with Radius::AuthSQL
> Thu Oct 21 15:34:08 2004: DEBUG: Handling with Radius::AuthSQL: 
> PrePaid_Authentication
> Thu Oct 21 15:34:08 2004: DEBUG: Query is: 'exec IS_VALIDUSER1 
> '1234567890', 'h323-ivr-out=ACCESSCODE:64812610', ''':
>
> Thu Oct 21 15:34:08 2004: DEBUG: Radius::AuthSQL looks for match with 
> 1234567890
> Thu Oct 21 15:34:08 2004: DEBUG: Radius::AuthSQL ACCEPT:
> Thu Oct 21 15:34:08 2004: DEBUG: Access accepted for 1234567890
> Thu Oct 21 15:34:08 2004: DEBUG: Packet dump:
> *** Sending to 10.92.1.51 port 24579 ....
> Code:       Access-Accept
> Identifier: 56
> Authentic:  <0><0>%z<0><0><5>v<0><0>&<25><0><0>&<20>
> Attributes:
>         Quintum-h323-return-code = "h323-return-code=0"
>         Quintum-h323-prompt-id = "h323-prompt-id=0"
>         Quintum-h323-preferred-lang = "h323-preferred-lang=en"
>         Quintum-h323-credit-amount = "h323-credit-amount=12.76"
>         Quintum-h323-currency-type = "h323-currency-type=USD"
>
> Thu Oct 21 15:34:16 2004: DEBUG: Packet dump:
> *** Received from 10.92.1.51 port 24579 ....
> Code:       Access-Request
> Identifier: 57
> Authentic:  <0><0>J<189><0><0>04<0><0>"$<0><0>{q
> Attributes:
>         User-Name = "1234567890"
>         User-Password = 
> "C<31><17>M3<241><24><186><168><128><13><242><215><145><128>6"
>         NAS-IP-Address = 10.92.1.51
>         NAS-Port-Type = Async
>         Quintum-AVPair = "h323-ivr-out=ACCESSCODE:64812610"
>         Quintum-h323-conf-id = "h323-conf-id=34313532 34346636 
> 31390061 79000042"
>         Quintum-AVPair = "h323-ivr-out=FOLLOW_ON_FLAG:0"
>         Called-Station-Id = "173285218501"
>
> Thu Oct 21 15:34:16 2004: DEBUG: Handling request with Handler 
> 'NAS-IP-Address=10.92.1.51'
> Thu Oct 21 15:34:16 2004: DEBUG: Rewrote user name to 1234567890
> Thu Oct 21 15:34:16 2004: DEBUG:  Deleting session for 1234567890, 
> 10.92.1.51,
> Thu Oct 21 15:34:16 2004: DEBUG: Handling with Radius::AuthSQL
> Thu Oct 21 15:34:16 2004: DEBUG: Handling with Radius::AuthSQL: 
> PrePaid_Authentication
> Thu Oct 21 15:34:16 2004: DEBUG: Query is: 'exec IS_VALIDUSER1 
> '1234567890', 'h323-ivr-out=ACCESSCODE:64812610', '173285218501'':
>
>  Thu Oct 21 15:34:16 2004: DEBUG: Radius::AuthSQL looks for match with 
> 1234567890
> Thu Oct 21 15:34:16 2004: DEBUG: Radius::AuthSQL ACCEPT:
> Thu Oct 21 15:34:16 2004: DEBUG: Access accepted for 1234567890
> Thu Oct 21 15:34:16 2004: DEBUG: Packet dump:
> *** Sending to 10.92.1.51 port 24579 ....
> Code:       Access-Accept
> Identifier: 57
> Authentic:  <0><0>J<189><0><0>04<0><0>"$<0><0>{q
> Attributes:
>         Quintum-h323-return-code = "h323-return-code=0"
>         Quintum-h323-prompt-id = "h323-prompt-id=0"
>         Quintum-h323-preferred-lang = "h323-preferred-lang=en"
>         Quintum-h323-credit-amount = "h323-credit-amount=12.76"
>         Quintum-h323-currency-type = "h323-currency-type=USD"
>         Quintum-h323-credit-time = "h323-credit-time=9982"
>
>
>
>
> Hugh Irvine <hugh at open.com.au>        20/10/2004 04:05 PM
> Sent by: owner-radiator at open.com.au
>
> To:        QUEK Steven/Engineering Dir/STSunPage/ST Group at ST Domain
> cc:        <radiator at open.com.au>
> Subject:        Re: (RADIATOR) Re: Quintum A400
>
>
>
>
>
>
>  Hello Steven -
>
>  This is a problem with your configuration.
>
>  If you want to send a reply attribute as shown below, you should do
>  something like this:
>
>                  AddToReply Quintum-h323-return-code = 0
>
>  or possibly
>
>                  AddToReply Quintum-h323-return-code = 
> "h323-return-code = 0"
>
>  The Quintum vendor specific attributes are defined in the standard
>  Radiator dictionary.
>
>  You will need to use the Quintum vendor specific attributes according
>  to the Quintum documentation.
>
>  regards
>
>  Hugh
>
>
>  On 20 Oct 2004, at 10:54, queksteven at stsunpage.st.com.sg wrote:
>
>  > According to the tech support :
>  >  
>  > From the log, I suspect it is the radius server problem, Radius 
> Server
>  > should send the VSA-Name and VSA-Value. It is currently sending only
>  > the VSA-Value. For example it has to send "h323-return-code=0" 
> without
>  > the quote and not just the zero.
>  >
>  > -----owner-radiator at open.com.au wrote: -----
>  >
>  > To: QUEK Steven/Engineering Dir/STSunPage/ST Group at ST Domain
>  > From: Hugh Irvine <hugh at open.com.au>
>  > Sent by: owner-radiator at open.com.au
>  > Date: 10/20/2004 05:49AM
>  > cc: <radiator at open.com.au>
>  > Subject: (RADIATOR) Re: Quintum A400
>  >
>  >
>  > Hello Steven -
>  >
>  > You should check the Quintum documentation.
>  >
>  > A search for "radius" on their web site gets lots of hits:
>  >
>  > http://ae.quintum.com/cgi-bin/htsearch
>  >
>  > regards
>  >
>  > Hugh
>  >
>  >
>  > On 20 Oct 2004, at 00:45, queksteven at stsunpage.st.com.sg wrote:
>  >
>  > > Anyone know what is require to return for auth ?
>  > >  
>  > > I return the status_code = 0 and the credit_amount and from the 
>  > > quintum debug, its show that the value is invalid.
>  > >  
>  > > Help please.
>  > >  
>  > >
>  > 
> > [This e-mail is confidential and may also be privileged. If you are 
>  > > not the intended recipient, please delete it and notify us 
>  > > immediately; you should not copy or use it for any purpose, nor 
>  > > disclose its contents to any other person. Thank you.]
>  > >
> >
>  > 
> NB: have you included a copy of your configuration file (no secrets),
>  > together with a trace 4 debug showing what is happening?
>  >
>  > -- 
>  > Radiator: the most portable, flexible and configurable RADIUS server
>  > anywhere. Available on *NIX, *BSD, Windows, MacOS X.
>  > -
>  > Nets: internetwork inventory and management - graphical, extensible,
>  > 
> flexible with hardware, software, platform and database independence.
>  > -
>  > 
> CATool: Private Certificate Authority for Unix and Unix-like systems.
>  >
>  > --
>  > 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.
>  >
>  > [This e-mail is confidential and may also be privileged. If you are
>  > not the intended recipient, please delete it and notify us
>  > immediately; you should not copy or use it for any purpose, nor
>  > disclose its contents to any other person. Thank you.]
>  >
>
>  NB: have you included a copy of your configuration file (no secrets),
>  together with a trace 4 debug showing what is happening?
>
>  --
>  Radiator: the most portable, flexible and configurable RADIUS server
>  anywhere. Available on *NIX, *BSD, Windows, MacOS X.
>  -
>  Nets: internetwork inventory and management - graphical, extensible,
>  flexible with hardware, software, platform and database independence.
>  -
>  CATool: Private Certificate Authority for Unix and Unix-like systems.
>
>  --
>  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.
>
>
>

NB: have you included a copy of your configuration file (no secrets),
together with a trace 4 debug showing what is happening?

-- 
Radiator: the most portable, flexible and configurable RADIUS server
anywhere. Available on *NIX, *BSD, Windows, MacOS X.
-
Nets: internetwork inventory and management - graphical, extensible,
flexible with hardware, software, platform and database independence.
-
CATool: Private Certificate Authority for Unix and Unix-like systems.

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