sip icon indicating copy to clipboard operation
sip copied to clipboard

No way to use _sips SRV record

Open michael-salient opened this issue 2 months ago • 1 comments

if I set up a SIP outbound trunk like so:

lk sip out create --name test_cisco_webex --numbers "1234567890 --address example.calls.webex.com:5061 --transport tls

I would expect it would try to look up _sips._tcp.example.calls.webex.com

Instead, it will try to look up the SRV record in `_sip._tcp.example.calls.webex.com:

Error creating SIP participant: TwirpError(code=unknown, message=twirp error unknown: fail to resolve target for "example.calls.webex.com": lookup _sip._tcp.example.calls.webex.com on 172.20.0.10:53: no such host, status=500)

Is there a workaround here?

michael-salient avatar Sep 19 '25 16:09 michael-salient

A fix could be that this line: https://github.com/emiago/sipgo/blob/9bbb4febff533548072b3d0c4e46de8969ad4cd1/sip/transport_layer.go#L524

could try l.dnsResolver.LookupSRV(ctx, "sips", proto, hostname) then l.dnsResolver.LookupSRV(ctx, "sip", proto, hostname)`.

Will this be hard to fix since you use an old version of sipgo (https://github.com/livekit/sipgo)?

michael-salient avatar Sep 19 '25 17:09 michael-salient