Hello,

it is a custom programming language (developed from scratch, started back in 2001, tailored for SIP routing needs).

The only loop you can do for the moment is with 'while':

 - http://www.kamailio.org/wiki/cookbooks/4.1.x/core#while

You can also simulate via recursive calling of sub-route blocks:

route[x] {
  ...
  if(exp) route(x);
}

If you need something that is not possible with the structure of the config file, look at using an embedded language interpreter (e.g., app_lua/perl/python/...). Here is an example of using Lua:

 - http://kb.asipto.com/kamailio:usage:k32-lua-routing

Cheers,
Daniel

On 15/08/14 12:55, ANTHONY HESNAUX wrote:
hello every body,
I would like to know what language is using in Kamailio.cfg because I don’t 
arrive to create a loop
thank you
anthony
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Next Kamailio Advanced Trainings 2014 - http://www.asipto.com
Sep 22-25, Berlin, Germany ::: Oct 15-17, San Francisco, USA


_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to