[Kamailio-Users] About dlg_isflagset in onreply_route
Min Wang
ser.basis at gmail.com
Wed Jul 29 18:09:59 CEST 2009
Hi all
In kamailio 1.5.2, I used dlg_isflagset inside a ONREPLY_ROUTE.
////////////////scripts//////////////////
Route[1]{
...
Dlg_manage();
Dlg_setflag("1");
...
}
onreply_route[1] {
#dlg_get("$ci", "$ft", "$tt");
#xlog("L_INFO", " Dialog: $dlg(h_id) . $dlg(h_entry)\n");
if (dlg_isflagset("1")) {
xlog("L_INFO", " here is it \n");
}
}
/////////////////////////////////////////
The dlg_isflagset seems do not match anything until there is
dlg_get("$ci", "$ft", "$tt");
before it.
Questions are:
(1) Is it the correct usage or a pontential bug.
(2) How dialog is cheched/matched in the onreply_route internally?
Kind Regards
Min Wang
More information about the sr-users
mailing list