]> git.ipfire.org Git - thirdparty/asterisk.git/commit
chan_pjsip: Multidomain endpoint finding on call 70/4870/2
authorNorbert Varga <vnorbix@gmail.com>
Fri, 13 Jan 2017 17:21:36 +0000 (18:21 +0100)
committerJoshua Colp <jcolp@digium.com>
Mon, 13 Feb 2017 12:05:29 +0000 (06:05 -0600)
commit137b38f9463813633bc926b3f5c60452390dd402
treea0c27f3c387fd1494797e7893ae9d8d66877bd72
parentabf95615184b3780793d97e1b03fb7fa97ac90f4
chan_pjsip: Multidomain endpoint finding on call

When PJSIP tries to call an endpoint with a domain (e.g. 1000@test.com),
the user part is stripped down as it would be a trunk with a specified user,
and only the host part is called as a PJSIP endpoint and can't be found.
This is not correct in the case of a multidomain SIP account, so the stripping
after the @ sign is done only if the whole endpoint (in multidomain case
1000@test.com) can't be found.

ASTERISK-26248

Change-Id: I3a2dd6f57f3bd042df46b961eccd81d31ab202e6
channels/chan_pjsip.c