]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip.c: Support endpoints with domain info in username
authorJoseph Nadiv <ynadiv@corpit.xyz>
Thu, 20 May 2021 07:15:30 +0000 (03:15 -0400)
committerGeorge Joseph <gjoseph@digium.com>
Wed, 26 May 2021 15:36:59 +0000 (10:36 -0500)
commitb21d4d1b87abff7221c1b79af3426790c3b091da
tree4a3a513691dfbbbd9847c6eec1933b1a830b3e3c
parent3aed36371633c538d370856da3ddc5b25467800e
res_pjsip.c: Support endpoints with domain info in username

In multidomain environments, it is desirable to create
PJSIP endpoints with the domain info in the endpoint name
in pjsip_endpoint.conf.  This resulted in an error with
registrations, NOTIFY, and OPTIONS packet generation.

This commit will detect if there is an @ in the endpoint
identifier and generate the URI accordingly so NOTIFY and
OPTIONS From headers will generate correctly.

ASTERISK-28393

Change-Id: I96f8d01dfdd5573ba7a28299e46271dd4210b619
doc/CHANGES-staging/res_pjsip.txt [new file with mode: 0644]
res/res_pjsip.c