Click on the "Outbound" link in menu on the left side so you get to the "Dialing Rule List" page. Here you can choose the default outbound trunk or set up the dialing rule to route the calls on a specific one.
4.4.1 Set the default Outbound Trunk
Subtitle | ||||||
---|---|---|---|---|---|---|
| ||||||
...
Subtitle | ||||||
---|---|---|---|---|---|---|
| ||||||
Single default Trunk
To choose the default Trunk you just need to click on the "BLOCKED" tag and then you can use the drop down menu as in
Xref | ||
---|---|---|
|
...
Once you're done you can press the "Update" button to confirm your choice. You return to the "Dialing Rule List" page and this time the "Default Outbound" option is set to the trunk you choose.
Trunk Failover
In case of multiple Trunk that have to work in failover style, you need some more advanced setup.
...
Code Block |
---|
[trunk-failover]
exten => _[+0-9]X.,1,Verbose(Failover group)
same => n,Set(PREV_CHAN=${canale})
same => n(__trunk_ffefd2c02f46993e),Verbose(Trying to dial using trunk "Trunk 10" __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 "Trunk 11" __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 "Trunk 12" __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 "Trunk 13" __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(last),Verbose(No trunk reachable)
same => n,Set(SHARED(Sip_Trunk,${PREV_CHAN})=FAILOVER_FAILED)
same => n,Hangup() |
...
Code Block |
---|
[trunk-failover]
exten => _[+0-9]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() |
...
Info |
---|
It's possible to choose the exact priority by correctly naming your Trunks. Order followed is alphabetical. |
4.4.2 "Re-route temporary unavailable users" option
This option adds a new flexibility to the renewed Sip Trunk management introduced in the present version. When you check the option all the calls for temporary unavailable users will bounce into the specified SIP Trunk.
...
An example scenario for this option would be an enterprise integration where the mobile phone numbers are handled by
Brand | ||
---|---|---|
|
4.4.3 Create Outbound routing by dialing rules
The Outbound Trunks can also be selected by dialing a prefix. If you need to create conditional routing rules for Outbound calls, then you need to use the lower section of the "Dialing Rule List" page (cfr.
Xref | ||
---|---|---|
|
...