Skip to content

Commit

Permalink
fix: psip update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
emiago committed Nov 2, 2023
1 parent a1c952b commit cb76edc
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion psip/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ With this simple logic proxy builder can do:
- Digest auth out of box
- Dialog routing out of box

## Inbound Outbound targets
## Building proxy options
### Inbound Outbound targets

Here how to configure proxy inbound/outbound targets.

Expand All @@ -107,6 +108,26 @@ WithProxyOutboundTarget(
0.5 // In case multiple matching carrier < 1.0 request is loadbalanced
)
```

### Running as registrar

```go

store := NewRegistryMemory()
WithProxyRegistry(store)
```
`WithProxyRegistry` receives interface so any external database can be implemented.
In this case `RelayRequest` will call internal registry handler

### Presence

```go

presence := NewUserPresenceMemory()
WithProxyUserPresence(presence)
```
SUBSCRIBE and NOTIFY will be handled by local presence service
In this case `RelayRequest` will call internal presence handler
## RelayRequest

`RelayRequest` flow:
Expand Down

0 comments on commit cb76edc

Please sign in to comment.