[sr-dev] [kamailio/kamailio] dmq: add optional parameter to dmq_handle_message() (#1626)

Emmanuel Schmidbauer notifications at github.com
Fri Aug 31 14:44:53 CEST 2018


some context for this PR...
we are testing using the `tsilo` module for mobile push notifications while maintaining multiple registrars with `dmq_usrloc`
if an `INVITE` goes to a registrar "A" and then the UA registers to registrar "B", the dmq message is sent to registrar "A" with UA location info,and the INVITE can be resumed successfully. 

```
    if (is_method("KDMQ")) {
        dmq_handle_message("1");
        if ($tU == "usrloc") {
            $var(a) = "";
            json_get_field("$rb", "aor", "$var(a)");
            $var(a) = $(var(a){s.strip,1});     #strip quotes
            $var(a) = $(var(a){s.striptail,1}); #strip quotes
            $var(p) = "sip:" + $var(a);
            route(PUSHJOIN);
        }
        exit;
   }
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/1626#issuecomment-417652457
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20180831/29e2d3ba/attachment.html>


More information about the sr-dev mailing list