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