Hunting

Hunting (from English hunt) - a process of sequential dialing different routes until connection is established or Smartswitch determines that it's impossible to deliver a call.

After routing table has been composed during Routing process, Smartswitch begins to hunt.

A call is first directed to a route with highest priority.

After this outbound Call handler is invoked for each route and he gets a dialstring inside variable ${DIALSTRING}.
When invoking outbound call handler, control is passed to StartExtension branch of that call handler.
For example, according to routing configuration need to dial peer "telco_gw1" using H323 protocol and B-number 380972568744.
Smartswitch will invoke outbound call handler configured on peer "telco_gw1" and will pass to it variable ${DIALSTRING}, which contains_H323/telco_gw1380972568744_.

Outbound call handler should end with MacroExit element.
Otherwise there will be no hunting to the next peer.

In case if generated outbound call is hanged up without connection, then a call to a second route by priority is generated.
Call generation according routing table is performed as long as one of next conditions is accomplished:

Русский перевод