[Kamailio-Users] About dlg_isflagset in onreply_route
Daniel-Constantin Mierla
miconda at gmail.com
Fri Jul 31 11:01:17 CEST 2009
Hello,
On 30.07.2009 17:05 Uhr, basis kamailio wrote:
> 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?
the dialog flags were introduced for 1.5.0 and built on a new framework
that uses the dlg_get(). I wanted to keep the old code pretty much
untouched since those additions were done pretty lated, quite before
freezing. It should be not a problem to set the flag once the dlg is
identified for reply.
I will look into it.
Cheers,
Daniel
>
>
>
>
> Kind regards
>
> Min Wang
>
>
>
>
> On Wed, Jul 29, 2009 at 12:09 PM, Min Wang <ser.basis at gmail.com
> <mailto: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
>
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Kamailio (OpenSER) - Users mailing list
> Users at lists.kamailio.org
> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
> http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
--
Daniel-Constantin Mierla
* SIP Router Bootcamp
* Kamailio (OpenSER) and Asterisk Training
* Berlin, Germany, Sep 1-4, 2009
* http://www.asipto.com/index.php/sip-router-bootcamp/
More information about the Users
mailing list