Thanks - I've taken the pj_strdup_with_null in, but I'm keeping the code separate from proxy_process_register_response because my code has to parse <URI>;ignore-params not just <URI>, and I believe a bare pjsip_parse_uri will fail in this case.