<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 – which then gets re-directed to our VoIP platform.</div><div><br></div><div>As far as registrations go – 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 – 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 – so please bare with me :)</div><div><br></div><div><div> # account only INVITEs</div><div> if (is_method("INVITE")) {</div><div> setflag(1); # do accounting</div><div> rewritehostport("64.211.94.211:5060");</div><div> }</div></div><div><br></div><div><div> if (is_method("REGISTER"))</div><div> {</div><div> # authenticate the REGISTER requests (uncomment to enable auth)</div><div> ##if (!www_authorize("", "subscriber"))</div><div> ##{</div><div> ## www_challenge("", "0");</div><div> ## exit;</div><div> ##}</div><div> ##</div><div> ##if (!db_check_to())</div><div> ##{</div><div> ## sl_send_reply("403","Forbidden auth ID");</div><div> ## exit;</div><div> ##}</div><div> save("location");</div><div> #rewritehostport("74.208.132.59:5060");</div><div> rewritehostport("64.211.94.211:5060");</div><div> route(1);</div><div><br></div><div> if (!save("location"))</div><div> sl_reply_error();</div><div><br></div><div> exit;</div><div> }</div></div><div><br></div><div><div>route[1] {</div><div> # for INVITEs enable some additional helper routes</div><div> if (is_method("INVITE")) {</div><div> rewritehostport("64.211.94.211:5060");</div><div> t_on_branch("2");</div><div> t_on_reply("2");</div><div> t_on_failure("1");</div><div> }</div><div><br></div><div> if (!t_relay()) {</div><div> sl_reply_error();</div><div> };</div><div> exit;</div><div>}</div></div><div><br></div></body></html>