<div dir="ltr"><div>Hello,</div><div><br></div><div>might be just a typing mistake, but:</div><div><br></div><div>rtpproxy -A  "private ip" -F -l "local ip" -m 10000 -M 20000 -s udp:*:7722 -d INFO</div><div><br></div><div>says that -A is private ip, it should be public IP.</div><div><br></div><div>Then, towards asterisk, is it everything on a private network, or does it go again through some FW with public ip and port forwarding?</div><div><br></div><div>Cheers,</div><div>Daniel<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Sep 17, 2019 at 10:23 AM Arnout Van Den Kieboom <<a href="mailto:arnoutvdkieboom@gmail.com">arnoutvdkieboom@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>Firewall (PFsense) does port forwarding:</div><div><br></div><div>inbound publicIP:5060 -->  private ip (192.168.150.119)</div><div><br></div><div>inbound PublicIP:10000 to 20000 -> private ip (192.168.150.119)</div><div><br></div><div>The public ip is set in the config file (kamailio.cfg) and RTP proxy is started with </div><div><br></div><div>rtpproxy -A  "private ip" -F -l "local ip" -m 10000 -M 20000 -s udp:*:7722 -d INFO<br></div><div><br></div><div>In the cfg file NATtin is defined. (define with_nat)</div><div>rtpproxy module is loaded. </div><div><br></div><div>This works for most audio situations, except with the carrier </div><div>Also very important: the carrier i am using for testing requires authentication, so I am using the uac module.</div><div><br></div><div>I can see the registration with the provider, i see the inbound call in kamailio, I see the inbound call in asterisk. </div><div>A connection is set up like it should, but then there is One way audio.</div><div><br></div><div>The weird thing is: </div><div>this route works without a problem: carrier --> FW -->kamailio --> (back through firewall) FW --> user subscribed to kamaiolio.</div><div>(which should imply the same NAT'ing problems?)</div><div><br></div><div>If you need more info, feel free to ask!</div><div><br></div><div>PS: What i haven't tried yet is to call from asterisk through kamailio to the carrier number, this is what i'll set up and test next)</div><div><br></div><div>Arnout</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Op ma 16 sep. 2019 om 13:26 schreef Daniel-Constantin Mierla <<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hello,</div><div><br></div><div>is Kamailio and RTPProxy (or Asterisk) using public IP addresses? Or they listen on a private address and the firewall does port forwarding of a public IP address?</div><div><br></div><div>Cheers,</div><div>Daniel<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Sep 16, 2019 at 10:51 AM Arnout Van Den Kieboom <<a href="mailto:arnoutvdkieboom@gmail.com" target="_blank">arnoutvdkieboom@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>First of all, I'm really new to Kamailio. So sorry if I ask a stupid question, or perhaps a really weird one.</div><div><br></div><div>I started using kamailio in a test environment about a week ago.</div><div><br></div><div>for setup i have the situation for inbound calls: Carrier --> FW (NAT) --> Kamailio</div><div>for outbound to an asterisk box i have: Kamailio --> FW (NAT) --> Asterisk</div><div>for outbound to users i have: Kamailio --> FW (NAT) --> sip-phone (yealink) or grandstream</div><div><br></div><div>During that time i was able to :</div><div>Set up calls to users,</div><div>Use the dispatcher module</div><div>use the avpops module to do data lookups. </div><div>Get calls from asterisk to kamailio user to work.</div><div>Also calls between users (even though behind nat) are having good audio.</div><div><br></div><div>I have installed rtpproxy and it works nicely. </div><div><br></div><div>There is just one situation where it fails: </div><div><br></div><div>Carrier --> FW (NAT) Kamailio --> asterisk </div><div><br></div><div>There is only one way audio (from asterisk to carrier) but not from carrier to asterisk.</div><div><br></div><div>I believe I need to do something with the rtp proxy module ... and tried different things (forcing the r flag, forcing the w flag)</div><div>Any idea where I might need to start looking? It's been driving me crazy...</div><div><br></div><div>Thanks</div><div><br></div><div>Pemp </div><div><br></div><div><br></div></div>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>Daniel-Constantin Mierla - <a href="https://www.asipto.com" target="_blank">https://www.asipto.com</a></div><div><a href="https://twitter.com/miconda" target="_blank">https://twitter.com/miconda</a> - <a href="https://www.linkedin.com/in/miconda" target="_blank">https://www.linkedin.com/in/miconda</a></div><div>Kamailio Advanced Training - <a href="https://www.asipto.com/u/kat" target="_blank">https://www.asipto.com/u/kat</a></div></div></div></div></div></div></div>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>Daniel-Constantin Mierla - <a href="https://www.asipto.com" target="_blank">https://www.asipto.com</a></div><div><a href="https://twitter.com/miconda" target="_blank">https://twitter.com/miconda</a> - <a href="https://www.linkedin.com/in/miconda" target="_blank">https://www.linkedin.com/in/miconda</a></div><div>Kamailio Advanced Training - <a href="https://www.asipto.com/u/kat" target="_blank">https://www.asipto.com/u/kat</a></div></div></div></div></div></div></div>