From 09ca095b44d46a44c7d768f99ceb45903151a251 Mon Sep 17 00:00:00 2001 From: Emir Aganovic Date: Wed, 21 Dec 2022 21:30:48 +0100 Subject: [PATCH] Fix module path --- README.md | 6 +++--- client.go | 4 ++-- client_test.go | 2 +- example/dialog/main.go | 4 ++-- example/proxysip/main.go | 4 ++-- example/proxysip/main_test.go | 6 +++--- go.mod | 2 +- parser/parse_address.go | 2 +- parser/parse_content.go | 2 +- parser/parse_cseq.go | 2 +- parser/parse_params.go | 2 +- parser/parse_uri.go | 2 +- parser/parse_via.go | 2 +- parser/parser.go | 14 ++++++++------ parser/parser_test.go | 2 +- server.go | 4 ++-- server_dialog.go | 2 +- server_dialog_test.go | 4 ++-- server_integration_test.go | 2 +- server_test.go | 6 +++--- transaction/client_tx.go | 4 ++-- transaction/layer.go | 4 ++-- transaction/server_tx.go | 4 ++-- transaction/transaction.go | 2 +- transaction/tx.go | 4 ++-- transport/conn.go | 2 +- transport/layer.go | 4 ++-- transport/tcp.go | 4 ++-- transport/transport.go | 2 +- transport/udp.go | 4 ++-- transport/ws.go | 4 ++-- ua.go | 6 +++--- 32 files changed, 60 insertions(+), 58 deletions(-) diff --git a/README.md b/README.md index 97cf0ca..bb65931 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# sipgo +# SIPGO Library for writing fast SIP servers in GO language. It comes with SIP stack ([RFC 3261](https://datatracker.ietf.org/doc/html/rfc3261)) optimized for fast parsing. @@ -152,7 +152,7 @@ srv.OnDialog(func(d sip.Dialog) { `ClientDialog` TODO... ## Documentation -More on documentation you can find on [Go doc](https://pkg.go.dev/github.com/emiraganov/sipgo) +More on documentation you can find on [Go doc](https://pkg.go.dev/github.com/emiago/sipgo) ## Supported protocols @@ -181,6 +181,6 @@ This unfortunately required many design changes, therefore this libraries are no If you find this project interesting for support or contributing, you can contact me on [mail](emirfreelance91@gmail.com) -For bugs features pls create [issue](https://github.com/emiraganov/sipgo/issues). +For bugs features pls create [issue](https://github.com/emiago/sipgo/issues). diff --git a/client.go b/client.go index de8996f..5cea9dd 100644 --- a/client.go +++ b/client.go @@ -3,8 +3,8 @@ package sipgo import ( "net" - "github.com/emiraganov/sipgo/sip" - "github.com/emiraganov/sipgo/transport" + "github.com/emiago/sipgo/sip" + "github.com/emiago/sipgo/transport" "github.com/rs/zerolog" "github.com/rs/zerolog/log" ) diff --git a/client_test.go b/client_test.go index 536e76b..34459ba 100644 --- a/client_test.go +++ b/client_test.go @@ -3,7 +3,7 @@ package sipgo import ( "testing" - "github.com/emiraganov/sipgo/sip" + "github.com/emiago/sipgo/sip" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/example/dialog/main.go b/example/dialog/main.go index ca27ca9..978de0e 100644 --- a/example/dialog/main.go +++ b/example/dialog/main.go @@ -4,8 +4,8 @@ import ( "flag" "os" - "github.com/emiraganov/sipgo" - "github.com/emiraganov/sipgo/sip" + "github.com/emiago/sipgo" + "github.com/emiago/sipgo/sip" "github.com/rs/zerolog" "github.com/rs/zerolog/log" ) diff --git a/example/proxysip/main.go b/example/proxysip/main.go index 882e86a..79b27a6 100644 --- a/example/proxysip/main.go +++ b/example/proxysip/main.go @@ -8,11 +8,11 @@ import ( "runtime" "strconv" - "github.com/emiraganov/sipgo/sip" + "github.com/emiago/sipgo/sip" _ "net/http/pprof" - "github.com/emiraganov/sipgo" + "github.com/emiago/sipgo" "github.com/prometheus/client_golang/prometheus/promhttp" "github.com/rs/zerolog" diff --git a/example/proxysip/main_test.go b/example/proxysip/main_test.go index de28c99..55e8285 100644 --- a/example/proxysip/main_test.go +++ b/example/proxysip/main_test.go @@ -9,9 +9,9 @@ import ( "testing" "time" - "github.com/emiraganov/sipgo/fakes" - "github.com/emiraganov/sipgo/parser" - "github.com/emiraganov/sipgo/sip" + "github.com/emiago/sipgo/fakes" + "github.com/emiago/sipgo/parser" + "github.com/emiago/sipgo/sip" "github.com/rs/zerolog" "github.com/rs/zerolog/log" diff --git a/go.mod b/go.mod index b007bb0..3b16583 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/emiraganov/sipgo +module github.com/emiago/sipgo go 1.19 diff --git a/parser/parse_address.go b/parser/parse_address.go index 309b843..54edcc4 100644 --- a/parser/parse_address.go +++ b/parser/parse_address.go @@ -4,7 +4,7 @@ import ( "fmt" "strings" - "github.com/emiraganov/sipgo/sip" + "github.com/emiago/sipgo/sip" ) // ParseAddressValue parses an address - such as from a From, To, or diff --git a/parser/parse_content.go b/parser/parse_content.go index f2d1632..d0ac2a2 100644 --- a/parser/parse_content.go +++ b/parser/parse_content.go @@ -4,7 +4,7 @@ import ( "strconv" "strings" - "github.com/emiraganov/sipgo/sip" + "github.com/emiago/sipgo/sip" ) func parseContentLength(headerName string, headerText string) ( diff --git a/parser/parse_cseq.go b/parser/parse_cseq.go index 3572757..1f06395 100644 --- a/parser/parse_cseq.go +++ b/parser/parse_cseq.go @@ -5,7 +5,7 @@ import ( "strconv" "strings" - "github.com/emiraganov/sipgo/sip" + "github.com/emiago/sipgo/sip" ) // Parse a string representation of a CSeq header, returning a slice of at most one CSeq. diff --git a/parser/parse_params.go b/parser/parse_params.go index f0b6d4f..e1189f9 100644 --- a/parser/parse_params.go +++ b/parser/parse_params.go @@ -1,7 +1,7 @@ package parser import ( - "github.com/emiraganov/sipgo/sip" + "github.com/emiago/sipgo/sip" ) const ( diff --git a/parser/parse_uri.go b/parser/parse_uri.go index b27e0b8..5295130 100644 --- a/parser/parse_uri.go +++ b/parser/parse_uri.go @@ -4,7 +4,7 @@ import ( "fmt" "strconv" - "github.com/emiraganov/sipgo/sip" + "github.com/emiago/sipgo/sip" ) type uriFSM func(uri *sip.Uri, s string) (uriFSM, string, error) diff --git a/parser/parse_via.go b/parser/parse_via.go index 38dc2e7..a164bf5 100644 --- a/parser/parse_via.go +++ b/parser/parse_via.go @@ -4,7 +4,7 @@ import ( "strconv" "strings" - "github.com/emiraganov/sipgo/sip" + "github.com/emiago/sipgo/sip" ) // Parse a string representation of a Via header, returning a slice of at most one ViaHeader. diff --git a/parser/parser.go b/parser/parser.go index 36aa08b..0a5d754 100644 --- a/parser/parser.go +++ b/parser/parser.go @@ -1,4 +1,4 @@ -// Originaly forked from github.com/StefanKopieczek/gossip by @StefanKopieczek +// Originaly forked from github.com/StefanKopieczek/gossip by @StefanKopieczek package parser import ( @@ -10,7 +10,7 @@ import ( "strings" "sync" - "github.com/emiraganov/sipgo/sip" + "github.com/emiago/sipgo/sip" "github.com/rs/zerolog" "github.com/rs/zerolog/log" @@ -342,8 +342,9 @@ func isResponse(startLine string) bool { } // Parse the first line of a SIP request, e.g: -// INVITE bob@example.com SIP/2.0 -// REGISTER jane@telco.com SIP/1.0 +// +// INVITE bob@example.com SIP/2.0 +// REGISTER jane@telco.com SIP/1.0 func ParseRequestLine(requestLine string, recipient *sip.Uri) ( method sip.RequestMethod, sipVersion string, err error) { parts := strings.Split(requestLine, " ") @@ -365,8 +366,9 @@ func ParseRequestLine(requestLine string, recipient *sip.Uri) ( } // Parse the first line of a SIP response, e.g: -// SIP/2.0 200 OK -// SIP/1.0 403 Forbidden +// +// SIP/2.0 200 OK +// SIP/1.0 403 Forbidden func ParseStatusLine(statusLine string) ( sipVersion string, statusCode sip.StatusCode, reasonPhrase string, err error) { parts := strings.Split(statusLine, " ") diff --git a/parser/parser_test.go b/parser/parser_test.go index 33eab60..da2e699 100644 --- a/parser/parser_test.go +++ b/parser/parser_test.go @@ -8,7 +8,7 @@ import ( "testing" "time" - "github.com/emiraganov/sipgo/sip" + "github.com/emiago/sipgo/sip" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/server.go b/server.go index 2db9459..8f1d1b4 100644 --- a/server.go +++ b/server.go @@ -3,8 +3,8 @@ package sipgo import ( "context" - "github.com/emiraganov/sipgo/sip" - "github.com/emiraganov/sipgo/transport" + "github.com/emiago/sipgo/sip" + "github.com/emiago/sipgo/transport" "github.com/rs/zerolog" "github.com/rs/zerolog/log" diff --git a/server_dialog.go b/server_dialog.go index 5771b3b..873bfa0 100644 --- a/server_dialog.go +++ b/server_dialog.go @@ -1,7 +1,7 @@ package sipgo import ( - "github.com/emiraganov/sipgo/sip" + "github.com/emiago/sipgo/sip" ) // ServerDialog is extension of Server to support Dialog handling diff --git a/server_dialog_test.go b/server_dialog_test.go index 6adefa2..bec526b 100644 --- a/server_dialog_test.go +++ b/server_dialog_test.go @@ -5,8 +5,8 @@ import ( "net" "testing" - "github.com/emiraganov/sipgo/fakes" - "github.com/emiraganov/sipgo/sip" + "github.com/emiago/sipgo/fakes" + "github.com/emiago/sipgo/sip" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/server_integration_test.go b/server_integration_test.go index 7401ad7..ca63a37 100644 --- a/server_integration_test.go +++ b/server_integration_test.go @@ -4,7 +4,7 @@ import ( "testing" "time" - "github.com/emiraganov/sipgo/sip" + "github.com/emiago/sipgo/sip" "github.com/rs/zerolog" "github.com/rs/zerolog/log" "github.com/stretchr/testify/assert" diff --git a/server_test.go b/server_test.go index 3382f8d..5fedc45 100644 --- a/server_test.go +++ b/server_test.go @@ -10,9 +10,9 @@ import ( "testing" "time" - "github.com/emiraganov/sipgo/fakes" - "github.com/emiraganov/sipgo/parser" - "github.com/emiraganov/sipgo/sip" + "github.com/emiago/sipgo/fakes" + "github.com/emiago/sipgo/parser" + "github.com/emiago/sipgo/sip" "github.com/rs/zerolog" "github.com/rs/zerolog/log" "github.com/stretchr/testify/assert" diff --git a/transaction/client_tx.go b/transaction/client_tx.go index 5d76d1c..d07cec4 100644 --- a/transaction/client_tx.go +++ b/transaction/client_tx.go @@ -4,8 +4,8 @@ import ( "sync" "time" - "github.com/emiraganov/sipgo/sip" - "github.com/emiraganov/sipgo/transport" + "github.com/emiago/sipgo/sip" + "github.com/emiago/sipgo/transport" "github.com/rs/zerolog" ) diff --git a/transaction/layer.go b/transaction/layer.go index 632ff18..8f01490 100644 --- a/transaction/layer.go +++ b/transaction/layer.go @@ -3,8 +3,8 @@ package transaction import ( "fmt" - "github.com/emiraganov/sipgo/sip" - "github.com/emiraganov/sipgo/transport" + "github.com/emiago/sipgo/sip" + "github.com/emiago/sipgo/transport" "github.com/rs/zerolog" "github.com/rs/zerolog/log" diff --git a/transaction/server_tx.go b/transaction/server_tx.go index f021d94..a133ba8 100644 --- a/transaction/server_tx.go +++ b/transaction/server_tx.go @@ -5,8 +5,8 @@ import ( "sync" "time" - "github.com/emiraganov/sipgo/sip" - "github.com/emiraganov/sipgo/transport" + "github.com/emiago/sipgo/sip" + "github.com/emiago/sipgo/transport" "github.com/rs/zerolog" ) diff --git a/transaction/transaction.go b/transaction/transaction.go index 7f05696..7d289d3 100644 --- a/transaction/transaction.go +++ b/transaction/transaction.go @@ -8,7 +8,7 @@ import ( "sync" "time" - "github.com/emiraganov/sipgo/sip" + "github.com/emiago/sipgo/sip" ) const ( diff --git a/transaction/tx.go b/transaction/tx.go index 7f0b96d..52290af 100644 --- a/transaction/tx.go +++ b/transaction/tx.go @@ -3,8 +3,8 @@ package transaction import ( "sync" - "github.com/emiraganov/sipgo/sip" - "github.com/emiraganov/sipgo/transport" + "github.com/emiago/sipgo/sip" + "github.com/emiago/sipgo/transport" "github.com/rs/zerolog" ) diff --git a/transport/conn.go b/transport/conn.go index a74bfe1..35e9b5a 100644 --- a/transport/conn.go +++ b/transport/conn.go @@ -5,7 +5,7 @@ import ( "fmt" "net" - "github.com/emiraganov/sipgo/sip" + "github.com/emiago/sipgo/sip" ) type Connection interface { diff --git a/transport/layer.go b/transport/layer.go index 349cf9e..17be3d7 100644 --- a/transport/layer.go +++ b/transport/layer.go @@ -11,8 +11,8 @@ import ( "sync" "time" - "github.com/emiraganov/sipgo/parser" - "github.com/emiraganov/sipgo/sip" + "github.com/emiago/sipgo/parser" + "github.com/emiago/sipgo/sip" "github.com/rs/zerolog" "github.com/rs/zerolog/log" diff --git a/transport/tcp.go b/transport/tcp.go index 7931fa5..d77f038 100644 --- a/transport/tcp.go +++ b/transport/tcp.go @@ -8,8 +8,8 @@ import ( "net" "sync" - "github.com/emiraganov/sipgo/parser" - "github.com/emiraganov/sipgo/sip" + "github.com/emiago/sipgo/parser" + "github.com/emiago/sipgo/sip" "github.com/rs/zerolog" "github.com/rs/zerolog/log" diff --git a/transport/transport.go b/transport/transport.go index 1159911..3c33dbe 100644 --- a/transport/transport.go +++ b/transport/transport.go @@ -3,7 +3,7 @@ package transport import ( "net" - "github.com/emiraganov/sipgo/sip" + "github.com/emiago/sipgo/sip" ) var ( diff --git a/transport/udp.go b/transport/udp.go index a4b83ad..ab76555 100644 --- a/transport/udp.go +++ b/transport/udp.go @@ -7,8 +7,8 @@ import ( "strings" "sync" - "github.com/emiraganov/sipgo/parser" - "github.com/emiraganov/sipgo/sip" + "github.com/emiago/sipgo/parser" + "github.com/emiago/sipgo/sip" "github.com/rs/zerolog" "github.com/rs/zerolog/log" diff --git a/transport/ws.go b/transport/ws.go index 31b6ce3..f3096e2 100644 --- a/transport/ws.go +++ b/transport/ws.go @@ -9,8 +9,8 @@ import ( "net" "sync" - "github.com/emiraganov/sipgo/parser" - "github.com/emiraganov/sipgo/sip" + "github.com/emiago/sipgo/parser" + "github.com/emiago/sipgo/sip" "github.com/gobwas/ws" "github.com/rs/zerolog" diff --git a/ua.go b/ua.go index e02fd1a..a812065 100644 --- a/ua.go +++ b/ua.go @@ -5,9 +5,9 @@ import ( "net" "strings" - "github.com/emiraganov/sipgo/sip" - "github.com/emiraganov/sipgo/transaction" - "github.com/emiraganov/sipgo/transport" + "github.com/emiago/sipgo/sip" + "github.com/emiago/sipgo/transaction" + "github.com/emiago/sipgo/transport" ) type UserAgent struct {