Re: [PATCH] 'group = smsc' directive 'instances = x' to multiply the runtime instances
Stipe Tolj <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Organization | Kannel Foundation (KSF) |
| Message-ID | <[email protected]> |
Am 31.10.2014 11:26, schrieb Alexander Malysh:
> Hi Stipe,
>
> don’t know why we need this? If you need some amount of equal smsc connections then:
>
> 1) create file with smsc config: e.g. smsc.conf
> 2) in the global config:
> include smsc.conf
> include smsc.conf
> include smsc.conf
> include smsc.conf
> include smsc.conf
> ...
doesn't work like you suggest, we have this part in gwlib/cfg.c:490
/* check if we are cycling */
if (gwlist_search(stack, filename, octstr_item_match)
!= NULL) {
panic(0, "Recursive include for config file `%s'
detected "
"(on line %ld of file %s).",
octstr_get_cstr(filename), loc->line_no,
octstr_get_cstr(loc->filename));
which yields a PANIC if the same filename is included one more time.
Stipe
--
-------------------------------------------------------------------
Kölner Landstrasse 419
40589 Düsseldorf, NRW, Germany
tolj.org system architecture Kannel Software Foundation (KSF)
http://www.tolj.org/ http://www.kannel.org/
mailto:st_{at}_tolj.org mailto:stolj_{at}_kannel.org
-------------------------------------------------------------------