我正在尝试为 android 构建 pjsip VoIP 应用程序。这是针对帐户配置中使用的属性给出的以下描述。
/**
* This option is used to update the transport address and the Contact
* header of REGISTER request. When this option is enabled, the library
* will keep track of the public IP address from the response of REGISTER
* request. Once it detects that the address has changed, it will
* unregister current Contact, update the Contact with transport address
* learned from Via header, and register a new Contact to the registrar.
* This will also update the public name of UDP transport if STUN is
* configured.
*
* See also contact_rewrite_method field.
*
* Default: 1 (yes)
*/
pj_bool_t allow_contact_rewrite;
到目前为止,通过地址仅由 pjsip 更改。这个属性究竟是如何工作的?我看不出有什么区别??