<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; "><div>I am trying to install OpenSIPS as a simple SIP proxy to allow users to register on an offset port &#8211; which then gets re-directed to our VoIP platform.</div><div><br></div><div>As far as registrations go &#8211; I have that working.</div><div><br></div><div>I have added a binding for port 53 and port 8080</div><div>I also added rewritehostport statements in the config as per guides for Asterisk integration.</div><div><br></div><div>And I can complete calls outbound and get 2 way audio.</div><div>The issue I am experiencing is that I cannot get inbound calls to come through.</div><div><br></div><div>I'm not sure if this a NAT issue with the UA &#8211; or if possibly I have not added enough headers in the config to allow the VoIP platform to know that the UA is behind NAT.</div><div><br></div><div>I'm a n00b at OpenSIPS &#8211; so please bare with me :)</div><div><br></div><div><div>&nbsp; &nbsp; &nbsp; &nbsp; # account only INVITEs</div><div>&nbsp; &nbsp; &nbsp; &nbsp; if (is_method("INVITE")) {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; setflag(1); # do accounting</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rewritehostport("64.211.94.211:5060");</div><div>&nbsp; &nbsp; &nbsp; &nbsp; }</div></div><div><br></div><div><div>&nbsp; &nbsp; &nbsp; &nbsp; if (is_method("REGISTER"))</div><div>&nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # authenticate the REGISTER requests (uncomment to enable auth)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ##if (!www_authorize("", "subscriber"))</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ##{</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ## &nbsp; &nbsp; &nbsp;www_challenge("", "0");</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ## &nbsp; &nbsp; &nbsp;exit;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ##}</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ##</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ##if (!db_check_to())</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ##{</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ## &nbsp; &nbsp; &nbsp;sl_send_reply("403","Forbidden auth ID");</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ## &nbsp; &nbsp; &nbsp;exit;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ##}</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; save("location");</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #rewritehostport("74.208.132.59:5060");</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rewritehostport("64.211.94.211:5060");</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; route(1);</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (!save("location"))</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sl_reply_error();</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; exit;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; }</div></div><div><br></div><div><div>route[1] {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; # for INVITEs enable some additional helper routes</div><div>&nbsp; &nbsp; &nbsp; &nbsp; if (is_method("INVITE")) {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rewritehostport("64.211.94.211:5060");</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; t_on_branch("2");</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; t_on_reply("2");</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; t_on_failure("1");</div><div>&nbsp; &nbsp; &nbsp; &nbsp; }</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; if (!t_relay()) {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sl_reply_error();</div><div>&nbsp; &nbsp; &nbsp; &nbsp; };</div><div>&nbsp; &nbsp; &nbsp; &nbsp; exit;</div><div>}</div></div><div><br></div></body></html>