Skip to content

Called/calling numbers gets truncated to a len of 8 on libpri-based interfaces #7

@xadhoom

Description

@xadhoom

In current freetdm, just after the split from FS codebase, incoming cid num and dnis gets truncated to a fixed size of 8.

Looking into commits history this seems the culprit:
f698205#diff-799d73a265908a5bf4b30ab348dc83ef07004c1ddd57c7263824c41d61109209R136

wondering if is a slipped in modification or what, since appears in a totally unrelated commit.

In ftmod_libpri ftdtm_set_string is called with a pointer as src argument and the above modification will get the sizeof of the pointer to src, not the real size of the data, as @davec82 mentioned in commit comments.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions