You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use your pkg, and I find myself facing multiple worries.
First of all, in the endpoint.go file, the GetNetworkInfo function doesn't take the value Endpoint.ip
It makes errors when sending a call, or the caller can't find his interlocutor.
in the logs of my sip server, I have two different IPs, in LAN IP I have address 1 and in IP I have address 2.
Here is the function that works:
func (e EndPoint) GetNetworkInfo(protocol string) *transport.Target {
//logger := e.Log() // Comment this because UNUSED
var target transport.Target
target.Host = e.ip.String() //CHANGE HERE
//the check do in the creation of the endpoint
network := strings.ToUpper(protocol)
if p, ok := e.listenPorts[network]; ok {
target.Port = p
} else {
defPort := transport.DefaultPort(network)
target.Port = &defPort
}
return &target
}
My second concern is the receptionand sending of audio, I can't find any example or any function allowing me to read or write the streams.
Thank you for making this library :D
The text was updated successfully, but these errors were encountered:
The SIP Stack seem to find a wrong network interface,and write a wrong ip address to sip protocol.Because the lib create sip stack in advacnce,and then listen to a udp port.So the SipStackConfig.Host has been set a wrong address, unless you set a correct host.
SIP protocol not handle other data transform. In my case,the audio data encoded by PCMU and use RTP protocol.This information defined in sip's payload by sdp protocol:
I'm trying to use your pkg, and I find myself facing multiple worries.
First of all, in the endpoint.go file, the GetNetworkInfo function doesn't take the value Endpoint.ip
It makes errors when sending a call, or the caller can't find his interlocutor.
in the logs of my sip server, I have two different IPs, in LAN IP I have address 1 and in IP I have address 2.
Here is the function that works:
My second concern is the receptionand sending of audio, I can't find any example or any function allowing me to read or write the streams.
Thank you for making this library :D
The text was updated successfully, but these errors were encountered: