Hi All,
I started playing with async kamailio feature, in particular using
"async_route" function provided by ASYNC module
(
https://www.kamailio.org/docs/modules/5.1.x/modules/async.html#async.f.asyn…).
My scenario is the following:
- A calls B
- B answer the call
- inside onreply_route[reply] I catch the 200OK message and I suspend
the transaction for X seconds.
- after X seconds the transaction is resumed and the call continues as
expected
Everything looks good, but I encountered an issue trying to drop reply
re-transmission messages.
My desire is to drop all the messages received from B (basically 200OK
re-transmissions) meanwhile the transaction is suspended.
I tested "t_is_retr_async_reply" function provided by TM module
(
https://www.kamailio.org/docs/modules/5.1.x/modules/tm.html#tm.f.t_is_retr_…),
but I'm not able to get it worked as expected:
- t_is_retr_async_reply() function can be used only inside named
'onreply_route' (no default 'onreply_route' or standard
'reply_route')
- drop() function, on the contrary, doesn't allow to drop 200OK
messages inside named 'onreply_route' (but only in default
'onreply_route' or standard 'reply_route').
Do you have any suggestion on how I can achieve my task?
Thank you very much for your support.
Marco