[OpenSIPS-Users] UAC Registrant - keepalive messages?
Pavel Eremin
eremina.net at gmail.com
Mon Apr 28 05:44:00 UTC 2025
Hi, the way you can send options from timer route is:
t_new_request("OPTIONS","sip:alice at 192.168.2.2","BOB
sip:userB at mydomain.net","ALICE sip:userA at mydomain.net","text/plain
Hello Alice!"));
received reply, you can get from the common "onreply_route" route.
But, be noted, if you are using custom "onreply_route" like
onreply_route[handle_nat] you may got twice route where you see
replies. Just check this, i am not sure.
вс, 27 апр. 2025 г. в 11:37, Alexey <slackway2me at gmail.com>:
>
> Hi all, hi, Pavel,
>
> I'm not sure if OpenSIPS has an ability to send OPTIONS requests itself
> independently of some other module/functionality.
>
> It can only answer [1] OPTIONS requests.
>
> Maybe the way to send OPTIONS requests is to add the remote address
> to the load_balancer or dispatcher module without using their main functions
> in the config file, but configure sending OPTIONS in the modules'
> parameters [2] , [3] ,
> though this seems to be not too elegant...
>
> But if there is some other solution, it would be interesting to know it.
>
> [1] https://opensips.org/docs/modules/3.5.x/options.html#func_options_reply
> [2] https://opensips.org/docs/modules/3.5.x/load_balancer.html#param_probing_method
> [3] https://opensips.org/docs/modules/3.5.x/dispatcher.html#param_ds_ping_method
>
> --
> best regards, Alexey
> https://alexeyka.zantsev.com/
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
More information about the Users
mailing list