pyVoIP icon indicating copy to clipboard operation
pyVoIP copied to clipboard

Package conflates SIP domain and server hostname

Open nwhitehorn opened this issue 2 years ago • 2 comments

The SIP client code uses the server as the domain for the SIP account, such that SIP ID [email protected] will try to send data to a server identified by the DNS A record example.com. There are a number of cases where this does not happen:

  • If the server is supposed to be looked by SRV records instead of A record
  • If the user is supposed to use some proxy server with a different hostname

It would be great if both SRV records would be supported and a proxy server host could be specified.

Also, thanks so much for writing this. The Python SIP situation was pretty dire and I am delighted to see the fast progress you have made here.

nwhitehorn avatar Jan 20 '23 19:01 nwhitehorn

Thank you for your kind words @nwhitehorn, and for the issue. I planned on implementing proper hostname resolution with SRV records, but I had not created an issue for it yet.

Proxy support has come up repeatedly in issues. I personally test with Asterisk, which is a PBX/Registrar, and not a proxy. Do you know of any good SIP proxy software that I could write tests against? If not, perhaps a free online service? I'd like proxy support to be implemented in 2.0.0

tayler6000 avatar May 09 '23 03:05 tayler6000

We use kamailio, if it's helpful. Not always the easiest to configure, unfortunately.

nwhitehorn avatar May 09 '23 10:05 nwhitehorn