<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
David,<br>
<br>
Your opensips cfg is bogus - the test for the presence of username
in RURI should not be done for a REGISTER requests (as they do not
have a username part).<br>
<br>
Where have you taken the script from ? have you changed it by
yourself ?<br>
<br>
Regards,<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>
<div class="moz-cite-prefix">On 01.02.2016 15:06, David Wafula
wrote:<br>
</div>
<blockquote
cite="mid:CAK9Ws2cPZ6pq0dPoeqdtbfm-njgLd2g=QPrvs21B4PxRx_quLg@mail.gmail.com"
type="cite">
<div dir="ltr">Thank you Bogdan. Ok i made the alias change, and
now am getting "Address Incomplete" reply. Please see the log
below, am not sure what could be now causing this:
<div><br>
</div>
<div>REQUEST</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)">02</span>-<span
class="hljs-number" style="color:rgb(0,128,128)">01</span>
<span class="hljs-number" style="color:rgb(0,128,128)">14</span>:<span
class="hljs-number" style="color:rgb(0,128,128)">58</span>:<span
class="hljs-number" style="color:rgb(0,128,128)">53.144</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)">14726</span>):
REGISTER sip:<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>
SIP/<span class="hljs-number"
style="color:rgb(0,128,128)">2.0</span></div>
<div><span class="hljs-number"
style="color:rgb(0,128,128)">02</span>-<span
class="hljs-number" style="color:rgb(0,128,128)">01</span>
<span class="hljs-number" style="color:rgb(0,128,128)">14</span>:<span
class="hljs-number" style="color:rgb(0,128,128)">58</span>:<span
class="hljs-number" style="color:rgb(0,128,128)">53.144</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)">14726</span>):
Via: SIP/<span class="hljs-number"
style="color:rgb(0,128,128)">2.0</span>/UDP <span
class="hljs-number" style="color:rgb(0,128,128)">10.0</span><span
class="hljs-number" style="color:rgb(0,128,128)">.1</span><span
class="hljs-number" style="color:rgb(0,128,128)">.175</span>:<span
class="hljs-number" style="color:rgb(0,128,128)">30802</span>;rport;branch=z9hG4bKPjGfzHRCN4S.QyGFhBBv9njI9Amj2oU7ko</div>
<div>02-<span class="hljs-number"
style="color:rgb(0,128,128)">01</span> <span
class="hljs-number" style="color:rgb(0,128,128)">14</span>:<span
class="hljs-number" style="color:rgb(0,128,128)">58</span>:<span
class="hljs-number" style="color:rgb(0,128,128)">53.144</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)">14726</span>):
Route: <sip:<span class="hljs-number"
style="color:rgb(0,128,128)">192.168</span><span
class="hljs-number" style="color:rgb(0,128,128)">.4</span><span
class="hljs-number" style="color:rgb(0,128,128)">.248</span>;lr></div>
<div><span class="hljs-number"
style="color:rgb(0,128,128)">02</span>-<span
class="hljs-number" style="color:rgb(0,128,128)">01</span>
<span class="hljs-number" style="color:rgb(0,128,128)">14</span>:<span
class="hljs-number" style="color:rgb(0,128,128)">58</span>:<span
class="hljs-number" style="color:rgb(0,128,128)">53.144</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)">14726</span>):
Max-Forwards: <span class="hljs-number"
style="color:rgb(0,128,128)">70</span></div>
<div><span class="hljs-number"
style="color:rgb(0,128,128)">02</span>-<span
class="hljs-number" style="color:rgb(0,128,128)">01</span>
<span class="hljs-number" style="color:rgb(0,128,128)">14</span>:<span
class="hljs-number" style="color:rgb(0,128,128)">58</span>:<span
class="hljs-number" style="color:rgb(0,128,128)">53.144</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)">14726</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=eNVm<span
class="hljs-number" style="color:rgb(0,128,128)">.45</span>KTH3OkXAjSikua1cwsZ.XdeRE</div>
<div>02-<span class="hljs-number"
style="color:rgb(0,128,128)">01</span> <span
class="hljs-number" style="color:rgb(0,128,128)">14</span>:<span
class="hljs-number" style="color:rgb(0,128,128)">58</span>:<span
class="hljs-number" style="color:rgb(0,128,128)">53.144</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)">14726</span>):
To: <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>></div>
<div><span class="hljs-number"
style="color:rgb(0,128,128)">02</span>-<span
class="hljs-number" style="color:rgb(0,128,128)">01</span>
<span class="hljs-number" style="color:rgb(0,128,128)">14</span>:<span
class="hljs-number" style="color:rgb(0,128,128)">58</span>:<span
class="hljs-number" style="color:rgb(0,128,128)">53.144</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)">14726</span>):
Call-ID: <span class="hljs-number"
style="color:rgb(0,128,128)">9</span>TVBTDFtUPz05axr9qvyynhFWhJetb6m</div>
<div>02-<span class="hljs-number"
style="color:rgb(0,128,128)">01</span> <span
class="hljs-number" style="color:rgb(0,128,128)">14</span>:<span
class="hljs-number" style="color:rgb(0,128,128)">58</span>:<span
class="hljs-number" style="color:rgb(0,128,128)">53.144</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)">14726</span>):
CSeq: <span class="hljs-number"
style="color:rgb(0,128,128)">64838</span> REGISTER</div>
<div>02-<span class="hljs-number"
style="color:rgb(0,128,128)">01</span> <span
class="hljs-number" style="color:rgb(0,128,128)">14</span>:<span
class="hljs-number" style="color:rgb(0,128,128)">58</span>:<span
class="hljs-number" style="color:rgb(0,128,128)">53.144</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)">14726</span>):
User-Agent: Pjsua2 Android <span class="hljs-number"
style="color:rgb(0,128,128)">2.4</span><span
class="hljs-number" style="color:rgb(0,128,128)">.5</span></div>
<div><span class="hljs-number"
style="color:rgb(0,128,128)">02</span>-<span
class="hljs-number" style="color:rgb(0,128,128)">01</span>
<span class="hljs-number" style="color:rgb(0,128,128)">14</span>:<span
class="hljs-number" style="color:rgb(0,128,128)">58</span>:<span
class="hljs-number" style="color:rgb(0,128,128)">53.144</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)">14726</span>):
Contact: <sip:<span class="hljs-number"
style="color:rgb(0,128,128)">1000</span>@<span
class="hljs-number" style="color:rgb(0,128,128)">10.0</span><span
class="hljs-number" style="color:rgb(0,128,128)">.1</span><span
class="hljs-number" style="color:rgb(0,128,128)">.175</span>:<span
class="hljs-number" style="color:rgb(0,128,128)">34708</span>;ob></div>
<div><span class="hljs-number"
style="color:rgb(0,128,128)">02</span>-<span
class="hljs-number" style="color:rgb(0,128,128)">01</span>
<span class="hljs-number" style="color:rgb(0,128,128)">14</span>:<span
class="hljs-number" style="color:rgb(0,128,128)">58</span>:<span
class="hljs-number" style="color:rgb(0,128,128)">53.144</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)">14726</span>):
Expires: <span class="hljs-number"
style="color:rgb(0,128,128)">300</span></div>
<div><span class="hljs-number"
style="color:rgb(0,128,128)">02</span>-<span
class="hljs-number" style="color:rgb(0,128,128)">01</span>
<span class="hljs-number" style="color:rgb(0,128,128)">14</span>:<span
class="hljs-number" style="color:rgb(0,128,128)">58</span>:<span
class="hljs-number" style="color:rgb(0,128,128)">53.144</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)">14726</span>):
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO,
SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS</div>
<div>02-<span class="hljs-number"
style="color:rgb(0,128,128)">01</span> <span
class="hljs-number" style="color:rgb(0,128,128)">14</span>:<span
class="hljs-number" style="color:rgb(0,128,128)">58</span>:<span
class="hljs-number" style="color:rgb(0,128,128)">53.144</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)">14726</span>):
Content-Length: <span class="hljs-number"
style="color:rgb(0,128,128)">0</span></div>
<div><span class="hljs-number"
style="color:rgb(0,128,128)">02</span>-<span
class="hljs-number" style="color:rgb(0,128,128)">01</span>
<span class="hljs-number" style="color:rgb(0,128,128)">14</span>:<span
class="hljs-number" style="color:rgb(0,128,128)">58</span>:<span
class="hljs-number" style="color:rgb(0,128,128)">53.144</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)">14726</span>): </div>
<div><span class="hljs-number"
style="color:rgb(0,128,128)">02</span>-<span
class="hljs-number" style="color:rgb(0,128,128)">01</span>
<span class="hljs-number" style="color:rgb(0,128,128)">14</span>:<span
class="hljs-number" style="color:rgb(0,128,128)">58</span>:<span
class="hljs-number" style="color:rgb(0,128,128)">53.144</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)">14726</span>):
--end msg--</div>
<div><br>
</div>
<div>REPLY</div>
<div>=============</div>
<div><br>
</div>
<div><br>
</div>
<div><span class="hljs-number"
style="color:rgb(0,128,128)">02</span>-<span
class="hljs-number" style="color:rgb(0,128,128)">01</span>
<span class="hljs-number" style="color:rgb(0,128,128)">14</span>:<span
class="hljs-number" style="color:rgb(0,128,128)">58</span>:<span
class="hljs-number" style="color:rgb(0,128,128)">53.585</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)">14726</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)">484</span>
Address Incomplete</div>
<div>02-<span class="hljs-number"
style="color:rgb(0,128,128)">01</span> <span
class="hljs-number" style="color:rgb(0,128,128)">14</span>:<span
class="hljs-number" style="color:rgb(0,128,128)">58</span>:<span
class="hljs-number" style="color:rgb(0,128,128)">53.585</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)">14726</span>):
Via: SIP/<span class="hljs-number"
style="color:rgb(0,128,128)">2.0</span>/UDP <span
class="hljs-number" style="color:rgb(0,128,128)">10.0</span><span
class="hljs-number" style="color:rgb(0,128,128)">.1</span><span
class="hljs-number" style="color:rgb(0,128,128)">.175</span>:<span
class="hljs-number" style="color:rgb(0,128,128)">30802</span>;received=<span
class="hljs-number" style="color:rgb(0,128,128)">10.0</span><span
class="hljs-number" style="color:rgb(0,128,128)">.1</span><span
class="hljs-number" style="color:rgb(0,128,128)">.175</span>;rport=<span
class="hljs-number" style="color:rgb(0,128,128)">30802</span>;branch=z9hG4bKPjGfzHRCN4S.QyGFhBBv9njI9Amj2oU7ko</div>
<div>02-<span class="hljs-number"
style="color:rgb(0,128,128)">01</span> <span
class="hljs-number" style="color:rgb(0,128,128)">14</span>:<span
class="hljs-number" style="color:rgb(0,128,128)">58</span>:<span
class="hljs-number" style="color:rgb(0,128,128)">53.585</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)">14726</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=eNVm<span
class="hljs-number" style="color:rgb(0,128,128)">.45</span>KTH3OkXAjSikua1cwsZ.XdeRE</div>
<div>02-<span class="hljs-number"
style="color:rgb(0,128,128)">01</span> <span
class="hljs-number" style="color:rgb(0,128,128)">14</span>:<span
class="hljs-number" style="color:rgb(0,128,128)">58</span>:<span
class="hljs-number" style="color:rgb(0,128,128)">53.585</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)">14726</span>):
To: <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=a0a925d2eca49498ea7382b7b1f63f38.d365</div>
<div>02-<span class="hljs-number"
style="color:rgb(0,128,128)">01</span> <span
class="hljs-number" style="color:rgb(0,128,128)">14</span>:<span
class="hljs-number" style="color:rgb(0,128,128)">58</span>:<span
class="hljs-number" style="color:rgb(0,128,128)">53.585</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)">14726</span>):
Call-ID: <span class="hljs-number"
style="color:rgb(0,128,128)">9</span>TVBTDFtUPz05axr9qvyynhFWhJetb6m</div>
<div>02-<span class="hljs-number"
style="color:rgb(0,128,128)">01</span> <span
class="hljs-number" style="color:rgb(0,128,128)">14</span>:<span
class="hljs-number" style="color:rgb(0,128,128)">58</span>:<span
class="hljs-number" style="color:rgb(0,128,128)">53.585</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)">14726</span>):
CSeq: <span class="hljs-number"
style="color:rgb(0,128,128)">64838</span> REGISTER</div>
<div>02-<span class="hljs-number"
style="color:rgb(0,128,128)">01</span> <span
class="hljs-number" style="color:rgb(0,128,128)">14</span>:<span
class="hljs-number" style="color:rgb(0,128,128)">58</span>:<span
class="hljs-number" style="color:rgb(0,128,128)">53.585</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)">14726</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)">02</span>-<span
class="hljs-number" style="color:rgb(0,128,128)">01</span>
<span class="hljs-number" style="color:rgb(0,128,128)">14</span>:<span
class="hljs-number" style="color:rgb(0,128,128)">58</span>:<span
class="hljs-number" style="color:rgb(0,128,128)">53.585</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)">14726</span>):
Content-Length: <span class="hljs-number"
style="color:rgb(0,128,128)">0</span></div>
</div>
</div>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Mon, Feb 1, 2016 at 1:07 PM,
Bogdan-Andrei Iancu <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:bogdan@opensips.org"
target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:bogdan@opensips.org">bogdan@opensips.org</a></a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"> <tt>Hi David,<br>
<br>
I see. The problem is all the SIP traffic contains
references to this </tt><tt>192.168.0.46, but opensips
has no idea how to handle consider this IP (like local
or foreign domain).<br>
<br>
It should handle it as local domain, so add in your cfg:<br>
alias="</tt><tt>192.168.0.46"<br>
<br>
Regards,<br>
</tt><span class="">
<pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a moz-do-not-send="true" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
</span>
<div>
<div class="h5">
<div>On 01.02.2016 12:21, David Wafula wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Hi Bogdan,
<div>OpenSips is listening on 192.168.4.248, which
running in totally different network from
freeswitch. Freeswitch is running on
192.168.0.46. </div>
<div>And, my test user <a moz-do-not-send="true"
href="mailto:1000@192.168.0.46"
target="_blank">1000@192.168.0.46</a>, is
created on freeswitch. I do not have any local
users on opensips at this stage.</div>
<div><br>
</div>
<div>Regards.</div>
<div><br>
</div>
<div><span
style="font-family:monospace;font-size:10.4px;color:rgb(0,128,128);background-color:rgb(248,248,248)"> </span></div>
<div><br>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Mon, Feb 1, 2016 at
11:48 AM, Bogdan-Andrei Iancu <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:bogdan@opensips.org"
target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:bogdan@opensips.org">bogdan@opensips.org</a></a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0
0 0 .8ex;border-left:1px #ccc
solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"> <tt>Hi
David,<br>
<br>
The "relay forbidden" case happens when
neither the FROM URI, nor the request URI
contain a SIP domain served/local to
OpenSIPS. In your case I see that the
INVITE has in FROM and RURI the
192.168.0.46 SIP domain. Is your OpenSIPS
actually listening on this IP ?<br>
<br>
Regards,<br>
</tt>
<pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a moz-do-not-send="true" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
<div>
<div>
<div>On 30.01.2016 17:25, David Wafula
wrote:<br>
</div>
</div>
</div>
<blockquote type="cite">
<div>
<div>
<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("403","Rely
forbidden");<br>
</div>
<div><br>
</div>
<div><br>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</blockquote>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</blockquote>
<br>
</body>
</html>