Skip to content

Commit

Permalink
Fix module path
Browse files Browse the repository at this point in the history
  • Loading branch information
emiago committed Dec 21, 2022
1 parent 229e8ee commit 09ca095
Show file tree
Hide file tree
Showing 32 changed files with 60 additions and 58 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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]([email protected])

For bugs features pls create [issue](https://github.com/emiraganov/sipgo/issues).
For bugs features pls create [issue](https://github.com/emiago/sipgo/issues).


4 changes: 2 additions & 2 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
2 changes: 1 addition & 1 deletion client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
4 changes: 2 additions & 2 deletions example/dialog/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
4 changes: 2 additions & 2 deletions example/proxysip/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 3 additions & 3 deletions example/proxysip/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/emiraganov/sipgo
module github.com/emiago/sipgo

go 1.19

Expand Down
2 changes: 1 addition & 1 deletion parser/parse_address.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion parser/parse_content.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"strconv"
"strings"

"github.com/emiraganov/sipgo/sip"
"github.com/emiago/sipgo/sip"
)

func parseContentLength(headerName string, headerText string) (
Expand Down
2 changes: 1 addition & 1 deletion parser/parse_cseq.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion parser/parse_params.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package parser

import (
"github.com/emiraganov/sipgo/sip"
"github.com/emiago/sipgo/sip"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion parser/parse_uri.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion parser/parse_via.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
14 changes: 8 additions & 6 deletions parser/parser.go
Original file line number Diff line number Diff line change
@@ -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 (
Expand All @@ -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"
Expand Down Expand Up @@ -342,8 +342,9 @@ func isResponse(startLine string) bool {
}

// Parse the first line of a SIP request, e.g:
// INVITE [email protected] SIP/2.0
// REGISTER [email protected] SIP/1.0
//
// INVITE [email protected] SIP/2.0
// REGISTER [email protected] SIP/1.0
func ParseRequestLine(requestLine string, recipient *sip.Uri) (
method sip.RequestMethod, sipVersion string, err error) {
parts := strings.Split(requestLine, " ")
Expand All @@ -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, " ")
Expand Down
2 changes: 1 addition & 1 deletion parser/parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion server_dialog.go
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions server_dialog_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
2 changes: 1 addition & 1 deletion server_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 3 additions & 3 deletions server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions transaction/client_tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
4 changes: 2 additions & 2 deletions transaction/layer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions transaction/server_tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
2 changes: 1 addition & 1 deletion transaction/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"sync"
"time"

"github.com/emiraganov/sipgo/sip"
"github.com/emiago/sipgo/sip"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions transaction/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
2 changes: 1 addition & 1 deletion transport/conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"net"

"github.com/emiraganov/sipgo/sip"
"github.com/emiago/sipgo/sip"
)

type Connection interface {
Expand Down
4 changes: 2 additions & 2 deletions transport/layer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions transport/tcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion transport/transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package transport
import (
"net"

"github.com/emiraganov/sipgo/sip"
"github.com/emiago/sipgo/sip"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions transport/udp.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions transport/ws.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 3 additions & 3 deletions ua.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 09ca095

Please sign in to comment.