I just pushed an updated version.
I made some assumptions (also noted as comments):
1. When parsing the `FROM` body, all leading whitespace up to `<` are removed
when there is no Display Name.
2. We are modifying a valid SIP message (otherwise parser has already failed
beforehand). Therefore, we can check confidently, if there is `<` at the start
of the `FROM` body, the URI is enclosed in `< >`.
If this is not enough, we can always check the `FROM` body, if it contains `<`
followed by `>`.
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3935#issuecomment-2298999729
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/3935/c2298999...@github.com>
_______________________________________________
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org