" /> Channel SIPServer connection failed, Interaction workspace 8.1 - Genesys CTI User Forum

Author Topic: Channel SIPServer connection failed, Interaction workspace 8.1  (Read 9812 times)

Offline SSB

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Advertisement
Hi all,

I am attempting to deploy Interaction Workspace 8.1 in our test lab however have come across message when attempting to login :

[b]Channel SIPServer connection failed[/b]


The IWS application has a connection to sipserver, stat server and message server.
The security.disable-rbac configuration option in the interaction-workspace section is set to true.

The User have a Full control permission on all object (in Environment and Resources Tenant).

the IWS log file shows this error :

13-03-04 12:28:55.056 [            1] DEBUG ocolInstance.Channel - State transition from Closed to Opening for SIPServer - tcp://w2k8r2gen8adm:7005
13-03-04 12:28:55.056 [            1] DEBUG ocolInstance.Channel - Channel state transition: Closed->Opening for SIPServer - tcp://w2k8r2gen8adm:7005
13-03-04 12:28:55.058 [            1] DEBUG ocolInstance.Channel - Opening channel SIPServer - tcp://w2k8r2gen8adm:7005 ...
13-03-04 12:28:55.062 [            1] DEBUG Channel.HAConnection - Transition from '.StateAbsent proxy: proxy1' to '.StateOpening proxy: proxy1
13-03-04 12:28:55.066 [            1] DEBUG .HAConnection.proxy1 - Setting connection: tcp://w2k8r2gen8adm:7005
13-03-04 12:28:55.067 [            1] DEBUG xy1.CommonConnection - method ConnectionBase.Configure() called
13-03-04 12:28:55.067 [            1] DEBUG xy1.CommonConnection - IConnectionConfiguration parsing...
13-03-04 12:28:55.067 [            1] DEBUG xy1.CommonConnection - LocalHost=10.162.119.5, LocalPort=7005
13-03-04 12:28:55.067 [            1] DEBUG xy1.CommonConnection - Blocking mode is set to 'False'
13-03-04 12:28:55.067 [            1] DEBUG ion.TlsClientSupport - TLS disabled
13-03-04 12:28:55.067 [            1] DEBUG xy1.CommonConnection - IConnectionConfiguration was parsed successfully.
13-03-04 12:28:55.068 [            1] DEBUG xy1.CommonConnection - Connecting to tcp://w2k8r2gen8adm:7005 ...
13-03-04 12:28:55.069 [            1] DEBUG xy1.CommonConnection - Socket#1940: Try to bind to 10.162.119.5:7005
13-03-04 12:28:55.070 [            1] WARN  xy1.CommonConnection - Exception 'An attempt was made to access a socket in a way forbidden by its access permissions' occured while trying to connect to tcp://w2k8r2gen8adm:7005
13-03-04 12:28:55.075 [            1] DEBUG xy1.CommonConnection -  tcp://w2k8r2gen8adm:7005 connection is firing 'Closed' event with exception System.Net.Sockets.SocketException: An attempt was made to access a socket in a way forbidden by its access permissions
  at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
  at System.Net.Sockets.Socket.Bind(EndPoint localEP)
  at Genesyslab.Platform.Commons.Connection.CommonConnection.ConnectSocket(String server, Int32 port)
  at Genesyslab.Platform.Commons.Connection.CommonConnection.DoOpen(Object param)
13-03-04 12:28:55.077 [            1] DEBUG Channel.HAConnection -  tcp://w2k8r2gen8adm:7005 connection is firing 'Closed' event with exception System.Net.Sockets.SocketException: An attempt was made to access a socket in a way forbidden by its access permissions
  at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
  at System.Net.Sockets.Socket.Bind(EndPoint localEP)
  at Genesyslab.Platform.Commons.Connection.CommonConnection.ConnectSocket(String server, Int32 port)
  at Genesyslab.Platform.Commons.Connection.CommonConnection.DoOpen(Object param)
13-03-04 12:28:55.080 [            1] DEBUG ocolInstance.Channel - Handling SIPServer - tcp://w2k8r2gen8adm:7005 connection closed...
13-03-04 12:28:55.080 [            1] DEBUG ocolInstance.Channel - Completed handling SIPServer - tcp://w2k8r2gen8adm:7005 connection closed
13-03-04 12:28:55.080 [            1] DEBUG Channel.HAConnection -  tcp://w2k8r2gen8adm:7005 connection is done firing 'Closed' event.
13-03-04 12:28:55.080 [            1] DEBUG Channel.HAConnection - Transition from '.StateOpening proxy: proxy1' to '.StateAbsent proxy: proxy1
13-03-04 12:28:55.081 [            1] DEBUG xy1.CommonConnection -  tcp://w2k8r2gen8adm:7005 connection is done firing 'Closed' event.
13-03-04 12:28:55.081 [            1] DEBUG ocolInstance.Channel - State transition from Opening to Closed for SIPServer - tcp://w2k8r2gen8adm:7005
13-03-04 12:28:55.081 [            1] DEBUG ocolInstance.Channel - Channel state transition: Opening->Closed for SIPServer - tcp://w2k8r2gen8adm:7005
13-03-04 12:28:55.082 [            1] DEBUG ocolInstance.Channel -  SIPServer - tcp://w2k8r2gen8adm:7005 channel is firing 'Closed' event...
13-03-04 12:28:55.085 [            8] DEBUG r.WarmStandbyService - OnChannelClosed(...) SIPServer - tcp://w2k8r2gen8adm:7005 invoked...
13-03-04 12:28:55.088 [            1] ERROR Workspace.Core.Agent - Expception in InitializeMedia(voice)
Genesyslab.Enterprise.Exceptions.Channel.ChannelException: Channel 'SIPServer' connection has failed ---> Genesyslab.Platform.Commons.Protocols.ProtocolException: Can't open channel ---> System.Net.Sockets.SocketException: An attempt was made to access a socket in a way forbidden by its access permissions
  at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
  at System.Net.Sockets.Socket.Bind(EndPoint localEP)
  at Genesyslab.Platform.Commons.Connection.CommonConnection.ConnectSocket(String server, Int32 port)
  at Genesyslab.Platform.Commons.Connection.CommonConnection.DoOpen(Object param)
  at Genesyslab.Platform.Commons.Connection.CommonConnection.Open()
  at Genesyslab.Platform.Voice.Protocols.HA.StateOpening.OpenConnection(String host, Int32 port, ConnectionContext connectionContext)
  at Genesyslab.Platform.Voice.Protocols.HA.StateOpening.Init()
  at Genesyslab.Platform.Voice.Protocols.HA.TransitionManager.MakeTransition(IHAConnState from, IHAConnState to, IHAConnState siblingFrom, IHAConnState siblingTo)
  at Genesyslab.Platform.Voice.Protocols.HA.StateAbsent.Open()
  at Genesyslab.Platform.Voice.Protocols.HA.HAConnection.Open()
  at Genesyslab.Platform.Commons.Protocols.DuplexChannel.InitiateOpen()
  --- End of inner exception stack trace ---
  at Genesyslab.Platform.Commons.Protocols.DuplexChannel.InitiateOpen()
  at Genesyslab.Platform.Commons.Protocols.DuplexChannel.BeginOpen()
  at Genesyslab.Enterprise.Core.Channel.OpenStraightWay()
  --- End of inner exception stack trace ---
  at Genesyslab.Enterprise.Core.Channel.OpenStraightWay()
  at Genesyslab.Desktop.Modules.Voice.Model.Agents.MediaVoiceExtension.InitializeMedia(IMedia media, IEnterpriseServiceProvider enterpriseServiceProvider)
  at Genesyslab.Desktop.Modules.Core.Model.Agents.Agent.InitializeMedia(IMedia media)
  at Genesyslab.Desktop.Modules.Core.Model.Agents.Agent.Initialize()
13-03-04 12:28:55.089 [            8] DEBUG r.WarmStandbyService - Channel SIPServer - tcp://w2k8r2gen8adm:7005 failed to open, cause: System.Net.Sockets.SocketException: An attempt was made to access a socket in a way forbidden by its access permissions
  at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
  at System.Net.Sockets.Socket.Bind(EndPoint localEP)
  at Genesyslab.Platform.Commons.Connection.CommonConnection.ConnectSocket(String server, Int32 port)
  at Genesyslab.Platform.Commons.Connection.CommonConnection.DoOpen(Object param)
  at Genesyslab.Platform.Commons.Connection.CommonConnection.Open()
  at Genesyslab.Platform.Voice.Protocols.HA.StateOpening.OpenConnection(String host, Int32 port, ConnectionContext connectionContext)
  at Genesyslab.Platform.Voice.Protocols.HA.StateOpening.Init()
  at Genesyslab.Platform.Voice.Protocols.HA.TransitionManager.MakeTransition(IHAConnState from, IHAConnState to, IHAConnState siblingFrom, IHAConnState siblingTo)
  at Genesyslab.Platform.Voice.Protocols.HA.StateAbsent.Open()
  at Genesyslab.Platform.Voice.Protocols.HA.HAConnection.Open()
  at Genesyslab.Platform.Commons.Protocols.DuplexChannel.InitiateOpen()
13-03-04 12:28:55.117 [            8] DEBUG r.WarmStandbyService - Processing channel SIPServer - tcp://w2k8r2gen8adm:7005 closed (failure Genesyslab.Platform.Commons.Protocols.ClosedEventArgs:
PreviousChannelState = Opening
Cause = System.Net.Sockets.SocketException: An attempt was made to access a socket in a way forbidden by its access permissions
  at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
  at System.Net.Sockets.Socket.Bind(EndPoint localEP)
  at Genesyslab.Platform.Commons.Connection.CommonConnection.ConnectSocket(String server, Int32 port)
  at Genesyslab.Platform.Commons.Connection.CommonConnection.DoOpen(Object param)
  at Genesyslab.Platform.Commons.Connection.CommonConnection.Open()
  at Genesyslab.Platform.Voice.Protocols.HA.StateOpening.OpenConnection(String host, Int32 port, ConnectionContext connectionContext)
  at Genesyslab.Platform.Voice.Protocols.HA.StateOpening.Init()
  at Genesyslab.Platform.Voice.Protocols.HA.TransitionManager.MakeTransition(IHAConnState from, IHAConnState to, IHAConnState siblingFrom, IHAConnState siblingTo)
  at Genesyslab.Platform.Voice.Protocols.HA.StateAbsent.Open()
  at Genesyslab.Platform.Voice.Protocols.HA.HAConnection.Open()
  at Genesyslab.Platform.Commons.Protocols.DuplexChannel.InitiateOpen()
)... State: Idle

Our set up is:
sip 8.1.000.91
interaction workspacev 8.1.302.00
configuration server 8.1
message server 8.1.000.06

Thanks for your help  ;D
SSB

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2755
  • Karma: 44
Re: Channel SIPServer connection failed, Interaction workspace 8.1
« Reply #1 on: March 04, 2013, 09:08:22 PM »
As you can see,the issue is related to network problem. So,at first check if the firewall is turn on,if yes,try to turn off

Offline SSB

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Re: Channel SIPServer connection failed, Interaction workspace 8.1
« Reply #2 on: March 05, 2013, 08:59:49 AM »
Hi Kubig,

Thanks for your replay. The firewall is is already turned off, there is no antivirus installed ans the .NET Framework 3.5.1 is also installed

I performed a telnet on this port "7005", everything is ok.


at Windows Sockets Error Codes (Windows) http://msdn2.microsoft.com/en-us/library/ms740668.aspx tt says:
WSAEACCES
10013
Permission denied.
An attempt was made to access a socket in a way forbidden by its access permissions. An example is using a broadcast address for sendto without broadcast permission being set using setsockopt(SO_BROADCAST).
Another possible reason for the WSAEACCES error is that when the bind function is called (on Windows NT 4 SP4 or later), another application, service, or kernel mode driver is bound to the same address with exclusive access. Such exclusive access is a new feature of Windows NT 4 SP4 and later, and is implemented by using the SO_EXCLUSIVEADDRUSE option.

someone would have an idea ?

Thanks in advance.

SSB

Offline Fra

  • Hero Member
  • *****
  • Posts: 856
  • Karma: -3
Re: Channel SIPServer connection failed, Interaction workspace 8.1
« Reply #3 on: March 05, 2013, 10:06:44 AM »
Do SIP Server logs report the same error or any additional info?
I don't think it matters, but is SIP Server running on the same host where IWS is?

Fra

Offline SSB

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Re: Channel SIPServer connection failed, Interaction workspace 8.1
« Reply #4 on: March 05, 2013, 10:14:20 AM »
Hi Fra,

yes this is the case, the SIPServer is installed on the same machine, and there is nothing in the SIPServer logs.

SSB

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: Channel SIPServer connection failed, Interaction workspace 8.1
« Reply #5 on: March 05, 2013, 10:40:17 AM »
IWS has been granted on their user role to everything? Which SIP Server and IWS versions do you have?

Offline SSB

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Re: Channel SIPServer connection failed, Interaction workspace 8.1
« Reply #6 on: March 05, 2013, 11:28:31 AM »
Yes the User have a Full control permission on all objects including hosts (in Environment and Resources Tenant).

Our set up is:
sip 8.1.000.91
interaction workspacev 8.1.302.00
Interaction Workspace SIP Endpoint Version 8.0.203.04
Widows Server 2008 R2 SP1.
.NET Framework 3.5.1

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: Channel SIPServer connection failed, Interaction workspace 8.1
« Reply #7 on: March 05, 2013, 11:35:26 AM »
No, I mean the IWS role...what is he allowed to use?
http://genesyslab.info/wiki/index.php?title=Role_Privileges

Offline SSB

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Re: Channel SIPServer connection failed, Interaction workspace 8.1
« Reply #8 on: March 05, 2013, 01:00:05 PM »
sorry for the confusion, yes all Privileges are granted

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2755
  • Karma: 44
Re: Channel SIPServer connection failed, Interaction workspace 8.1
« Reply #9 on: March 05, 2013, 01:27:54 PM »
When you have option "disable-rbac" with value "true",login of each agent is not based on role privileges. I have installed similiar configuration in my laboratory env and I did not register any same issue. Could you try to connect to the T-Server via ICOM console (for sure that the connection to the T-Server is globaly allowed/possible)?

Offline bublepaw

  • Sr. Member
  • ****
  • Posts: 283
  • Karma: 10
Re: Channel SIPServer connection failed, Interaction workspace 8.1
« Reply #10 on: March 07, 2013, 05:43:59 PM »
Is Your computer part of domain and if yes do You have any policy set for .net application. For me it looks more like problem with .Net security settings. As far as I remember You can define policy in .Net which tells which functions are available for apps started from network. Maybe in Your case there is a policy which blocks starting TCP/IP sockets - this is just wild guess