Telcobridges - Session Border Controllers
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Reg Expression to add plus sign (+) to outbound route

Go down

Reg Expression to add plus sign (+) to outbound route Empty Reg Expression to add plus sign (+) to outbound route

Post by Guest Thu Apr 22, 2021 6:51 am

Hi guys, we are creating a trunk for a customer and they need us to send the call using E.164, so we are trying to figure out the way to do it.

Our regex uses a prefix to use that trunk so it is something like this    /^2021([0-9]{9,13})$/\1/

How can I add + to this regex?

Thanks in advance.


Last edited by ahsanul.moyeen on Thu Apr 29, 2021 6:36 am; edited 1 time in total

Guest
Guest


Back to top Go down

Reg Expression to add plus sign (+) to outbound route Empty Re: Reg Expression to add plus sign (+) to outbound route

Post by Guest Thu Apr 22, 2021 6:51 am

Hi,

From below,

/^2021([0-9]{9,13})$/\1/

You can add + like this,

/^2021([0-9]{9,13})$/+\1/

This means it will strip off 2021 and + to the first group ([0-9…) after remapped.


Best regards,

Guest
Guest


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum