ACR (Advanced Call Routing) Scheme - route calls that match configured rules in JSON format. ACR Schemes are separated in two different route for different kinds of calls:
- Default Route handles calls originating from internal extensions
- Public Route handles calls originating from the public phone network (PSTN)
Code Block |
---|
language | js |
---|
title | Default Route Example |
---|
|
{
"destination_number": "^\\+?3?8?(044\\d{7})$",
"name": "Kyiv",
"domain": "it-sfera.com",
"order": 8,
"callflow": [
{
"setVar": [
"effective_callee_id_number=380442228392",
"absolute_codec_string=PCMA",
"ringback=$${ru-ring}"
]
},
{
"recordSession": "start"
},
{
"bridge": {
"endpoints": [
{
"type": "sipGateway",
"name": "kyiv",
"dialString": "®0.$1"
}
]
}
}
]
} |
Code Block |
---|
language | js |
---|
title | Public Route Example |
---|
|
{
"destination_number": [
"442228392",
"74997045627"
],
"domain": "it-sfera.com",
"callflow": [
{
"httpRequest": {
"url": "https://sales.it-sfera.com/0/ServiceModel/GetCallerOwnerService.svc/GetCallerOwner"
}
},
{
"if": {
"expression": "${owner_caller_id_number}",
"then": [
{
"setVar": [
"ringback=$${ru-ring}",
"transfer_ringback=$${hold_music}",
"continue_on_fail=true",
"hangup_after_bridge=true"
]
},
{
"answer": "183"
},
{
"recordSession": "start"
},
{
"bridge": {
"endpoints": [
{
"name": "${owner_caller_id_number}",
"parameters": [
"leg_timeout=10"
],
"type": "user"
}
]
}
}
]
}
},
{
"goto": "default:its_ivr"
}
]
} |
Callflow Applications
Children Display |
---|
|
Content Report Table |
---|
showLikesCount | true |
---|
showCommentsCount | true |
---|
labels | application |
---|
|