Re: A multiple destinations and multiple numbers problem (h323-redirect...)

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

 



Hi Alexey,

when you have multiple entries in h323-redirect-number and multiple IPs
in h323-redirect-ip-address there is no guarantee, that they are used together.

>From the manual:

> NOTE: If multiple failover mechanisms are specified, eg. multiple
> numbers in h323-redirect-number and multiple IPs in h323-redirect-ip-address,
> there is no guarantee that the the first number is used for the first
> IP and the 2nd number for the 2nd IP. This will usually the case,
> but for example when a capacity limit disables one IP, the association
> will change.
 

You should use multiple entries in one of the attributes and eg. add
tech prefixes for the failover route in the gateway rewrites.

Regards,
Jan


Alexey E. Kashaev wrote:
> Hello, folks.
> 
> I have a problem with setting a proper Called-Station-Id by using
> failover mechanism (by radius).
> 
> Here is a scenario:
> 
> We have a two peers with IPs (91.207.165.33, 91.207.165.36). 2nd peer
> requires, what called number is prepended by '123' (for example). 1st
> peer - don't require an a rewrite. Dialed number is: 73532xxxx01.
> 
> Radius auth-reply contains these attributes:
> 
> h323-redirect-number=73532xxxx01;12373532xxxx01
> h323-redirect-ip-address=91.207.165.34;91.207.165.36
> 
> When i'm making call, and 1st peer is unavailable (network is down, or
> error DC), call to 2nd peer going without overwriting called number!
> What's wrong?
> 
> Cutted Log of 1st attempt:
> 
> #
> 2010/02/16 08:56:01.802 5            radauth.cxx(1138)  RADAUTH
> RadAliasAuth Setup check set duration limit: 3600
> #
> 2010/02/16 08:56:01.802 5            radauth.cxx(1180)  RADAUTH
> RadAliasAuth ARQ check redirect to the number
> 73532xxxx01;12373532xxxx01
> #
> 2010/02/16 08:56:01.802 5            radauth.cxx(1220)  RADAUTH
> RadAliasAuth Setup check redirect to the address 91.207.165.33:1720
> (policy: RADIUS, proxy: 0, flags: 0, Called-Station-Id: 73532xxxx01,
> Called-Station-Id-Out: )
> #
> 2010/02/16 08:56:01.802 5            radauth.cxx(1220)  RADAUTH
> RadAliasAuth Setup check redirect to the address 91.207.165.36:1720
> (policy: RADIUS, proxy: 0, flags: 0, Called-Station-Id:
> 12373532xxxx01, Called-Station-Id-Out: )
> #
> 2010/02/16 08:56:01.802 3             gkauth.cxx(1073)  GKAUTH
> RadAliasAuth Setup check ok
> #
> 2010/02/16 08:56:01.802 3       ProxyChannel.cxx(2049)  Q931s   Setup
> CRV=13626 destination set to 73532xxxx01
> #
> 2010/02/16 08:56:01.802 3       ProxyChannel.cxx(2082)  Q931s   Setup
> CRV=13626 destination address set to 91.207.165.33:1720
> #
> 2010/02/16 08:56:01.803 4       ProxyChannel.cxx(2263)  Q931s
> Unregistered party is not NATed
> 
> 
> Cutted Log of 2nd attempt:
> 
> #
> 2010/02/16 08:56:01.807 1       ProxyChannel.cxx(4120)  Q931d   Could
> not open/connect Q.931 socket at 91.207.165.15:0 - error 12/61:
> Connection refused
> #
> 2010/02/16 08:56:01.807 3       ProxyChannel.cxx(3764)  Q931
> 91.207.165.33:1720 DIDN'T ACCEPT THE CALL
> #
> 2010/02/16 08:56:01.807 1       ProxyChannel.cxx(3775)  Q931    New
> route: 91.207.165.36:1720 (policy: RADIUS, proxy: 0, flags: 0,
> Called-Station-Id: 12373532xxxx01, Called-Station-Id-Out: )
> #
> 2010/02/16 08:56:01.807 1             RasTbl.cxx(3764)  CDR|11283|17
> 09 88 1c 9b 00 19 10 85 53 00 26 5e 12 bf e5|0|unconnected|Tue, 16 Feb
> 2010 08:56:01 +0500|91.207.164.40:60515| |91.207.165.33:1720|
> |73532xxxx01:dialedDigits|73532xxxx05:dialedDigits|GNU-GK;
> #
> 
> #
> 2010/02/16 08:56:01.808 5             gkacct.cxx(822)   GKACCT
> FileAcct - CDR string for event 2, call no. 11283: CDR|11283|17 09 88
> 1c 9b 00 19 10 85 53 00 26 5e 12 bf e5|0|1||2010-02-16
> 08:56:01|2010-02-16
> 08:56:01||0|73532949505|73532xxxx01|73532xxxx01|91.207.164.40|60515|91.207.165.33|1720||3|GNU-GK;
> #
> 2010/02/16 08:56:01.808 3             gkacct.cxx(1007)  GKACCT
> FileAcct logged event 2 for call no. 11283
> ...
> #
> 2010/02/16 08:56:01.871 5            radauth.cxx(1138)  RADAUTH
> RadAliasAuth Setup check set duration limit: 3600
> #
> 2010/02/16 08:56:01.871 5            radauth.cxx(1180)  RADAUTH
> RadAliasAuth ARQ check redirect to the number
> 73532xxxx01;12373532xxxx01
> #
> 2010/02/16 08:56:01.871 5            radauth.cxx(1220)  RADAUTH
> RadAliasAuth Setup check redirect to the address 91.207.165.33:1720
> (policy: RADIUS, proxy: 0, flags: 0, Called-Station-Id: 73532xxxx01,
> Called-Station-Id-Out: )
> #
> 2010/02/16 08:56:01.871 5            radauth.cxx(1220)  RADAUTH
> RadAliasAuth Setup check redirect to the address 91.207.165.36:1720
> (policy: RADIUS, proxy: 0, flags: 0, Called-Station-Id:
> 12373532xxxx01, Called-Station-Id-Out: )
> #
> 2010/02/16 08:56:01.871 3             gkauth.cxx(1073)  GKAUTH
> RadAliasAuth Setup check ok
> #
> 2010/02/16 08:56:01.871 3       ProxyChannel.cxx(1991)  Q931s   Setup
> CRV=13626 destination set to 73532xxxx01
> #
> 2010/02/16 08:56:01.871 3             gkacct.cxx(1007)  GKACCT
> default logged event 1 for call no. 11284
> #
> 2010/02/16 08:56:01.871 2             gkacct.cxx(1047)  GKACCT
> Successfully logged event 1 for call no. 11284
> #
> 2010/02/16 08:56:01.871 5              clirw.cxx(677)   CLIRW
> Outbound CLI rewrite to '54466' by the rule destination number: any =
> 54466, 54565
> #
> 2010/02/16 08:56:01.871 4       ProxyChannel.cxx(4226)  Q931s   Set
> Called Numbering Plan 1 Type Of Number 0
> #
> 2010/02/16 08:56:01.871 4       ProxyChannel.cxx(4256)  Q931s   Set
> Calling Numbering Plan 1 Type Of Number 0
> #
> 2010/02/16 08:56:01.871 3       ProxyChannel.cxx(2636)  Q931s   Call
> 11284 is NAT type 0
> #
> 2010/02/16 08:56:01.871 1       ProxyChannel.cxx(867)   Call 11284:
> h245Routed=1 proxy=0
> 
> Full log of call - http://pastebin.com/f3bb3ebea
> 
> 
> ---
> Best regards, Alexey Kashaev.

-- 
Jan Willamowius, jan@xxxxxxxxxxxxxx, http://www.gnugk.org/

------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________________

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