VoiSmart / pjsip-android

SIP Service for Android based on PJSIP
http://www.pjsip.org/
Apache License 2.0
290 stars 140 forks source link

Found an issue with userless account (getGuestAccountConfig) #141

Closed ghost closed 2 years ago

ghost commented 3 years ago

In the SipAccountData.java, getGuestAccountConfig() has a line of code accountConfig.getSipConfig().getProxies().add(getProxyUri());.

This will cause "gethostbyname() has returned error." when making a call with a userless account since the function try to find none-exist ProxyUri parameters from the account.

aenonGit commented 2 years ago

Well, it should not be that way, if you look at the code, if you want to use a guest account you need to call makeDirectCall which build the guest account with the required parameters. Those parameters will be also used to build all necessary data for that account.