Technical Discussion
  >> Voice over IP (VoIP) Forum

Register (or login) on our website and you will not see this ad.

  Print Thread
Standard User j93
(newbie) Mon 08-Aug-11 20:28:29
Print Post

Asterisk and Sipgate

[link to this post]

I am trying to configure my router and asterisk to allow incoming and outgoing calls but without allowing extensions to register off-site. Basically I need to be able to dial a 7-digit Sipgate number that will then ring on the phone configured for that account (at another site)

The only way I have managed to achieve this so far is by setting up a 2nd account (not on Asterisk) on the IP phones I wish to dial from. Asterisk seems to accept incoming calls but not make any - I get the 'all circuits busy' message. I did manage to get this working by allowing port 5060 through NAT and port forwarding, however this also meant that extensions within Asterisk could be registered from anywhere on the internet - something I do not want to be possible.

As it seems like an outbound block, I do not understand why it can't be overcome and the only way I can think of configuring the phones to be able to call each other is to set up a VPN between both sites, which is something I would like to avoid.

ISP Representative viperdude
(isp) Tue 09-Aug-11 13:01:59
Print Post

Re: Asterisk and Sipgate

[re: j93] [link to this post]

From the information you give it sounds more like a configuration issue on Asterisk than a routing/netwok issue.

If you enable SIP Debug on the Asterisk CLI and attempt an outbound call you will see the SIP messages between you and Sipgate. This should hopefully help you see where you are going wrong.

Normally you should not have to do any port forwarding for outbound calls as it is a transaction initiated from within the NAT and thus session tracked. It is normally inbound that is the issue as this is a connection initiated from the outside and normally viewed as bad by a NAT router. Either way if you did want to port forward to enable external CPE to connect you can use iptables on the Asterisk box to restrict what can connect.

Hope this helps
The above post has been made by an ISP REPRESENTATIVE (although not necessarily the ISP being discussed in the post).
  Print Thread

Jump to