Hi All,

Please help!
I am getting an error when trying to start kamailio after making some changes to the configuration file.

Error is :

rse error in config file /etc/kamailio/kamailio.cfg, line 878, column 47-57: '('')' expected (function call)

rse error in config file /etc/kamailio/kamailio.cfg, line 878, column 102: bad expression

rse error in config file /etc/kamailio/kamailio.cfg, line 878, column 102: bad command

atus=255/EXCEPTION


rse error in config file /etc/kamailio/kamailio.cfg, line 878, column 103: bad command


rse error in config file /etc/kamailio/kamailio.cfg, line 878, column 105: bad command

 used inside params of another function: xlog

rse error in config file /etc/kamailio/kamailio.cfg, line 879, column 28: use of function execution inside params not allowed

Server.

Changes made is :

# Routing to foreign domains

route[SIPOUT] {

        if (uri==myself) return;

#Start of change

        if (mongodb_find_one("mongodbsrv1", “telephone", “cXXX", " { \'did\': \'2XXXXXXXXXXXXXXXXX\' } ", "mgr1")) {

                       xlog("response from mongodb is [[$mongodb(mgr1=>value)]]\n");

               }

#End of change

        append_hf("P-hint: outbound\r\n");

        route(RELAY);

        exit;

}

Please can someone tell me what I am doing wrong. Error says syntax but I have tried many permutations of the suggested syntax with no luck. 

Please help

Thanks
--
-----
Ekunwe
EDO Network Services, Inc.
Tel: 601.497.3932