Commit Graph

50 Commits

Author SHA1 Message Date
Hoan Luu Huu 3486ff958c feat: add protocol to sip-gateways (#166)
* feat: add protocol to sip-gateways

* add tls/srtp options

* fix sql

* update db script has new changes

---------

Co-authored-by: Dave Horton <daveh@beachdognet.com>
2023-05-10 15:41:39 -04:00
Dave Horton c97874ed1f add tls_port and wss_port to sbc_addresses, update some deps (#160)
* add tls_port and wss_port to sbc_addresses, update some deps

* add system_information table
2023-05-01 10:45:19 -04:00
Dave Horton 84305e30cc add sbc_addresses.last_updated 2023-04-06 07:37:27 -04:00
Dave Horton efe7e22109 increase size of voip_carriers.register_status 2023-04-03 09:50:38 -04:00
Dave Horton 7a67ed704c add voip_carriers.register_status 2023-04-01 19:09:03 -04:00
Dave Horton a46c24b3aa change applications.app_json to TEXT as it could hold large strings 2023-02-03 16:34:11 -05:00
Hoan Luu Huu 019599741a feat: add app_json to applications endpoint (#100)
* added phone_numbers.app_json column

* modify prev commit to put app_json on applications table

* feat: add app_json to applications endpoint

---------

Co-authored-by: Dave Horton <daveh@beachdognet.com>
Co-authored-by: Quan HL <quanluuhoang8@gmail.com>
2023-01-28 10:02:04 -05:00
Dave Horton c6fd24bc13 restore service_provider_limits.category enum and same for account 2022-12-14 19:50:20 -05:00
Dave Horton 4a78c5c1fc allow numbers of up to 132 chars in phone_number table 2022-12-12 13:12:54 -05:00
EgleH dd2176bf89 feature/user-api-calls (#80)
* initial changes for jwt auth

* return permissions as an array of string

* basic GET, POST, DELETE user api calls

* add permission checks

* hide hashed_password

* cleanup

* add check if admin user is active

* return account and serviceProvider sid un user object

* add more values to user PUT

* logout user after self delete, fix scope assignment

* add admin scope user tests

* fix test case and align jwt and api key data model in req.user

* fixes for ibm speech

* add limits license_count and voice_call_minutes

* update limits enum again

* rebase to main

* allow predefined carriers and speech credentials for Account user

* reverse the hasAccountPermissions changes

* SpeechCredentials permissions

* fix /Users/me api non-saas jambonz

Co-authored-by: Dave Horton <daveh@beachdognet.com>
Co-authored-by: eglehelms <e.helms@cognigy.com>
2022-12-10 09:12:05 -05:00
Dave Horton fadbe116c2 update limits enum again 2022-11-26 12:55:00 -05:00
Dave Horton 02e3358c8f add limits license_count and voice_call_minutes 2022-11-25 11:01:43 -05:00
Dave Horton 35214a04dc Feature/jwt auth (#75)
* initial changes for jwt auth

* return permissions as an array of string

* Add JWT expiration environment variable (#74)

* allow fromHost in createCall REST API

* add JWT_EXPIRES_IN=<mins> env variable, 60 mins by default

* add jwt expiration in register.js and signin.js

* fix tests - add permissions and scope to encoded obj in jwt

Co-authored-by: Dave Horton <daveh@beachdognet.com>
Co-authored-by: eglehelms <e.helms@cognigy.com>

* return only the jwt-token in the api response

Co-authored-by: EgleH <egle.helms@gmail.com>
Co-authored-by: eglehelms <e.helms@cognigy.com>
2022-10-27 07:39:11 -04:00
Dave Horton b7a38c843a bugfix: new column +register_from_domain is varchar not varbinary 2022-10-07 09:42:10 +01:00
Dave Horton e067fc2cf4 add fields to db for outbound register customization (from user, from domain, whether to use public ip or sip realm in contact) (#67) 2022-10-06 09:57:00 +01:00
Dave Horton 052a19cfdc Feature/sp call limits (#63)
* add api for setting/querying call limits by account and sp

* update an account or sp limit if one exists rather than creating a new one
2022-09-20 13:12:28 +02:00
Dave Horton 6f52202deb bugfix: FK was wrong 2022-08-03 17:22:30 +01:00
Dave Horton 69f36f5a51 Feature/siprec server (#49)
* upgrade schema to 0.7.6 if necessary

* db upgrade

* db upgrade
2022-07-28 16:17:39 +01:00
Dave Horton 090bfbce92 Feature/incoming refer (#39)
* LCC under Kubernetes must use service name for FS (#35)

* add api to send sip requests on a call (e.g NOTIFY, INFO)
2022-03-05 15:22:41 -05:00
Dave Horton f6d358d3df Subspace (#12)
* changes for subspace (via nimbleape)

* changes from more testing

* working api to subspace

* more subspace fixes

* further subspace fixes
2021-12-07 07:40:50 -05:00
Dave Horton 8117f77955 Dockerfile to init/upgrade the database, and associated changes 2021-11-08 10:54:57 -05:00
Dave Horton 1013f3f222 handle adding predefined carriers with smpp gateways 2021-09-09 15:38:33 -04:00
Dave Horton ed51d8b13f merge of features from hosted branch (#7)
major merge of features from the hosted branch that was created temporarily during the initial launch of jambonz.org
2021-06-17 15:56:21 -04:00
Dave Horton fc61d3d2fa add integration test 2021-05-07 08:33:13 -04:00
Dave Horton 081a83e121 add some columns to voip_carriers 2021-04-16 15:07:54 -04:00
Dave Horton 484fa7841a updated API with new properties for voip_carriers that require outbound registration 2020-12-11 10:34:34 -05:00
Dave Horton ea64fb1a58 add sms messaging support 2020-10-09 08:04:39 -04:00
Dave Horton f52cf88423 issue with multiple timestamps 2020-07-22 11:57:32 -04:00
Dave Horton d3c347ac3f schema syntax change 2020-07-22 11:51:19 -04:00
Dave Horton 5ae6cda12a fix schema problem 2020-07-22 11:35:56 -04:00
Dave Horton 3be0412de1 add list api keys for account, track last_used for api_keys 2020-07-22 11:31:05 -04:00
Dave Horton 4efee5a8b8 add voip_carriers.e164_leading_plus for carrier-level configuration of E.164 dial string 2020-07-16 09:45:59 -04:00
Dave Horton 0e248cb393 add support for ms teams 2020-05-26 08:57:19 -04:00
Dave Horton be011db109 add support for sbc_addresses and ms_teams_tenants tables 2020-04-20 11:44:49 -04:00
Dave Horton 61a5ce2672 added basic login support for admin user 2020-04-01 16:27:18 -04:00
Dave Horton 7a144ffe74 support for login 2020-03-21 13:39:03 -04:00
Dave Horton 4df6f1e115 update to 0.3.2 jambonz-db-helpers 2020-02-15 15:42:32 -05:00
Dave Horton aad5082e76 removed config files, just uses env vars now 2020-02-15 11:00:01 -05:00
Dave Horton 9783afcff5 support for VoipCarriers that are customer PBXs 2020-02-08 10:39:17 -05:00
Dave Horton 87208bc669 revamp db - refactor webhooks 2020-01-28 10:30:07 -05:00
Dave Horton b2760a2d75 changes to account and application 2019-12-20 15:37:44 -05:00
Dave Horton 7c2e12a4be further changes, migrate to mysql2 2019-12-16 16:32:40 -05:00
Dave Horton 0b54b17c73 add sip_gateways 2019-12-11 20:47:58 -05:00
Dave Horton 4e81172c73 add support for basic auth when calling registration_hook 2019-12-10 10:36:28 -05:00
Dave Horton 6beedeac3d added service_provider.root_domain 2019-12-10 10:14:21 -05:00
Dave Horton 1296b15675 add cors support 2019-12-09 10:58:35 -05:00
Dave Horton 15f120108f db changes: added indexes 2019-12-06 10:50:57 -05:00
Dave Horton 0f06c44168 major updates and test suite 2019-12-04 21:43:27 -05:00
Dave Horton 47bb642854 revamped db schema and implemented some simple api 2019-12-02 16:49:25 -05:00
Dave Horton 8c287f06df initial checkin 2019-11-27 09:23:14 -05:00