New feature
Description: Added functions that provide asynchronous functionality of the standard rtpe functions; Offer, Answer, Delete.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/3286
-- Commit Summary --
* Added asynchronous offer, answer and delete rtpe functions
-- File Changes --
M src/modules/rtpengine/rtpengine.c (214)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/3286.patch https://github.com/kamailio/kamailio/pull/3286.diff
@adityagupta-9900 pushed 1 commit.
89f43a1d2c0137059bf2cf94ce9c19481bab01a2 Corrected datatype issue by using int instead of bool
At first look, this is not about async processing, but only suspending the transaction before doing the rtpproxy control command. There is no passing of a task to some async worker, nor resuming the transaction.
Practically your code does something like:
``` t_suspend(); rtpengine_offer()/_answer()/_delete(); ```
Maybe you can just to use `async_task_route()` for INVITE:
- https://www.kamailio.org/docs/modules/stable/modules/async.html#async.f.asyn...
And use the rtpengine functions in the target routing block. It looks like what you want to implement inside rtpengine module, but you can achieve that by using async module.
If it can be implemented with another module, this is of course better and easier then changing the module code, which needs maintenance in the end.
Closing this PR, because it is not a real async implementation for rtpengine functions.
If further work is done, just make a new PR with updated patches.
Closed #3286.