logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

SIP_CallOut Check NAT
btking
#1 Posted : Wednesday, December 14, 2011 11:34:48 AM(UTC)
Rank: Member

Groups: Member
Joined: 11/22/2011(UTC)
Posts: 20
Points: 60

Hi,Guys!

I found that SIP_CallOut worked only when computer connected to the Internet.

If I make it in LAN(local area network), InitStack will send error information at "m_pUPnP = new UPnP_NAT_Client();".

Can someone told me how to let SIP_CallOut check network is in LAN or NAT?
ivx
#2 Posted : Wednesday, December 14, 2011 11:59:25 AM(UTC)
Rank: Administration

Groups: Administration
Joined: 9/15/2006(UTC)
Posts: 1,946
Points: 5,711
Man
Location: Estonia

Was thanked: 68 time(s) in 68 post(s)

If you connec to LAN proxy, it should work(NAT handling skipped for LAN ip), otherwise NAT handling must be done.
btking
#3 Posted : Monday, December 19, 2011 3:43:14 AM(UTC)
Rank: Member

Groups: Member
Joined: 11/22/2011(UTC)
Posts: 20
Points: 60

But I tried that if I connected to LAN and didn't input the gateway ip of network connections many times, NAT won't skipped for it.

Every time m_pUPnP = new UPnP_NAT_Client() in Get NAT handling method when InitStack will send error information that value mustn't be null, parameter: ip.

My computer's ip is 192.168.9.30, Netmask is 255.255.255.0

Freeswitch's ip is 192.168.9.60, Netmask is 255.255.255.0
ivx
#4 Posted : Tuesday, December 20, 2011 8:44:24 AM(UTC)
Rank: Administration

Groups: Administration
Joined: 9/15/2006(UTC)
Posts: 1,946
Points: 5,711
Man
Location: Estonia

Was thanked: 68 time(s) in 68 post(s)

Post exact stack trace.
btking
#5 Posted : Tuesday, February 07, 2012 11:12:49 AM(UTC)
Rank: Member

Groups: Member
Joined: 11/22/2011(UTC)
Posts: 20
Points: 60

m_pUPnP = new UPnP_NAT_Client() in Init_Stack method is happened

System.NullReferenceException
Message=Object reference not set to an instance of an object
Source=LumiSoft.Net
StackTrace:
In LumiSoft.Net.UPnP.UPnP_Device.Init(String url)
Address E:\LumiSoft\Net\Net\UPnP\UPnP_Device.cs:Line 56
InnerException:
btking
#6 Posted : Tuesday, February 07, 2012 11:20:41 AM(UTC)
Rank: Member

Groups: Member
Joined: 11/22/2011(UTC)
Posts: 20
Points: 60

My computer is in Lan.

ip: 172.16.49.194

netmask: 255.255.255.0

dhcp server: 192.168.0.1

dns: 61.128.192.68

I use SIP_CallOut to call the other sipphone in another computer that ip is 172.16.49.227 and other parameters is the same with mine
ivx
#7 Posted : Tuesday, February 07, 2012 2:09:07 PM(UTC)
Rank: Administration

Groups: Administration
Joined: 9/15/2006(UTC)
Posts: 1,946
Points: 5,711
Man
Location: Estonia

Was thanked: 68 time(s) in 68 post(s)

Do you run code in debug mode ?

Also stack trace is not full stack trace ... .
btking
#8 Posted : Wednesday, February 08, 2012 3:28:56 AM(UTC)
Rank: Member

Groups: Member
Joined: 11/22/2011(UTC)
Posts: 20
Points: 60

I run code in debug mode.

But m_pUPnP = new UPnP_NAT_Client() didn't report error everytime.
ivx
#9 Posted : Wednesday, February 08, 2012 8:17:42 AM(UTC)
Rank: Administration

Groups: Administration
Joined: 9/15/2006(UTC)
Posts: 1,946
Points: 5,711
Man
Location: Estonia

Was thanked: 68 time(s) in 68 post(s)

I looked all code seems ti be in try catch, so debug mode probably catches ObjectReferenceNull exception.
This expetion probably raises because for some reason your router gives invalid response for UPnP.
btking
#10 Posted : Wednesday, February 08, 2012 10:52:42 AM(UTC)
Rank: Member

Groups: Member
Joined: 11/22/2011(UTC)
Posts: 20
Points: 60

Thanks.

I found that there's no error when I run SIP_CallOut.exe directly.

But I have another problem, and I hope you can do me a favor.

I'll post a topic.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF 1.9.5.5 | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.053 seconds.