]> 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:37:39 +0000 (10:37 -0500)
commit98e4119642e258b4159db89dc5ddf9e37365a344
tree19950fea7ddd75fe6f881d35a76c8f89cc963dec
parenta985e5069c0c3726f51d80718f33097b8ca029fd
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