Did you check SIP messages inside your opensips box? I saw home routers changing the Contact some time ago.
I could help if you send the whole script, cannot help further without seeing the whole picture. Regards On Fri, Jun 2, 2023 at 7:51 AM nutxase <nutx...@proton.me> wrote: > So i now have only > if (is_method("REGISTER")) { > forward("myasterisk.server.com:5060 <http://node3.sipalto.com:5080>"); > exit; > } > > but the contact shows as > sip:zyq5d7rf@opensips-ip:5060^...so i need it to be > sip:extensionnumber@deviceip:5060xxx > > > Sent with Proton Mail <https://proton.me/> secure email. > > ------- Original Message ------- > On Thursday, June 1st, 2023 at 9:31 PM, Daniel Zanutti < > daniel.zanu...@gmail.com> wrote: > > Check if you are manipulating contact with some function like > fix_contact() or usage of media proxy solutions like rtpproxy, rtpengine or > mediaproxy. > > Opensips doesn't change Contact if you don't tell to do it. > > On Thu, Jun 1, 2023 at 12:57 PM nutxase <nutx...@proton.me> wrote: > >> even with a stateless forward asterisk see's this >> >> >> Contact: 1000/sip:609q2255@opensipsip:5060 ee32101394 NonQual nan >> >> but i wanted it to be >> Contact: 1000/sip:609q2255@uacip:5060 ee32101394 NonQual nan >> >> Sent with Proton Mail <https://proton.me/> secure email. >> >> ------- Original Message ------- >> On Thursday, June 1st, 2023 at 3:00 PM, nutxase via Users < >> users@lists.opensips.org> wrote: >> >> Hi Daniel >> >> Thanks for the reply >> >> So it seems asterisk pjsip shows the contact as the ip of opensips not >> the uac >> i will try with stateless as i just want to forward it via opensips and >> asterisk to not know opensips >> >> >> Sent with Proton Mail <https://proton.me/> secure email. >> >> ------- Original Message ------- >> On Thursday, June 1st, 2023 at 1:59 PM, Daniel Zanutti < >> daniel.zanu...@gmail.com> wrote: >> >> Hi >> >> By standard, opensips does not change the Contact and your asterisk box >> should receive the original Contact, sent by UAC. Are you sure the contact >> is being changed by Opensips? I saw asterisk ignoring the contact and >> putting source IP and origin some times. Long time I don't work with >> asterisk... >> >> Also, you can check the stateless forward, it may be enough for you (not >> sure): >> https://www.opensips.org/Documentation/Script-CoreFunctions-3-1#toc17 >> >> Suggestion: >> >> Monitore SIP trace and confirm if Opensips is changing the contact >> (probably not) >> >> >> >> >> On Wed, May 31, 2023 at 10:54 AM nutxase via Users < >> users@lists.opensips.org> wrote: >> >>> Hey guys >>> >>> I have set opensips to take registrations and pass them through to >>> asterisk using the below >>> but my question is how can i make it set the contact to the ip of the >>> uac and not the ip of opensips ? >>> >>> if (is_method("REGISTER")) { >>> sethostport("sip.asterisk.xyz:50 <http://node3.sipalto.com:5080>60"); >>> route(toasterisk); >>> } >>> >>> route[toasterisk] { >>> if (!t_relay()) { >>> xlog("(Rewriting) t_relay 1 - M=$rm RURI=$ru F=$fu T=$tu IP=$si >>> ID=$ci\n"); >>> sl_reply_error(); >>> } >>> >>> Sent with Proton Mail <https://proton.me/> secure email. >>> _______________________________________________ >>> Users mailing list >>> Users@lists.opensips.org >>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users >>> >> >> >> >
_______________________________________________ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users