0

I am having issues with my Asterisk server when trying to call while on the WAN.

I have no issues calling extensions when I am connected to the LAN the SIP server is running on, but when I take the same phone but try and use its mobile data to call, as soon as I pickup the phone on the LAN gets the hold music.

I have setup my firewall to DNAT UDP 5060 and UDP 10000-20000 to the asterisk server, and configured the firewall on the server to all the same ports.

2 Answers2

0

Most likly issues are:

  1. Nat settings on asterisk not setuped correctly
  2. UserAgent you use not support nat
  3. Router at server location(if server nated) have SIP_ALG and it is enabled.
arheops
  • 15,544
  • 1
  • 21
  • 27
  • I would assume Nat settings, except neither end of the call gets disconnected, and the WAN caller knows it is on hold. I am self hosting, so I have access to all server settings, I am running CentOs on both firewall/gateway and SIP server. – AyeitzaMoleRat Jan 24 '17 at 15:34
0

Before guessing at a cause, you need to provide more info. Set verbosity to 10 and initiate a call from the WAN side. That will show why the phone on the LAN side gets MOH. Once that's explained, turn on SIP debug and you will see if NAT is an issue or something else is going on.

Most likely a NAT issue is causing call to disconnect, but your dialplan grabs the "h" extension and moves to MOH or similar.

TSG
  • 4,242
  • 9
  • 61
  • 121