You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

14 lines
249 B

package sip
import (
"fmt"
)
// ResponseError encapsulates an unhandled >=400 SIP error response.
type ResponseError struct {
Msg *Msg
}
func (err *ResponseError) Error() string {
return fmt.Sprintf("%d: %s", err.Msg.Status, err.Msg.Phrase)
}