[Kamailio-Users] About dlg_isflagset in onreply_route
basis kamailio
ser.basis at gmail.com
Thu Jul 30 17:05:09 CEST 2009
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.basis at 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
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/users/attachments/20090730/fb7b4d20/attachment.htm>
More information about the Users
mailing list