We should use the core parser and not re-implement parser component in modules, if not strictly necessary. One (probably unrelated) reason that get_from and get_pai return different results is that the grammar for both headers is different defined from the RFCs. But I agree that its confusing that get_from does not return display name, but get_pai does.
Have you tried to access only the user/domain part of the pai header, and not the full body? Have a look e.g. to the sipcapture module for an inspiration.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.