]> 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)
committerIgor Goncharovsky <igorg@iqtek.ru>
Wed, 10 Jul 2024 17:02:10 +0000 (17:02 +0000)
commitcaa1820d2bb643ec9e891d082d9f6f1a85b05108
tree6d974767bebd81e0e36a5fcae97fdf0d6942d091
parentac9c510d991a3dc95dbd12261da8f992c80ced29
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.
res/res_pjsip_path.c