extractSipUsername
Static method that extracts the SIP username from a request body’s call.to field.
Strips the sip: or sips: protocol prefix and the @domain suffix, returning
just the username portion.
Parameters
requestBody
The parsed request body containing call information. Expected to have a call.to
field in SIP URI format (e.g., "sip:helpdesk@example.com").
Returns
string | null — The extracted SIP username, or null if not found.