Skip to content

PJSUA automatically print call dump to log when media is stopped or restarted#2855

Merged
nanangizz merged 1 commit intomasterfrom
auto-dump-call
Oct 20, 2021
Merged

PJSUA automatically print call dump to log when media is stopped or restarted#2855
nanangizz merged 1 commit intomasterfrom
auto-dump-call

Conversation

@nanangizz
Copy link
Copy Markdown
Member

After #2600, printing end-of-call media stats can be a bit cumbersome for app when the call is video only and the call end is initiated by remote.

Also, some pjsua app may not print the end-of-call media stats while it is usually important in debugging media issues.

unsigned part_len;
unsigned part_idx;
unsigned log_decor;
char *buf;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why does the buffer has to be dynamically allocated via the pool?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

when a large buffer is needed, typically allocated from heap (instead of stack which may have low size limit) is more friendly for embedded platforms. As this call dump is now part of the library, I think using heap is safer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants