[OpenSIPS-Users] opensips 3.4 push notification

Bogdan-Andrei Iancu bogdan at opensips.org
Wed Feb 21 17:42:17 UTC 2024


Check with 
https://blog.opensips.org/2020/06/03/sip-push-notification-with-opensips-3-1-lts-rfc-8599-supportpart-ii/

If setting $var(do_relay) to "false", be sure you do not hit any 
t_relay() later in your script.

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
   https://www.opensips-solutions.com
   https://www.siphub.com

On 20.02.2024 17:44, rvg at rvgeerligs.nl wrote:
> As far as I can see I do not do a relay in case 2:
>
> lookup("location", "method-filtering");
> $var(rc) = $retcode;
> switch ($var(rc)) {
> case 1:
>     # we found at least 1 non-PN contact!
>     $var(do_relay) = true;
>     break;
> case 2:
>     # success, but all contacts are PN-enabled, so we're
>     # sending PNs / awaiting re-registrations from them
> *    $var(do_relay) = false;*
> #     $var(do_relay) = true;
>
>     break;
> default:
>     xlog("L_INFO", "DBG: no contacts found ($var(rc))\n");
>     t_reply(404, "Not Found");
>     exit;
> }
>
> Please advise again,
>
> Regards,
>
> Ronald
>
>
> February 19, 2024 at 6:57 AM, "Bogdan-Andrei Iancu" 
> <bogdan at opensips.org 
> <mailto:bogdan at opensips.org?to=%22Bogdan-Andrei%20Iancu%22%20%3Cbogdan%40opensips.org%3E>> 
> wrote:
>
>     Hi Ronald,
>
>     Do you check in the cfg the return code of the lookup() [1]
>     function for retcode (2)? you should not perform any SIP relay in
>     this case, as it will result into a loop.
>
>
>     [1]
>     https://opensips.org/html/docs/modules/3.4.x/registrar.html#func_lookup
>
>     Regards,
>
>     Bogdan-Andrei Iancu
>
>     OpenSIPS Founder and Developer
>        https://www.opensips-solutions.com
>        https://www.siphub.com
>
>     On 16.02.2024 18:44, rvg at rvgeerligs.nl wrote:
>
>         here you are.
>
>         February 16, 2024 at 1:37 PM, "Bogdan-Andrei Iancu"
>         <bogdan at opensips.org
>         <mailto:bogdan at opensips.org?to=%22Bogdan-Andrei%20Iancu%22%20%3Cbogdan%40opensips.org%3E>>
>         wrote:
>
>             Hi,
>
>             Could you share a pcap or trace so we can understand the
>             routing you have ?
>
>             Regards,
>
>             Bogdan-Andrei Iancu
>
>             OpenSIPS Founder and Developer
>                https://www.opensips-solutions.com
>                https://www.siphub.com
>
>             On 15.02.2024 22:24, rvg at rvgeerligs.nl wrote:
>
>                 Hi,
>                 I kind of followed the article SIP Push Notification
>                 with OpenSIPS 3.1 LTS [RFC 8599 support][Part II] as I
>                 connot find anything related to opensips 3.4.x.
>                 When I disable (commenting by #) modparam("registrar",
>                 "pn_enable", true), the call actually works.
>                 When I enable modparam("registrar", "pn_enable", true)
>                 the call does not come through.
>                 It gets rerouted internally to external ip address
>                 after the authentication, second INVITE with answer to
>                 nonce, and giving it a try.
>                 Opensips keeps asking for Proxy Authentication
>                 required which was allready accepted.
>                 Anyone an idea?
>                 Regards,
>                 Ronald Geerligs
>
>                 _______________________________________________
>                 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/20240221/fd638303/attachment-0001.html>


More information about the Users mailing list