[OpenSIPS-Devel] [opensips] TM Request In Callback breaking async flow (#810)

Ionut Ionita notifications at github.com
Fri Feb 26 12:50:05 CET 2016


TM calls Request In callback after the first async call, when the transaction is created, but there are some scenarios in which we need that callback to be called after all the async routes were called. Consider the following scenario:


```
route {
...
        if (is_method("INVITE")) {
                 /* transaction is created right after radius_send_auth
                  * and also REQUEST_IN callback is called*/
                 async(radius_send_auth(...), async_route);
        }
...
}

route[async_route] {
        /* user successfully authenticated */
        if ($rc==1) {
                  /* log cdrs for this user */
                  setflag(LOG_CDR);
        }
}

```


In this scenario we won't have any CDR's generated because when the request in callback shall be called, we won't have the LOG_CDR flag set.

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/810
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20160226/4fd98630/attachment.htm>


More information about the Devel mailing list