Hi, I'm building an external application in order to end dialogs via
XMLRPC MI (Kamailio 1.5.4). For each call of a client I set a dialog
profile:
dlg_manage();
set_dlg_profile("out","$avp(AVP_CLIENT_USERNAME)");
The problem is that there is no way to find the current dialog
information based on dialog profiles, as such information is not
provided when running MI dlg_list or dlg_list_ctx.
So, is there something I can do? I've realized that dlg_list_ctx also
displays the dialog "context":
"associated context from modules sitting on top of the dialog module"
But of course such field is empty as I don't use a module on top of
dialog module. But perhaps I could code something in the dialog module
so such value could be set in the script (I need it to display
$avp(AVP_CLIENT_USERNAME)). In this way, I would get the dialog list
and filter these with "context = SOME_CLIENT_USERNAME". Then I get the
h_entry and h_id and can perform the dlg_end_dlg MI command. Any
suggestion about it please?
BTW: Running dlg_list_ctx via MI FIFO I get this for each dialog:
dialog:: hash=3960:1144646733
Should I assume that h_entry is 3960 and h_id is 1144646733?
Thanks a lot.
--
Iñaki Baz Castillo
<ibc(a)aliax.net>