Skip to content

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

@xhoaluu

Description

@xhoaluu

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions