]> 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:08 +0000 (17:02 +0000)
commit606df57b6446a8b6d5f44a8461080cdf399dcb3e
treef606a26b339b127dc30126f94c3f3ce621603a3c
parentd59f1a0c44cb32dad4a22e08b832484e8d72f23c
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