" /> MCP shows error while RTP port initiation - Genesys CTI User Forum

Author Topic: MCP shows error while RTP port initiation  (Read 2826 times)

Offline shijith

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
MCP shows error while RTP port initiation
« on: June 15, 2021, 01:30:35 PM »
Advertisement
Hi,

We are getting the following message when MCP initiating RTP port. Due to this call fails.
Please advice.

2021-06-15 14:40:44.461 DBUG 00FA020C-100032C9 1488087360 0B200000 MPCRTPSession.cxx:2215 MPCRTPSession::CreateBuffer - nType=0
2021-06-15 14:40:44.462 DBUG 00000000-00000000 1488087360 0B300000 VGRTPSocketObjects.cxx:464 VGRTPSocketNetwork::UpdateMediaDesc RTP 20000, rtpMediaDesc m_nMediaType 0, m_bActivated false
2021-06-15T14:40:44.480 Std 20003 WARN 00000000-00000000 1488087360 08500000 VGSocket::SocketCreateOS socket not bound
2021-06-15T14:40:44.480 Std 20003 WARN 00000000-00000000 1488087360 08500000 VGSocketMgr::SocketCreateOEP cannot create the even-socket
2021-06-15T14:40:44.480 Int 50152 00FA020C-100032C9 139978767231296 rtp_stats RTP 0: Rx 0/0 lost 0 dropped 0 dec_err 0 jitter 0, Tx 0/0 enc_err 0
2021-06-15T14:40:44.481 Std 20003 WARN 00000000-00000000 1488087360 0B300000 CreateNetwork failed on socket create using port 20000 and result -1
2021-06-15T14:40:44.481 Std 45000 WARN 00FA020C-100032C9 1488087360 0B100BBA MPCConnection::Initialize ConnID=10000039 Error=-6 initialization failed
2021-06-15 14:40:44.481 DBUG 00000000-00000000 1488087360 0B100000 MPCConnection.cxx:1909 MPCConnection::Destroy nLogID=00FA020C-100032C9 nConnID=10000039
2021-06-15 14:40:44.481 DBUG 00000000-00000000 1488087360 0B100000 MPCControlObject.cxx:368 MPCControlObject::UnregisterSinkHelper LogID=00FA020C-100032C9 ObjectID=10000039 SourceID=00017520

Regards
Shijith

Offline hsujdik

  • Hero Member
  • *****
  • Posts: 541
  • Karma: 30
Re: MCP shows error while RTP port initiation
« Reply #1 on: June 15, 2021, 01:44:06 PM »
Kindly make sure your MCP application is able open ports:
- if Windows Server, check the firewall rules are allowing the pwcallmgr.exe application;
- if Linux, check if SELinux is not blocking it. The easiest way would be through testing running MCP after running "sudo setenforce 0" on the server and see if it works.

Also, check if there is no other application on the same server using UDP port 20000 (though netstat).
I usually run for that:
(on Linux): sudo netstat -anp | grep :20000 | grep LISTEN
(on Windows): netstat -anbo > netstat.txt & notepad netstat.txt
(it will open a notepad, then lookup for :20000)

Offline shijith

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Re: MCP shows error while RTP port initiation
« Reply #2 on: June 16, 2021, 07:43:55 AM »
Dear hsujdik,

Thanks for your reply.
MCP server is RHEL 7.

Checked for SELinux and another app using the same port etc. MCP service is running but call not getting directed through MCP.

[xxx@mcp01 /]$ sudo setenforce 0
setenforce: SELinux is disabled
[xxx@mcp01 /]$ sudo netstat -anp | grep :20000 | grep LISTEN
[xxx@mcp01 /]$

Regards
Shijith

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: MCP shows error while RTP port initiation
« Reply #3 on: June 16, 2021, 12:08:27 PM »
Under which user is your app running?
Do you have other services on that server?
Have you tried a server restart?


Enviado de meu SM-N9600 usando o Tapatalk


Offline hsujdik

  • Hero Member
  • *****
  • Posts: 541
  • Karma: 30
Re: MCP shows error while RTP port initiation
« Reply #4 on: June 16, 2021, 12:17:27 PM »
[quote author=shijith link=topic=12040.msg54021#msg54021 date=1623829435]
Dear hsujdik,

Thanks for your reply.
MCP server is RHEL 7.

Checked for SELinux and another app using the same port etc. MCP service is running but call not getting directed through MCP.

[xxx@mcp01 /]$ sudo setenforce 0
setenforce: SELinux is disabled
[xxx@mcp01 /]$ sudo netstat -anp | grep :20000 | grep LISTEN
[xxx@mcp01 /]$

Regards
Shijith

[/quote]

Ops... my bad... you wouldn't get if another process is using that port with that command. Since it is udp, it wouldn't be showing as "LISTEN" on the netstat command. Try it without that last "grep LISTEN":
sudo netstat -anp | grep 20000

Offline shijith

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Re: MCP shows error while RTP port initiation
« Reply #5 on: June 16, 2021, 12:52:13 PM »
Dear hsujdik
I tried without LISTEN filtering still there is no application.
Is udp port can be monitored like this.
[xxx@-mcp01 /]$ sudo netstat -anp | grep :20000
[xxx@mcp01 /]$

Regards
shijith


Offline shijith

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Re: MCP shows error while RTP port initiation
« Reply #6 on: June 16, 2021, 12:55:52 PM »
Dear cavagnaro,

Thanks for your response.
App is running as a service on a dedicated RHEL 7 server only running MCP and LCA [local control agent port 4999].
Server restarted several times.

Regards
Shijth

[quote author=cavagnaro link=topic=12040.msg54022#msg54022 date=1623845307]
Under which user is your app running?
Do you have other services on that server?
Have you tried a server restart?


Enviado de meu SM-N9600 usando o Tapatalk
[/quote]

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: MCP shows error while RTP port initiation
« Reply #7 on: June 16, 2021, 01:00:39 PM »
Which user is running it? Root? Other?
This is new installation? Was working before?


Enviado de meu SM-N9600 usando o Tapatalk


Offline hsujdik

  • Hero Member
  • *****
  • Posts: 541
  • Karma: 30
Re: MCP shows error while RTP port initiation
« Reply #8 on: June 16, 2021, 01:27:22 PM »
Also, how is configured the option "rtp.localaddr" on "mpc" section of your MCP application? Does it match the IP address of your server?