[Kamailio-Users] includes in the route script ?

Gustavo Mistrinelli gmistrinelli at gmail.com
Thu Aug 7 14:53:22 CEST 2008


Hi Franco, yo can use m4 scripting, please review M4 Scripting
Tutorial<http://www.kamailio.org/docs/scripting.html>
The idea is to use constants to enumerate routes, flags, localization
variables and maybe can help you to have once file including all other
routes files

openser.m4
/*------------------*/
define(`INVITE_ROUTE',`1')dnl
...
include(`route1.m4')dnl
include(`route2.m4')dnl
include(`route3.m4')dnl
..

Cheers,

Gustavo Mistrinelli


On Thu, Aug 7, 2008 at 6:26 AM, Francois Berganz <
francois at acropolistelecom.net> wrote:

>  is it possible to divide the script route in others files and do
> includes?
>
> With that, I want to have one file for route[1] , one for route[2] …
>
> _______________________________________________
> Users mailing list
> Users at lists.kamailio.org
> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kamailio.org/pipermail/users/attachments/20080807/6c7a63ee/attachment.htm 


More information about the Users mailing list