Sazzad
2012-Aug-09 20:12 UTC
[asterisk-users] Asterisk on Rackspace, My SIP phone behind NAT
Hi, I've successfully setup Asterisk on my local PC and can make call using Twinkle to the server. But, I cannot call to my Asterisk server at Rackspace. I have been trying several things to figure it out, no luck. My PC is behind NAT, so I've set that up in sip.conf (nat=yes). I can ping my Rackspace server so it seems to be Public-static IP. Anyway, I tried with setting externip, netmask etc. No luck. Recently I tried out two things. Sending UDP packets with python scripts, with a client on my PC and a server on Rackspace. I cannot receive any packets. As far as I remember, I can send TCP packets using nc, with client and server at both ends. But when I use UDP switch I don't get anything. My question is how can I troubleshoot this scenario? (Is this question within the scope of this mailing list?) -- Sincerely, Sazzad Bin Kamal -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20120810/45ffa79a/attachment.htm>
SamyGo
2012-Aug-10 05:04 UTC
[asterisk-users] Asterisk on Rackspace, My SIP phone behind NAT
Hi, Asterisk is quite good with resolving the NAT issues specially the kind of issue you are facing ,as I see it, shouldn't be a problem. A few steps you can troubleshoot this problem. 1-a:Are your SIP packets from PC/SoftPhone reaching the server !! On Asterisk CLI execute "*CLI>sip set debug on" - are you even able to ping your server. 1-b: check if you've iptables ON on your server? "iptables -L" if its ON then you just flush it "iptables -F" and then see packets reaching your server ! 2- If packets are reaching , do your phone registers successfully ? or it becomes unreachable soon after it says it is registered on asterisk console ? 3- If your phone registers successfully and you are able to make calls, but unfortunately calls drop after 30 seconds, then your asterisk maybe sending packets back to your Private LAN IP directly (which of course won't ever go anywhere) . then "externip" and "localnet" settings will help you. These basic steps should get you rolling. BR Sammy On Fri, Aug 10, 2012 at 1:12 AM, Sazzad <sazzadbinkamal at gmail.com> wrote:> Hi, > > I've successfully setup Asterisk on my local PC and can make call using > Twinkle to the server. But, I cannot call to my Asterisk server at > Rackspace. I have been trying several things to figure it out, no luck. My > PC is behind NAT, so I've set that up in sip.conf (nat=yes). I can ping my > Rackspace server so it seems to be Public-static IP. Anyway, I tried with > setting externip, netmask etc. No luck. > > Recently I tried out two things. Sending UDP packets with python scripts, > with a client on my PC and a server on Rackspace. I cannot receive any > packets. As far as I remember, I can send TCP packets using nc, with client > and server at both ends. But when I use UDP switch I don't get anything. > > My question is how can I troubleshoot this scenario? (Is this question > within the scope of this mailing list?) > > -- > Sincerely, > Sazzad Bin Kamal > > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20120810/2512581e/attachment.htm>
Sazzad
2012-Aug-10 07:42 UTC
[asterisk-users] Asterisk on Rackspace, My SIP phone behind NAT
> > 1-a:Are your SIP packets from PC/SoftPhone reaching the server !! On > Asterisk CLI execute "*CLI>sip set debug on" > > Yeah I've done that, and no UDP packets are reaching my Asterisk serverand neither I can catch any UDP packets at my server using nc -u. - are you even able to ping> your server. > > Yes.1-b: check if you've iptables ON on your server? "iptables -L" if its ON> then you just flush it "iptables -F" and then see packets reaching your > server ! > > There is current no rule as I can see from the output. Why should I needto configure iptables, anyway? I've read this<http://www.linuxjournal.com/article/9399>, it mentions iptables to handle something related to RTP packets. But I can't even get any UDP packets. Thanks for your reply. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20120810/84135e41/attachment.htm>
A J Stiles
2012-Aug-10 08:10 UTC
[asterisk-users] Asterisk on Rackspace, My SIP phone behind NAT
On Thursday 09 August 2012, Sazzad wrote:> Hi, > > I've successfully setup Asterisk on my local PC and can make call using > Twinkle to the server. But, I cannot call to my Asterisk server at > Rackspace. ..... > > My question is how can I troubleshoot this scenario? (Is this question > within the scope of this mailing list?)1. Can you send UDP packets across your LAN? If not, check your client machine. 2. Can you send UDP packets across the Internet to another host? (This may require the co-operation of another party.) If not, check your router. If you can send UDP across your LAN and across the Internet but not to your own box in Rackspace, it must be a routing issue at the Rackspace end. -- AJS Answers come *after* questions.
A J Stiles
2012-Aug-10 12:53 UTC
[asterisk-users] Asterisk on Rackspace, My SIP phone behind NAT
On Friday 10 August 2012, Patrick Lists wrote:> On 10-08-12 10:12, SamyGo wrote: > > Oh, I see - check if your country blocks the SIP port 5060 ? try > > changing the default poert from 5060 to something else like 7777 and > > then try this. > > I think your ISP is blocking the SIP. > > If that is the case, setup an IAX connection and see if that works.But still contact your ISP and get them to un-block your port 5060. You paid them for an Internet connection; and an Internet connection means *all* ports, not just *some* ports. -- AJS Answers come *after* questions.