Dial(PJSIP/($EXTEN}) is how I do it and can confirm this DOES work and support Path.
I bet PJSIP_DIAL_CONTACTS probably generates a list of SIP URI and thereby short-cuts the path information stored.
From: Javier Vidal -- Quasar javier.quasar@gmail.com Reply-To: "Kamailio (SER) - Users Mailing List" sr-users@lists.kamailio.org Date: Friday, March 17, 2023 at 6:01 AM To: "Kamailio (SER) - Users Mailing List" sr-users@lists.kamailio.org Subject: [SR-Users] Re: OT: path support fix for asterisk
Hi all,
I have the problem with versión 20.2 when I use function PJSIP_DIAL_CONTACTS, the INVITE goes directly to Endpoint not going through the Proxy, Route header is not included.
Asterisk:
exten => _3XXX,1,Dial(${PJSIP_DIAL_CONTACTS(${EXTEN})}). -> Fail INVITE directly to Endpoint no use PATH
exten => _3XXX,1,Dial(PJSIP/${EXTEN}) -> Works fine INVITE going through the proxy
If make a call directly to JSIP extension works fine and the OPTIONS too using the proxy
Have any idea?
Best regards.
El dom, 5 mar 2023 a las 22:58, Social Boh (social@bohboh.info) escribió:
Hello,
I don't know if is the same thing by i using PATH support with Asterisk PJSIP from time:
Kamailio:
loadmodule "path.so"
# ----- path params -----
modparam("path", "use_received", 1)
REGISTER bLOCK
append_hf("Supported: path\r\n");
add_path();
rewritehostport("AsteriskIP:5060");
forward();
Asterisk:
[1000]
type=aor
max_contacts=5
remove_existing=yes
qualify_frequency=30
mailboxes=1000
support_path=yes
INVITE From Asterisk:
--- I'm SoCIaL, MayBe El 2/03/2023 a las 2:17 p. m., Henning Westerholt escribió:
Hello,
It’s off-topic, but it was several times discussed here on the list.
It seems that the upcoming 18.17 and 20.2 asterisk version seems to properly support path headers. From the announcement:
· [ASTERISK-30100] - res_pjsip: Path is ignored on INVITE to endpoint (Reported by Yury Kirsanov)
This bug has been many years open. have not tried it yet, but it looks promising.
Cheers,
Henning