Asterisk iax2 Trunks Unreachable
-
Hi All,
A problem i am having in an iax trunk between 2 Elastix servers behind an OpenVPN , the trunk status is OK for a certain time then it is Unreachable ,
if i restart the asterisk service it goes OK then unreachable again.
although in the trunk there are
"qualify=yes"
and " qualifyfreqok=25000 "Any Advice
-
@alyragab here is what one side of one of my trunks looks like. this goes form my PBX to a client PBX so I can direct dial their extensions.
Because I do not allow IAX2 traffic from the general internet, I do not bother with qualify settings.
-
@jaredbusch it is the same as i have written in the trunk settings ,
however as a temp solution for this issue i have created a cron job to runasterisk -rvx "core restart gracefully"
but the question now is : will repeating this command affect the system badly ?.
-
@alyragab said in Asterisk iax2 Trunks Unreachable:
@jaredbusch it is the same as i have wrote in the trunk settings ,
however as a temp solution for this issue i have created a cron job to runasterisk -rvx "core restart gracefully"
but the question now is : will repeating this command affect the system badly ?.
This does not hurt anything, but it is also not resolving the issue.
-
@jaredbusch said in Asterisk iax2 Trunks Unreachable:
@alyragab said in Asterisk iax2 Trunks Unreachable:
@jaredbusch it is the same as i have wrote in the trunk settings ,
however as a temp solution for this issue i have created a cron job to runasterisk -rvx "core restart gracefully"
but the question now is : will repeating this command affect the system badly ?.
This does not hurt anything, but it is also not resolving the issue.
it is actually activating any "unreachable" trunk to return it to the normal status , i am still searching for a permanent solution.
-
@alyragab said in Asterisk iax2 Trunks Unreachable:
@jaredbusch said in Asterisk iax2 Trunks Unreachable:
@alyragab said in Asterisk iax2 Trunks Unreachable:
@jaredbusch it is the same as i have wrote in the trunk settings ,
however as a temp solution for this issue i have created a cron job to runasterisk -rvx "core restart gracefully"
but the question now is : will repeating this command affect the system badly ?.
This does not hurt anything, but it is also not resolving the issue.
it is actually activating any "unreachable" trunk to return it to the normal status , i am still searching for a permanent solution.
Now, it is telling asterisk to restart itself when there are no calls currently processing.
Asterisk restarting causes all trunks to reregister / reconnect.
So it is not activating unreachable trunks specifically.
You need to dig out the
/var/logs/asterisk/full
log from a day that this was failing and then go through that to find out what Asterisk is seeing when the trunk is down.