Hello,
I am trying to use global variables within my configuration script. I am
using Kamailio v3.0.0 and I am following the syntax example written in
the sample config file but I keep getting syntax errors. Here is a copy
of my syntax and I am using cfg_get.voicemailserver.bindip to get the
value.
#!ifdef WITH_VOICEMAIL
voicemailserver.bindip = "10.0.0.1" desc "Voicemail Server IP
Address"
voicemailserver.bindport = "5060" desc "Voicemail Server Port"
#!endif
Here is the error that I am receiving:
0(1875) : <core> [cfg.y:3333]: parse error in config file
/usr/local/kamailio-3.0.0/etc/kamailio/kamailio.cfg, line 156, column
17: syntax error
0(1875) : <core> [cfg.y:3333]: parse error in config file
/usr/local/kamailio-3.0.0/etc/kamailio/kamailio.cfg, line 156, column
17: unknown config variable
0(1875) : <core> [cfg.y:3330]: parse error in config file
/usr/local/kamailio-3.0.0/etc/kamailio/kamailio.cfg, line 156, column
19-28:
ERROR: bad config file (3 errors)
0(1875) DEBUG: <core> [mem/shm_mem.c:236]: shm_mem_destroy
Thanks
Nathaniel