[OpenSIPS-Users] Dialplan issues: simple strip\prefix cases
Brett Nemeroff
brett at nemeroff.com
Fri Oct 16 06:31:25 CEST 2009
I don't mean to point out the obvious here, but \4 doesn't exist.
that'd refer to the 4th set of parens in your expression. See your
exp, you only have 2.
As a completely separate issue, I also suspect that "^4224+" is wrong.
I'm not an expert in regex, but I think that means "starts with 4224
and then continues with 1 or more '4' ". You probably mean "^4224.+"
-Brett
On Thu, Oct 15, 2009 at 4:38 PM, Sebastian Sastre <sebastian at next-ip.com> wrote:
> Hello,
>
>
>
> I’m trying to use the Dialplan module to strip the prefix of my calls.
>
> On the database I have.
>
>
>
> Dpid = 1
>
> Pr = 0
>
> match_op = 1
>
> match_exp = ^4224+
>
> match_len = 0
>
> subst_exp = ^(4224)(.+)
> repl_exp = \4
>
>
>
> Oct 15 17:25:32 RouteMe /usr/sbin/opensips[30516]: INFO:dialog:mod_init:
> Dialog module - initializing
>
> Oct 15 17:25:32 RouteMe /usr/sbin/opensips[30516]: INFO:dialplan:mod_init:
> initializing module...
>
> Oct 15 17:25:32 RouteMe /usr/sbin/opensips[30516]:
> ERROR:dialplan:build_rule: repl_exp uses a non existing subexpression
>
> Oct 15 17:25:32 RouteMe /usr/sbin/opensips[30516]:
> ERROR:dialplan:init_db_data: failed to load database data
>
> Oct 15 17:25:32 RouteMe /usr/sbin/opensips[30516]: ERROR:dialplan:mod_init:
> could not initialize data
>
> Oct 15 17:25:32 RouteMe /usr/sbin/opensips[30516]: ERROR:core:init_mod:
> failed to initialize module dialplan
>
> Oct 15 17:25:32 RouteMe /usr/sbin/opensips[30516]: ERROR:core:main: error
> while initializing modules
>
>
>
>
>
>
>
> Thanks
>
>
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
More information about the Users
mailing list