[OpenSIPS-Users] openSIPS- Dialplan Manipulation Help

Callum Guy callum.guy at x-on.co.uk
Wed Dec 4 03:22:46 EST 2019

Why not just glue together the strings?

$var(a) = "972" + $rU;

Seems pretty effective to me :)

On Tue, 3 Dec 2019 at 22:02, VOIP Security via Users <
users at lists.opensips.org> wrote:

> Hi,
> I am struggling with openSIPS regex rules to append some prefix before
> regex. I have this regex rule setup for Israel numbers -
> Matching Regular Expression -  ^0[0-9]{8}$
> So this rule is catching all the 9 digits DID from my Israeli carrier but
> now I want to add 972 in front of any DID, for example DID - 021458547
> After dp_translate I want to manipulate that DID and add 972 so new DID
> gonna be - 972021458547
> Please help me setting up this dial plan rule. I will appreciate that.
> Thanks and regards
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users


*0333 332 0000  |  www.x-on.co.uk <http://www.x-on.co.uk>  |   ** 
<https://www.linkedin.com/company/x-on>   <https://www.facebook.com/XonTel> 
  <https://twitter.com/xonuk> *

is a trading name of Storacall 
Technology Ltd a limited company registered in
England and Wales.

Registered Office : Avaland House, 110 London Road, Apsley, Hemel 
Herts, HP3 9SD. Company Registration No. 2578478.

information in this e-mail is confidential and for use by the addressee(s)

only. If you are not the intended recipient, please notify X-on immediately 
on +44(0)333 332 0000 and delete the
message from your computer. If you are 
not a named addressee you must not use,
disclose, disseminate, distribute, 
copy, print or reply to this email. Views
or opinions expressed by an 
within this email may not necessarily
reflect the views of X-on 
or its associated companies. Although X-on routinely
screens for viruses, 
addressees should scan this email and any attachments
viruses. X-on 
makes no representation or warranty as to the absence of viruses
in this 
email or any attachments.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20191204/0de9cacd/attachment.html>

More information about the Users mailing list