Hi Browsed the code very briefly, the function for dlg_isflagset is traced back to:
w_dlg_setflag()--> dlg_get_dlg_ctx() --> _dlg_ctx is _dlg_ctx set in anywhere for onreply_route? Kind regards Min Wang On Wed, Jul 29, 2009 at 12:09 PM, Min Wang <ser.ba...@gmail.com> wrote: > > 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 > > > > >
_______________________________________________ Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users