Нi

It can still be described as unexpected by BYE from Multifon

The problem is solved by setting the parameter

<param name="rtcp-audio-interval-msec" value="5000"/>


 for profile external

Thanks to Vladimir from ros-tel


---------- Пересылаемое сообщение ----------
From: Sergey Zhuravlov <4orbit@gmail.com>
To: freeswitch-users@lists.freeswitch.org
Cc: 
Date: Wed, 5 Aug 2015 16:47:35 +0300
Subject: Re: [Freeswitch-users] Multifon -- Outgoing connection is broken after a few seconds (Michael Jerris)
Нi

I think that there does not affect SIPALG

I tried another phone other tension, all the same, in fact tried through CSIPSIMPLE and 4G - still

a few seconds, and normal conversation open




---------- Пересылаемое сообщение ----------
From: Michael Jerris <mike@jerris.com>
To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org>
Cc: 
Date: Tue, 4 Aug 2015 18:32:55 -0400
Subject: Re: [Freeswitch-users] Multifon -- Outgoing connection is broken after a few seconds
I'm guessing this is an insanely short and unreasonable media timeout on their side coupled with a nat issue.  Check that the media ip is sane, check of you have a sip alg on your side, if so, turn it off, sip algs are almost all universally broken.  also look at a packet trace from outside your router and see what is different.

On Tuesday, August 4, 2015, Russell Treleaven <rtreleaven@bunnykick.ca> wrote:
Can you confirm they are getting media?

Sent from my BlackBerry® PlayBook™
www.blackberry.com


From: "Sergey Zhuravlov" <4orbit@gmail.com>
To: "freeswitch-users@lists.freeswitch.org" <freeswitch-users@lists.freeswitch.org>
Sent: 4 August, 2015 5:13 PM
Subject: [Freeswitch-users] Multifon -- Outgoing connection is broken after a few seconds

Hi

Multifon service fron Megafon.

Outgoing connection is broken after a few seconds (~10) of conversation.
It seems the server provider sends BYE.
I can not understand the reason for such behavior and how to fix it.

Incoming calls through the same gateway works fine.




            89.111.xx.xx:5080            193.201.229.35:5060              193.201.229.19 
          ──────────┬─────────          ──────────┬─────────          ──────────┬─────────
  20:48:08.646458   │        INVITE (SDP)         │                             │        
        +0.025606   │ ──────────────────────────> │                             │        
  20:48:08.672064   │         100 Trying          │                             │        
        +0.010084   │ <────────────────────────── │                             │        
  20:48:08.682148   │  407 Proxy Authentication R │                             │        
        +0.000254   │ <────────────────────────── │                             │        
  20:48:08.682402   │             ACK             │                             │        
        +0.000686   │ ──────────────────────────> │                             │        
  20:48:08.683088   │        INVITE (SDP)         │                             │       
        +0.027006   │ ──────────────────────────> │                             │       
  20:48:08.710094   │         100 Trying          │                             │       
        +0.293250   │ <────────────────────────── │                             │       
  20:48:09.003344   │  183 Session Progress (SDP) │                             │       
        +0.323757   │ <────────────────────────── │                             │       
                    │                      RTP (g711a) 989                      │       
               29626│ <───────────────────────────────────────────────────────  │18792  
  20:48:09.327101   │    183 Session Progress     │                             │       
        +0.287857   │ <────────────────────────── │                             │       
  20:48:09.614958   │    183 Session Progress     │                             │       
        +0.185002   │ <<<──────────────────────── │                             │       
  20:48:09.799960   │        200 OK (SDP)         │                             │       
        +0.006939   │ <────────────────────────── │                             │       
  20:48:09.806899   │             ACK             │                             │       
       +19.120847   │ ──────────────────────────> │                             │       
                    │                      RTP (g711a) 839                      │       
               29626│ ────────────────────────────────────────────────────────> │18792  
  20:48:28.927746   │             BYE             │                             │       
        +0.019088   │ <────────────────────────── │                             │       
  20:48:28.946834   │           200 OK            │                             │       
                    │ ──────────────────────────> │                             │       
                    │                             │                             │       
                    │                             │                             │       




and log

5c7410e6-82da-49dd-bd5b-c622a51b8d7a 2015-08-04 20:29:29.558105 [DEBUG] switch_rtp.c:5884 Correct ip/port confirmed.
5c7410e6-82da-49dd-bd5b-c622a51b8d7a 2015-08-04 20:29:29.578107 [DEBUG] switch_core_session.c:1061 Send signal sofia/internal/1002@4orbit.sxxxs.com [BREAK]
5c7410e6-82da-49dd-bd5b-c622a51b8d7a 2015-08-04 20:29:29.578107 [DEBUG] switch_core_session.c:1061 Send signal sofia/internal/1002@4orbit.sxxxs.com [BREAK]
5c7410e6-82da-49dd-bd5b-c622a51b8d7a 2015-08-04 20:29:29.578107 [DEBUG] switch_core_session.c:1061 Send signal sofia/internal/1002@4orbit.sxxxs.com [BREAK]
5c7410e6-82da-49dd-bd5b-c622a51b8d7a 2015-08-04 20:29:29.598105 [DEBUG] sofia.c:6634 Channel sofia/internal/1002@4orbit.sxxxs.com entering state [ready][200]
f5d0526a-b4f8-4a5a-a06f-2ff1cac3d3c2 2015-08-04 20:29:29.598105 [DEBUG] switch_core_session.c:978 Send signal sofia/external/749538000xx [BREAK]
5c7410e6-82da-49dd-bd5b-c622a51b8d7a 2015-08-04 20:29:29.598105 [DEBUG] switch_core_session.c:978 Send signal sofia/internal/1002@4orbit.sxxxs.com [BREAK]
5c7410e6-82da-49dd-bd5b-c622a51b8d7a 2015-08-04 20:29:29.638105 [DEBUG] switch_rtp.c:1937 rtcp_stats_init: ssrc[1980178037] base_seq[26785]
5c7410e6-82da-49dd-bd5b-c622a51b8d7a 2015-08-04 20:29:39.718126 [NOTICE] switch_rtp.c:5196 Receiving an RTCP packet[2015-04-07 20:29:39.730987] SSRC[1980178037]RTT[0.020386] A[2670967585] - DLSR[3909] - LSR[2670962340]
f5d0526a-b4f8-4a5a-a06f-2ff1cac3d3c2 2015-08-04 20:29:43.778105 [DEBUG] switch_core_session.c:1061 Send signal sofia/external/749538000xx [BREAK]
f5d0526a-b4f8-4a5a-a06f-2ff1cac3d3c2 2015-08-04 20:29:43.778105 [NOTICE] sofia.c:952 Hangup sofia/external/749538000xx [CS_EXCHANGE_MEDIA] [NORMAL_CLEARING]
f5d0526a-b4f8-4a5a-a06f-2ff1cac3d3c2 2015-08-04 20:29:43.778105 [DEBUG] switch_channel.c:3242 Send signal sofia/external/749538000xx [KILL]
f5d0526a-b4f8-4a5a-a06f-2ff1cac3d3c2 2015-08-04 20:29:43.778105 [DEBUG] switch_core_session.c:1396 Send signal sofia/external/749538000xx [BREAK]
f5d0526a-b4f8-4a5a-a06f-2ff1cac3d3c2 2015-08-04 20:29:43.798150 [DEBUG] switch_ivr_bridge.c:660 BRIDGE THREAD DONE [sofia/external/749538000xx]
5c7410e6-82da-49dd-bd5b-c622a51b8d7a 2015-08-04 20:29:43.798150 [DEBUG] switch_ivr_bridge.c:690 Send signal sofia/internal/1002@4orbit.sxxxs.com [BREAK]






--
  WBR, Sergey

 GTALK/JABBER:4orbit@gmail.com

_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




--
  WBR, Sergey

 GTALK/JABBER:4orbit@gmail.com

_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




--
  WBR, Sergey

 GTALK/JABBER:4orbit@gmail.com