[OpenSIPS-Users] SIP REGISTRATION behaves differently for LAN-based and web-based opensips

Bogdan-Andrei Iancu bogdan at opensips.org
Mon Dec 17 20:36:34 CET 2012


Hi Mark,

Add as global parameter in the script:
     alias = OpenSIPS Internet IP

Regards,
Bogdan

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com


On 12/17/2012 01:14 PM, Mark Currie wrote:
>
> Thanks Bogdan,
>
> I used "ngrep -td any . port 5060" as you suggested and I have the 
> traces below.
>
> It seems like the server doesn't recognise its own Internet IP since 
> it forwards the request on to the Internet IP.
>
> This seems like a domain/routing problem?
>
> # Changed the actual IP's to:
>
> # 1.1.1.1 - UA Internet
>
> # 2.2.2.2 - UA LAN
>
> # 8.8.8.8 - OpenSIPS LAN
>
> # 9.9.9.9 - OpenSIP Internet
>
> # UA sends REGISTER request to OpenSIPS
>
> U 2012/12/15 01:25:30.600443 1.1.1.1:38863 -> 8.8.8.8:5060
>
>   REGISTER sip:9.9.9.9 SIP/2.0..Via: SIP/2.0/UDP 2.2.2.2:38863;bra
>
>   nch=z9hG4bK6a73d3174c032ae6;rport..Contact: <sip:voip1 at 2.2.2.2:38863>
>
>   ;expires=3605..Max-Forwards: 70..To: <sip:voip1 at 9.9.9.9>..From: <sip:v
>
>   oip1 at 9.9.9.9>;tag=02ecb1450a1f0d8c..Call-ID: 4f7f21ea4025c1cd..CSeq: 9
>
>   439 REGISTER..User-Agent: custom (i386/linux)..Content-Length: 0....
>
> # OpenSIPS does not seem to recognise the REGISTER URI as its own and
>
> # therefore forwards it on to its global IP
>
> U 2012/12/15 01:25:30.600646 8.8.8.8:5060 -> 9.9.9.9:5060
>
>   REGISTER sip:9.9.9.9 SIP/2.0..Via: SIP/2.0/UDP 8.8.8.8;branch=z9hG
>
>   4bK021a.306972b5.0..Via: SIP/2.0/UDP 2.2.2.2:38863;received=1.1.1.1;
>
>   branch=z9hG4bK6a73d3174c032ae6;rport=38863..Contact: <sip:voip1 at 2.2.2.
>
>   2:38863>;expires=3605..Max-Forwards: 69..To: <sip:voip1 at 9.9.9.9>
>
>   ..From: <sip:voip1 at 9.9.9.9>;tag=02ecb1450a1f0d8c..Call-ID: 4f7f21ea402
>
>   5c1cd..CSeq: 9439 REGISTER..User-Agent: custom (i386/linux)..Conten
>
>   t-Length: 0..P-hint: outbound....
>
> # No response is received so it retries a few times and the UA also 
> retries
>
> ........
>
> # Finally OpenSIPS responds to the UA with 408
>
> U 2012/12/15 01:26:00.596426 8.8.8.8:5060 -> 1.1.1.1:38863
>
>   SIP/2.0 408 Request Timeout..Via: SIP/2.0/UDP 2.2.2.2:38863;received=
>
>   1.1.1.1;branch=z9hG4bK6a73d3174c032ae6;rport=38863..To: 
> <sip:voip1 at 9.9.9.9>
>
>   ;tag=155c340f586c28d0300cf5a6ccf90d99-1564..From: <sip:voip1 at 9.9.9.9>
>
>   ;tag=02ecb1450a1f0d8c..Call-ID: 4f7f21ea4025c1cd..CSeq: 9439 REGI
>
>   STER..Server: OpenSIPS (1.7.1-notls (i386/linux))..Content-Length: 
> 0....
>
> *From:*Bogdan-Andrei Iancu [mailto:bogdan at opensips.org]
> *Sent:* 14 December 2012 17:19
> *To:* Mark Currie; users at lists.opensips.org
> *Subject:* Re: [OpenSIPS-Users] SIP REGISTRATION behaves differently 
> for LAN-based and web-based opensips
>
> Use ngrep, like "ngrep -td any . port 5060"
>
> Regards,
>
>
> Bogdan-Andrei Iancu
> OpenSIPS Founder and Developer
> http://www.opensips-solutions.com
>
>
> On 12/14/2012 05:06 PM, Mark Currie wrote:
>
> Hi Bogdan-Andrei,
>
> 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)
>
> 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)
>
> Regards
>
> Mark Currie
>
> *From:*Bogdan-Andrei Iancu [mailto:bogdan at opensips.org]
> *Sent:* 14 December 2012 16:21
> *To:* OpenSIPS users mailling list
> *Cc:* Mark Currie
> *Subject:* Re: [OpenSIPS-Users] SIP REGISTRATION behaves differently 
> for LAN-based and web-based opensips
>
> Hi Mark,
>
> Tracing on OpenSIPS side - it is sending any reply back to the client 
> (to the registration request) ?
>
> Also, who is generating the 408 reply ?
>
> Regards,
>
>
> Bogdan-Andrei Iancu
> OpenSIPS Founder and Developer
> http://www.opensips-solutions.com
>
>
> On 12/14/2012 12:37 PM, Mark Currie wrote:
>
> 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".
>
> 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.
>
> My LAN uri looks like <sip:voip1:password at 192.168.1.30>
>
> My Internet uri is the same except that the IP address is the Internet 
> server's IP address.
>
> 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?
>
> Best regards
>
> Mark Currie
>
>   
>   
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org  <mailto:Users at lists.opensips.org>
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20121217/ed88114a/attachment-0001.htm>


More information about the Users mailing list