From 6cc16143e4351cd7392b62032d65b575a0b7ff74 Mon Sep 17 00:00:00 2001 From: Emir Aganovic Date: Sat, 25 Feb 2023 00:57:33 +0100 Subject: [PATCH] Add register example to readme --- README.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/README.md b/README.md index b1ad8b0..cea2677 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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: +Call-ID: 1-1@10.10.1.1 +From: "sipp" ;tag=1SIPpTag001 +To: "uac" +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)