<!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">
<tt>Hi Mark,<br>
<br>
Add as global parameter in the script:<br>
alias = OpenSIPS Internet IP<br>
<br>
Regards,<br>
Bogdan<br>
<br>
</tt>
<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>
<br>
On 12/17/2012 01:14 PM, Mark Currie wrote:
<blockquote cite="mid:000001cddc36$f0881fd0$d1985f70$@ziliant.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta name="Generator" content="Microsoft Word 14 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
tt
        {mso-style-priority:99;
        font-family:"Courier New";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";
        color:black;
        mso-fareast-language:EN-US;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:36.0pt;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;
        mso-fareast-language:EN-US;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;}
span.EmailStyle21
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle22
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";
        color:black;
        mso-fareast-language:EN-US;}
span.EmailStyle25
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><tt><span style="font-size: 10pt;">Thanks
Bogdan,<o:p></o:p></span></tt></p>
<p class="MsoNormal"><tt><span style="font-size: 10pt;"><o:p> </o:p></span></tt></p>
<p class="MsoNormal"><tt><span style="font-size: 10pt;">I used
“ngrep -td any . port 5060” as you suggested and I have
the traces below.<o:p></o:p></span></tt></p>
<p class="MsoNormal"><tt><span style="font-size: 10pt;"><o:p> </o:p></span></tt></p>
<p class="MsoNormal"><tt><span style="font-size: 10pt;">It seems
like the server doesn’t recognise its own Internet IP
since it forwards the request on to the Internet IP.<o:p></o:p></span></tt></p>
<p class="MsoNormal"><tt><span style="font-size: 10pt;"><o:p> </o:p></span></tt></p>
<p class="MsoNormal"><tt><span style="font-size: 10pt;">This
seems like a domain/routing problem?<o:p></o:p></span></tt></p>
<p class="MsoNormal"><tt><span style="font-size: 10pt;"><o:p> </o:p></span></tt></p>
<p class="MsoNormal"><tt><span style="font-size: 10pt;"><o:p> </o:p></span></tt></p>
<p class="MsoNormal"><span style="font-family: "Courier
New"; color: rgb(31, 73, 125);"># Changed the actual
IP’s to:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family: "Courier
New"; color: rgb(31, 73, 125);"># 1.1.1.1 - UA Internet<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family: "Courier
New"; color: rgb(31, 73, 125);"># 2.2.2.2 - UA LAN<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family: "Courier
New"; color: rgb(31, 73, 125);"># 8.8.8.8 - OpenSIPS
LAN<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family: "Courier
New"; color: rgb(31, 73, 125);"># 9.9.9.9 - OpenSIP
Internet<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family: "Courier
New"; color: rgb(31, 73, 125);"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family: "Courier
New"; color: rgb(31, 73, 125);"># UA sends REGISTER
request to OpenSIPS<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family: "Courier
New"; color: rgb(31, 73, 125);">U 2012/12/15
01:25:30.600443 1.1.1.1:38863 -> 8.8.8.8:5060<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family: "Courier
New"; color: rgb(31, 73, 125);"> REGISTER <a class="moz-txt-link-freetext" href="sip:9.9.9.9">sip:9.9.9.9</a>
SIP/2.0..Via: SIP/2.0/UDP 2.2.2.2:38863;bra<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family: "Courier
New"; color: rgb(31, 73, 125);">
nch=z9hG4bK6a73d3174c032ae6;rport..Contact:
<a class="moz-txt-link-rfc2396E" href="sip:voip1@2.2.2.2:38863"><sip:voip1@2.2.2.2:38863></a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family: "Courier
New"; color: rgb(31, 73, 125);">
;expires=3605..Max-Forwards: 70..To:
<a class="moz-txt-link-rfc2396E" href="sip:voip1@9.9.9.9"><sip:voip1@9.9.9.9></a>..From: <<a class="moz-txt-link-freetext" href="sip:v">sip:v</a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family: "Courier
New"; color: rgb(31, 73, 125);">
<a class="moz-txt-link-abbreviated" href="mailto:oip1@9.9.9.9">oip1@9.9.9.9</a>>;tag=02ecb1450a1f0d8c..Call-ID:
4f7f21ea4025c1cd..CSeq: 9<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family: "Courier
New"; color: rgb(31, 73, 125);"> 439
REGISTER..User-Agent: custom (i386/linux)..Content-Length:
0....<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family: "Courier
New"; color: rgb(31, 73, 125);">
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family: "Courier
New"; color: rgb(31, 73, 125);"># OpenSIPS does not
seem to recognise the REGISTER URI as its own and<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family: "Courier
New"; color: rgb(31, 73, 125);"># therefore forwards it
on to its global IP<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family: "Courier
New"; color: rgb(31, 73, 125);">U 2012/12/15
01:25:30.600646 8.8.8.8:5060 -> 9.9.9.9:5060<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family: "Courier
New"; color: rgb(31, 73, 125);"> REGISTER <a class="moz-txt-link-freetext" href="sip:9.9.9.9">sip:9.9.9.9</a>
SIP/2.0..Via: SIP/2.0/UDP 8.8.8.8;branch=z9hG<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family: "Courier
New"; color: rgb(31, 73, 125);">
4bK021a.306972b5.0..Via: SIP/2.0/UDP
2.2.2.2:38863;received=1.1.1.1;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family: "Courier
New"; color: rgb(31, 73, 125);">
branch=z9hG4bK6a73d3174c032ae6;rport=38863..Contact:
<<a class="moz-txt-link-freetext" href="sip:voip1@2.2.2">sip:voip1@2.2.2</a>.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family: "Courier
New"; color: rgb(31, 73, 125);">
2:38863>;expires=3605..Max-Forwards: 69..To:
<a class="moz-txt-link-rfc2396E" href="sip:voip1@9.9.9.9"><sip:voip1@9.9.9.9></a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family: "Courier
New"; color: rgb(31, 73, 125);"> ..From:
<a class="moz-txt-link-rfc2396E" href="sip:voip1@9.9.9.9"><sip:voip1@9.9.9.9></a>;tag=02ecb1450a1f0d8c..Call-ID:
4f7f21ea402<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family: "Courier
New"; color: rgb(31, 73, 125);"> 5c1cd..CSeq: 9439
REGISTER..User-Agent: custom (i386/linux)..Conten<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family: "Courier
New"; color: rgb(31, 73, 125);"> t-Length: 0..P-hint:
outbound.... <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family: "Courier
New"; color: rgb(31, 73, 125);"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family: "Courier
New"; color: rgb(31, 73, 125);"># No response is
received so it retries a few times and the UA also retries<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family: "Courier
New"; color: rgb(31, 73, 125);">........
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family: "Courier
New"; color: rgb(31, 73, 125);"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family: "Courier
New"; color: rgb(31, 73, 125);"># Finally OpenSIPS
responds to the UA with 408<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family: "Courier
New"; color: rgb(31, 73, 125);">U 2012/12/15
01:26:00.596426 8.8.8.8:5060 -> 1.1.1.1:38863<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family: "Courier
New"; color: rgb(31, 73, 125);"> SIP/2.0 408 Request
Timeout..Via: SIP/2.0/UDP 2.2.2.2:38863;received=<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family: "Courier
New"; color: rgb(31, 73, 125);">
1.1.1.1;branch=z9hG4bK6a73d3174c032ae6;rport=38863..To:
<a class="moz-txt-link-rfc2396E" href="sip:voip1@9.9.9.9"><sip:voip1@9.9.9.9></a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family: "Courier
New"; color: rgb(31, 73, 125);">
;tag=155c340f586c28d0300cf5a6ccf90d99-1564..From:
<a class="moz-txt-link-rfc2396E" href="sip:voip1@9.9.9.9"><sip:voip1@9.9.9.9></a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family: "Courier
New"; color: rgb(31, 73, 125);">
;tag=02ecb1450a1f0d8c..Call-ID: 4f7f21ea4025c1cd..CSeq: 9439
REGI<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family: "Courier
New"; color: rgb(31, 73, 125);"> STER..Server:
OpenSIPS (1.7.1-notls (i386/linux))..Content-Length: 0....
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"><o:p> </o:p></span></p>
<div style="border-width: medium medium medium 1.5pt;
border-style: none none none solid; border-color:
-moz-use-text-color -moz-use-text-color -moz-use-text-color
blue; padding: 0cm 0cm 0cm 4pt;">
<div>
<div style="border-right: medium none; 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 0cm 0cm;">
<p class="MsoNormal"><b><span style="font-size: 10pt;
font-family:
"Tahoma","sans-serif"; color:
windowtext;" lang="EN-US">From:</span></b><span
style="font-size: 10pt; font-family:
"Tahoma","sans-serif"; color:
windowtext;" lang="EN-US"> Bogdan-Andrei Iancu
[<a class="moz-txt-link-freetext" href="mailto:bogdan@opensips.org">mailto:bogdan@opensips.org</a>] <br>
<b>Sent:</b> 14 December 2012 17:19<br>
<b>To:</b> Mark Currie; <a class="moz-txt-link-abbreviated" href="mailto:users@lists.opensips.org">users@lists.opensips.org</a><br>
<b>Subject:</b> Re: [OpenSIPS-Users] SIP REGISTRATION
behaves differently for LAN-based and web-based
opensips<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><tt><span style="font-size: 10pt;">Use
ngrep, like "ngrep -td any . port 5060"</span></tt><span
style="font-size: 10pt; font-family: "Courier
New";"><br>
<br>
<tt>Regards,</tt><br>
<br>
<br>
</span><o:p></o:p></p>
<pre>Bogdan-Andrei Iancu<o:p></o:p></pre>
<pre>OpenSIPS Founder and Developer<o:p></o:p></pre>
<pre><a moz-do-not-send="true" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a><o:p></o:p></pre>
<p class="MsoNormal"><br>
On 12/14/2012 05:06 PM, Mark Currie wrote: <o:p></o:p></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">Hi
Bogdan-Andrei,</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">My
server is Ubuntu 10.04 (console-only) so I can’t run
wireshark there, but if I run OpenSIPS in monitor mode I
can see when a request is received. The log also shows
this, but it doesn’t give you any more information (just
that it received the request)</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">About
a minute later I see the 408 reply (using wireshark) on
the client-side, so I know that the OpenSIPS server got a
request (because the client received the reply)</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">Regards</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">Mark
Currie</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> </span><o:p></o:p></p>
<div style="border-width: medium medium medium 1.5pt;
border-style: none none none solid; padding: 0cm 0cm 0cm
4pt; border-color: -moz-use-text-color -moz-use-text-color
-moz-use-text-color blue;">
<div>
<div style="border-right: medium none; border-width: 1pt
medium medium; border-style: solid none none; padding:
3pt 0cm 0cm; border-color: -moz-use-text-color;">
<p class="MsoNormal"><b><span style="font-size: 10pt;
font-family:
"Tahoma","sans-serif"; color:
windowtext;" lang="EN-US">From:</span></b><span
style="font-size: 10pt; font-family:
"Tahoma","sans-serif"; color:
windowtext;" lang="EN-US"> Bogdan-Andrei Iancu [<a
moz-do-not-send="true"
href="mailto:bogdan@opensips.org">mailto:bogdan@opensips.org</a>]
<br>
<b>Sent:</b> 14 December 2012 16:21<br>
<b>To:</b> OpenSIPS users mailling list<br>
<b>Cc:</b> Mark Currie<br>
<b>Subject:</b> Re: [OpenSIPS-Users] SIP
REGISTRATION behaves differently for LAN-based and
web-based opensips</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"><tt><span style="font-size: 10pt;">Hi
Mark,</span></tt><span style="font-size: 10pt;
font-family: "Courier New";"><br>
<br>
<tt>Tracing on OpenSIPS side - it is sending any reply
back to the client (to the registration request) ?</tt><br>
<br>
<tt>Also, who is generating the 408 reply ?</tt><br>
<br>
<tt>Regards,</tt><br>
<br>
<br>
</span><o:p></o:p></p>
<pre>Bogdan-Andrei Iancu<o:p></o:p></pre>
<pre>OpenSIPS Founder and Developer<o:p></o:p></pre>
<pre><a moz-do-not-send="true" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a><o:p></o:p></pre>
<p class="MsoNormal"><br>
On 12/14/2012 12:37 PM, Mark Currie wrote: <o:p></o:p></p>
<p class="MsoNormal">I have a test setup with two VoIP
clients using OpenSIPS on a LAN and it works fine i.e. I
can make calls. However, when I move the server onto the
Internet the SIP REGISTER request fails with “408 Request
Timeout”.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">I know that the Internet server gets
the SIP request as I can see the transaction counter
increment using opensips monitor. The client also gets the
408 response so it can’t be a NAT/Firewall problem.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">My LAN uri looks like <<a
moz-do-not-send="true"
href="sip:voip1:password@192.168.1.30">sip:voip1:password@192.168.1.30</a>><o:p></o:p></p>
<p class="MsoNormal">My Internet uri is the same except that
the IP address is the Internet server’s IP address.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Could it be something to do with the
fact that I am simply using the SIP server IP address in
the REGISTER message instead of a domain name?<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Best regards<o:p></o:p></p>
<p class="MsoNormal">Mark Currie<o:p></o:p></p>
<pre> <o:p></o:p></pre>
<pre> <o:p></o:p></pre>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>Users mailing list<o:p></o:p></pre>
<pre><a moz-do-not-send="true" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><o:p></o:p></pre>
<pre><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><o:p></o:p></pre>
</div>
</div>
</div>
</blockquote>
</body>
</html>