mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-23 16:18:44 +05:00
Added test for DNSAgent
This commit is contained in:
committed by
Dan Christian Bogos
parent
c36e498a7f
commit
8904dc1769
@@ -341,8 +341,7 @@ type SIPURIHostConverter struct{}
|
||||
|
||||
// Convert implements DataConverter interface
|
||||
func (*SIPURIHostConverter) Convert(in interface{}) (out interface{}, err error) {
|
||||
val := IfaceAsString(in)
|
||||
return sipingo.HostFrom(val), nil
|
||||
return sipingo.HostFrom(IfaceAsString(in)), nil
|
||||
}
|
||||
|
||||
// SIPURIUserConverter will return the
|
||||
@@ -350,8 +349,7 @@ type SIPURIUserConverter struct{}
|
||||
|
||||
// Convert implements DataConverter interface
|
||||
func (*SIPURIUserConverter) Convert(in interface{}) (out interface{}, err error) {
|
||||
val := IfaceAsString(in)
|
||||
return sipingo.UserFrom(val), nil
|
||||
return sipingo.UserFrom(IfaceAsString(in)), nil
|
||||
}
|
||||
|
||||
// SIPURIMethodConverter will return the
|
||||
@@ -359,8 +357,7 @@ type SIPURIMethodConverter struct{}
|
||||
|
||||
// Convert implements DataConverter interface
|
||||
func (*SIPURIMethodConverter) Convert(in interface{}) (out interface{}, err error) {
|
||||
val := IfaceAsString(in)
|
||||
return sipingo.MethodFrom(val), nil
|
||||
return sipingo.MethodFrom(IfaceAsString(in)), nil
|
||||
}
|
||||
|
||||
func NewTimeStringConverter(params string) (hdlr DataConverter) {
|
||||
|
||||
Reference in New Issue
Block a user