[OpenSIPS-Users] Registration passthrough
Daniel Zanutti
daniel.zanutti at gmail.com
Thu Jun 1 12:59:14 UTC 2023
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 at 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 at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20230601/ca9d97b8/attachment.html>
More information about the Users
mailing list