[sr-dev] [tracker] Task opened: Script private variables not working on 4.0

sip-router bugtracker at sip-router.org
Tue Oct 22 09:38:58 CEST 2013


A new Flyspray task has been opened.  Details are below. 

User who did this - i (takeshi) 

Attached to Project - sip-router
Summary - Script private variables not working on 4.0
Task Type - Bug Report
Category - Core
Status - Unconfirmed
Assigned To - 
Operating System - Linux
Severity - Low
Priority - Normal
Reported Version - 4.0
Due in Version - Undecided
Due Date - Undecided
Details - Hello,
I am testing with latest kamailio 4.0:

commit cabe585ea64c03d29bcdbe5c46b0190c41bf18a5
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Wed Oct 2 16:56:03 2013 +0200

    ChangeLog: file updated for v4.0.4

I am trying with a simple cfg:

# cat stateless.cfg 

        $var(0) = 1;
        forward(uri:host, uri:port);

But I get these error when I ask kamailio to check the cfg:

# /usr/local/src/git/kamailio-4.0/kamailio -c -f stateless.cfg 
 0(9496) ERROR: <core> [pvapi.c:761]: pv_parse_spec2(): error searching pvar "var"
 0(9496) ERROR: <core> [pvapi.c:965]: pv_parse_spec2(): wrong char [0/48] in [$var(0)] at [5 (5)]
 0(9496) : <core> [cfg.y:3567]: yyerror_at(): parse error in config file /root/tmp/stateless.cfg, line 3, column 2-8: unknown script pseudo variable $var(0)
ERROR: bad config file (1 errors)

Obs: I stumbled upon this while trying to upgrade from old kamailio 1.4 (where $var(...) works). Maybe the usage of $var(...) has changed, but I haven't found any indication that it had.

More information can be found at the following URL:

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.

More information about the sr-dev mailing list