<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Robert, at least I hacked the archive to remove the IPs from your
original email.<br>
<br>
Regards,<br>
Bogdan<br>
<br>
On 03/07/2012 09:58 PM, Robert wrote:
<blockquote cite="mid:CB7D27BE.1FE29%25robert@inteli-core.com"
type="cite">
<div>And stupid n00b me – left the IP addresses in this email…
crash and burn…</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family: Calibri; font-size: 11pt; text-align:
left; color: black; border-width: 1pt medium medium;
border-style: solid none none; border-color: rgb(181, 196,
223) -moz-use-text-color -moz-use-text-color; padding: 3pt 0in
0in;"><span style="font-weight: bold;">From: </span> Robert
<<a moz-do-not-send="true"
href="mailto:robert@inteli-core.com">robert@inteli-core.com</a>><br>
<span style="font-weight: bold;">Reply-To: </span> OpenSIPS
users mailling list <<a moz-do-not-send="true"
href="mailto:users@lists.opensips.org">users@lists.opensips.org</a>><br>
<span style="font-weight: bold;">Date: </span> Wed, 07 Mar
2012 14:55:18 -0500<br>
<span style="font-weight: bold;">To: </span> <<a
moz-do-not-send="true"
href="mailto:users@lists.opensips.org">users@lists.opensips.org</a>><br>
<span style="font-weight: bold;">Subject: </span>
[OpenSIPS-Users] Simple Forwarding Proxy<br>
</div>
<div><br>
</div>
<div>
<div style="word-wrap: break-word; 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("xxx.xxx.xxx.xxx: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("xxx.xxx.xxx.xxx: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("xxx.xxx.xxx.xxx: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>
</div>
</div>
_______________________________________________
Users mailing list
<a moz-do-not-send="true" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a moz-do-not-send="true"
href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</span>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
</body>
</html>