[Users] $ct and $hdr(Content-Type) failing

Daniel-Constantin Mierla daniel at voice-system.ro
Wed Nov 22 09:38:42 CET 2006


Hello,

I tried and seems to work. There was a typo in pseudo-variables 
documentation (fixed now), the short name is $cT for Content-Type -- $ct 
stands for Contact header body.

xlog("L_ALERT","**** $hdr(Content-Type) | $cT | $rb\n");

**** text/plain;charset=UTF-8 | text/plain;charset=UTF-8 | test

I used devel version, what version are you using ?

Cheers,
Daniel

On 11/22/06 01:36, Mark Price wrote:
> Hi,
>
> I am trying to log MESSAGE packets differentiated the content-type of 
> the packet.
> I can see in the packet dump that they have types such as "text/html" 
> and so on.
> I'm using the following statement in the code:
>         if(method=="MESSAGE") {
>                 xlog("L_ALERT","$ct $rb\n");
>         }
> The message body specified by $rb is printing out fine, but $ct is 
> printing out "<null>".
> I get the exact same result if I say:
>                 xlog("L_ALERT","$hdr(Content-Type) $rb\n");
>
> Is this a bug in openser?
>
> Thanks,
> Mark Price
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at openser.org
> http://openser.org/cgi-bin/mailman/listinfo/users
>   




More information about the Users mailing list