[SR-Users] xlog/xdbg syntax

David Wilson dw at zaq.com.au
Tue Apr 16 05:36:38 CEST 2013


Hi Daniel,

That was it.  Painfully obvious now that pv stands for pseudo-variable.

I've started by adding modules only as I need them which helps my understanding of the structure of the system, but generates the occasional issue.

Thanks for the tip.

Dave.

On 15/04/2013, at 6:24 PM, Daniel-Constantin Mierla <miconda at gmail.com> wrote:

> Hello,
> 
> Have you loaded pv module?
> 
> Cheers,
> Daniel
> 
> 
> Daniel-Constantin Mierla
> http://www.asipto.com
> 
> On 15 Apr 2013, at 06:31, David Wilson <dw at zaq.com.au> wrote:
> 
>> Hi All,
>> 
>> Using Kamailio 4.0.0 with a minimal configuration, trying to get some logging to help me understand the system, I can get static log messages easily enough with log, but now want something more useful.  
>> 
>> When I use this route (xdbg example from the tutorial):
>> 
>> route {
>>   xdbg("SIP Request: method [$rm] from [$fu] to [$tu]\n");
>> }
>> 
>> the log file shows these messages:
>> 
>> DEBUG: <core> [sr_module.c:935]: DEBUG: init_mod: xlog
>> DEBUG: <core> [main.c:2539]: Expect (at least) 13 SER processes in your process list
>> DEBUG: <core> [route.c:927]: fixing xdbg()
>> DEBUG: <core> [pvapi.c:390]: PV <$rm> is not in cache
>> DEBUG: <core> [pvapi.c:269]: PV cache not initialized, doing it now
>> ERROR: <core> [pvapi.c:761]: error searching pvar "rm"
>> ERROR: <core> [pvapi.c:965]: wrong char [m/109] in [$rm] at [2 (0)]
>> ERROR: xlog [xlog.c:363]: wrong format[SIP Request: method [$rm] from [$fu] to [$tu]#012]
>> 
>> and Kamailio shuts down.
>> 
>> Have I missed something obvious?
>> 
>> Cheers,
>> Dave.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20130416/0e0ad9b2/attachment.htm>


More information about the sr-users mailing list