Skip to content

NethVoice: SRTP not working if one extension in the dial string has it disabled #7560

@Stell0

Description

@Stell0

If one of the extensions in the dial string has SRTP disabled, isTrunk = 1 header is used for all extensions called. This is because the freepbx func-set-sipheaders is called once before the Dial, but then func-apply-sipheaders is called once for each extension in the dial with always the same headers.

The consequence is that if the encrypted extension has strict SRTP (like it is for the mobile app), call fails

This bug is introduced with nethesis/ns8-nethvoice#489

Steps to reproduce

  • give to an user two devices, one encrypted one not encrypted
  • call user

Expected behavior

  • isTrunk=1 header should be present only in the INVITE for the unencrypted extension

Actual behavior

  • both INVITE has isTrunk=1 header

Workaround

  • Enable encryption for all user's extensions

See also

https://mattermost.nethesis.it/nethesis/pl/p8ncyx9j87yqzfkr9idghezxoa

Metadata

Metadata

Assignees

No one assigned

    Labels

    nethvoiceBug or features releted to the NethVoice project

    Type

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions