Hi,
We try to using UniMRCP Server [1.5.0], APR [1.5.2] for a long request.
The session will destroy by server for the session-expired check (RFC4028).
In my unimrcpserver.xml, set the local ip "172.16.102.56", and ext-ip "180.169.210.135".
And test client at "14.23.86.60".
And we tried two connection type case for sip connect, tcp and udp.
1. For the tcp SIP connection case,
server will try to send invite to client, but failed.
2019-12-24 03:39:18:970683 [INFO] Receive SIP Event [nua_i_state] Status 0 INVITE sent [SIP-Agent-1]
2019-12-24 03:39:18:970716 [NOTICE] SIP Call State 0x7fe650003d68 [calling]
2019-12-24 03:39:18:976968 [INFO] Receive SIP Event [nua_r_invite] Status 503 Service Unavailable [SIP-Agent-1]
2019-12-24 03:39:18:977050 [INFO] Receive SIP Event [nua_i_state] Status 503 Service Unavailable [SIP-Agent-1]
I have no idea where the server send this INVITE.
2. For the udp SIP connection case,
Client can receive the INVITE from server.
2019-12-19 09:56:55.417848 sent 999 bytes to udp/[14.23.86.60]:6060
Via: SIP/2.0/UDP 172.16.102.56:8060;rport;branch=z9hG4bK3B8HDHvp6ep4c^M
Max-Forwards: 70^M
CSeq: 946434208 INVITE^M
Contact: <sip:180.169.210.135:8060;transport=udp,tcp>^M
User-Agent: EmotibotSofiaSIP 1.5.0^M
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY, REFER, UPDATE^M
Supported: timer, 100rel^M
Session-Expires: 600;refresher=uac^M
Min-SE: 120^M
Content-Type: application/sdp^M
Content-Disposition: session^M
Content-Length: 311^M
^M
v=0^M
o=EmotibotMRCPServer 6581929105556082769 577941025699864731 IN IP4 172.16.102.56^M
s=-^M
c=IN IP4 180.169.210.135^M
t=0 0^M
m=audio 14001 RTP/AVP 8^M
a=rtpmap:8 PCMA/8000^M
a=recvonly^M
a=mid:1^M
m=application 1544 TCP/MRCPv2 1^M
a=setup:passive^M
a=connection:new^M
a=channel:29f65d0c224511ea@speechrecog^M
a=cmid:1^M
But the IP address at the header "Via: SIP/2.0/UDP
172.16.102.56:8060" is local ip that client can't access.
So server will raise a Request timeout,
2019-12-19 09:56:47:913414 [INFO] Receive SIP Event [nua_i_state] Status 0 INVITE sent [SIP-Agent-1]
2019-12-19 09:56:47:913444 [NOTICE] SIP Call State 0x7f5b64001a48 [calling]
2019-12-19 09:57:19:913061 [INFO] Receive SIP Event [nua_r_invite] Status 408 Request Timeout [SIP-Agent-1]
2019-12-19 09:57:19:913106 [INFO] Receive SIP Event [nua_i_state] Status 408 Request Timeout [SIP-Agent-1]
How to configure for this problem?
Thanks.