我想使用Android SIP Sample App。我的问题是我尝试用我的服务器端口443更改默认端口(5060)我有这些错误:
java.lang.IllegalArgumentException: incorrect port arugment: 443
我用于更改端口:
SipProfile.Builder builder = new SipProfile.Builder(username, server);
builder.setPort(443);
请有人帮帮我吗?!
答案 0 :(得分:2)
试试此代码
SipProfile.Builder builder = new SipProfile.Builder(username, uri.getHost())
builder.setPort(uri.getPort());
builder.build();