Re: Failover routing support by Radius

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jan,

I have tested patch by Lucas (failover support by Radius) against head 
branch fetched yesterday, July,3 , and it was working as expected. it 
correctly extracts h323-redirect-ip and h323-redirect-number attributes 
from Radius access-accept message and applies in one-by-one order when 
failover is activated on Gnugk.

Test was made both for RadAuth with SetupUnreg call and also 
RadAliasAuth for ARQ call. My opinion is that it can be safely included 
in next release.


Below some output from there test:


Following message received from Radius server:

2007/07/04 17:22:11.504 3           radproto.cxx(2212)  RADIUS  Received 
PDU from RADIUS server 127.0.0.1 (127.0.0.1:1645) by socket 
port:51005[active requests: 0, ID space: 111-
112], PDU: {
     code = 2 (Access-Accept)

# lines omitted

       [4]= {
         type = 26 (Vendor-Specific)
         length = 36 octets
         vendorId = 9
         vendorType = 106
         vendorLength = 30
         vendorValue = 28 octets {
           33 33 33 23 31 32 33 34  35 36 3b 31 32 33 34 35 
333#123456;12345
           36 3b 33 34 35 23 31 32  33 34 35 36               6;345#123456
         }
       }
       [5]= {
         type = 26 (Vendor-Specific)
         length = 34 octets
         vendorId = 9
         vendorType = 108
         vendorLength = 28
         vendorValue = 26 octets {
           31 30 2e 31 2e 32 2e 32  3b 31 30 2e 31 2e 32 2e 
10.1.2.2;10.1.2.
           33 3b 31 30 2e 31 2e 32  2e 34                     3;10.1.2.4
         }
       }

#
# then Gnugk identifies routes:
#
2007/07/04 17:22:11.504 5            radauth.cxx(713)   RADAUTH 
RadAliasAuth ARQ check set duration limit: 21600
2007/07/04 17:22:11.504 5            radauth.cxx(806)   RADAUTH 
RadAliasAuth ARQ check redirect to the number 333#123456;123456;345#123456
2007/07/04 17:22:11.504 5            radauth.cxx(834)   RADAUTH 
RadAliasAuth ARQ check redirect to the address 10.1.2.2:1720 (policy: 
RADIUS, proxy: 0, flags: 0, DialNumber: 333#
123456)
2007/07/04 17:22:11.504 5            radauth.cxx(834)   RADAUTH 
RadAliasAuth ARQ check redirect to the address 10.1.2.3:1720 (policy: 
RADIUS, proxy: 0, flags: 0, DialNumber: 1234
56)
2007/07/04 17:22:11.505 5            radauth.cxx(834)   RADAUTH 
RadAliasAuth ARQ check redirect to the address 10.1.2.4:1720 (policy: 
RADIUS, proxy: 0, flags: 0, DialNumber: 345#
123456)
2007/07/04 17:22:11.505 3             gkauth.cxx(1020)  GKAUTH 
RadAliasAuth ARQ check ok
2007/07/04 17:22:11.505 3             gkauth.cxx(1020)  GKAUTH  default 
ARQ check ok

#
# it correctly takes first ip 10.1.2.2 and redirect number 333#123456
#

2007/07/04 17:22:11.505 2             RasSrv.cxx(2145)  RAS     ARQ 
destination set to 333#123456
2007/07/04 17:22:11.505 3             RasSrv.cxx(2184)  GK      ARQ will 
request bandwith of 1280

# lines omitted

2007/07/04 17:22:11.643 4       ProxyChannel.cxx(832)   Q931    Send to 
10.1.2.2:1720 {

#
# after first route fails,
# it goes to 2nd with ip 10.1.2.3 and redirect number 123456
#

2007/07/04 17:22:17.644 1       ProxyChannel.cxx(3022)  Q931d   Could 
not open/connect Q.931 socket at 10.1.1.7:0 - error 9/60: Operation 
timed out
2007/07/04 17:22:17.644 3       ProxyChannel.cxx(2668)  Q931 
10.1.2.2:1720 DIDN'T ACCEPT THE CALL
2007/07/04 17:22:17.644 1       ProxyChannel.cxx(2679)  MZ      New 
route: 10.1.2.3:1720 (policy: RADIUS, proxy: 0, flags: 0, DialNumber: 
123456)
2007/07/04 17:22:17.644 2             RasTbl.cxx(2759)  CDR     Ignoring 
failed call leg
2007/07/04 17:22:17.644 2             RasTbl.cxx(2510) 
CallTable::Insert(CALL) Call No. 43, total sessions : 1
2007/07/04 17:22:17.644 3           yasocket.cxx(568)   Q931d   Delete 
socket 10.1.2.2:1720
2007/07/04 17:22:17.644 3       ProxyChannel.cxx(2786)  Q931s   Retrying 
Setup CRV=20858 from 10.1.1.249:1026
2007/07/04 17:22:17.645 4       ProxyChannel.cxx(1591)  Q931s 
GWRewrite source for 10.1.1.249:1026: call record
2007/07/04 17:22:17.645 3             gkauth.cxx(1062)  GKAUTH  default 
Setup check ok
2007/07/04 17:22:17.645 3       ProxyChannel.cxx(1693)  Q931s   Setup 
CRV=20858 destination set to 123456
2007/07/04 17:22:17.645 5       ProxyChannel.cxx(1716)  Q931s 
Supressing accounting start event for call #43, failover active
2007/07/04 17:22:17.645 4       ProxyChannel.cxx(3118)  Q931sSet Called 
Numbering Plan 1 Type Of Number 2
2007/07/04 17:22:17.645 4       ProxyChannel.cxx(3139)  Q931sSet Calling 
Numbering Plan 1 Type Of Number 2

#
# finally, takes last chance, ip 10.1.2.4, number 345#123456
#

2007/07/04 17:22:18.368 3             RasTbl.cxx(1719)  Gk      Delete 
Call No. 42
2007/07/04 17:22:23.648 1       ProxyChannel.cxx(3022)  Q931d   Could 
not open/connect Q.931 socket at 10.1.1.7:0 - error 9/60: Operation 
timed out
2007/07/04 17:22:23.648 3       ProxyChannel.cxx(2881)  Q931 
10.1.2.3:1720 DIDN'T ACCEPT THE CALL
2007/07/04 17:22:23.648 1       ProxyChannel.cxx(2888)  MZ      New 
route: 10.1.2.4:1720 (policy: RADIUS, proxy: 0, flags: 0, DialNumber: 
345#123456)
2007/07/04 17:22:23.648 2             RasTbl.cxx(2759)  CDR     Ignoring 
failed call leg
2007/07/04 17:22:23.648 2             RasTbl.cxx(2510) 
CallTable::Insert(CALL) Call No. 44, total sessions : 1
2007/07/04 17:22:23.648 3           yasocket.cxx(568)   Q931d   Delete 
socket 10.1.2.3:1720
2007/07/04 17:22:23.648 3       ProxyChannel.cxx(2786)  Q931s   Retrying 
Setup CRV=20858 from 10.1.1.249:1026
2007/07/04 17:22:23.649 4       ProxyChannel.cxx(1591)  Q931s 
GWRewrite source for 10.1.1.249:1026: call record
2007/07/04 17:22:23.649 3             gkauth.cxx(1062)  GKAUTH  default 
Setup check ok
2007/07/04 17:22:23.649 3       ProxyChannel.cxx(1693)  Q931s   Setup 
CRV=20858 destination set to 345#123456
2007/07/04 17:22:23.649 5       ProxyChannel.cxx(1716)  Q931s 
Supressing accounting start event for call #44, failover active
2007/07/04 17:22:23.649 4       ProxyChannel.cxx(3118)  Q931sSet Called 
Numbering Plan 1 Type Of Number 2
2007/07/04 17:22:23.649 4       ProxyChannel.cxx(3139)  Q931sSet Calling 
Numbering Plan 1 Type Of Number 2


regards
Aivis









M.Emran wrote:
> Hi!,
> i have tried this patch.it <http://patch.it> is not working..and there 
> is a problem for radius routing.
>  
> 1. When customer dials a number then GK sends request to radius for 
> authenticatiion and  ip address for routing.
>  
> 2. if RouteFailover is active then it will ask everytime to radius 
> server for permission and radius again reply with redirectip or redirect 
> number attribute and the process is continues.(looping)....
>  
> 3. it is better to use SQLAuth for routing as my opinion.
>  
> 
>  
> On 5/5/07, *Jan Willamowius* <jan@xxxxxxxxxxxxxx 
> <mailto:jan@xxxxxxxxxxxxxx>> wrote:
> 
>     Hi!
> 
>     Did anyone try this patch ? Should it be included in the next release
>     (2.2.7) ?
> 
>     Thanks,
>     Jan
> 
>     Jan Willamowius wrote:
>      > Hi Aivis,
>      >
>      > Lucas posted a patch to add this feature. Please test the patch
>     and let
>      > me know if we should add it. So far nobody responded to his post.
>      >
>      > Unfortunately the list archive on SF is down, so I'll have to
>     attach his
>      > path here.
>      >
>      > Regards,
>      > Jan
>      >
>      > Aivis Olsteins wrote:
>      > > Hi
>      > >
>      > > We guessed from the code that it works for h323-redirect-ip
>     only. If its
>      > > true, it limits the use of this feature quite significantly
>      > >
>      > > regards
>      > > Aivis
>      > >
>      > > M.Emran wrote:
>      > > > I have used it for same prefix.so donot have idea.
>      > > >
>      > > > u can try by
>      > > > h323-redirect-number=123455;56789.but i m not sure tat ths
>     wil work.
>      > > >
>      > > >
>      > > >
>      > > > On 4/20/07, Aivis Olsteins < aivis@xxxxxxxxxxxxxxxx
>     <mailto:aivis@xxxxxxxxxxxxxxxx>> wrote:
>      > > >> Hi Emran,
>      > > >>
>      > > >> thanks a lot, as far as i understand it does not apply to
>      > > >> h323-redirect-number ? i.e., 2nd preference gateway may require
>      > > >> different prefix than 1st
>      > > >>
>      > > >> regards
>      > > >> Aivis
>      > > >>
>      > > >>
>      > > >> M.Emran wrote:
>      > > >>> Pls send attribute like h323-redirect-ip=123.123.123.123
>     <http://123.123.123.123>;123.123.123.124
>      > > >>>
>      > > >>> On 4/19/07, Aivis Olsteins < aivis@xxxxxxxxxxxxxxxx
>     <mailto:aivis@xxxxxxxxxxxxxxxx>> wrote:
>      > > >>>
>      > > >>>> Hello
>      > > >>>>
>      > > >>>> I was looking for some information about failover routing
>     using Radius,
>      > > >>>> but could not find if it is supported or not. I see some
>     comments in
>      > > >>>> radauth.cxx files, but could not figure the format how
>     Radius is
>      > > >>>> supposed to supply routing info.
>      > > >>>>
>      > > >>>> Should we supply a list like this ?
>      > > >>>>        h323-redirect-ip=10.1.1.1
>     <http://10.1.1.1>,10.1.1.2 <http://10.1.1.2>
>      > > >>>>        h323-redirect-number=111222333,444555666
>      > > >>>>
>      > > >>>> Or should we supply a list of attributes like this ?
>      > > >>>>        h323-redirect-ip= 10.1.1.1 <http://10.1.1.1>
>      > > >>>>        h323-redirect-ip=10.1.1.2 <http://10.1.1.2>
>      > > >>>>        h323-redirect-number=111222333
>      > > >>>>        h323-redirect-number=444555666
>      > > >>>>
>      > > >>>> I would appreciate any information about it.
>      > > >>>>
>      > > >>>> regards
>      > > >>>> Aivis
>      > > >>>>
>      > > >>>>
>     -------------------------------------------------------------------------
>      > > >>>> This SF.net email is sponsored by DB2 Express
>      > > >>>> Download DB2 Express C - the FREE version of DB2 express
>     and take
>      > > >>>> control of your XML. No limits. Just data. Click to get it
>     now.
>      > > >>>> http://sourceforge.net/powerbar/db2/
>      > > >>>> _______________________________________________________
>      > > >>>>
>      > > >>>> Posting: mailto:Openh323gk-users@xxxxxxxxxxxxxxxxxxxxx
>     <mailto:Openh323gk-users@xxxxxxxxxxxxxxxxxxxxx>
>      > > >>>> Archive:
>     http://sourceforge.net/mailarchive/forum.php?forum_id=8549
>      > > >>>> Unsubscribe:
>     http://lists.sourceforge.net/lists/listinfo/openh323gk-users
>     <http://lists.sourceforge.net/lists/listinfo/openh323gk-users>
>      > > >>>> Homepage: http://www.gnugk.org/
>      > > >>>>
>      > > >>>
>      > > >>>
>      > > >>
>     -------------------------------------------------------------------------
> 
>      > > >> This SF.net email is sponsored by DB2 Express
>      > > >> Download DB2 Express C - the FREE version of DB2 express and
>     take
>      > > >> control of your XML. No limits. Just data. Click to get it now.
>      > > >> http://sourceforge.net/powerbar/db2/
>      > > >> _______________________________________________________
>      > > >>
>      > > >> Posting: mailto: Openh323gk-users@xxxxxxxxxxxxxxxxxxxxx
>     <mailto:Openh323gk-users@xxxxxxxxxxxxxxxxxxxxx>
>      > > >> Archive:
>     http://sourceforge.net/mailarchive/forum.php?forum_id=8549
>     <http://sourceforge.net/mailarchive/forum.php?forum_id=8549>
>      > > >> Unsubscribe:
>     http://lists.sourceforge.net/lists/listinfo/openh323gk-users
>      > > >> Homepage: http://www.gnugk.org/
>      > > >>
>      > > >
>      > > >
>      > >
>      > >
>     -------------------------------------------------------------------------
>      > > This SF.net email is sponsored by DB2 Express
>      > > Download DB2 Express C - the FREE version of DB2 express and take
>      > > control of your XML. No limits. Just data. Click to get it now.
>      > > http://sourceforge.net/powerbar/db2/
>     <http://sourceforge.net/powerbar/db2/>
>      > > _______________________________________________________
>      > >
>      > > Posting: mailto:Openh323gk-users@xxxxxxxxxxxxxxxxxxxxx
>     <mailto:Openh323gk-users@xxxxxxxxxxxxxxxxxxxxx>
>      > > Archive: http://sourceforge.net/mailarchive/forum.php?forum_id=8549
>      > > Unsubscribe:
>     http://lists.sourceforge.net/lists/listinfo/openh323gk-users
>      > > Homepage: http://www.gnugk.org/
>      > >
>      >
>      >
>      > --
>      > Jan Willamowius, jan@xxxxxxxxxxxxxx <mailto:jan@xxxxxxxxxxxxxx>,
>     http://www.gnugk.org/
> 
> 
>     --
>     Jan Willamowius, jan@xxxxxxxxxxxxxx <mailto:jan@xxxxxxxxxxxxxx>,
>     http://www.gnugk.org/ <http://www.gnugk.org/>
> 
>     -------------------------------------------------------------------------
>     This SF.net email is sponsored by DB2 Express
>     Download DB2 Express C - the FREE version of DB2 express and take
>     control of your XML. No limits. Just data. Click to get it now.
>     http://sourceforge.net/powerbar/db2/
>     _______________________________________________________
> 
>     Posting: mailto: Openh323gk-users@xxxxxxxxxxxxxxxxxxxxx
>     <mailto:Openh323gk-users@xxxxxxxxxxxxxxxxxxxxx>
>     Archive: http://sourceforge.net/mailarchive/forum.php?forum_id=8549
>     Unsubscribe:
>     http://lists.sourceforge.net/lists/listinfo/openh323gk-users
>     Homepage: http://www.gnugk.org/
> 
> 
> 
> 
> -- 
> Regards
> ----------
> M Emran
> InSpiration Software Ltd.
> 
> E-mail:monemran@xxxxxxxxx <mailto:E-mail:monemran@xxxxxxxxx>
> IM: mohammademran@xxxxxxxxxxx <mailto:mohammademran@xxxxxxxxxxx>  
> Web: www.inspiresoftbd.com <http://www.inspiresoftbd.com>
> 
> 
> ------------------------------------------------------------------------
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________________
> 
> Posting: mailto:Openh323gk-users@xxxxxxxxxxxxxxxxxxxxx
> Archive: http://sourceforge.net/mailarchive/forum.php?forum_id=8549
> Unsubscribe: http://lists.sourceforge.net/lists/listinfo/openh323gk-users
> Homepage: http://www.gnugk.org/

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________________

Posting: mailto:Openh323gk-users@xxxxxxxxxxxxxxxxxxxxx
Archive: http://sourceforge.net/mailarchive/forum.php?forum_name=openh323gk-users
Unsubscribe: http://lists.sourceforge.net/lists/listinfo/openh323gk-users
Homepage: http://www.gnugk.org/

[Index of Archives]     [SIP]     [Open H.323]     [Gnu Gatekeeper]     [Asterisk PBX]     [ISDN Cause Codes]     [Yosemite News]

  Powered by Linux