Hi Javier,

I have not tested this new version and I think it would be best if you raise this question in the Asterisk Forums.

However, a workaround may be to build a dial group using the URIs obtained from the endpoint's contacts and see if it works.

Regards

On Tue, Mar 21, 2023 at 1:13 AM Javier Vidal -- Quasar <javier.quasar@gmail.com> wrote:
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

 

 

--

Henning Westerholt – https://skalatan.de/blog/

Kamailio services – https://gilawa.com

 

 


__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-leave@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-leave@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-leave@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:


--
Yitzchak Pachtman | Director of PBX Engineering 
OKG Tech | 30 Melnick Dr #2, Monsey, NY 10952
845-671-4700 x6406 | F 845-671-4701| E ypachtman@okgtech.com