Skip to content

Commit

Permalink
Add register example to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
emiago committed Feb 24, 2023
1 parent c1be038 commit 6cc1614
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ To find out more about performance check the latest results:
## Examples

Stateful proxy [example/proxysip](example/proxysip)
Register with authentication [example/register](example/register)
Dialog [example/dialog](example/dialog)

## Usage
Expand Down Expand Up @@ -177,6 +178,30 @@ srv.OnDialog(func(d sip.Dialog) {

`ClientDialog` TODO...

## SIP Debug

You can have full SIP messages dumped from transport into Debug level message.

Example:
```go
transport.SIPDebug = true
```

```
Feb 24 23:32:26.493191 DBG UDP read 10.10.0.10:5060 <- 10.10.0.100:5060:
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 10.10.0.10:5060;rport=5060;received=10.10.0.10;branch=z9hG4bK.G3nCwpXAKJQ0T2oZUII70wuQx9NeXc61;alias
Via: SIP/2.0/UDP 10.10.1.1:5060;branch=z9hG4bK-1-1-0
Record-Route: <sip:10.10.0.10;transport=udp;lr>
Call-ID: [email protected]
From: "sipp" <sip:[email protected]>;tag=1SIPpTag001
To: "uac" <sip:[email protected]>
CSeq: 1 INVITE
Server: Asterisk PBX 18.16.0
Content-Length: 0
```


## Documentation
More on documentation you can find on [Go doc](https://pkg.go.dev/github.com/emiago/sipgo)

Expand Down

0 comments on commit 6cc1614

Please sign in to comment.