]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_path.c: Fix path when dialing using PJSIP_DIAL_CONTACTS()
authorIgor Goncharovsky <igorg@iqtek.ru>
Sun, 12 May 2024 08:36:05 +0000 (14:36 +0600)
committerAsterisk Development Team <asteriskteam@digium.com>
Thu, 11 Jul 2024 13:22:44 +0000 (13:22 +0000)
commit19bbcf0bbf612e8968121221bbbff85aa8c990c3
tree9584cd852ae226bb0433d9a7416c4e027380c844
parente86bd1d97d4f7af1ad4ed0cc1b48964caaf771a6
res_pjsip_path.c: Fix path when dialing using PJSIP_DIAL_CONTACTS()

When using the PJSIP_DIAL_CONTACTS() function for use in the Dial()
command, the contacts are returned in text form, so the input to
the path_outgoing_request() function is a contact value of NULL.
The issue was reported in ASTERISK-28211, but was not actually fixed
in ASTERISK-30100. This fix brings back the code that was previously
removed and adds code to search for a contact to extract the path
value from it.

(cherry picked from commit 606df57b6446a8b6d5f44a8461080cdf399dcb3e)
res/res_pjsip_path.c