[OpenSIPS-Devel] [OpenSIPS/opensips] 566d4d: Dialplan module should honor db_default_url

Ovidiu Sas osas at voipembedded.com
Fri Oct 2 20:54:54 CEST 2015


It seems that this commit broke the "default" partition.
After this commit, the default partition MUST be defined.
Before this commit, the default partition (if not defined) pointed to
the "dialplan" table.

As a side note, it seems that if the "default" partition is defined
along with other partitions, the default MUST be the last one,
otherwise the other partitions will be lost.

OK example:
loadmodule "dialplan.so"
modparam("dialplan", "db_url", "mysql://******")
modparam("dialplan", "partition",
"custom:table_name=custom;db_url=mysql://******;")
modparam("dialplan", "partition",
"default:table_name=dialplan;db_url=mysql://******;")

Non working example:
loadmodule "dialplan.so"
modparam("dialplan", "db_url", "mysql://******")
modparam("dialplan", "partition",
"default:table_name=dialplan;db_url=mysql://******;")
modparam("dialplan", "partition",
"custom:table_name=custom;db_url=mysql://******;")

-ovidiu

On Thu, Sep 24, 2015 at 1:16 PM, Bogdan Andrei IANCU
<bogdan at opensips.org> wrote:
>   Branch: refs/heads/master
>   Home:   https://github.com/OpenSIPS/opensips
>   Commit: 566d4db2cc634bfb0bcbd578acb70d1b69153d48
>       https://github.com/OpenSIPS/opensips/commit/566d4db2cc634bfb0bcbd578acb70d1b69153d48
>   Author: David Sanders <dsanders11 at ucsbalum.com>
>   Date:   2015-09-23 (Wed, 23 Sep 2015)
>
>   Changed paths:
>     M modules/dialplan/dialplan.c
>
>   Log Message:
>   -----------
>   Dialplan module should honor db_default_url
>
>
>   Commit: d6cbbff3eaa20fd55553b7fd1be4bbe04f1dce3b
>       https://github.com/OpenSIPS/opensips/commit/d6cbbff3eaa20fd55553b7fd1be4bbe04f1dce3b
>   Author: Bogdan Andrei IANCU <bogdan at opensips.org>
>   Date:   2015-09-24 (Thu, 24 Sep 2015)
>
>   Changed paths:
>     M modules/dialplan/dialplan.c
>
>   Log Message:
>   -----------
>   Merge pull request #649 from dsanders11/patch-4
>
> Dialplan module should honor db_default_url
>
>
> Compare: https://github.com/OpenSIPS/opensips/compare/cdc580382b58...d6cbbff3eaa2
> _______________________________________________
> Devel mailing list
> Devel at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/devel
>



-- 
VoIP Embedded, Inc.
http://www.voipembedded.com



More information about the Devel mailing list