gophone icon indicating copy to clipboard operation
gophone copied to clipboard

SIPS SRV lookups bug

Open michael-salient opened this issue 7 months ago • 5 comments

I'm trying to call a WebEx SIP URI:

gophone -t tcp dial -media=audio sips:[email protected]:5061
Sep 19 09:25:30.561 INF Dial > Listening on transport addr=192.168.1.167:54387 protocol=tcp
Sep 19 09:25:30.561 INF Dial > Network ready
Sep 19 09:25:30.577 INF TransportLayer > IP addr resolving failed, doing via dns SRV resolver... error={"error":"lookup example.calls.webex.com: no such host","kind":"*net.DNSError","stack":null}
Sep 19 09:25:30.682 WRN TransportLayer > DNS resolution is slow dur=107.773167
Sep 19 09:25:30.683 ERR Dial > Call failed error={"error":"failed to create client transaction: fail to lookup SRV for \"prestigefinancial.calls.webex.com\": lookup _sip._tcp.example.calls.webex.com on [2600:1700:464:9400::1]:53: no such host","kind":"*fmt.wrapError","stack":null}
Sep 19 09:25:30.683 INF Dial > Closing dialog

There are SRV records under _sips instead of _sip: _sips._tcp.example.calls.webex.com

There should be a way to flag it, or it should guess from the sip uri.

Thank you for making this tool, it's very helpful for simple SIP call testing!

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

I realize now it's a challenge in a lower level library. I left a comment on https://github.com/emiago/sipgo/pull/155, someone else's attempt to add both, which was closed due to conflict with the current implementation. which added SRV lookup on _sip.*.

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

HI @michael-salient . Nice, yes it is probably issue on lib. I see now. This SIPS just has more work apperantely. Then I will have a look there. I see where it can be issue

emiago avatar Sep 20 '25 15:09 emiago

Will be fixed in next release. I will publish some pre release sooner to test. @michael-salien would you be able to recheck this?

emiago avatar Sep 26 '25 20:09 emiago

@emiago sure, I can try this pre-release! I think you have my email already.

michael-salient avatar Sep 27 '25 22:09 michael-salient

@michael-salient Can you try using build from this pre relase and let me know if this is fixed https://github.com/emiago/gophone/releases/tag/v1.11.0

emiago avatar Oct 05 '25 09:10 emiago