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?
please,
thanks, Uri
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
I set the timeout parameter to 30 sec to check. The call was not disconnected. After i did hang up the phone, i got an error for a misplaced "bye" with no dialog... I notice there i an option to set some $dlgctx parameters. Where can i find out more about it? What i "timeout-bye=1" in the module example? Thanks.
On 1/10/12, Uri Shacked ushacked@gmail.com 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?
please,
thanks, Uri
Hello,
right, one missing thing: the dlg_ctx variable has to have the flag for sending byes set at call startup:
$dlg_ctx(timeout_bye) = 1;
Cheers, Daniel
On 1/11/12 6:04 PM, Uri Shacked wrote:
I set the timeout parameter to 30 sec to check. The call was not disconnected. After i did hang up the phone, i got an error for a misplaced "bye" with no dialog... I notice there i an option to set some $dlgctx parameters. Where can i find out more about it? What i "timeout-bye=1" in the module example? Thanks.
On 1/10/12, Uri Shackedushacked@gmail.com 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?
please,
thanks, Uri