Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Keeping at handy one copy of the text mentioned above, you need to access via SSH to your 

Brand
brandserver
 and become root.

Note

To accomplish above tasks please sdlgkndasglndsglnsdglnsdglkndsglknsdglk

Code Block
[root@pbx ~]# vim /etc/asterisk/trunk-failover.conf
Note

On

Brand
brandserver
is also available "nano" editor, if you feel uncomfortable with "vim" one.

Code Block
[trunk-failover]
exten => _X.,1,Verbose(Failover group)
  same => n,Set(PREV_CHAN=${canale})
  same => n(last),Verbose(No trunk reachable)
  same => n,Set(SHARED(Sip_Trunk,${PREV_CHAN})=FAILOVER_NOT_CONFIGURED)
  same => n,Hangup()

You need to remove all lines and change the content with the ones you copied from web console at the beginning of the operation.

Code Block
[trunk-failover]
exten => _X.,1,Verbose(Failover group)
  same => n,Set(PREV_CHAN=${canale})

  same => n(__trunk_ffefd2c02f46993e),Verbose(Trying to dial using trunk "Messagenet 890" __trunk_ffefd2c02f46993e)
  same => n,Set(NETWORKSTATUS=${SIPPEER(__trunk_ffefd2c02f46993e,status)})
  same => n,Gotoif($["${NETWORKSTATUS}"="UNREACHABLE"]?__trunk_616683993964bc16:)
  same => n,Set(SHARED(Sip_Trunk,${PREV_CHAN})=__trunk_ffefd2c02f46993e)
  same => n,Dial(SIP/__trunk_ffefd2c02f46993e/${EXTEN})
  same => n,Hangup()

  same => n(__trunk_616683993964bc16),Verbose(Trying to dial using trunk "Messagenet 891" __trunk_616683993964bc16)
  same => n,Set(NETWORKSTATUS=${SIPPEER(__trunk_616683993964bc16,status)})
  same => n,Gotoif($["${NETWORKSTATUS}"="UNREACHABLE"]?__trunk_d346973491bc1df3:)
  same => n,Set(SHARED(Sip_Trunk,${PREV_CHAN})=__trunk_616683993964bc16)
  same => n,Dial(SIP/__trunk_616683993964bc16/${EXTEN})
  same => n,Hangup()

  same => n(__trunk_d346973491bc1df3),Verbose(Trying to dial using trunk "Messagenet 892" __trunk_d346973491bc1df3)
  same => n,Set(NETWORKSTATUS=${SIPPEER(__trunk_d346973491bc1df3,status)})
  same => n,Gotoif($["${NETWORKSTATUS}"="UNREACHABLE"]?__trunk_6fd24f043acea450:)
  same => n,Set(SHARED(Sip_Trunk,${PREV_CHAN})=__trunk_d346973491bc1df3)
  same => n,Dial(SIP/__trunk_d346973491bc1df3/${EXTEN})
  same => n,Hangup()

  same => n(__trunk_6fd24f043acea450),Verbose(Trying to dial using trunk "Messagenet 893" __trunk_6fd24f043acea450)
  same => n,Set(NETWORKSTATUS=${SIPPEER(__trunk_6fd24f043acea450,status)})
  same => n,Gotoif($["${NETWORKSTATUS}"="UNREACHABLE"]?__trunk_27f415d6fb6346c0:)
  same => n,Set(SHARED(Sip_Trunk,${PREV_CHAN})=__trunk_6fd24f043acea450)
  same => n,Dial(SIP/__trunk_6fd24f043acea450/${EXTEN})
  same => n,Hangup()

  same => n(__trunk_27f415d6fb6346c0),Verbose(Trying to dial using trunk "zerozero39" __trunk_27f415d6fb6346c0)
  same => n,Set(NETWORKSTATUS=${SIPPEER(__trunk_27f415d6fb6346c0,status)})
  same => n,Gotoif($["${NETWORKSTATUS}"="UNREACHABLE"]?last:)
  same => n,Set(SHARED(Sip_Trunk,${PREV_CHAN})=__trunk_27f415d6fb6346c0)
  same => n,Dial(SIP/__trunk_27f415d6fb6346c0/${EXTEN})
  same => n,Hangup()

  same => n(last),Verbose(No trunk reachable)
  same => n,Set(SHARED(Sip_Trunk,${PREV_CHAN})=FAILOVER_FAILED)
  same => n,Hangup()

4.4.2 "Re-route temporary unavailable users" option

...