@@ -38,6 +38,7 @@ import (
3838 "github.com/sippy/go-b2bua/sippy/cli"
3939 "github.com/sippy/go-b2bua/sippy/log"
4040 "github.com/sippy/go-b2bua/sippy/net"
41+ "github.com/sippy/go-b2bua/sippy/rtp_proxy"
4142 "github.com/sippy/go-b2bua/sippy/time"
4243 "github.com/sippy/go-b2bua/sippy/utils"
4344)
@@ -52,11 +53,11 @@ type broadcaster struct {
5253 nparts int64
5354 results []string
5455 clim sippy_cli.CLIManagerIface
55- cmd * sippy .Rtp_proxy_cmd
56- sobj * sippy .Rtpp_stats
56+ cmd * rtp_proxy .Rtp_proxy_cmd
57+ sobj * rtp_proxy .Rtpp_stats
5758}
5859
59- func newBroadcaster (bcount int64 , clim sippy_cli.CLIManagerIface , cmd * sippy .Rtp_proxy_cmd ) * broadcaster {
60+ func newBroadcaster (bcount int64 , clim sippy_cli.CLIManagerIface , cmd * rtp_proxy .Rtp_proxy_cmd ) * broadcaster {
6061 return & broadcaster {
6162 results : make ([]string , 1000 ),
6263 bcount : bcount ,
@@ -356,7 +357,7 @@ func (self *rtp_cluster) up_command_udp(data []byte, address *sippy_net.HostPort
356357
357358func (self * rtp_cluster ) up_command (clim sippy_cli.CLIManagerIface , orig_cmd string ) {
358359 var rtpp * rtp_cluster_member
359- cmd , err := sippy .NewRtp_proxy_cmd (orig_cmd )
360+ cmd , err := rtp_proxy .NewRtp_proxy_cmd (orig_cmd )
360361 if err != nil {
361362 self .logger .Debugf ("Rtp_cluster.up_command(): error parsing cmd '%s': %s" , orig_cmd , err .Error ())
362363 return
@@ -453,7 +454,7 @@ func (self *rtp_cluster) up_command(clim sippy_cli.CLIManagerIface, orig_cmd str
453454 for _ , rtpp = range active {
454455 out_cmd_s := orig_cmd
455456 if (cmd .Type == 'U' || cmd .Type == 'L' ) && rtpp .lan_address != "" {
456- out_cmd , err := sippy .NewRtp_proxy_cmd (orig_cmd )
457+ out_cmd , err := rtp_proxy .NewRtp_proxy_cmd (orig_cmd )
457458 if err != nil {
458459 self .logger .Errorf ("Error parsing cmd '%s': %s: " , orig_cmd , err .Error ())
459460 return
@@ -499,7 +500,7 @@ func (self *rtp_cluster) up_command(clim sippy_cli.CLIManagerIface, orig_cmd str
499500 }
500501 }
501502 br := newBroadcaster (int64 (len (active )), clim , cmd )
502- br .sobj = sippy .NewRtpp_stats (strings .Fields (cmd .Args ))
503+ br .sobj = rtp_proxy .NewRtpp_stats (strings .Fields (cmd .Args ))
503504 if cmd .CommandOpts != "" && strings .ToLower (cmd .CommandOpts ) == "v" {
504505 cmd .CommandOpts = ""
505506 br .sobj .Verbose = true
@@ -516,7 +517,7 @@ func (self *rtp_cluster) up_command(clim sippy_cli.CLIManagerIface, orig_cmd str
516517 //print 'rtpp.send_command'
517518 var out_cmd string
518519 if (cmd .Type == 'U' || cmd .Type == 'L' ) && rtpp .lan_address != "" {
519- cmd , err := sippy .NewRtp_proxy_cmd (orig_cmd )
520+ cmd , err := rtp_proxy .NewRtp_proxy_cmd (orig_cmd )
520521 if err != nil {
521522 self .logger .Errorf ("Error parsing cmd '%s': %s: " , orig_cmd , err .Error ())
522523 return
@@ -537,7 +538,7 @@ func (self *rtp_cluster) rCachePurge() {
537538 self .l1rcache = make (map [string ]string )
538539}
539540
540- func (self * rtp_cluster ) down_command (result string , clim sippy_cli.CLIManagerIface , cmd * sippy .Rtp_proxy_cmd , rtpp * rtp_cluster_member ) {
541+ func (self * rtp_cluster ) down_command (result string , clim sippy_cli.CLIManagerIface , cmd * rtp_proxy .Rtp_proxy_cmd , rtpp * rtp_cluster_member ) {
541542 if udpclim , ok := clim .(* udpCLIM ); ok {
542543 self .lock .Lock ()
543544 if _ , ok = self .commands_inflight [udpclim .cookie ]; ok {
@@ -571,7 +572,7 @@ func (self *rtp_cluster) down_command(result string, clim sippy_cli.CLIManagerIf
571572 clim .Close ()
572573}
573574
574- func (self * rtp_cluster ) ignore_response (result string , clim sippy_cli.CLIManagerIface , cmd * sippy .Rtp_proxy_cmd , rtpp * rtp_cluster_member ) {
575+ func (self * rtp_cluster ) ignore_response (result string , clim sippy_cli.CLIManagerIface , cmd * rtp_proxy .Rtp_proxy_cmd , rtpp * rtp_cluster_member ) {
575576 self .logger .Debugf ("Got delayed response from node \" %s\" to already completed request, ignoring: \" %s\" " , rtpp .name , result )
576577}
577578
0 commit comments