" /> Genesys WDE connector could not make connection to SIP Softphone - Genesys CTI User Forum

Author Topic: Genesys WDE connector could not make connection to SIP Softphone  (Read 3586 times)

Offline Alex99

  • Newbie
  • *
  • Posts: 20
  • Karma: 0
Advertisement
Hi All expert here,

      I am trying to use genesys sip softphone Ver 9.0.017.04 instead of embedded sipendpoint. I am using VPN back to genesys system. Ive configured the required setting according to deployment guide. When I luch sip softphone and wde, sip softphone waiting for agent login, wde prompts can not connect to SIP endpoint. From WDE log , I can see it's trying to connect to SIP client but logs say client actively refuse it. For SIP endpoint I am using HTTP with default port 8000. I can see from my pc resource monitor that port 8000 is listening. For interaction-worksapce setting sipendpoint.uri using default (localhost or 127.0.0.1):8000. WDE is trying to connect to my vpn ip assigned 10.2.2.2 and port 8000. Can anyone advise how can I fix this issue to make wde work with sip softphone?    Thanks All.....

21-10-30 00:34:55.556 [            39] INFO  ation.HttpRestClient - CreateTcpClient() -- host: 10.2.2.2 -- port: 8000
21-10-30 00:34:57.606 [            39] DEBUG ation.HttpRestClient - CreateTcpClient() -- SocketException: System.Net.Sockets.SocketException (0x80004005): No connection could be made because the target machine actively refused it 10.2.2.2:8000
  at System.Net.Sockets.TcpClient..ctor(String hostname, Int32 port)
  at Genesyslab.Desktop.Modules.SIPEndpointCommunication.Channels.HTTP.HttpRestClient.CreateTcpClient()
21-10-30 00:34:57.606 [            39] DEBUG ation.HttpRestClient - Request() -- ExceptionNo connection could be made because the target machine actively refused it 10.2.2.2:8000
21-10-30 00:34:57.606 [            39] ERROR ndpointCommunication - The IW SIP Endpoint is not available at this time. Exception while communicating with Endpoint:
System.Net.Sockets.SocketException (0x80004005): No connection could be made because the target machine actively refused it 10.2.2.2:8000
  at System.Net.Sockets.TcpClient..ctor(String hostname, Int32 port)
  at Genesyslab.Desktop.Modules.SIPEndpointCommunication.Channels.HTTP.HttpRestClient.CreateTcpClient()
  at Genesyslab.Desktop.Modules.SIPEndpointCommunication.Channels.HTTP.HttpRestClient.Request(IHttpRequest request)
  at Genesyslab.Desktop.Modules.SIPEndpointCommunication.Channels.HTTP.HttpServiceSIPEndpoint.RequestHTTPService(String method, String service, String reqMethod, String content)
  at Genesyslab.Desktop.Modules.SIPEndpointCommunication.Channels.HTTP.HttpServiceSIPEndpoint.set_Options(Dictionary`2 value)
  at Genesyslab.Desktop.Modules.SIPEndpointCommunication.SIPEndpoint.ConfigureAndStartEndpoint()

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: Genesys WDE connector could not make connection to SIP Softphone
« Reply #1 on: October 29, 2021, 05:41:09 PM »
WDE is no longer using SIP Endpoint, it is using an external SIP device, SIP Softphone in this case, so registration should be only at the Softphone.
Remove the Role permission to call SIP Endpoint (WDE plugin) as you won't be using it anymore.
Then let WDE use the SIP Softphone DN just by registering on the Place containing that DN.

Offline Alex99

  • Newbie
  • *
  • Posts: 20
  • Karma: 0
Re: Genesys WDE connector could not make connection to SIP Softphone
« Reply #2 on: October 29, 2021, 06:21:59 PM »
Hi cavagnaro,

    Thanks for your advice. do you mean "SIP Endpoint- can use Embedded SIP Endpoint" under IWSIPTasks? After uncheck, I am not seeing WDE look for http client and port  but WDE still not connect to SIP softphone. Softphone status showing same waiting for agent login. Please advise if you have any idea....Thanks

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: Genesys WDE connector could not make connection to SIP Softphone
« Reply #3 on: October 29, 2021, 06:35:13 PM »
Now you have 2 different softwares, SIP Softphone has no clue of WDE and WDE has no clue on SIP Softphone, Bria, SIP Hardphone whatsoever
What is expected is that at Tlib level you see the DN register and succeeds. That is it.

Offline Alex99

  • Newbie
  • *
  • Posts: 20
  • Karma: 0
Re: Genesys WDE connector could not make connection to SIP Softphone
« Reply #4 on: October 29, 2021, 08:00:41 PM »
Hi cavagnaro,

    Thanks again. I tried with 3rd party Microsip and it can register and working. But for SIP softphone,whatever I alter the config and try, it doesn't seem registered. The config is quite simple on microsip. Can advise how can I put same config on SIP softphone to get registered.
MicroSIp setting example as follow;
SIP Server : stc.greennet.com
SIP Proxy  : 10.10.3.129:5160
Username : 4006
Domain    : stc.greennet.com

SIP Softphone
<Container name ="Basic">
    <Connectivity user ="4006" server="10.10.3.129:5160" protocol="udp"/>

on proxy, I just put domain name value, the rest of config as default

<domain name="proxies">
        <section name="proxy0">
          <setting name="reg_timeout" value="1800"/>
          <setting name="reg_interval" value="10"/>
          <setting name="password" value="password"/>
          <setting name="display_name" value="Genesys Softphone"/>
          <setting name="domain" value="stc.greennet.com"/>
          <section name="nat">
            <setting name="ice_enabled" value="0"/>
            <setting name="stun_server" value="stun.example.invalid"/>
            <setting name="stun_server_port" value="3478"/>
            <setting name="turn_server" value="turn.example.invalid"/>
            <setting name="turn_server_port" value="3478"/>
            <setting name="turn_relay_type" value="1"/>
          </section>
          <setting name="http_proxy" value=""/>
          <setting name="reg_match_received_rport" value="0"/>
        </section>
        <section name="proxy1">
          <setting name="reg_timeout" value="1800"/>
          <setting name="reg_interval" value="10"/>
          <setting name="password" value="password"/>
          <setting name="display_name" value="Genesys Softphone"/>
          <setting name="domain" value="stc.greennet.com"/>
          <section name="nat">
            <setting name="ice_enabled" value="0"/>
            <setting name="stun_server" value="stun.example.invalid"/>
            <setting name="stun_server_port" value="3478"/>
            <setting name="turn_server" value="turn.example.invalid"/>
            <setting name="turn_server_port" value="3478"/>
            <setting name="turn_relay_type" value="1"/>
          </section>
          <setting name="http_proxy" value=""/>
          <setting name="reg_match_received_rport" value="0"/>
        </section>
      </domain>


Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: Genesys WDE connector could not make connection to SIP Softphone
« Reply #5 on: October 31, 2021, 10:17:19 PM »
I would remove all the STUN/TURN references, bad idea to put invalid values when they are still valid for the app
Does your SIP Server receive any REGISTER attempt?

Offline Alex99

  • Newbie
  • *
  • Posts: 20
  • Karma: 0
Re: Genesys WDE connector could not make connection to SIP Softphone
« Reply #6 on: November 01, 2021, 03:35:37 PM »
Hi cavagnaro,

When I try to register as standalone, softphone status show registered but not able to make any call to/from. When register as connector mode, status just showing waiting for agent login and nothing happened after agent login, can make call to/from.

I saw Register request message on SIP server log and Unauthorized as well.

REGISTER sip:stc.greennet.com SIP/2.0
Via: SIP/2.0/UDP 10.10.3.129:5080;branch=z9hG4bKac1902982255
Max-Forwards: 69
From: "Genesys Softphone" <sip:4006@STC>;tag=1c1234304587
To: <sip:4006@STC>
Call-ID: 1065851586111202111159@10.10.3.129
CSeq: 1 REGISTER
Contact: <sip:4006@10.10.3.129:5080;ac-feu=985-10-182-7>
Expires: 1800
User-Agent: Mediant VE SBC/v.7.40A.100.021
Content-Length: 0


01:12:00.865: Unable to resolve number for DN:4006
01:12:00.865: trunk ip addr 10.10.3.129
01:12:00.865: gateway 'Gateway' associated with address '10.10.3.129'
01:12:00.865: Assocaited transport for the device [1058] changed from [:0:0] to [10.10.3.129:5080:1]
01:12:00.869: TRNMNGR: internal domain stc.greennet.com
01:12:00.869: SIPTS: handle registration event 0
01:12:00.869: Sending  [0,UDP] 556 bytes to 10.10.3.129:5080 >>>>>
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 10.10.3.129:5080;branch=z9hG4bKac1902982255;received=10.10.3.129
From: "Genesys Softphone" <sip:4006@STC>;tag=1c1234304587
To: <sip:4006@STC>;tag=00FF43BC-9A69-4F6E-ACEC-665E741C7377-357596
Call-ID: 1065851586111202111159@10.10.3.129
CSeq: 1 REGISTER
WWW-Authenticate: Digest realm="SIPSwitch_STC",qop="auth",algorithm=MD5,nonce="3A3A7894-2420-47B3-A3F2-2DCF3B05DEB6",opaque="5349505377697463685f535443"
Expires: 1800
Contact: <sip:4006@10.10.3.129:5080;ac-feu=985-10-182-7>;expires=1800
Content-Length: 0


01:12:00.869: $-NET:SIP::0:375

01:12:00.912: $+NET:SIP::0:0
01:12:00.912: SIPTR: Received [0,UDP] 648 bytes from 10.0.3.109:5080 <<<<<
REGISTER sip:stc.greennet.com SIP/2.0
Via: SIP/2.0/UDP 10.10.3.129:5080;branch=z9hG4bKac518006396
Max-Forwards: 69
From: "Genesys Softphone" <sip:4006@STC>;tag=1c1234304587
To: <sip:4006@STC>
Call-ID: 1065851586111202111159@10.10.3.129
CSeq: 2 REGISTER
Contact: <sip:4006@10.10.3.129:5080;ac-feu=985-10-182-7>
Authorization: Digest username="4006",realm="SIPSwitch_STC",uri="",nonce="3A3A7894-2420-47B3-A3F2-2DCF3B05DEB6",cnonce="00004bf4",nc=00000001,qop=auth,algorithm=MD5,opaque="5349505377697463685f535443",response="21b8137fa531ba5131525fc06735ece4"
Expires: 1800
User-Agent: Mediant VE SBC/v.7.40A.100.021
Content-Length: 0


01:12:00.912: Unable to resolve number for DN:4006
01:12:00.912: trunk ip addr 10.10.3.129
01:12:00.912: gateway 'Gateway' associated with address '10.10.3.129'
01:12:00.912: Assocaited transport for the device [1059] changed from [:0:0] to [10.10.3.129:5080:1]
01:12:00.912: TRNMNGR: internal domain stc.greennet.com
01:12:00.912: SIPTS: handle registration event 0
01:12:00.912: SIPTS_Auth::AuthenticateSipRequestNew internal
01:12:00.912: {Authorization Failed:363} Wrong Checksum
01:12:00.912: Sending  [0,UDP] 555 bytes to 10.10.3.129:5080 >>>>>
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 10.10.3.129:5080;branch=z9hG4bKac518006396;received=10.10.3.129
From: "Genesys Softphone" <sip:4006@STC>;tag=1c1234304587
To: <sip:4006@STC>;tag=00FF43BC-9A69-4F6E-ACEC-665E741C7377-357597
Call-ID: 1065851586111202111159@10.10.3.129
CSeq: 2 REGISTER
WWW-Authenticate: Digest realm="SIPSwitch_STC",qop="auth",algorithm=MD5,nonce="59359315-CEA5-4A82-A447-C67738C5F91F",opaque="5349505377697463685f535443"
Expires: 1800
Contact: <sip:4006@10.10.3.129:5080;ac-feu=985-10-182-7>;expires=1800
Content-Length: 0


Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: Genesys WDE connector could not make connection to SIP Softphone
« Reply #7 on: November 01, 2021, 03:49:23 PM »
Your DN has a password? 1st Unauthorized is expected in that case so the endpoint sends then the password configured for that user.


Have you followed this doc?
https://docs.genesys.com/Documentation/SP/latest/dep/SoftphoneWDE

Offline Fidray

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
Re: Genesys WDE connector could not make connection to SIP Softphone
« Reply #8 on: May 15, 2023, 11:35:12 PM »
[quote author=cavagnaro link=topic=12168.msg54462#msg54462 date=1635529269]
WDE is no longer using SIP Endpoint, it is using an external SIP device, SIP Softphone in this case, so registration should be only at the Softphone.
Remove the Role permission to call SIP Endpoint (WDE plugin) as you won't be using it anymore.
Then let WDE use the SIP Softphone DN just by registering on the Place containing that DN.
[/quote]

But how does Genesys softphone get the SIP registration info from WDE?  Genesys softphone is not listening on the ip and port.

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: Genesys WDE connector could not make connection to SIP Softphone
« Reply #9 on: May 16, 2023, 03:35:47 AM »
What do you mean? It doesn't matter. Sip server sends the sip request to the DN associated to the agent login, the place you selected when login into wde.


Enviado de meu SM-S918B usando o Tapatalk