[SR-Users] Syntax error - custom parameter

Daniel-Constantin Mierla miconda at gmail.com
Tue Jul 19 10:43:33 CEST 2011


Hello,

On 7/14/11 1:00 AM, Skyler wrote:
> Hi all,
>
>   I'm getting this error when using custom parameters and I don't why.
> when I use #!define WITH_ASTERISK the script throws the below error and
> when I remove the #!define WITH_ASTERISK the script loads without
> errors. I'm running kamailio-3.1.4-2.1.i386.rpm on Centos 5.6
>
>
> Does anyone know why this might be happening?
>
> parse error in config file //etc/kamailio/kamailio.cfg, line 123, column
> 16: syntax error
>   0(2907) :<core>  [cfg.y:3412]: parse error in config
> file //etc/kamailio/kamailio.cfg, line 123, column 16: unknown config
> variable
>   0(2907) :<core>  [cfg.y:3409]: parse error in config
> file //etc/kamailio/kamailio.cfg, line 123, column 17-19:
> ERROR: bad config file (3 errors)
>
>
> kamailio.cfg::: lines 122-127
>
> #!ifdef WITH_ASTERISK
> asterisk.bindip = "127.0.0.1" desc "Asterisk IP Address"
> asterisk.bindport = "5070" desc "Asterisk Port"
> kamailio.bindip = "209.15.226.21" desc "Kamailio IP Address"
> kamailio.bindport = "5060" desc "Kamailio Port"
> #!endif
> # This follows as described here:
> http://by-miconda.blogspot.com/2010/04/kamailio-30x-dyk-07-custom-cfg.html
>
do you have listen of alias parameter just before that? If yes, then it 
is a conflict in the grammar that is not easy to sort out without big 
impact, see:

http://sip-router.org/tracker/index.php?do=details&task_id=56&project=1

Cheers,
Daniel

-- 
Daniel-Constantin Mierla -- http://www.asipto.com
Kamailio Advanced Training, Oct 10-13, Berlin: http://asipto.com/u/kat
http://linkedin.com/in/miconda -- http://twitter.com/miconda




More information about the sr-users mailing list