]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_session: Prevent user=phone being added to anonimized URIs.
authorDaniel Tryba <daniel@tryba.nl>
Fri, 6 Oct 2017 09:55:38 +0000 (11:55 +0200)
committerKevin Harwell <kharwell@digium.com>
Thu, 12 Oct 2017 16:05:58 +0000 (11:05 -0500)
commit58c071e7cae64ce6d9e9c5e7c254ef16c67e6c08
tree5c0fab46bd308cd1084037060a380bf4979b033b
parentafb7c500556426650c5893ff3292ded027de5a0c
res_pjsip_session: Prevent user=phone being added to anonimized URIs.

Move ast_sip_add_usereqphone to be called after anonymization of URIs,
to prevent the user_eq_phone adding "user=phone" to URIs containing a
username that is not a phonenumber (RFC3261 19.1.1). An extra call to
ast_sip_add_usereqphone on the saved version before anonymization is
added to add user=phone" to the PAI.

ASTERISK-27047 #close

Change-Id: Ie5644bc66341b86dc08b1f7442210de2e6acdec6
res/res_pjsip_session.c