Hi RT
If I understood you correctly (and I'm really not sure), you are
talking about separate outbound routing for a particular account.
You should think about callflows' devices and trunkstore more from
an inbound call perspective.
Trunkstore is good when you need to pass two or more DIDs to your
PBX
Outbound calling should result in thoughts about "resources" in
Kazoo admin's head :)
Instead of global carrier (resources), you can use local one for
such a tricky account.
Just put resource doc with type local into account's db and point
your no_match callflow to module resources:
{
"_id": "9f689a763f341dba10dd0b3d7ddcbeac",
"_rev": "51-9924cfaf7e04fd761b3e8688a92b98d7",
"weight_cost": "50",
"enabled": false,
"gateways": [
{
"prefix": "",
"codecs": [
"PCMA",
"PCMU"
],
"progress_timeout": "7",
"server": "1.2.3.5",
"username": "",
"password": "",
"realm": "",
"format_from_uri": false,
"suffix": "",
"channel_selection": "ascending",
"custom_sip_headers": {
},
"emergency": false,
"enabled": true,
"endpoint_type": "sip",
"force_port": false,
"invite_format": "route",
"port": "5080",
"skype_rr": false
}
],
"caller_id_options": {
"type": "external"
},
"type": "local",
"name": "fsmf",
"emergency": false,
"grace_period": 5,
"flags": [
],
"media": {
"audio": {
"codecs": [
"PCMU"
]
},
"video": {
"codecs": [
]
}
},
"id": "9f689a763f341dba10dd0b3d7ddcbeac",
"rules": [
"^\\+?(\\d*)$"
],
"cid_rules": [
],
"pvt_is_authenticated": true,
"pvt_auth_account_id": "b35483a7e18684f4cd5f09eae01a4c0c",
"pvt_auth_user_id": "8b81351bc3afaf4c34d67eb799438498",
"pvt_request_id": "a8868a3d705f78ebb173db098e339b30",
"pvt_modified": 63619801258,
"pvt_created": 63615924807,
"pvt_account_db":
"account%2F33%2Fca%2F3929ed585e0e423eb39e4ffe1452",
"pvt_account_id": "33ca3929ed585e0e423eb39e4ffe1452",
"pvt_vsn": "1",
"pvt_type": "resource"
}
{
"_id
": "7c353a7a9ae042f039f072f9b720f121"
,
"_rev
": "77-0eb1ef477ed477da3d8ec7facf5b35cc"
,
"numbers
": [
"no_match"
]
,
"flow
": {
"children
": {
}
,
"data
": {
}
,
"module
": "resources"
}
,
"patterns
": [
]
,
"id
": "7c353a7a9ae042f039f072f9b720f121"
,
"metadata
": {
}
,
"pvt_is_authenticated
": true
,
"pvt_auth_account_id
": "33ca3929ed585e0e423eb39e4ffe1452"
,
"pvt_auth_user_id
": "20dcee6607c37ef4bac8fb6c067919c8"
,
"pvt_type
": "callflow"
,
"pvt_vsn
": "1"
,
"pvt_account_id
": "33ca3929ed585e0e423eb39e4ffe1452"
,
"pvt_account_db
": "account%2F33%2Fca%2F3929ed585e0e423eb39e4ffe1452"
,
"pvt_created
": 63582394917
,
"pvt_modified
": 63622217738
,
"pvt_request_id
": "4f3d9dc585ea825d3943d1b287133d6c"
}
Calls recording should act as with usual (global carrier) scheeme.
My favourite is to switch call recording for all calls passing in
and out by using preflow module...
Regards,
Kirill