Leading SIP - IMS - WebRTC Application Server
GNU Affero General Public License v3.0
240
stars
181
forks
source link
setPhoneNumber(number, context) does not update isGlobal when context is changed null <=> not null #352
Open
xhoaluu opened 6 years ago
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:
4) uri2=tel:+4711112222 isGlobal:true phone-context=null number=4711112222 5) uri2=tel:+11112222;phone-context=+47 isGlobal:true phone-context=+47 number=11112222