From 8eba613a010560f9fced4c3cbe9de5729685e6b0 Mon Sep 17 00:00:00 2001 From: Andrew Querol <aquerol@percipia.com> Date: Tue, 6 Oct 2020 13:28:57 -0500 Subject: [PATCH] Update the package to use the new opensource repository and name --- command/call/execute.go | 2 +- command/call/hangup.go | 2 +- command/call/nomedia.go | 2 +- command/call/transfer.go | 2 +- command/call/unicast.go | 2 +- connection.go | 4 ++-- connection_test.go | 4 ++-- event.go | 2 +- event_test.go | 2 +- example/inbound.go | 4 ++-- example/outbound.go | 6 +++--- go.mod | 2 +- helper.go | 6 +++--- inbound.go | 4 ++-- outbound.go | 4 ++-- response.go | 2 +- utils.go | 2 +- utils_test.go | 2 +- 18 files changed, 27 insertions(+), 27 deletions(-) diff --git a/command/call/execute.go b/command/call/execute.go index 2cbba1a..9af4c04 100644 --- a/command/call/execute.go +++ b/command/call/execute.go @@ -12,7 +12,7 @@ package call import ( "fmt" - "gitlab.percipia.com/libs/go/freeswitchesl/command" + "github.com/percipia/eslgo/command" "net/textproto" "strconv" ) diff --git a/command/call/hangup.go b/command/call/hangup.go index 60b4b64..1de4f3f 100644 --- a/command/call/hangup.go +++ b/command/call/hangup.go @@ -11,7 +11,7 @@ package call import ( - "gitlab.percipia.com/libs/go/freeswitchesl/command" + "github.com/percipia/eslgo/command" "net/textproto" ) diff --git a/command/call/nomedia.go b/command/call/nomedia.go index 12a5474..bdcd091 100644 --- a/command/call/nomedia.go +++ b/command/call/nomedia.go @@ -11,7 +11,7 @@ package call import ( - "gitlab.percipia.com/libs/go/freeswitchesl/command" + "github.com/percipia/eslgo/command" "net/textproto" ) diff --git a/command/call/transfer.go b/command/call/transfer.go index 1b95cbd..621068e 100644 --- a/command/call/transfer.go +++ b/command/call/transfer.go @@ -11,7 +11,7 @@ package call import ( - "gitlab.percipia.com/libs/go/freeswitchesl/command" + "github.com/percipia/eslgo/command" "net/textproto" ) diff --git a/command/call/unicast.go b/command/call/unicast.go index cad36fb..302ec40 100644 --- a/command/call/unicast.go +++ b/command/call/unicast.go @@ -11,7 +11,7 @@ package call import ( - "gitlab.percipia.com/libs/go/freeswitchesl/command" + "github.com/percipia/eslgo/command" "net" "net/textproto" ) diff --git a/connection.go b/connection.go index af7b338..c9be3ec 100644 --- a/connection.go +++ b/connection.go @@ -8,14 +8,14 @@ * Contributor(s): * Andrew Querol <aquerol@percipia.com> */ -package freeswitchesl +package eslgo import ( "bufio" "context" "errors" "github.com/google/uuid" - "gitlab.percipia.com/libs/go/freeswitchesl/command" + "github.com/percipia/eslgo/command" "log" "net" "net/textproto" diff --git a/connection_test.go b/connection_test.go index 664cb18..e87c04b 100644 --- a/connection_test.go +++ b/connection_test.go @@ -8,13 +8,13 @@ * Contributor(s): * Andrew Querol <aquerol@percipia.com> */ -package freeswitchesl +package eslgo import ( "bufio" "context" + "github.com/percipia/eslgo/command" "github.com/stretchr/testify/assert" - "gitlab.percipia.com/libs/go/freeswitchesl/command" "net" "sync" "testing" diff --git a/event.go b/event.go index 42ff441..11c2031 100644 --- a/event.go +++ b/event.go @@ -8,7 +8,7 @@ * Contributor(s): * Andrew Querol <aquerol@percipia.com> */ -package freeswitchesl +package eslgo import ( "bufio" diff --git a/event_test.go b/event_test.go index 48b40ff..8184806 100644 --- a/event_test.go +++ b/event_test.go @@ -8,7 +8,7 @@ * Contributor(s): * Andrew Querol <aquerol@percipia.com> */ -package freeswitchesl +package eslgo import ( "github.com/stretchr/testify/assert" diff --git a/example/inbound.go b/example/inbound.go index 9d2b75f..5b27021 100644 --- a/example/inbound.go +++ b/example/inbound.go @@ -13,12 +13,12 @@ package main import ( "context" "fmt" - "gitlab.percipia.com/libs/go/freeswitchesl" + "github.com/percipia/eslgo" "time" ) func main() { - conn, err := freeswitchesl.Dial("127.0.0.1", "ClueCon", func() { + conn, err := eslgo.Dial("127.0.0.1", "ClueCon", func() { fmt.Println("Inbound Connection Done") }) diff --git a/example/outbound.go b/example/outbound.go index 50ff632..e1b6ec4 100644 --- a/example/outbound.go +++ b/example/outbound.go @@ -13,15 +13,15 @@ package main import ( "context" "fmt" - "gitlab.percipia.com/libs/go/freeswitchesl" + "github.com/percipia/eslgo" "log" ) func main() { - log.Fatalln(freeswitchesl.ListenAndServe(":8084", handleConnection)) + log.Fatalln(eslgo.ListenAndServe(":8084", handleConnection)) } -func handleConnection(ctx context.Context, conn *freeswitchesl.Conn, response *freeswitchesl.RawResponse) { +func handleConnection(ctx context.Context, conn *eslgo.Conn, response *eslgo.RawResponse) { fmt.Printf("Got connection! %#v\n", response) _ = conn.EnableEvents(ctx) originationUUID, response, err := conn.OriginateCall(ctx, "user/100", "&playback(misc/ivr-to_hear_screaming_monkeys.wav)", map[string]string{}) diff --git a/go.mod b/go.mod index 13f391c..3a3d1f8 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module gitlab.percipia.com/libs/go/freeswitchesl +module github.com/percipia/eslgo go 1.14 diff --git a/helper.go b/helper.go index a50cb1c..2c3f841 100644 --- a/helper.go +++ b/helper.go @@ -8,15 +8,15 @@ * Contributor(s): * Andrew Querol <aquerol@percipia.com> */ -package freeswitchesl +package eslgo import ( "context" "errors" "fmt" "github.com/google/uuid" - "gitlab.percipia.com/libs/go/freeswitchesl/command" - "gitlab.percipia.com/libs/go/freeswitchesl/command/call" + "github.com/percipia/eslgo/command" + "github.com/percipia/eslgo/command/call" "io" "log" "strings" diff --git a/inbound.go b/inbound.go index e50c115..b821a8a 100644 --- a/inbound.go +++ b/inbound.go @@ -8,12 +8,12 @@ * Contributor(s): * Andrew Querol <aquerol@percipia.com> */ -package freeswitchesl +package eslgo import ( "context" "fmt" - "gitlab.percipia.com/libs/go/freeswitchesl/command" + "github.com/percipia/eslgo/command" "log" "net" ) diff --git a/outbound.go b/outbound.go index 23a0439..6a1fb1f 100644 --- a/outbound.go +++ b/outbound.go @@ -8,12 +8,12 @@ * Contributor(s): * Andrew Querol <aquerol@percipia.com> */ -package freeswitchesl +package eslgo import ( "context" "errors" - "gitlab.percipia.com/libs/go/freeswitchesl/command" + "github.com/percipia/eslgo/command" "log" "net" "time" diff --git a/response.go b/response.go index f011ecc..ef3760e 100644 --- a/response.go +++ b/response.go @@ -8,7 +8,7 @@ * Contributor(s): * Andrew Querol <aquerol@percipia.com> */ -package freeswitchesl +package eslgo import ( "fmt" diff --git a/utils.go b/utils.go index acb14ae..1e7ca36 100644 --- a/utils.go +++ b/utils.go @@ -8,7 +8,7 @@ * Contributor(s): * Andrew Querol <aquerol@percipia.com> */ -package freeswitchesl +package eslgo import ( "fmt" diff --git a/utils_test.go b/utils_test.go index 3e821b7..b4d8382 100644 --- a/utils_test.go +++ b/utils_test.go @@ -8,7 +8,7 @@ * Contributor(s): * Andrew Querol <aquerol@percipia.com> */ -package freeswitchesl +package eslgo import ( "github.com/stretchr/testify/assert"