Re: GnuGk DNS policy wrongly translated URIs

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

 



Hi Andreas,

did you set DefaultDomain=mydomain.com in your config ? If you do, the
call should be routed directly by the 'internal' policy without being
passed on.

The other strange thing is that the call isn't even routed by the 'srv'
policy, but the 'dns' policy. Are you sure you have your SRV record
configured correctly ?

Regards,
Jan

-- 
Jan Willamowius, Founder of the GNU Gatekeeper Project
EMail  : jan@xxxxxxxxxxxxxx
Website: http://www.gnugk.org
Support: http://www.willamowius.com/gnugk-support.html


András Kovács wrote:
> Dear GnuGk Developers,
> 
> 
> I am facing a strange GnuGk issue, possibly I caught a bug. I am using GnuGk 3.0.2. Let me describe my setup briefly:
> 
> I have a domain with SRV records pointing to GnuGk. From an unregistered endpoint (Polycom HDX) I would like to call 1xxxx@xxxxxxxxxxxx endpoints registered to GnuGk using 1xxxx format E.164 numbers. Pretty simple.
> 
> My routing policy looks the following:
> 
> [RoutingPolicy]
> default=explicit,internal,srv,dns,neighbor
> 
> >From the HDX I call 11111@xxxxxxxxxxxx:
> 
> What happens: the call is dropped. GnuGk does not recognize 1xxxx endpoint as a local registrant, so it passes URI to DNS policy. After resolving 11111@xxxxxxxxxxxx it translates to 11111 @ 0.0.43.103. See logs here:
> 
> 2012/05/30 14:14:51.296 3             gkauth.cxx(1038)  GKAUTH  default Setup check ok
> 2012/05/30 14:14:51.296 5            Routing.cxx(200)   ROUTING Checking policy Explicit for request Setup CRV=15248
> 2012/05/30 14:14:51.296 5            Routing.cxx(200)   ROUTING Checking policy Internal for request Setup CRV=15248
> 2012/05/30 14:14:51.296 5            Routing.cxx(200)   ROUTING Checking policy SRV for request Setup CRV=15248
> 2012/05/30 14:14:51.296 5            Routing.cxx(200)   ROUTING Checking policy DNS for request Setup CRV=15248
> 2012/05/30 14:14:51.296 4            Routing.cxx(704)   ROUTING DNS policy resolves to 11111 @ 0.0.43.103:1720
> 2012/05/30 14:14:51.296 5            Routing.cxx(203)   ROUTING Policy DNS applied to the request Setup CRV=15248
> 2012/05/30 14:14:51.296 4       ProxyChannel.cxx(2917)  Q931s   Unregistered party is not NATed
> 2012/05/30 14:14:51.296 2             RasTbl.cxx(4014)  CallTable::Insert(CALL) Call No. 5, total sessions : 1
> 2012/05/30 14:14:51.296 2             gkacct.cxx(950)   GKACCT  Successfully logged event 1 for call no. 5
> 2012/05/30 14:14:51.296 3       ProxyChannel.cxx(3393)  Q931s   Call 5 is NAT type 0
> 2012/05/30 14:14:51.296 5            Toolkit.cxx(664)   ModeSelection for 78.90.16.150 -> 0.0.43.103 default=1
> 2012/05/30 14:14:51.297 1       ProxyChannel.cxx(997)   Call 5: h245Routed=0 proxy=0
> 2012/05/30 14:14:51.298 4       ProxyChannel.cxx(1109)  Q931    Send to 0.0.43.103:1720
> ...
> 2012/05/30 14:14:51.299 1       ProxyChannel.cxx(5477)  Q931d   Could not open/connect Q.931 socket at 91.120.59.228:20501 - error 6/22: Invalid argument
> 2012/05/30 14:14:51.299 1       ProxyChannel.cxx(5477)  Q931d   Could not open/connect Q.931 socket at 91.120.59.228:20502 - error 6/22: Invalid argument
> 2012/05/30 14:14:51.299 1       ProxyChannel.cxx(5477)  Q931d   Could not open/connect Q.931 socket at 91.120.59.228:20503 - error 6/22: Invalid argument
> 2012/05/30 14:14:51.299 1       ProxyChannel.cxx(5477)  Q931d   Could not open/connect Q.931 socket at 91.120.59.228:20504 - error 6/22: Invalid argument
> 2012/05/30 14:14:51.299 1       ProxyChannel.cxx(5477)  Q931d   Could not open/connect Q.931 socket at 91.120.59.228:20505 - error 6/22: Invalid argument
> 2012/05/30 14:14:51.299 1       ProxyChannel.cxx(5477)  Q931d   Could not open/connect Q.931 socket at 91.120.59.228:20506 - error 6/22: Invalid argument
> 2012/05/30 14:14:51.299 1       ProxyChannel.cxx(5477)  Q931d   Could not open/connect Q.931 socket at 91.120.59.228:20507 - error 6/22: Invalid argument
> 2012/05/30 14:14:51.299 1       ProxyChannel.cxx(5477)  Q931d   Could not open/connect Q.931 socket at 91.120.59.228:20508 - error 6/22: Invalid argument
> 2012/05/30 14:14:51.299 1       ProxyChannel.cxx(5477)  Q931d   Could not open/connect Q.931 socket at 91.120.59.228:20509 - error 6/22: Invalid argument
> ...
> 2012/05/30 14:14:51.322 3       ProxyChannel.cxx(5144)  Q931    0.0.43.103:1720 DIDN'T ACCEPT THE CALL
> 
> GnuGk tryes to connect to 0.0.43.103, but cannot (ofcourse).
> 
> When I call 10123@xxxxxxxxxxxx: the URI translates to 10123 @ 0.0.39.139. Only the E.164 part of the URI is changed, but the target IP is different.
> 
> ...
> 2012/05/30 14:19:41.923 3             gkauth.cxx(1038)  GKAUTH  default Setup check ok
> 2012/05/30 14:19:41.923 5            Routing.cxx(200)   ROUTING Checking policy Explicit for request Setup CRV=15249
> 2012/05/30 14:19:41.923 5            Routing.cxx(200)   ROUTING Checking policy Internal for request Setup CRV=15249
> 2012/05/30 14:19:41.923 5            Routing.cxx(200)   ROUTING Checking policy SRV for request Setup CRV=15249
> 2012/05/30 14:19:41.923 5            Routing.cxx(200)   ROUTING Checking policy DNS for request Setup CRV=15249
> 2012/05/30 14:19:41.923 4            Routing.cxx(704)   ROUTING DNS policy resolves to 10123 @ 0.0.39.139:1720
> 2012/05/30 14:19:41.923 5            Routing.cxx(203)   ROUTING Policy DNS applied to the request Setup CRV=15249
> 2012/05/30 14:19:41.924 4       ProxyChannel.cxx(2917)  Q931s   Unregistered party is not NATed
> 2012/05/30 14:19:41.924 2             RasTbl.cxx(4014)  CallTable::Insert(CALL) Call No. 6, total sessions : 1
> 2012/05/30 14:19:41.924 2             gkacct.cxx(950)   GKACCT  Successfully logged event 1 for call no. 6
> 2012/05/30 14:19:41.924 3       ProxyChannel.cxx(3393)  Q931s   Call 6 is NAT type 0
> 2012/05/30 14:19:41.924 5            Toolkit.cxx(664)   ModeSelection for 78.90.16.150 -> 0.0.39.139 default=1
> 2012/05/30 14:19:41.924 1       ProxyChannel.cxx(997)   Call 6: h245Routed=0 proxy=0
> 2012/05/30 14:19:41.926 4       ProxyChannel.cxx(1109)  Q931    Send to 0.0.39.139:1720
> 
> Please advise me on this.
> 
> Thank you very much.
> 
> Best regards,
> Andras Kovacs


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________________

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