ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Asterisk iax2 Trunks Unreachable

    IT Discussion
    2
    6
    2.9k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • AlyRagabA
      AlyRagab
      last edited by AlyRagab

      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 🙂

      JaredBuschJ 1 Reply Last reply Reply Quote 1
      • JaredBuschJ
        JaredBusch @AlyRagab
        last edited by JaredBusch

        @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.

        0_1503892306772_b0074c1c-391f-42de-b5de-f35958e4cf2e-image.png

        AlyRagabA 1 Reply Last reply Reply Quote 0
        • AlyRagabA
          AlyRagab @JaredBusch
          last edited by AlyRagab

          @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 run

          asterisk -rvx "core restart gracefully"
          

          but the question now is : will repeating this command affect the system badly ?.

          JaredBuschJ 1 Reply Last reply Reply Quote 0
          • JaredBuschJ
            JaredBusch @AlyRagab
            last edited by

            @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 run

            asterisk -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.

            AlyRagabA 1 Reply Last reply Reply Quote 0
            • AlyRagabA
              AlyRagab @JaredBusch
              last edited by

              @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 run

              asterisk -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.

              JaredBuschJ 1 Reply Last reply Reply Quote 0
              • JaredBuschJ
                JaredBusch @AlyRagab
                last edited by

                @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 run

                asterisk -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.

                1 Reply Last reply Reply Quote 3
                • 1 / 1
                • First post
                  Last post