[Serusers] @to.tag="" not detecting empty To tag?

Vaclav Kubart vaclav.kubart at iptel.org
Thu Jun 7 14:06:23 CEST 2007


:-) You are welcome - but it is only a workaround. I guess that it will
be related to that Michal's bug and solving it could help.

	Vaclav

On Thu, Jun 07, 2007 at 02:02:15PM +0200, samuel wrote:
> just tested and the option you said works like charm.
> 
> thanks Vaclav!
> Samuel.
> 
> 2007/6/7, samuel <samu60 at gmail.com>:
> >
> >Michal just posted in serdev a bug that might be related to this...I asked
> >if they are related.
> >samuel.
> >
> >2007/6/7, Vaclav Kubart <vaclav.kubart at iptel.org >:
> >>
> >> Hi Samuel,
> >> I met the same problem, so I'm using now something like:
> >>
> >> if ((!@to.tag) || (@to.tag=="")) {
> >>   ...
> >> }
> >>
> >> It seemed to be working this way.
> >>
> >>         Vaclav
> >>
> >> On Thu, Jun 07, 2007 at 01:53:43PM +0200, samuel wrote:
> >> > Hi folks,
> >> >
> >> > I am moving production to SER2 rc 2.0 and can not make @to.tag==""  to
> >> work.
> >> >
> >> > For example, in initial INVITEs:
> >> >
> >> >      # if this is an initial INVITE (without a To-tag) we might try
> >> another
> >> >        # (forwarding or voicemail) target after receiving an error
> >> >        if (method=="INVITE" && @to.tag=="") {
> >> >                xlog("L_ERR","LXLOG: initial INVITE (no Totag) setting
> >> > FAILURE_ROUTE");
> >> >                t_on_failure("FAILURE_ROUTE");
> >> >        }
> >> >
> >> > FAILURE_ROUTE is never called.
> >> >
> >> > While next check works (in the sense the failure route is processed).
> >> >
> >> >        if (method=="INVITE") {
> >> >                xlog("L_ERR","LXLOG: INVITE  setting FAILURE_ROUTE");
> >> >                t_on_failure("FAILURE_ROUTE");
> >> >        }
> >> >
> >> >
> >> > So I am wondering whether @to.tag==""  works for empty To tag....can
> >> anyone
> >> > confirm it?
> >> >
> >> > Thanks,
> >> > Samuel.
> >>
> >> > _______________________________________________
> >> > Serusers mailing list
> >> > Serusers at lists.iptel.org
> >> > http://lists.iptel.org/mailman/listinfo/serusers
> >>
> >>
> >



More information about the sr-users mailing list