Asterisk is sending that because of that record-route. I think you need to add your record-route:

https://kamailio.org/docs/modules/5.1.x/modules/rr.html#record-route-id-dev

Hope that helps

David

On Fri, 23 Aug 2019 at 23:01, David Villasmil <david.villasmil.work@gmail.com> wrote:
I think t's sending a public 34.73 because of that record.route. Can you paster the original INVITE? Who added that record-route?

Regards,

David Villasmil
phone: +34669448337


On Fri, Aug 23, 2019 at 4:19 PM Diogo Hartmann <diogo@3cplusnow.com> wrote:
Hi David, the 200 Oks are attached. 
I sent 2 because one of them is the 200 ok from the sip trunk gateway and the second one is it sent from kamailio to asterisk.

D

Em qui, 22 de ago de 2019 às 11:00, Diogo Hartmann <diogo@3cplusnow.com> escreveu:
Hi David, thanks in advance!

Sure, 

From trunk to Kamailio proxy:
image.png

From Kamailio proxy to Asterisk:
image.png


Let me know if you received the images i sent in e-mail body or if i need to attach them.

--



Diogo Hartmann
Co-founder @ 3C Plus
Escritório: 11 4063-7921 ext. 6299
Celular: 41 99921-7281
Skype: diogodhh

  


  


Em qui, 22 de ago de 2019 às 07:37, David Villasmil <david.villasmil.work@gmail.com> escreveu:
Can you paste the complete 200 OK?

On Thu, 22 Aug 2019 at 08:11, Diogo Hartmann <diogo@3cplusnow.com> wrote:
Hello Kamailio experts,

We have a Kamailio as outbound proxy in front of Asterisks PjSIP.  There is a strange behavior after 200 OK:

- ACK comes from Asterisk Public IP instead of coming from the internal IP address.
- BYE can not be processed (404 not here)

SNGREP print attached.

Has anyone ever experienced this?

I can provide more information if needed, just let me know what info.

Thanks!


Diogo Hartmann
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
--
Regards,

David Villasmil
phone: +34669448337
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
--
Regards,

David Villasmil
email: david.villasmil.work@gmail.com
phone: +34669448337