Commit Graph

14 Commits

Author SHA1 Message Date
Denys Smirnov
79b5ea9ea9 Add SIP grants. (#745) 2024-06-20 17:49:41 +03:00
David Zhao
e0c49d3c9d Support for key/value attributes on Participant (#733)
* Support for key/value attributes on Participant

Key/value attributes lets us:
* allow various components to provide more information about the participant (i.e. SIP including the phone number)
* allow Agents to communicate their own status to the end user via RTC
* enable applications to update specific fields without overriding others

* generated protobuf

* Attribute support for SIP.

* generated protobuf

* generated protobuf

* allow specifying attributes during token generation

* Remove sip prefix and rename phone number attrs.

* regenerate protos

* update tests

* add kv attrs to sip token

* add attribute test

* changeset

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Denys Smirnov <dennwc@pm.me>
2024-06-19 22:27:09 -07:00
Denys Smirnov
32c577d805 Split SIP Trunk configuration to inbound and outbound parts. (#738) 2024-06-17 21:42:19 +03:00
Denys Smirnov
0411da6790 Simplify number matching rules. Make '+' optional. (#737) 2024-06-13 13:26:21 +03:00
Paul Wells
d5e9f0a2f9 refactor guid out of utils (#730)
* refactor guid out of utils

* cleanup
2024-06-05 19:07:23 -07:00
Denys Smirnov
142d7f108f Match SIP Trunks by source IP or mask. (#724) 2024-05-28 20:55:36 +03:00
Denys Smirnov
38423424ed Allow number filtering on Dispatch Rules (#707)
Allow inbound number filtering on  SIP Dispatch Rules. It works similar to Trunks, where rules without a number filter are grouped together and take less priority than number-specific rules.

While at it, simplify the rule evaluation.

Previously it was doing some hand-crafted checks for evaluation path, that matched the validation path. Same double logic existed for priorities as well.

Now the validation is always called from evaluation, thus sharing the logic. And rule selection is simplified by just picking the first one after priority filtering.
2024-05-07 19:23:35 +03:00
Denys Smirnov
e7962f4444 Pass additional metadata for SIP. (#696) 2024-04-26 13:44:03 +03:00
Denys Smirnov
912f0cf1cd Add bounds check when trimming the number. (#650) 2024-03-13 15:27:33 +02:00
Denys Smirnov
7a70c5da9b Expose trunks/dispatch validation for API/CLI. Deprecate regexps for inbound. (#623) 2024-03-01 11:38:19 +02:00
Denys Smirnov
d89487fdbc More specific SIP call dispatch result codes. (#596) 2024-02-08 17:54:07 +02:00
Denys Smirnov
f56f11e568 Generate unique room names for SIP. (#584) 2024-01-24 22:16:54 +02:00
Denys Smirnov
2e48332992 Pass participant kind in the grant. (#571) 2024-01-16 17:19:18 +02:00
Denys Smirnov
ec88d89da1 Move SIP rules from LiveKit server. (#534) 2023-11-30 12:36:07 -05:00