Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setPhoneNumber(number, context) does not update isGlobal when context is changed null <=> not null #352

Open
xhoaluu opened this issue Dec 20, 2017 · 1 comment

Comments

@xhoaluu
Copy link
Contributor

xhoaluu commented Dec 20, 2017

setPhoneNumber(number, context) does not update isGlobal when context is changed null <=> not null

final TelURL uri2 = (TelURL)sipFactory.createURI("tel:+4711112222");
mLogger.debug("4) uri2="+uri2+" isGlobal:"+uri2.isGlobal()+
" phone-context="+uri2.getPhoneContext()+
" number="+uri2.getPhoneNumber());

uri2.setPhoneNumber("11112222", "+47");
mLogger.debug("5) uri2="+uri2+" isGlobal:"+uri2.isGlobal()+
" phone-context="+uri2.getPhoneContext()+
" number="+uri2.getPhoneNumber());

and it prints:

  1. uri2=tel:+4711112222 isGlobal:true phone-context=null number=4711112222
  2. uri2=tel:+11112222;phone-context=+47 isGlobal:true phone-context=+47 number=11112222
@xhoaluu
Copy link
Contributor Author

xhoaluu commented Dec 25, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant