<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#ffffff">
<font face="Helvetica, Arial, sans-serif">Hello,<br>
<br>
I'm trying to cut off the "+" sign if part of a telephone number,
but not succeeding :<br>
<br>
exten => test,n,Set(cid=+99999600)<br>
exten => test,n,Set(regx="([0-9])")<br>
exten => test,n,Set(cid2=$["${cid}" : ${regx}])<br>
exten => test,n,NoOp(cid2=${cid2})<br>
<br>
cid2 is empty afterwards...<br>
<br>
<br>
What I want is to make sure there are only numbers and no other
characters.<br>
<br>
So </font><font face="Helvetica, Arial, sans-serif">+99999600
needs to become </font><font face="Helvetica, Arial, sans-serif">99999600
(without + )<br>
</font><font face="Helvetica, Arial, sans-serif">So </font><font
face="Helvetica, Arial, sans-serif">99999#600 needs to become </font><font
face="Helvetica, Arial, sans-serif">99999600 (without # )</font><br>
<font face="Helvetica, Arial, sans-serif"><br>
<br>
Kind regards,<br>
Jonas.<br>
</font>
</body>
</html>