Hello,
I'm trying to cut off the "+" sign if part of a telephone number, but
not succeeding :
exten => test,n,Set(cid=+99999600)
exten => test,n,Set(regx="([0-9])")
exten => test,n,Set(cid2=$["${cid}" : ${regx}])
exten => test,n,NoOp(cid2=${cid2})
cid2 is empty afterwards...
What I want is to make sure there are only numbers and no other characters.
So +99999600 needs to become 99999600 (without + )
So 99999#600 needs to become 99999600 (without # )
Kind regards,
Jonas.
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users