2-3 Incoming calls working, next calls do not arrive

Rrrr

Tink
Joined
May 28, 2009
Messages
343
Reaction score
25
I would appreciate to get some tips on where I need to look for the problem.
After saving trunk settings I can receive 2-3 immediate incoming calls, but after waiting a few minutes, all subsequent incoming calls do not come in. The caller hears then a long silence.

Outgoing calls always work and do not affect incoming calls.

Trunk PEER DETAILS settings according to the recommendations of belcentrale.nl with two additions I made during my testing, but am not sure if the changes helped:
1. I added context=from-pstn and then changed it to from-trunk
2. I added qualify=yes

type=friend
secret=tXXXXt
insecure=very
host=pbx11.belcentrale.nl
disallow=all
allow=alaw&ulaw&gsm
canreinvite=no
canredirect=no
username=0XXXX1
context=from-trunk
qualify=yes

USER DETAILS: empty
REGISTER STRING: 0XXXX1:[email protected]/0XXXX1

/etc/asterisk/sip_custom.conf
Nat=yes, static externip=a.b.c.d (the external address of the router), Registration times: minexpiry 600, maxexpiry 3600, defaultexpiry 600 (as per BELCENTRALE request 600)
 
Solved.

I found that after upgrading to FreePBX 2.7 there is a new tool called Asterisk SIP Settings, which basically replaces sip_custom.conf (except for the useragent=PiaF, its now empty).

My mistake was to use this new tool to set external ip to the external address of the WAN side of the router, as per the instruction. In the case of my specific router, that has something like SIP ALG, this led to above described behaviour.

The solution is to set the external ip in PiaF to the LAN ip address of the PiaF server. This way the router handles the sip traffic "correctly" and replaces the LAN address with the WAN address...
 
Caveat: this assumes your router does SIP ALG correctly - google for this and you find literally thousands of hits where VOIP is not working and the advice is to disable ALG in the router :( In my case, I set not externip, but externhost and I set it to the dyndns name my router updates, and it works fine. Rereading your first post, if you have a dynamic IP, you were doing the wrong thing to begin with. In that situation, you are supposed to use the externhost field (and make sure it is dynamically updated.) externip is only really supposed to be used with a static IP.
 
Actually - you'll find externip recommended around this site, even for dynamic IPs. This is enabled with a script or 2 (at least one of which Ward wrote, or provided) that checks the external IP on a reoccuring basis and rewrites the sip_custom.conf file. This process avoids the DNS lookup that Asterisk does if you use externhost.

Jeff
 

Members online

Forum statistics

Threads
26,687
Messages
174,410
Members
20,257
Latest member
Dempan
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Back
Top