freeswitch/freetdm

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

Opened this issue · 0 comments

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.