<div><div dir="auto">Run the container with —network=host</div><div dir="auto"><br></div></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 29 Jul 2020 at 16:35, Ruslan Shevchenko <<a href="mailto:ruslan@shevchenko.kiev.ua">ruslan@shevchenko.kiev.ua</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)"><div dir="ltr"><div><br></div><div>Hi, colleagues.</div><div><br></div><div>I discovered a strange problem when running Freeswitch from docker on the local machine,</div><div><br></div><div>I have my machine API:  192.168.88.236</div><div>and docker with internal ip. 172.17.0.2. (local_ip_v4)</div><div><br></div><div>With the next changes relative to vanilla install:</div><div>valr.xml :</div><div>      external_rtp_ip=stun:<a href="http://stun.freeswitch.org" target="_blank">stun.freeswitch.org</a>  - changed to external_rtp_ip=192.168.88.236<br></div><div>      external_sip_ip=stun:<a href="http://stun.freeswitch.org" target="_blank">stun.freeswitch.org</a>   - same<br></div><div><br></div><div>autoload_configs/switch.conf.xml  --- a narrow set of RTP ports.</div><div><br></div><div>sip_profiles:</div><div>    internal.xml -- change ext-rtp-ip and ext-sip-ip to 192.168.88.236</div><div>   external.xml -- same</div><div><br></div><div>Then I trying to run docker from macos which publish ports:</div><div>docker run -d -p 5060:5060/udp -p 5060:5060/tcp -p5061:5061/tcp -p 5080:5080/udp -p 5080:5080/tcp -p 5066:5066/tcp -p 7443:7443/tcp -p 63535-63635:63535-63635/tcp  -p63535-64535:63535-64535/udp  -p5555:5555 -p5050:5050 -p8000:8000  --hostname zaka-voice  zaka-freeswitch-recognition:0.0.1<br></div><div><br></div><div>And then when I try to call Freeswitch from linphone from the local net, I can hear an answer, but looks like  IVR on the Freeswitch side not receive RTP stream.</div><div><br></div><div>I can't understand why.</div><div><br></div><div>One hypothesizes -- that  FreeSWITCH not determinate existence of external_ip as NAT mode (?)  and ask the phone to send RTP to 172.17.0.2.</div><div><br></div><div>How to verify this?    Maybe exists some ideas, how to debug such situation behind a sip trace?</div><div><br></div><div>Thanks.</div><div><br></div><div>P.S.  Additional info, if anybody found this interesting:</div><div><br></div><div>I.e. I see SIP invite from FreeSWITCH </div><div><br></div><div>SIP/2.0 100 Trying<br>Via: SIP/2.0/TCP 192.168.88.238:50091;branch=z9hG4bK.rNrD-0O~i;rport=51208;received=172.17.0.1<br>From: <<a href="mailto:sip%3A1002@192.168.88.236" target="_blank">sip:1002@192.168.88.236</a>>;tag=4bI6NNSIi<br>To: "33332220" <<a href="mailto:sip%3A33332220@192.168.88.236" target="_blank">sip:33332220@192.168.88.236</a>><br>Call-ID: 7At9kxIfv2<br>CSeq: 21 INVITE<br>User-Agent: FreeSWITCH-mod_sofia/1.10.4-dev-2421-8a5850ff26~64bit<br>Content-Length: 0<br></div><div><br></div><div>then  Ok and Acc from linphone (which freeswitch see as on 172.17.0.2)</div><div><br></div><div>recv 354 bytes from tcp/[172.17.0.1]:51208 at 09:20:26.099724:<br>------------------------------------------------------------------------<br>SIP/2.0 200 Ok<br>Via: SIP/2.0/TCP 192.168.88.236;branch=z9hG4bK8502eXUvmSKyN<br>From: <<a href="mailto:sip%3A1002@172.17.0.2" target="_blank">sip:1002@172.17.0.2</a>>;tag=mrr024e5DH57Q<br>To: <<a href="mailto:sip%3A1002@172.17.0.2" target="_blank">sip:1002@172.17.0.2</a>>;tag=ftaVWOB<br>Call-ID: 940c69ac-4c1f-1239-4cb1-0242ac110002<br>CSeq: 23453420 NOTIFY<br>User-Agent: LinphoneiOS/4.3.1 (iPad Ruslan) LinphoneSDK/4.4.0<br>Supported: replaces, outbound, gruu<br>Content-Length: 0<br></div><div> </div><div>recv 640 bytes from tcp/[172.17.0.1]:51208 at 09:20:26.514163:<br>------------------------------------------------------------------------<br>ACK sip:33332220@192.168.88.236:5060;transport=tcp SIP/2.0<br>Via: SIP/2.0/TCP 192.168.88.238:50091;rport;branch=z9hG4bK.iYrbMWTLP<br>From: <<a href="mailto:sip%3A1002@192.168.88.236" target="_blank">sip:1002@192.168.88.236</a>>;tag=4bI6NNSIi<br>To: "33332220" <<a href="mailto:sip%3A33332220@192.168.88.236" target="_blank">sip:33332220@192.168.88.236</a>>;tag=N1HS4ZZ8atUtK<br>CSeq: 21 ACK<br>Call-ID: 7At9kxIfv2<br>Max-Forwards: 70<br>Proxy-Authorization:  Digest realm="192.168.88.236", nonce="44104e4a-30cb-4277-8c31-61e437b6cbd1", algorithm=MD5, username="1002",  uri="<a href="mailto:sip%3A33332220@192.168.88.236" target="_blank">sip:33332220@192.168.88.236</a>", response="756a3d3e3a76996988afa09a5544f1d1", cnonce="CWKOLtHm9Z8eVYIm", nc=00000001, qop=auth<br>User-Agent: LinphoneiOS/4.3.1 (iPad Ruslan) LinphoneSDK/4.4.0<br>Content-Length: 0<br></div><div><br></div><div>Then  freeswitch not see any activity and says BYE:</div><div>BYE sip:1002@172.17.0.1:51208;transport=tcp SIP/2.0<br>Via: SIP/2.0/TCP 192.168.88.236;branch=z9hG4bK9etUgrc0H29gH<br>Max-Forwards: 70<br>From: "33332220" <<a href="mailto:sip%3A33332220@192.168.88.236" target="_blank">sip:33332220@192.168.88.236</a>>;tag=N1HS4ZZ8atUtK<br>To: <<a href="mailto:sip%3A1002@192.168.88.236" target="_blank">sip:1002@192.168.88.236</a>>;tag=4bI6NNSIi<br>Call-ID: 7At9kxIfv2<br>CSeq: 23453425 BYE<br>User-Agent: FreeSWITCH-mod_sofia/1.10.4-dev-2421-8a5850ff26~64bit<br>Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE<br>Supported: timer, path, replaces<br>Reason: Q.850;cause=16;text="NORMAL_CLEARING"<br>Content-Length: 0<br></div><div><br></div><div>---</div><div>  status of Sofia profile: </div><div><br></div><div>---<br></div><div><br>freeswitch@zaka-voice> sofia status profile internal <br>=================================================================================================<br>Name                  internal<br>Domain Name        N/A<br>Auto-NAT               false<br>DBName              sofia_reg_internal<br>Pres Hosts               172.17.0.2,172.17.0.2<br>Dialplan             XML<br>Context               public<br>Challenge Realm        auto_from<br>RTP-IP                  172.17.0.2<br>Ext-RTP-IP               192.168.88.236<br>SIP-IP             172.17.0.2<br>Ext-SIP-IP               192.168.88.236<br>URL                      <a href="http://sip:mod_sofia@192.168.88.236:5060" target="_blank">sip:mod_sofia@192.168.88.236:5060</a><br>BIND-URL          sip:mod_sofia@192.168.88.236:5060;maddr=172.17.0.2;transport=udp,tcp<br>WS-BIND-URL             sip:mod_sofia@172.17.0.2:5066;transport=ws<br>WSS-BIND-URL      sips:mod_sofia@172.17.0.2:7443;transport=wss<br>HOLD-MUSIC             local_stream://moh<br>OUTBOUND-PROXY     N/A<br>CODECS IN              OPUS,G722,PCMU,PCMA,H264,VP8<br>CODECS OUT             OPUS,G722,PCMU,PCMA,H264,VP8<br>TEL-EVENT             101<br>DTMF-MODE              rfc2833<br>CNG                     13<br>SESSION-TO               0<br>MAX-DIALOG        0<br>NOMEDIA                 false<br>LATE-NEG             true<br>PROXY-MEDIA            false<br>ZRTP-PASSTHRU          true<br>AGGRESSIVENAT           false<br>CALLS-IN             0<br>FAILED-CALLS-IN     0<br>CALLS-OUT                0<br>FAILED-CALLS-OUT     0<br>REGISTRATIONS      0<br><br></div><br clear="all"><div><br></div>-- <br><div dir="ltr" data-smartmail="gmail_signature">Ruslan Shevchenko<br>Software Engineer.<br><a href="http://ua.linkedin.com/in/ruslanshevchenko" target="_blank">http://ua.linkedin.com/in/ruslanshevchenko</a></div></div>
_________________________________________________________________________<br>
<br>
The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" rel="noreferrer" target="_blank">https://signalwire.com</a><br>
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br>
Build your next product on our scalable cloud platform.<br>
<br>
Join our online community to chat in real time <a href="https://signalwire.community" rel="noreferrer" target="_blank">https://signalwire.community</a><br>
<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
<a href="https://cluecon.com" rel="noreferrer" target="_blank">https://cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a></blockquote></div></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Regards,</div><div><br></div>David Villasmil<div>email: <a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a></div><div>phone: +34669448337</div></div></div>