First stop yelling (with the capitals and explanation points), it doesn’t make anyone want to help you.
This sounds like a network issue with the Asterisk box. Perhaps you don’t have the qualify option set and the NAT translation is timing out in your firewall?
Can you ping voip.eutelia.it from the server when you are having this problem?
If you can ping enable SIP debug to the IP address of voip.eutelia.it’ (sip set debug ip xx.xx.xx.xx) and see if the data in the log (/var/log/asterisk/full) offers any clues.
Ok, thanks.
Yes during a night, exactly,
system was working at 22 of 1/9 (8 trunks online), at 9 of 2/9 0 trunks online.
The line reported is only what happened at 16:42:43 of 3/9 (today).
I preferred don’t put 3000 lines of equals messages.
At the moment I resolved this way (found “googling” around the web)
Power off Asterisk machine - wait at least 30 min - power on.
Now I have 7/8 trunks online.
Why??? I don’t know.
In any case the provider (voip.eutelia.it) was reachable from the machine,
also when not working.
Now i leave the machine on test.
I don’t understand why a simple power-off and on, or a reboot, don’t resolve; but needs 30-60 min of pause.
If the situation repeat, i will program power off at 3:00 and power on at 4:00.
But seems crazy
As first:
Many thanks for assistance, is greatly appreciated.
This morning the problem has repeated.
Follow a summary of “full” log file.
I set the qualify options on extensions and Peer details.
When i restart machine, i will put qualify=yes also in User,
and Qualifyfreq=60 on both;
may be useful?
Now machine is stopped and I’m waiting for 60 min pause.
Yust for information, is a virtual machine on VMWare Server 2.0,
over a UBUNTU 10.0 Server; to be moved on ESXi in few days.
My real problem is that I can’t find a complete reference on FreePBX,
some info (very confused) can be found on general asterisk,
but GUI take complete control of .conf files,
and i never know where are real files.
Is my opinion that is better not mix manual and gui generated config,
so I prefer to operate by GUI only. (whenever is possible).
obviously, xx.yy.zz.ww is my public IP.
…omissis…
[2011-09-04 04:02:21] VERBOSE[15047] logger.c: Asterisk Queue Logger restarted
[2011-09-04 04:02:21] VERBOSE[15047] asterisk.c: – Remote UNIX connection disconnected
[2011-09-04 04:02:25] NOTICE[2702] chan_sip.c: – Registration for ‘[email protected]’ timed out, trying again (Attempt #218)
[2011-09-04 04:02:45] NOTICE[2702] chan_sip.c: – Registration for ‘[email protected]’ timed out, trying again (Attempt #219)
…omissis…
[2011-09-04 08:54:17] NOTICE[2702] chan_sip.c: – Registration for ‘[email protected]’ timed out, trying again (Attempt #1090)
[2011-09-04 08:54:30] VERBOSE[2829] asterisk.c: Beginning asterisk shutdown…
…Asterisk Reboot
…sip set debug ip 83.211.227.21
…omissis…
That’s really not much info. Did you reboot at the beginning of the log?
What I am trying to see is if the register messages go unanswered.
With regard to the config files you should not have to modify them for most situations. FreePBX provides “hooks” if you must modify in the form of the files with the “custom” filename.
What Asterisk options do you find confusing? You can use any of the SIP peer level variables in a FreePBX trunk.
No, the log start some lines before.
Seems the queue of a automatic reboot,
but I don’t reboot at 4:00,
next time i will save the file before set debug
that’s space consuming and kick out first lines (i suppose).
What I discovered is that in these days my provider is working
on the net, with some interruption between 2:00 and 4:00 AM.
May be the original cause.
So I suppose tomorrow morning the problem will be repeated.
Now I have to investigate on automatic restart of registration.
I repeat, softphones connect directly without problems.
Also I disabled (for now) firewall rerouting of ports 5060 and 10000-20000,
the extern access is done via VPN.
For my confusion on asterisk…
I’m searching for a list of available options, their scope and use.
In the web you can find people that say :
use this config for provider1 or this other for provider 2.
My configuration (first post) is very different from default,
I copied from a italian forum,
but I don’t know the significance of 1/2 of the options used.
Nor know the existance of other (possibly useful) options.
As example the registration string:
Number:Passwd:Number@provider:5060/Number
seems a Abracadabra.
No online help explain that you need this structure,
but if you use the default string:
Number:Passwd@provider:5060
don’t register.
Just an information (sorry):
the RTP ports are 10000 to 20000, and any communication use 4 to 30 ports.
But a great part provider require to set RTP to 8000 in SIP phone.
I understand that the first set op port are dinamically choosen
during negotiation,
but what’s the significance(use) of the fixed port 8000 ?
I discovered that the problem start when firewall reboot.
(there is a rule that try to reboot the firewall
after 15 min without connection).
If I manually reboot firewall I reproduce the problem.
I suppose that the route in some way change with reboot.
But, in anycase, I don’t understand.
If I register a softphone instead of Asterisk, nothing happens.
Softphone (XLite) and asterisk use, is evident, different policies to register.
for RTP port, this is from Grandstream HT386 manual Local RTP port:
This parameter defines the local RTP-RTCP port pair the HT-386 will listen
and transmit. It is the base RTP port for channel 0. When configured, channel
0 will use this port_value for RTP and the port_value+1 for its RTCP; channel
1 will use port_value+2 for RTP and port_value+3 for its RTCP. The default
value for FXS1 is 5004, FXS2 is 5008.
Xlite default to port 8000 and Samsung WiFiPhone use 12000.
But, as you said, RTP port is assigned dinamically ???
I’m confused (more) !