]> 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:18 +0000 (13:22 +0000)
commit38aab7a9ad766fd9a9fb9b10d489f9ea6605e856
treec2079b5f5eaf77cae91d11373a60b8fdc26beefd
parent9fc2ada28c864563a47271ace7632dbe4182118f
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 caa1820d2bb643ec9e891d082d9f6f1a85b05108)
res/res_pjsip_path.c