-
Notifications
You must be signed in to change notification settings - Fork 466
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[4.3] KZOO-59: calculate account CID name (#6413)
* [4.3] KZOO-59: calculate account CID name Prior, the caller's CID name would be returned from kz_attributes:get_account_external_cid/1 along with the calculated account CID number. Particularly for DISA callers, this meant their CID name was passed through (often their mobile number) instead of being set to the account's external CID name. This change calculates the CID name and number of the account and returns them both if configured. * catch if fixturedb isn't running
- Loading branch information
1 parent
31919b8
commit 9fa0753
Showing
10 changed files
with
95 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
...ccount%2Fac%2Fco%2Funt0000000000000000000000003/views/phone_numbers+crossbar_listing.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[ | ||
{ | ||
"id": "+19995552600", | ||
"key": "+19995552600", | ||
"value": { | ||
"assigned_to": "account0000000000000000000000003" | ||
} | ||
} | ||
] |
7 changes: 7 additions & 0 deletions
7
core/kazoo_fixturedb/priv/dbs/numbers%2F%2B1999/docs/%2B19995552600.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"_id": "+19995552600", | ||
"pvt_assigned_to": "account0000000000000000000000003", | ||
"pvt_created": 63752475360, | ||
"pvt_modified": 63752475360, | ||
"pvt_state": "in_service" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters