bug in pjsua_acc.c?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Tristan,

This is actually an undocumented feature to force re-registration even with
private IP, if allow_contact_rewrite is set to 2.

Regards,
Ming


On Fri, Nov 15, 2013 at 7:05 AM, Tristan Matthews <
tristan.matthews at savoirfairelinux.com> wrote:

> I noticed a few suspicious conditionals pertaining to contact rewrite,
> along the lines of
> if (acc->cfg.allow_contact_rewrite != 2
>
> However, allow_contact_rewrite is a pj_bool_t and should only ever be set
> to PJ_TRUE or PJ_FALSE.
> I expect that the intentions was to write
> if (acc->cfg.contact_rewrite_method != 2
>
> I've attached a patch.
>
> Best,
> Tristan
>
> --
>
> Tristan Matthews
> D?veloppeur de logiciels libres
> tristan.matthews at savoirfairelinux.com
> Ligne directe: 514-276-5468 poste 190
>
> Fax : 514-276-5465
> 7275 Saint Urbain
> Bureau 200
> Montr?al, QC, H2R 2Y5
>
>
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20131115/d4ee3159/attachment-0001.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux