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, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <kamailio/kamailio/pull/3935/c2298999729@github.com>