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 or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3426#issuecomment-1522909987
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/3426/1522909987(a)github.com>