Hello,
On 1/10/12 2:06 PM, Uri Shacked wrote:
hi, i am manging dialogs in memory only. no DB. i would like to set a timeout for a dialog and when the timeout is reached, to send "bye" to the parties. today i know how to timeout the dialog, and using the dlg_bye function is understood. but, how do i activate the dlg_bye when the time out is executed and whith which parameters in order to disconnect the right session? the explenation about the "route" to perform is not clear?
dialog module will automatically send BYE at dialog timeout, just set the dialog timeout avp when the call is established -- the name of the avp has to be set to a module parameter:
http://kamailio.org/docs/modules/devel/modules_k/dialog.html#timeout-avp-id
The timeout route is when you want a route block in config to be executed when timeout occurs. But again, you don't have to do anything for the BYEs to be generated.
Cheers, Daniel