[OpenSIPS-Users] Dialplan Help

Mark Farmer farmorg at gmail.com
Thu Oct 3 06:46:50 EDT 2019


Never mind, seems setting matching operator to regex is the wrong thing to
do.

Sorry!


On Thu, 3 Oct 2019 at 11:35, Mark Farmer <farmorg at gmail.com> wrote:

> Hi everyone
>
> I'm having a problem with my rule not matching, I'm trying to remove the +
> at the beginning of the input DID using a regex rule:
>
> Matching exp:
> ^\+(44[1-9][0-9]+$)
>
> Substitution exp:
> ^\+(.*)$
>
> Replacement exp:
> \1
>
> But dp_translate() never matches.
>
> mi dp_translate input=+441205875104 dpid=1
> ERROR: command 'dp_translate' returned: 404: No translation
>
> Where am I going wrong?
>
> Thanks
> Mark.
>
>

-- 
Mark Farmer
farmorg at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20191003/ffae3b4f/attachment.html>


More information about the Users mailing list