<div dir="auto">I suppose it’s a workaround but maybe just save ip:port into cache after register success, in timer_route set some function to create simple sip option msgs(I don remember function) and send it to ip:port every timer period. </div><div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">Вт, 15 апр. 2025 г. в 19:19, Thomas <<a href="mailto:tomasz.buty@o2.pl">tomasz.buty@o2.pl</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">It doesn't have to be SIP OPTIONS. It can be anything as long as it's <br>
sent to the server from the same UDP socket. For example, the MicroSIP <br>
windows client sends 2 bytes 0x0D 0x0A every dozen of seconds.<br>
This keeps a NAT state and allows subsequent SIP Register messages to be <br>
sent to the server from the same source port.<br>
<br>
Since dispatcher is a different module than UAC Registrant, I assume it <br>
creates its own UDP connections meaning the packets will be sent to the <br>
server from a different source port and will be treated as a new <br>
session/binding.<br>
<br>
I want to sent all subsequent SIP register messages from the same source <br>
port. Otherwise, the VoIP provider will terminate the ongoing phone call.<br>
<br>
<br>
W dniu 15.04.2025 o 15:05, Pavel Eremin pisze:<br>
> if i understood, you whant to send options to provider you registered to?<br>
> May be this is some kind of workaround, but you can add providers into<br>
> dispatcher module and check their statuses via OPTIONS.<br>
> <br>
> пн, 14 апр. 2025 г. в 19:26, Thomas <<a href="mailto:tomasz.buty@o2.pl" target="_blank">tomasz.buty@o2.pl</a>>:<br>
>><br>
>> Hi everyone.<br>
>> Is there any keepalive feature available to keep a NAT state for UAC<br>
>> Registrant module which connects through UDP to VoIP provider?<br>
>> Something like Asterisk's pjsip qualify_frequency that sends SIP OPTIONS<br>
>> message every xx seconds.<br>
>> It is useful if you use opensips as a proxy and it's behind NAT.<br>
>><br>
>> _______________________________________________<br>
>> Users mailing list<br>
>> <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
>> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
> <br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div></div>