<div dir="ltr">Hello list,<div>Am quite new to opensips. So i want opensips to act as an outbound proxy to freeswitch. I followed the tutorial on the opensips site and set up a running opensips instance (vanilla). I too have a running freeswitch instance. <br clear="all"><div><br></div><div>so, on my softphone, when i set outbound proxy as opensips,  am able to register the phone successfully to freeswitch via opensips. But when i attempt to make a call, i get:</div><div><br></div><div><br></div><div>send_reply(&quot;403&quot;,&quot;Rely forbidden&quot;);<br></div><div><br></div><div><br></div><div>From the opensips config, i can see this is cause by this snipped:</div><div><br></div><div><div></div><div><div class="" style="display:block;padding:0.5em;color:rgb(51,51,51);font-family:monospace;background:rgb(248,248,248)"><div><span class="" style="color:rgb(51,51,51);font-weight:bold">if</span> ( !(is_method(<span class="" style="color:rgb(221,17,68)">&quot;REGISTER&quot;</span>)  ) ) {</div><div><span class="" style="white-space:pre">                </span></div><div><span class="" style="white-space:pre">                </span><span class="" style="color:rgb(51,51,51);font-weight:bold">if</span> (from_uri==myself)</div><div><span class="" style="white-space:pre">                </span></div><div><span class="" style="white-space:pre">                </span>{</div><div><span class="" style="white-space:pre">                        </span></div><div><span class="" style="white-space:pre">                        </span># authenticate <span class="" style="color:rgb(51,51,51);font-weight:bold">if</span> from local subscriber</div><div><span class="" style="white-space:pre">                        </span># authenticate all initial non-REGISTER request that pretend to be</div><div><span class="" style="white-space:pre">                        </span># <span class="">generated by local <span class="" style="color:rgb(153,0,0);font-weight:bold">subscriber</span> <span class="">(domain from FROM URI is local)</span></span></div><div><span class="" style="white-space:pre"><span class="">                        </span></span><span class=""><span class="" style="color:rgb(153,0,0);font-weight:bold">if</span> <span class="">(!proxy_authorize(<span class="" style="color:rgb(221,17,68)">&quot;&quot;</span>, <span class="" style="color:rgb(221,17,68)">&quot;subscriber&quot;</span>)</span>) </span>{</div><div><span class="" style="white-space:pre">                                </span>proxy_challenge(<span class="" style="color:rgb(221,17,68)">&quot;&quot;</span>, <span class="" style="color:rgb(221,17,68)">&quot;0&quot;</span>);</div><div><span class="" style="white-space:pre">                                </span>exit;</div><div><span class="" style="white-space:pre">                        </span>}</div><div><span class="" style="white-space:pre">                        </span><span class="" style="color:rgb(51,51,51);font-weight:bold">if</span> (!db_check_from()) {</div><div><span class="" style="white-space:pre">                                </span>sl_send_reply(<span class="" style="color:rgb(221,17,68)">&quot;403&quot;</span>,<span class="" style="color:rgb(221,17,68)">&quot;Forbidden auth ID&quot;</span>);</div><div><span class="" style="white-space:pre">                                </span>exit;</div><div><span class="" style="white-space:pre">                        </span>}</div><div><span class="" style="white-space:pre">                </span></div><div><span class="" style="white-space:pre">                        </span>consume_credentials();</div><div><span class="" style="white-space:pre">                        </span># caller authenticated</div><div><span class="" style="white-space:pre">                        </span></div><div><span class="" style="white-space:pre">                </span>} <span class="" style="color:rgb(51,51,51);font-weight:bold">else</span> {</div><div><span class="" style="white-space:pre">                        </span># <span class="" style="color:rgb(51,51,51);font-weight:bold">if</span> caller is not local, <span class="">then called number must be local</span></div><div><span class="" style="white-space:pre"><span class="">                        </span></span></div><div><span class="" style="white-space:pre"><span class="">                        </span></span><span class=""><span class="" style="color:rgb(153,0,0);font-weight:bold">if</span> <span class="">(!uri==myself)</span> </span>{</div><div><span class="" style="white-space:pre">                                </span>send_reply(<span class="" style="color:rgb(221,17,68)">&quot;403&quot;</span>,<span class="" style="color:rgb(221,17,68)">&quot;Rely forbidden&quot;</span>);</div><div><span class="" style="white-space:pre">                                </span>exit;</div><div><span class="" style="white-space:pre">                        </span>}</div><div><span class="" style="white-space:pre">                </span>}</div><div><br></div><div><span class="" style="white-space:pre">        </span>}</div></div></div><div></div></div><div><br></div><div>What extra configuration should i be making to allow calls (INVITE etc) to be signalled via opensips ?</div><div><br></div><div>Here is a sample of the SIP trace:</div><div><br></div><div>REQUEST:</div><div>===================</div><div><div></div><div><div class="" style="display:block;padding:0.5em;color:rgb(51,51,51);font-family:monospace;background:rgb(248,248,248)"><div><span class="" style="color:rgb(0,128,128)">01</span>-<span class="" style="color:rgb(0,128,128)">30</span> <span class="" style="color:rgb(0,128,128)">17</span>:<span class="" style="color:rgb(0,128,128)">15</span>:<span class="" style="color:rgb(0,128,128)">57.522</span>: I/System.<span class="" style="color:rgb(51,51,51);font-weight:bold">out</span>(<span class="" style="color:rgb(0,128,128)">30771</span>): INVITE sip:<span class="" style="color:rgb(0,128,128)">1012</span>@<span class="" style="color:rgb(0,128,128)">192.168</span><span class="" style="color:rgb(0,128,128)">.0</span><span class="" style="color:rgb(0,128,128)">.46</span> SIP/<span class="" style="color:rgb(0,128,128)">2.0</span></div><div><span class="" style="color:rgb(0,128,128)">01</span>-<span class="" style="color:rgb(0,128,128)">30</span> <span class="" style="color:rgb(0,128,128)">17</span>:<span class="" style="color:rgb(0,128,128)">15</span>:<span class="" style="color:rgb(0,128,128)">57.522</span>: I/System.<span class="" style="color:rgb(51,51,51);font-weight:bold">out</span>(<span class="" style="color:rgb(0,128,128)">30771</span>): Via: SIP/<span class="" style="color:rgb(0,128,128)">2.0</span>/TCP <span class="" style="color:rgb(0,128,128)">10.1</span><span class="" style="color:rgb(0,128,128)">.4</span><span class="" style="color:rgb(0,128,128)">.24</span>:<span class="" style="color:rgb(0,128,128)">57232</span>;rport;branch=z9hG4bKPj2Ablr3CXdtiqLbZwAwM1IY.s2phTfK3i;alias</div><div>01-<span class="" style="color:rgb(0,128,128)">30</span> <span class="" style="color:rgb(0,128,128)">17</span>:<span class="" style="color:rgb(0,128,128)">15</span>:<span class="" style="color:rgb(0,128,128)">57.522</span>: I/System.<span class="" style="color:rgb(51,51,51);font-weight:bold">out</span>(<span class="" style="color:rgb(0,128,128)">30771</span>): Max-Forwards: <span class="" style="color:rgb(0,128,128)">70</span></div><div><span class="" style="color:rgb(0,128,128)">01</span>-<span class="" style="color:rgb(0,128,128)">30</span> <span class="" style="color:rgb(0,128,128)">17</span>:<span class="" style="color:rgb(0,128,128)">15</span>:<span class="" style="color:rgb(0,128,128)">57.522</span>: I/System.<span class="" style="color:rgb(51,51,51);font-weight:bold">out</span>(<span class="" style="color:rgb(0,128,128)">30771</span>): From: sip:<span class="" style="color:rgb(0,128,128)">1000</span>@<span class="" style="color:rgb(0,128,128)">192.168</span><span class="" style="color:rgb(0,128,128)">.0</span><span class="" style="color:rgb(0,128,128)">.46</span>;tag=SgvMtXb0KnIhW0ZDWnLxDN1tglrpAPzD</div><div>01-<span class="" style="color:rgb(0,128,128)">30</span> <span class="" style="color:rgb(0,128,128)">17</span>:<span class="" style="color:rgb(0,128,128)">15</span>:<span class="" style="color:rgb(0,128,128)">57.522</span>: I/System.<span class="" style="color:rgb(51,51,51);font-weight:bold">out</span>(<span class="" style="color:rgb(0,128,128)">30771</span>): To: sip:<span class="" style="color:rgb(0,128,128)">1012</span>@<span class="" style="color:rgb(0,128,128)">192.168</span><span class="" style="color:rgb(0,128,128)">.0</span><span class="" style="color:rgb(0,128,128)">.46</span></div><div><span class="" style="color:rgb(0,128,128)">01</span>-<span class="" style="color:rgb(0,128,128)">30</span> <span class="" style="color:rgb(0,128,128)">17</span>:<span class="" style="color:rgb(0,128,128)">15</span>:<span class="" style="color:rgb(0,128,128)">57.522</span>: I/System.<span class="" style="color:rgb(51,51,51);font-weight:bold">out</span>(<span class="" style="color:rgb(0,128,128)">30771</span>): Contact: &lt;sip:<span class="" style="color:rgb(0,128,128)">1000</span>@<span class="" style="color:rgb(0,128,128)">105.5</span><span class="" style="color:rgb(0,128,128)">.139</span><span class="" style="color:rgb(0,128,128)">.90</span>:<span class="" style="color:rgb(0,128,128)">30789</span>;ob&gt;</div><div><span class="" style="color:rgb(0,128,128)">01</span>-<span class="" style="color:rgb(0,128,128)">30</span> <span class="" style="color:rgb(0,128,128)">17</span>:<span class="" style="color:rgb(0,128,128)">15</span>:<span class="" style="color:rgb(0,128,128)">57.522</span>: I/System.<span class="" style="color:rgb(51,51,51);font-weight:bold">out</span>(<span class="" style="color:rgb(0,128,128)">30771</span>): Call-ID: MnJgNdYjsQsPxaxyPScBIbYydinJm9dR</div><div>01-<span class="" style="color:rgb(0,128,128)">30</span> <span class="" style="color:rgb(0,128,128)">17</span>:<span class="" style="color:rgb(0,128,128)">15</span>:<span class="" style="color:rgb(0,128,128)">57.522</span>: I/System.<span class="" style="color:rgb(51,51,51);font-weight:bold">out</span>(<span class="" style="color:rgb(0,128,128)">30771</span>): CSeq: <span class="" style="color:rgb(0,128,128)">9040</span> INVITE</div><div>01-<span class="" style="color:rgb(0,128,128)">30</span> <span class="" style="color:rgb(0,128,128)">17</span>:<span class="" style="color:rgb(0,128,128)">15</span>:<span class="" style="color:rgb(0,128,128)">57.522</span>: I/System.<span class="" style="color:rgb(51,51,51);font-weight:bold">out</span>(<span class="" style="color:rgb(0,128,128)">30771</span>): Route: &lt;sip:<span class="" style="color:rgb(0,128,128)">192.168</span><span class="" style="color:rgb(0,128,128)">.4</span><span class="" style="color:rgb(0,128,128)">.248</span>;lr&gt;</div><div><span class="" style="color:rgb(0,128,128)">01</span>-<span class="" style="color:rgb(0,128,128)">30</span> <span class="" style="color:rgb(0,128,128)">17</span>:<span class="" style="color:rgb(0,128,128)">15</span>:<span class="" style="color:rgb(0,128,128)">57.522</span>: I/System.<span class="" style="color:rgb(51,51,51);font-weight:bold">out</span>(<span class="" style="color:rgb(0,128,128)">30771</span>): Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS</div><div>01-<span class="" style="color:rgb(0,128,128)">30</span> <span class="" style="color:rgb(0,128,128)">17</span>:<span class="" style="color:rgb(0,128,128)">15</span>:<span class="" style="color:rgb(0,128,128)">57.522</span>: I/System.<span class="" style="color:rgb(51,51,51);font-weight:bold">out</span>(<span class="" style="color:rgb(0,128,128)">30771</span>): Supported: replaces, <span class="" style="color:rgb(0,128,128)">100</span>rel, timer, norefersub</div><div>01-<span class="" style="color:rgb(0,128,128)">30</span> <span class="" style="color:rgb(0,128,128)">17</span>:<span class="" style="color:rgb(0,128,128)">15</span>:<span class="" style="color:rgb(0,128,128)">57.522</span>: I/System.<span class="" style="color:rgb(51,51,51);font-weight:bold">out</span>(<span class="" style="color:rgb(0,128,128)">30771</span>): Session-Expires: <span class="" style="color:rgb(0,128,128)">1800</span></div><div><span class="" style="color:rgb(0,128,128)">01</span>-<span class="" style="color:rgb(0,128,128)">30</span> <span class="" style="color:rgb(0,128,128)">17</span>:<span class="" style="color:rgb(0,128,128)">15</span>:<span class="" style="color:rgb(0,128,128)">57.522</span>: I/System.<span class="" style="color:rgb(51,51,51);font-weight:bold">out</span>(<span class="" style="color:rgb(0,128,128)">30771</span>): Min-SE: <span class="" style="color:rgb(0,128,128)">90</span></div><div><span class="" style="color:rgb(0,128,128)">01</span>-<span class="" style="color:rgb(0,128,128)">30</span> <span class="" style="color:rgb(0,128,128)">17</span>:<span class="" style="color:rgb(0,128,128)">15</span>:<span class="" style="color:rgb(0,128,128)">57.522</span>: I/System.<span class="" style="color:rgb(51,51,51);font-weight:bold">out</span>(<span class="" style="color:rgb(0,128,128)">30771</span>): User-Agent: Pjsua2 Android <span class="" style="color:rgb(0,128,128)">2.4</span><span class="" style="color:rgb(0,128,128)">.5</span></div><div><span class="" style="color:rgb(0,128,128)">01</span>-<span class="" style="color:rgb(0,128,128)">30</span> <span class="" style="color:rgb(0,128,128)">17</span>:<span class="" style="color:rgb(0,128,128)">15</span>:<span class="" style="color:rgb(0,128,128)">57.522</span>: I/System.<span class="" style="color:rgb(51,51,51);font-weight:bold">out</span>(<span class="" style="color:rgb(0,128,128)">30771</span>): Content-Type: application/s</div></div></div><div></div></div><div><div class="" style="display:block;padding:0.5em;color:rgb(51,51,51);font-family:monospace;background:rgb(248,248,248)"><div></div></div></div><div><br></div><div>RESPONSE</div><div>====================</div><div><div></div><div><div class="hljs cs" style="display:block;overflow-x:auto;padding:0.5em;color:rgb(51,51,51);font-family:monospace;background:rgb(248,248,248)"><div><span class="hljs-number" style="color:rgb(0,128,128)">01</span>-<span class="hljs-number" style="color:rgb(0,128,128)">30</span> <span class="hljs-number" style="color:rgb(0,128,128)">17</span>:<span class="hljs-number" style="color:rgb(0,128,128)">15</span>:<span class="hljs-number" style="color:rgb(0,128,128)">58.123</span>: I/System.<span class="hljs-keyword" style="color:rgb(51,51,51);font-weight:bold">out</span>(<span class="hljs-number" style="color:rgb(0,128,128)">30771</span>): SIP/<span class="hljs-number" style="color:rgb(0,128,128)">2.0</span> <span class="hljs-number" style="color:rgb(0,128,128)">403</span> Rely forbidden</div><div>01-<span class="hljs-number" style="color:rgb(0,128,128)">30</span> <span class="hljs-number" style="color:rgb(0,128,128)">17</span>:<span class="hljs-number" style="color:rgb(0,128,128)">15</span>:<span class="hljs-number" style="color:rgb(0,128,128)">58.123</span>: I/System.<span class="hljs-keyword" style="color:rgb(51,51,51);font-weight:bold">out</span>(<span class="hljs-number" style="color:rgb(0,128,128)">30771</span>): Via: SIP/<span class="hljs-number" style="color:rgb(0,128,128)">2.0</span>/TCP <span class="hljs-number" style="color:rgb(0,128,128)">10.1</span><span class="hljs-number" style="color:rgb(0,128,128)">.4</span><span class="hljs-number" style="color:rgb(0,128,128)">.24</span>:<span class="hljs-number" style="color:rgb(0,128,128)">57232</span>;received=<span class="hljs-number" style="color:rgb(0,128,128)">105.5</span><span class="hljs-number" style="color:rgb(0,128,128)">.139</span><span class="hljs-number" style="color:rgb(0,128,128)">.90</span>;rport=<span class="hljs-number" style="color:rgb(0,128,128)">30689</span>;branch=z9hG4bKPj2Ablr3CXdtiqLbZwAwM1IY.s2phTfK3i;alias</div><div>01-<span class="hljs-number" style="color:rgb(0,128,128)">30</span> <span class="hljs-number" style="color:rgb(0,128,128)">17</span>:<span class="hljs-number" style="color:rgb(0,128,128)">15</span>:<span class="hljs-number" style="color:rgb(0,128,128)">58.123</span>: I/System.<span class="hljs-keyword" style="color:rgb(51,51,51);font-weight:bold">out</span>(<span class="hljs-number" style="color:rgb(0,128,128)">30771</span>): From: sip:<span class="hljs-number" style="color:rgb(0,128,128)">1000</span>@<span class="hljs-number" style="color:rgb(0,128,128)">192.168</span><span class="hljs-number" style="color:rgb(0,128,128)">.0</span><span class="hljs-number" style="color:rgb(0,128,128)">.46</span>;tag=SgvMtXb0KnIhW0ZDWnLxDN1tglrpAPzD</div><div>01-<span class="hljs-number" style="color:rgb(0,128,128)">30</span> <span class="hljs-number" style="color:rgb(0,128,128)">17</span>:<span class="hljs-number" style="color:rgb(0,128,128)">15</span>:<span class="hljs-number" style="color:rgb(0,128,128)">58.123</span>: I/System.<span class="hljs-keyword" style="color:rgb(51,51,51);font-weight:bold">out</span>(<span class="hljs-number" style="color:rgb(0,128,128)">30771</span>): To: sip:<span class="hljs-number" style="color:rgb(0,128,128)">1012</span>@<span class="hljs-number" style="color:rgb(0,128,128)">192.168</span><span class="hljs-number" style="color:rgb(0,128,128)">.0</span><span class="hljs-number" style="color:rgb(0,128,128)">.46</span>;tag=a0a925d2eca49498ea7382b7b1f63f38<span class="hljs-number" style="color:rgb(0,128,128)">.62</span>df</div><div>01-<span class="hljs-number" style="color:rgb(0,128,128)">30</span> <span class="hljs-number" style="color:rgb(0,128,128)">17</span>:<span class="hljs-number" style="color:rgb(0,128,128)">15</span>:<span class="hljs-number" style="color:rgb(0,128,128)">58.123</span>: I/System.<span class="hljs-keyword" style="color:rgb(51,51,51);font-weight:bold">out</span>(<span class="hljs-number" style="color:rgb(0,128,128)">30771</span>): Call-ID: MnJgNdYjsQsPxaxyPScBIbYydinJm9dR</div><div>01-<span class="hljs-number" style="color:rgb(0,128,128)">30</span> <span class="hljs-number" style="color:rgb(0,128,128)">17</span>:<span class="hljs-number" style="color:rgb(0,128,128)">15</span>:<span class="hljs-number" style="color:rgb(0,128,128)">58.123</span>: I/System.<span class="hljs-keyword" style="color:rgb(51,51,51);font-weight:bold">out</span>(<span class="hljs-number" style="color:rgb(0,128,128)">30771</span>): CSeq: <span class="hljs-number" style="color:rgb(0,128,128)">9040</span> INVITE</div><div>01-<span class="hljs-number" style="color:rgb(0,128,128)">30</span> <span class="hljs-number" style="color:rgb(0,128,128)">17</span>:<span class="hljs-number" style="color:rgb(0,128,128)">15</span>:<span class="hljs-number" style="color:rgb(0,128,128)">58.123</span>: I/System.<span class="hljs-keyword" style="color:rgb(51,51,51);font-weight:bold">out</span>(<span class="hljs-number" style="color:rgb(0,128,128)">30771</span>): Server: OpenSIPS (<span class="hljs-number" style="color:rgb(0,128,128)">2.1</span><span class="hljs-number" style="color:rgb(0,128,128)">.2</span> (x86_64/linux))</div><div><span class="hljs-number" style="color:rgb(0,128,128)">01</span>-<span class="hljs-number" style="color:rgb(0,128,128)">30</span> <span class="hljs-number" style="color:rgb(0,128,128)">17</span>:<span class="hljs-number" style="color:rgb(0,128,128)">15</span>:<span class="hljs-number" style="color:rgb(0,128,128)">58.123</span>: I/System.<span class="hljs-keyword" style="color:rgb(51,51,51);font-weight:bold">out</span>(<span class="hljs-number" style="color:rgb(0,128,128)">30771</span>): Content-Length: <span class="hljs-number" style="color:rgb(0,128,128)">0</span></div></div></div><div></div></div><div><br></div>-- <br><div class="gmail_signature">David</div>
</div></div>